:root{
  --bg:#060606;
  --panel:#0c0c0c;
  --panel-2:#101010;
  --line:rgba(212,175,55,.18);
  --line-2:rgba(212,175,55,.28);
  --gold:#d4af37;
  --gold-2:#f1d25b;
  --text:#f4f0e6;
  --muted:#b7b0a0;
  --shadow:0 18px 40px rgba(0,0,0,.34);
  --radius:24px;
  --radius-sm:18px;
  --nav-h:94px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  background:
    radial-gradient(circle at top, rgba(212,175,55,.08), transparent 30%),
    linear-gradient(180deg, #050505 0%, #080808 100%);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
button{font:inherit}
img{max-width:100%;display:block}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,5,5,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(212,175,55,.10);
}

.topbar-inner{
  width:min(1180px,calc(100% - 24px));
  margin:0 auto;
  min-height:78px;
  display:flex;
  align-items:center;
  gap:14px;
}

.menu-btn{
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid var(--line-2);
  background:#0c0c0c;
  color:var(--gold);
  display:grid;
  place-items:center;
  font-size:20px;
  box-shadow:var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  font-size:34px;
  font-weight:800;
  letter-spacing:.6px;
}

.brand-bonus{color:var(--gold)}
.brand-sa{color:#f2f2f2}

.page-shell{
  width:min(1180px,calc(100% - 24px));
  margin:18px auto 0;
  padding:0 0 calc(var(--nav-h) + 28px);
}

.hero-card,
.quick-card,
.profile-card,
.invite-card,
.footer-card,
.stat-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(16,16,16,.98), rgba(9,9,9,.98));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-card::before,
.quick-card::before,
.profile-card::before,
.invite-card::before,
.footer-card::before,
.stat-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent, rgba(212,175,55,.05), transparent);
  pointer-events:none;
}

.hero-card{
  padding:28px 22px;
  margin-bottom:18px;
}

.eyebrow{
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:4px;
  font-size:14px;
  font-weight:700;
  margin-bottom:14px;
}

.hero-card h1{
  margin:0 0 14px;
  font-size:clamp(40px,8vw,72px);
  line-height:.95;
  max-width:760px;
}

.hero-card p{
  margin:0;
  color:var(--muted);
  font-size:clamp(18px,3.6vw,26px);
  line-height:1.45;
  max-width:760px;
}

.stats-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-bottom:18px;
}

.stat-card{
  padding:20px 18px;
  min-height:124px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.stat-card strong{
  font-size:clamp(32px,7vw,54px);
  line-height:1;
  color:var(--gold-2);
  margin-bottom:10px;
  word-break:break-word;
}

.stat-card span{
  color:var(--muted);
  font-size:24px;
  line-height:1.2;
}

.quick-card,
.profile-card,
.invite-card,
.footer-card{
  padding:22px 18px;
  margin-bottom:18px;
}

.quick-badge,
.footer-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--gold);
  font-size:15px;
  font-weight:700;
  margin-bottom:16px;
}

.quick-card h2{
  margin:0 0 12px;
  font-size:clamp(34px,7vw,58px);
  line-height:1;
}

.quick-card p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:clamp(18px,3.8vw,25px);
  line-height:1.45;
}

.quick-actions{
  display:grid;
  gap:12px;
}

.btn{
  min-height:64px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:14px 18px;
  font-size:clamp(21px,4.2vw,26px);
  font-weight:700;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:active{transform:scale(.985)}

.btn-solid{
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
  box-shadow:0 14px 28px rgba(212,175,55,.18);
}

.btn-outline{
  background:#0a0a0a;
  color:var(--gold);
  border-color:var(--line-2);
}

.profile-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.avatar{
  width:88px;
  height:88px;
  border-radius:50%;
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
  display:grid;
  place-items:center;
  font-size:38px;
  font-weight:800;
  flex:0 0 88px;
}

.profile-name{
  font-size:clamp(28px,5vw,42px);
  font-weight:800;
  line-height:1.1;
}

.profile-mail{
  font-size:clamp(17px,3.8vw,23px);
  color:var(--muted);
  margin-top:6px;
  word-break:break-word;
}

.points-panel{
  position:relative;
  padding:22px 18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:#090909;
}

.points-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  color:var(--muted);
  font-size:20px;
}

.info-btn{
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:#121212;
  color:var(--gold);
  display:grid;
  place-items:center;
  font-size:16px;
}

.points-value{
  font-size:clamp(46px,10vw,80px);
  line-height:1;
  color:var(--gold-2);
  font-weight:800;
}

.tooltip-box{
  display:none;
  margin-top:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#111;
  color:var(--muted);
  font-size:17px;
  line-height:1.45;
}

.tooltip-box.show{display:block}

.section-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:clamp(28px,5vw,40px);
  font-weight:800;
  color:var(--gold);
  margin-bottom:14px;
}

.section-desc{
  margin:0 0 18px;
  color:var(--muted);
  font-size:clamp(18px,3.8vw,24px);
  line-height:1.45;
}

.invite-code-box{
  min-height:78px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#090909;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 16px;
  font-size:clamp(28px,6vw,42px);
  font-weight:800;
  color:#fff;
  letter-spacing:1px;
  margin-bottom:14px;
  word-break:break-word;
  text-align:center;
}

.social-row{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:18px;
}

.social-btn{
  min-height:58px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0b0b0b;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--text);
  font-size:19px;
  font-weight:700;
}

.legal-links{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}

.legal-links a{
  color:var(--muted);
  font-size:18px;
}

.copyright{
  color:#8c8577;
  font-size:16px;
  line-height:1.45;
}

.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  width:min(1180px,calc(100% - 16px));
  margin:0 auto 10px;
  padding:10px;
  border-radius:24px;
  border:1px solid rgba(212,175,55,.16);
  background:rgba(7,7,7,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

.bottom-link{
  min-height:72px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#d9d3c7;
  font-size:14px;
  font-weight:700;
}

.bottom-link i{font-size:20px}
.bottom-link.active{
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
}

.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  opacity:0;
  visibility:hidden;
  transition:.22s ease;
  z-index:98;
}

.drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(320px,82vw);
  background:linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
  border-right:1px solid var(--line);
  box-shadow:var(--shadow);
  transform:translateX(-100%);
  transition:.24s ease;
  z-index:99;
  padding:16px;
  overflow-y:auto;
}

.drawer.open{transform:translateX(0)}
.drawer-backdrop.show{
  opacity:1;
  visibility:visible;
}

.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.drawer-logo{
  font-size:28px;
  font-weight:800;
}

.logo-bonus{color:var(--gold)}
.logo-sa{color:#fff}

.drawer-close{
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:18px;
}

.drawer-user{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0f0f0f;
  margin-bottom:16px;
}

.drawer-user-name{
  font-size:24px;
  font-weight:800;
  margin-bottom:6px;
}

.drawer-user-mail{
  color:var(--muted);
  font-size:15px;
  word-break:break-word;
}

.drawer-title{
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:3px;
  font-size:13px;
  font-weight:700;
  margin:18px 0 10px;
}

.drawer-nav{
  display:grid;
  gap:10px;
}

.drawer-link,
.drawer-account-btn,
.drawer-logout-btn{
  min-height:56px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#0d0d0d;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  color:#f0ece0;
  font-size:18px;
  font-weight:700;
}

.drawer-link.active{
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
}

.drawer-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.toast{
  position:fixed;
  left:50%;
  bottom:118px;
  transform:translateX(-50%) translateY(20px);
  min-width:220px;
  max-width:calc(100% - 32px);
  padding:14px 18px;
  border-radius:18px;
  background:#121212;
  border:1px solid var(--line-2);
  color:#fff;
  text-align:center;
  opacity:0;
  visibility:hidden;
  transition:.22s ease;
  z-index:120;
  box-shadow:var(--shadow);
  font-size:16px;
}

.toast.show{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

@media (min-width:700px){
  .stats-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .social-row{
    grid-template-columns:repeat(3,1fr);
  }

  .legal-links{
    grid-template-columns:repeat(4,1fr);
  }

  .quick-actions{
    grid-template-columns:repeat(2,1fr);
  }
}
