/* REALBOYS Premium 2026
   Full visual layer for UniGameCMS v6.
   Safe: does not change PHP, AJAX functions, database or monitoringType logic. */

:root{
  --rbp-bg:#070a12;
  --rbp-bg-2:#0b1020;
  --rbp-card:rgba(15,22,39,.84);
  --rbp-card-2:rgba(20,30,54,.88);
  --rbp-line:rgba(255,255,255,.10);
  --rbp-line-2:rgba(255,255,255,.16);
  --rbp-text:#edf3ff;
  --rbp-muted:#93a3bd;
  --rbp-soft:#c7d3ea;
  --rbp-red:#ff335f;
  --rbp-red-2:#ff6a3d;
  --rbp-blue:#36a3ff;
  --rbp-green:#36d186;
  --rbp-shadow:0 22px 60px rgba(0,0,0,.40);
  --rbp-radius:22px;
  --rbp-radius-sm:14px;
}

html{scroll-behavior:smooth;}
body{
  background:
    radial-gradient(circle at 12% 8%, rgba(255,51,95,.17), transparent 34%),
    radial-gradient(circle at 88% 5%, rgba(54,163,255,.14), transparent 30%),
    linear-gradient(180deg,#070a12 0%,#0b1020 48%,#070a12 100%) !important;
  color:var(--rbp-text);
  min-height:100vh;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.65), transparent 78%);
}

a{color:#dbe8ff; transition:.18s ease;}
a:hover{color:#fff; text-decoration:none;}
img{max-width:100%;}

.container{position:relative;}
.content, .main, .page, .wrapper{position:relative;}

/* Header / navigation */
.header, .top-menu, .navbar, .menu, .main-menu{
  border-color:var(--rbp-line) !important;
}
.header{
  background:rgba(8,12,22,.78) !important;
  backdrop-filter:blur(14px);
  box-shadow:0 12px 36px rgba(0,0,0,.28);
}
.header .container, .top-menu .container{max-width:1240px;}
.logo img{filter:drop-shadow(0 14px 26px rgba(255,51,95,.20));}
.nav a, .navbar a, .top-menu a, .menu a, .main-menu a,
#main_menu a, .horizontal-menu a{
  border-radius:14px;
}
.nav a:hover, .navbar a:hover, .top-menu a:hover, .menu a:hover, .main-menu a:hover,
#main_menu a:hover, .horizontal-menu a:hover{
  background:rgba(255,255,255,.08);
}

/* Hero */
.rbp-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  align-items:end;
  min-height:390px;
  margin:24px 0 22px;
  padding:42px;
  border:1px solid var(--rbp-line);
  border-radius:32px;
  background:
    linear-gradient(135deg,rgba(255,51,95,.18),transparent 40%),
    linear-gradient(135deg,rgba(54,163,255,.16),transparent 72%),
    rgba(10,15,28,.78);
  box-shadow:var(--rbp-shadow);
}
.rbp-hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(7,10,18,.10), rgba(7,10,18,.72)),
    url('../img/bg.jpg');
  background-size:cover;
  background-position:center;
  opacity:.24;
  transform:scale(1.02);
}
.rbp-hero:after{
  content:"";
  position:absolute; inset:auto -20% -55% -20%;
  height:75%;
  background:radial-gradient(circle, rgba(255,51,95,.20), transparent 62%);
  pointer-events:none;
}
.rbp-hero__content,.rbp-hero__panel{position:relative; z-index:2;}
.rbp-kicker{
  display:inline-flex; align-items:center; gap:9px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#ffb3c3;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
.rbp-hero h1{
  margin:18px 0 14px;
  max-width:780px;
  font-weight:900;
  line-height:1.02;
  font-size:clamp(34px,5vw,68px);
  letter-spacing:-.055em;
  color:#fff;
}
.rbp-hero p{
  max-width:680px;
  font-size:17px;
  line-height:1.65;
  color:var(--rbp-soft);
}
.rbp-hero__actions{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px;}
.rbp-btn, .btn{
  border-radius:14px !important;
  font-weight:800;
}
.rbp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px;
  padding:0 18px;
  border:1px solid var(--rbp-line);
}
.rbp-btn--primary{
  color:#fff !important;
  border:0;
  background:linear-gradient(135deg,var(--rbp-red),var(--rbp-red-2));
  box-shadow:0 14px 32px rgba(255,51,95,.24);
}
.rbp-btn--soft{background:rgba(255,255,255,.10); color:#fff !important;}
.rbp-btn--ghost{background:rgba(7,10,18,.42); color:#fff !important;}
.rbp-hero__panel{
  display:grid;
  gap:12px;
}
.rbp-stat{
  padding:18px;
  border:1px solid var(--rbp-line);
  border-radius:20px;
  background:rgba(255,255,255,.07);
}
.rbp-stat span{display:block; color:var(--rbp-muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em;}
.rbp-stat b{display:block; margin-top:5px; color:#fff; font-size:28px;}

/* Sections and cards */
.rbp-section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin:8px 0 18px;
}
.rbp-section-title span{
  color:var(--rbp-red);
  text-transform:uppercase;
  letter-spacing:.10em;
  font-size:12px;
  font-weight:900;
}
.rbp-section-title h2{
  margin:3px 0 0;
  color:#fff;
  font-weight:900;
  letter-spacing:-.03em;
}
.rbp-section-title a{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.07);
  color:#fff;
}
.block, .modal-content, .dropdown-menu,
.rbp-card, .forum, .topic, .message, .comment, .ticket, .store, .new, .news,
.server, .user, .admin, .ban, .complaint, .event,
#chat, #forum, #events, #site_stats > div{
  border:1px solid var(--rbp-line) !important;
  border-radius:var(--rbp-radius) !important;
  background:var(--rbp-card) !important;
  box-shadow:0 14px 44px rgba(0,0,0,.24);
}
.block{
  margin-bottom:18px;
  overflow:hidden;
}
.block_head, .rbp-card-head, .modal-header, .panel-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:54px;
  padding:16px 18px !important;
  border-bottom:1px solid var(--rbp-line) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035)) !important;
  color:#fff !important;
  font-weight:900;
}
.block_head a, .rbp-card-head a{
  font-size:13px;
  color:#bcd4ff !important;
}
.block_body, .block_content, .panel-body{padding:16px;}

/* Bootstrap/grid fixes */
.row{min-width:0;}
[class*="col-"]{min-width:0;}
.vertical-center-line{border:0 !important; background:none !important;}
.clearfix:after{content:""; display:block; clear:both;}
.rbp-main-column, .rbp-side-column{min-width:0;}

/* Monitoring */
.rbp-monitoring{
  margin:0 0 24px;
  padding:0;
}
.rbp-monitoring-row{align-items:stretch;}
.rbp-logo-card{
  height:100%;
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  border:1px solid var(--rbp-line);
  border-radius:var(--rbp-radius);
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
}
#servers:not(tbody){
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}
tbody#servers{display:table-row-group !important;}
.rb-server-card, #servers:not(tbody) .server{
  position:relative;
  overflow:hidden;
  padding:18px;
  border-radius:22px !important;
  background:
    linear-gradient(145deg,rgba(255,51,95,.13),rgba(54,163,255,.08)),
    rgba(14,22,42,.92) !important;
}
.rb-server-card:before{
  content:"";
  position:absolute; top:-35%; right:-20%;
  width:180px; height:180px;
  border-radius:50%;
  background:rgba(255,51,95,.18);
  filter:blur(8px);
}
.rb-server-card__top, .rb-server-meta, .rb-server-actions, .rb-server-ip-row{position:relative; z-index:2;}
.rb-server-card__top{display:flex; align-items:center; gap:12px; margin-bottom:12px;}
.rb-server-icon{
  width:42px; height:42px; border-radius:14px;
  display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--rbp-red),var(--rbp-red-2));
  color:#fff;
}
.rb-server-name{margin:0; font-size:18px; color:#fff; font-weight:900;}
.rb-server-meta{
  display:flex; flex-wrap:wrap; gap:10px; color:var(--rbp-soft); font-size:13px;
}
.rb-online-dot{
  width:9px; height:9px; margin-top:5px; border-radius:50%; background:var(--rbp-green);
  box-shadow:0 0 0 5px rgba(54,209,134,.12);
}
.rb-server-progress{
  height:28px !important;
  margin:14px 0;
  border-radius:999px !important;
  overflow:hidden;
  background:rgba(255,255,255,.08) !important;
}
.rb-server-progress .progress-bar{
  background:linear-gradient(90deg,var(--rbp-red),var(--rbp-blue)) !important;
}
.progress-val{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:900; z-index:3;}
.rb-server-ip-row{display:flex; gap:8px; margin-bottom:12px;}
.rb-server-ip{
  flex:1;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.22);
  color:#fff !important;
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rb-copy-ip, .rb-server-actions button, .rb-server-actions a{
  border:1px solid var(--rbp-line);
  background:rgba(255,255,255,.08);
  color:#fff !important;
  border-radius:12px;
}
.rb-copy-ip{width:42px;}
.rb-server-actions{display:flex; gap:8px; align-items:center;}
.rb-server-actions button, .rb-server-actions a{
  min-height:40px;
  padding:0 12px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.rb-connect{
  flex:1;
  background:linear-gradient(135deg,var(--rbp-red),var(--rbp-red-2)) !important;
  border:0 !important;
  font-weight:900;
}

/* News / forum / lists */
.rbp-news-grid, #new_news{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}
#new_news > div, .last_new, .new_new, .new, .news_item{
  width:auto !important;
  float:none !important;
  min-width:0;
}
.last_new, .new_new, .news_item, .forum_section, .forum_item, .topic, .message, .comment, .event, .ban, .complaint, .ticket{
  padding:14px;
  border-radius:18px !important;
  border:1px solid var(--rbp-line) !important;
  background:rgba(255,255,255,.045) !important;
}
.last_new img, .new_new img, .news_item img{
  border-radius:16px;
  aspect-ratio:16/9;
  object-fit:cover;
}
#forum .forum, #forum .forum_section, #forum .forum_item{margin-bottom:10px;}
.forum_message, .topic_message, .message, .comment{line-height:1.6; color:var(--rbp-soft);}

/* Sidebar */
.rbp-side-column .block, .sidebar .block, .right-sidebar .block, .left-sidebar .block,
#sidebar .block{
  border-radius:22px !important;
}
.rbp-side-column .block_head, .sidebar .block_head{
  font-size:14px;
}
.rbp-side-column ul, .sidebar ul{padding-left:0; list-style:none;}
.rbp-side-column li a, .sidebar li a, .home-navigation a, .navigation a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:13px;
  color:var(--rbp-soft);
}
.rbp-side-column li a:hover, .sidebar li a:hover, .home-navigation a:hover, .navigation a:hover{
  background:rgba(255,255,255,.075);
  color:#fff;
}

/* Forms */
.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea, select{
  border:1px solid var(--rbp-line) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
  box-shadow:none !important;
}
.form-control:focus, input:focus, textarea:focus, select:focus{
  border-color:rgba(54,163,255,.55) !important;
  box-shadow:0 0 0 4px rgba(54,163,255,.10) !important;
}
label{color:var(--rbp-soft);}
.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info{
  border:0 !important;
  color:#fff !important;
  box-shadow:0 12px 24px rgba(0,0,0,.20);
}
.btn-primary, .btn-success{
  background:linear-gradient(135deg,var(--rbp-red),var(--rbp-red-2)) !important;
}
.btn-outline-primary, .btn-default, .btn-secondary{
  border:1px solid var(--rbp-line) !important;
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
}

/* Tables */
.table-responsive{
  border-radius:18px;
  border:1px solid var(--rbp-line);
  background:rgba(255,255,255,.035);
}
.table{
  color:var(--rbp-soft) !important;
  margin-bottom:0;
}
.table th, .table td{
  border-color:var(--rbp-line) !important;
  vertical-align:middle !important;
}
.table thead th, .table thead td{
  color:#fff !important;
  background:rgba(255,255,255,.075) !important;
  font-weight:900;
}
.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.028) !important;}
.table-hover tbody tr:hover{background-color:rgba(255,255,255,.07) !important;}

/* Profile */
.profile, .user_profile, .profile-card, .user-full, .user_full{
  border-radius:var(--rbp-radius) !important;
}
.avatar, .profile img, .user img, .admin img{
  border-radius:16px;
}
.rbp-profile-cover, .cover{
  min-height:220px;
  border-radius:0 0 30px 30px;
  overflow:hidden;
  background-color:#101827;
  background-size:cover;
  background-position:center;
  box-shadow:var(--rbp-shadow);
}
.rbp-cover-edit, #cover_btn{
  margin:16px;
  background:rgba(0,0,0,.46) !important;
  color:#fff !important;
  border:1px solid var(--rbp-line) !important;
}

/* Store/modules */
.store, .store_service, .price_list_service, .case, .cases, .shop-item,
.digital-store, .rcon-shop, .skin-card, .clan-card, .achievement, .task, .poll{
  border:1px solid var(--rbp-line) !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.05) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.20);
}
.price, .cost, .discount, .badge{
  border-radius:999px !important;
}
.badge, .label{
  padding:.42em .65em;
  font-weight:900;
}

/* Modals/dropdowns */
.modal-content{
  background:rgba(11,16,30,.96) !important;
}
.modal-backdrop{background:#000;}
.close{color:#fff !important; text-shadow:none; opacity:.85;}
.dropdown-menu a{color:var(--rbp-soft) !important;}
.dropdown-menu a:hover{background:rgba(255,255,255,.08) !important; color:#fff !important;}

/* Footer */
.footer, .rb-footer{
  margin-top:36px;
  padding:34px 0 !important;
  border-top:1px solid var(--rbp-line);
  background:rgba(8,12,22,.72) !important;
}
.footer strong{color:#fff;}
.footer p, .footer li, .footer a{color:var(--rbp-muted);}
.footer a:hover{color:#fff;}
.rb-socials{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px;}
.rb-socials a{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#fff !important;
}

/* Utility */
.loader{
  border-color:rgba(255,255,255,.10) !important;
  border-top-color:var(--rbp-red) !important;
}
.alert{
  border:1px solid var(--rbp-line) !important;
  border-radius:16px !important;
}
.pagination a, .pagination span, .page-link{
  border:1px solid var(--rbp-line) !important;
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  border-radius:12px !important;
  margin:0 3px;
}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:#070a12;}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:999px;}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28);}

/* Mobile */
@media (max-width: 991px){
  .rbp-hero{
    grid-template-columns:1fr;
    min-height:auto;
    padding:30px 22px;
    border-radius:26px;
  }
  .rbp-hero__panel{
    grid-template-columns:repeat(3,1fr);
  }
  .rbp-logo-col{display:none;}
  .rbp-side-column{margin-top:18px;}
  .header, .top-menu{backdrop-filter:none;}
}
@media (max-width: 767px){
  body{font-size:14px;}
  .container{padding-left:12px; padding-right:12px;}
  .rbp-hero{margin-top:12px; padding:24px 16px;}
  .rbp-hero h1{font-size:36px;}
  .rbp-hero p{font-size:15px;}
  .rbp-hero__actions{display:grid; grid-template-columns:1fr; gap:10px;}
  .rbp-hero__panel{grid-template-columns:1fr;}
  .rbp-section-title{align-items:flex-start; flex-direction:column;}
  #servers:not(tbody), .rbp-news-grid, #new_news{grid-template-columns:1fr;}
  .block_head, .rbp-card-head{padding:13px 14px !important; flex-wrap:wrap;}
  .rb-server-actions{flex-wrap:wrap;}
  .rb-connect{flex-basis:100%;}
  .table-responsive{overflow-x:auto;}
}
@media (max-width: 420px){
  .rbp-hero h1{font-size:31px;}
  .rbp-kicker{font-size:10px;}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
}
