html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: linear-gradient(160deg, #181b3a, #101226);
}

* {
  box-sizing: border-box;
}

.mobile-menu {
  max-width: 100vw;
}
.top-nav, .top-row, .bottom-row {
  width: 100%;
}

:root{
  --divide: rgba(255,255,255,.08);
  --link: #cfe9ff;
  --link-hover: #fff;
}

body{ margin:0; font-family:'Segoe UI',system-ui,sans-serif; background: linear-gradient(160deg, #181b3a, #101226); color:#fff; }

.top-nav{
  position:sticky; top:0; z-index:1000;
  background: linear-gradient(160deg, #242750, #1a1c36);
  box-shadow:0 2px 14px rgba(0,0,0,.35);
  border-bottom:1px solid var(--divide);
}

.top-row{
  display:flex; align-items:center; gap:14px;
  padding:10px 18px;
}

.logo a{
  display:flex; align-items:center; gap:12px;
  text-decoration:none; color:#fff;
}
.logo h1{ margin:0; font-size:18px; letter-spacing:.4px; }

.spacer{ flex:1; }

.pill{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  user-select:none;
}

.pill:hover{ background: rgba(255,255,255,.07); }

.avatar{
  width:40px; height:40px; border-radius:50%;
  background-size:cover; background-position:center;
  border:2px solid #0ff;
  flex-shrink:0;
}

.profile-text{ display:flex; flex-direction:column; gap:3px; }
.profile-text .user-name{ font-size:14px; font-weight:800; line-height:1; }
.profile-text .role-label{ font-size:11px; color:#0ff; opacity:.92; text-transform:uppercase; letter-spacing:.8px; }

.nav-actions{ display:flex; align-items:center; gap:10px; }

.nav-dropdown{ position:relative; }
.dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  background:#232734;
  border:1px solid var(--divide);
  border-radius:14px;
  padding:8px;
  min-width:240px;
  z-index:3000;
  box-shadow:0 22px 60px rgba(0,0,0,.45);
}
.nav-dropdown.show .dropdown-menu{ display:block; }
.dropdown-menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color:var(--link);
}
.dropdown-menu a:hover{
  background: rgba(20,20,70,0.9);
  color:var(--link-hover);
}

.notify-bell{
  position:relative;
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.notify-bell:hover{ background: rgba(255,255,255,.07); }

.notify-count{
  position:absolute;
  top:6px; right:6px;
  background:#ff3b3b;
  color:#fff;
  font-size:11px;
  padding:2px 6px;
  border-radius:999px;
  font-weight:800;
}

.notify-dropdown{
  width:360px;
  max-height:420px;
  overflow:auto;
}

.notify-header{
  padding:10px 10px 8px;
  font-weight:800;
  border-bottom:1px solid var(--divide);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.notify-mark{
  font-size:12px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.notify-mark:hover{ background: rgba(255,255,255,.07); }

.notify-item{
  padding:12px 10px;
  border-bottom:1px solid var(--divide);
}
.notify-item.unread{ background: rgba(0,255,255,.05); }
.notify-title{ font-weight:800; margin-bottom:4px; }
.notify-text{ color:#ccc; font-size:13px; line-height:1.35; }
.notify-date{ font-size:11px; color:#888; margin-top:7px; }

.bottom-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:10px 18px;
  background: linear-gradient(160deg, #242750, #1a1c36);
  border-top:1px solid var(--divide);
}
.bottom-row a{
  padding:9px 12px;
  border-radius:10px;
  text-decoration:none;
  color:var(--link);
  border:1px solid transparent;
}
.bottom-row a:hover{
  background: rgba(20,20,70,0.9);
  color:var(--link-hover);
  border-color: rgba(255,255,255,.10);
}

.hamburger{
  display:none;
  font-size:24px;
  cursor:pointer;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.hamburger:hover{ background: rgba(255,255,255,.07); }

.mobile-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.45);
  z-index:1999;
  opacity:0; visibility:hidden;
  transition:.2s;
}
.mobile-overlay.active{ opacity:1; visibility:visible; }

.mobile-menu{
  position:fixed;
  top:0; left:-320px;
  width:300px; height:100%;
  background:#232734;
  z-index:2000;
  padding:18px;
  transition:left .25s ease;
  overflow:auto;
  box-shadow: 2px 0 18px rgba(0,0,0,.55);
  border-right:1px solid var(--divide);
}
.mobile-menu.active{ left:0; }

.mobile-close{
  display:flex; justify-content:flex-end;
  font-size:20px; cursor:pointer;
  margin-bottom:14px;
}
.mobile-menu a{
  display:block;
  padding:12px 10px;
  margin-bottom:6px;
  color:var(--link);
  text-decoration:none;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.mobile-menu a:hover{
  background: rgba(20,20,70,0.9);
  color:var(--link-hover);
}

.topup-modal{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.6);
  z-index:4000;
}
.topup-box{
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%, -50%);
  background:#1a1c36;
  border:1px solid rgba(255,255,255,.10);
  padding:26px;
  width:92%;
  max-width:560px;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.65);
}
.topup-title{ text-align:center; margin:0 0 10px; }
.topup-desc{ text-align:center; color:#ccc; margin:0 0 16px; }
.topup-bonus{
  background: linear-gradient(135deg, #ff9800, #ff5722);
  padding:12px;
  border-radius:12px;
  text-align:center;
  font-weight:900;
  margin-bottom:18px;
}
.topup-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.topup-btn{
  padding:12px 18px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  color:#fff;
  cursor:pointer;
  transition:.15s;
  border:1px solid rgba(255,255,255,.10);
}
.topup-btn:hover{ opacity:.9; transform: translateY(-1px); }
.topup-btn.vk{ background:#4a76a8; }
.topup-btn.tg{ background:#0088cc; }
.topup-footer{ text-align:center; margin-top:16px; }
.topup-close{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:10px 16px;
  color:#fff;
  border-radius:12px;
  cursor:pointer;
}
.topup-close:hover{ background: rgba(255,255,255,.12); }

.alert{
  display:none;
  position:fixed;
  top:20%;
  left:50%;
  transform:translateX(-50%);
  background:#232734;
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  padding:16px 18px;
  border-radius:14px;
  z-index:5000;
  text-align:center;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
}
.alert button{
  margin-top:10px;
  padding:8px 12px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  border-radius:10px;
  cursor:pointer;
}

@media (max-width: 760px){
  .bottom-row{ display:none; }
  .profile-text{ display:none; }
  .hamburger{ display:block; }
  .money-drop{ display:none; }
}