@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #000000;
  --bg2: #080c12;
  --card: #0a1018;
  --card2: #0d1520;
  --border: rgba(139, 92, 246, 0.14);
  --border2: rgba(139, 92, 246, 0.22);
  --accent: #8b5cf6;
  --accent2: #d946ef;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --text: #FFFFFF;
  --muted: #8ba3b8;
  --muted2: #d4e4f0;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar: 240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.4s var(--ease);
  --transition-fast: 0.25s var(--ease);
  --font-heading: 'Manrope', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #000000;
  --bg2: #080c12;
  --card: #0a1018;
  --card2: #0d1520;
  --border: rgba(139, 92, 246, 0.14);
  --border2: rgba(139, 92, 246, 0.22);
  --accent: #8b5cf6;
  --accent2: #d946ef;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --text: #FFFFFF;
  --muted: #8ba3b8;
  --muted2: #d4e4f0;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar: 240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.4s var(--ease);
  --transition-fast: 0.25s var(--ease);
  --font-heading: 'Manrope', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-fast), opacity var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
button { font-family: inherit; transition: all var(--transition); }

/* ─── PAGE TRANSITIONS ─── */
.page-enter {
  animation: pageEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter-content {
  animation: contentEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
}
@keyframes contentEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-stagger-1 { animation: staggerIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.12s both; }
.page-stagger-2 { animation: staggerIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.2s both; }
.page-stagger-3 { animation: staggerIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.28s both; }
.page-stagger-4 { animation: staggerIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.36s both; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-page { animation: pageEnter 0.55s cubic-bezier(0.4, 0, 0.2, 1) both; }

.profile-page .profile-user-card,
.profile-page .profile-stats .stat-card,
.profile-page .profile-pw-section {
  animation: cardEnter 0.55s var(--ease) both;
}
.profile-page .profile-stats .stat-card:nth-child(1) { animation-delay: 0.06s; }
.profile-page .profile-stats .stat-card:nth-child(2) { animation-delay: 0.1s; }
.profile-page .profile-stats .stat-card:nth-child(3) { animation-delay: 0.14s; }
.profile-page .profile-stats .stat-card:nth-child(4) { animation-delay: 0.18s; }
.profile-page .profile-pw-section { animation-delay: 0.22s; }
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

img { max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── GRID BG ─── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background: transparent;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: none; }

/* ─── TYPOGRAPHY ─── */
.gradient-text {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.35);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}

/* ─── ALERT ─── */
.alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13.5px; margin-bottom: 16px;
  transition: opacity 0.4s;
}
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }

/* ─── INPUT ─── */
.input-field {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  color: #fff; border-radius: 8px; padding: 11px 14px;
  font-family: inherit; font-size: 14px; width: 100%;
  outline: none; transition: all var(--transition);
}
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
  background: rgba(255,255,255,0.06);
}
.input-field::placeholder { color: rgba(148,163,184,0.5); }
textarea.input-field { resize: vertical; min-height: 100px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .i-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.input-icon-wrap input { padding-left: 38px; }

/* ─── NAVBAR (landing) ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 240;
  padding: 14px 16px 0;
  background: transparent;
  border-bottom: none;
}
.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-radius: 22px;
  background: rgba(4, 8, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-logo span { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.25); border-radius: 10px;
  box-shadow: 0 0 18px rgba(139,92,246,0.14);
}
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: nowrap; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition), transform var(--transition-fast);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -20px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: #fff; transform: translateY(-1px); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-login {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition-fast);
}
.nav-login:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.landing-navbar.scrolled .navbar-inner {
  background: rgba(4, 8, 14, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 120px 28px 96px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 75% at 50% -10%, rgba(139,92,246,0.28) 0%, rgba(139,92,246,0.12) 28%, transparent 65%),
    radial-gradient(ellipse 60% 55% at 82% 16%, rgba(217,70,239,0.18) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 18% 78%, rgba(59,130,246,0.14) 0%, transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto 72px;
  padding-top: 24px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,0.2);
  background: rgba(139,92,246,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-h1 {
  font-size: clamp(46px,7vw,78px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.hero-p {
  font-size: clamp(16px, 2.1vw, 19px);
  color: rgba(148,163,184,0.94);
  max-width: 720px;
  margin: 0 auto 38px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(10,14,22,0.82);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 24px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-stat {
  flex: 1;
  padding: 22px 24px;
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.06);
  min-width: 130px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.hero-stat-lbl {
  font-size: 11px;
  color: rgba(148,163,184,0.92);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── SECTIONS ─── */
.section { padding: 88px 28px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-hdr { text-align: center; margin-bottom: 56px; }
.section-hdr h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.section-hdr p { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.section-dark { background: rgba(13,17,23,0.5); }

/* ─── FEATURE GRID ─── */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.feat-card { padding: 26px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.feat-card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 30px rgba(0,212,255,0.08), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,212,255,0.08);
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.feat-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ─── HOW IT WORKS ─── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.step-card { padding: 28px; text-align: left; position: relative; overflow: hidden; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.step-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 0 24px rgba(0,212,255,0.07), 0 8px 24px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.step-card::before {
  content: attr(data-num);
  position: absolute; top: 16px; right: 20px;
  font-size: 48px; font-weight: 900; color: rgba(0,212,255,0.04);
  line-height: 1;
}
.step-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent); font-size: 12px; font-weight: 800;
  margin-bottom: 16px;
}
.step-card-icon {
  width: 32px; height: 32px; color: var(--accent);
  position: absolute; top: 20px; right: 24px;
  opacity: 0.4;
}
.step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ─── PRICING LANDING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.price-card { padding: 28px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.price-card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 30px rgba(0,212,255,0.08), 0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}
.price-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(0,212,255,0.07);
}
.price-icon svg { width: 20px; height: 20px; }
.price-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.price-sub-text { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price-from { font-size: 13px; color: var(--muted); }
.price-val { font-size: 32px; font-weight: 800; color: #fff; }
.price-cur { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-checks { list-style: none; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.price-checks li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted2);
}
.price-checks li::before {
  content: ''; display: inline-block;
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

/* ─── ADVANTAGES ─── */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; }
.adv-card { padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.adv-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 0 24px rgba(0,212,255,0.07), 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.adv-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); color: var(--accent); }
.adv-icon svg { width: 18px; height: 18px; }

/* ─── FAQ ─── */
.faq-wrap { max-width: 720px; margin: 0 auto; }
details.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(13,17,23,0.6);
  margin-bottom: 8px;
  border-radius: 10px; overflow: hidden;
}
details.faq-item summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; font-size: 14.5px; font-weight: 500; color: #fff;
  transition: background var(--transition), color var(--transition-fast);
}
details.faq-item summary:hover { background: rgba(255,255,255,0.03); }
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron-left {
  color: var(--accent); font-size: 18px; font-weight: 700;
  transition: transform 0.4s var(--ease); flex-shrink: 0; line-height: 1;
}
details[open] .faq-chevron-left { transform: rotate(90deg); }
.faq-answer {
  padding: 0 22px 0 48px; font-size: 13.5px; color: var(--muted); line-height: 1.75;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.4s var(--ease), padding 0.45s var(--ease);
}
details[open] .faq-answer {
  max-height: 300px; opacity: 1; padding: 0 22px 18px 48px;
}

/* ─── CTA BOX ─── */
.cta-box {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(14,165,233,0.04));
  border: 1px solid rgba(0,212,255,0.2); border-radius: 20px;
  padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.06) inset,
    0 0 80px rgba(0,212,255,0.1),
    0 0 160px rgba(0,180,255,0.05),
    0 24px 64px rgba(0,0,0,0.4);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 65% at 50% -5%, rgba(0,212,255,0.12), transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 100%, rgba(0,160,220,0.06), transparent 55%);
}
.cta-box::after {
  content: ''; position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
}
.cta-box h2 { font-size: clamp(24px,3.5vw,38px); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-box p { color: var(--muted); font-size: 15px; margin-bottom: 32px; line-height: 1.6; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ─── FOOTER ─── */
.footer { border-top: 1px solid var(--border); padding: 52px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 12px 0 20px; max-width: 280px; }
.footer-tg-btns { display: flex; flex-direction: column; gap: 8px; }
.footer-tg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; color: var(--muted);
  transition: all var(--transition); width: fit-content;
}
.footer-tg-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.footer-col-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: var(--muted); transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 12px; color: rgba(148,163,184,0.5); }
.footer-tagline { font-size: 12px; color: rgba(148,163,184,0.4); margin-left: auto; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(148,163,184,0.5); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--muted); }

/* ─── AUTH PAGES ─── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 65% 55% at 70% 15%, rgba(0,170,150,0.38) 0%, rgba(0,80,100,0.2) 40%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(0,40,90,0.22) 0%, transparent 60%);
}
.auth-logo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  background: rgba(13,17,23,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 8px 18px;
}
.auth-logo span { font-size: 15px; font-weight: 600; color: #fff; }
.auth-heading { text-align: center; margin-bottom: 24px; }
.auth-card {
  background: rgba(13,17,23,0.85); border: 1px solid rgba(0,200,255,0.12);
  border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 420px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 80px rgba(0,200,255,0.06);
}
.auth-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 0; text-align: center; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 7px; margin-top: 16px;
}
.form-label:first-of-type { margin-top: 0; }
.pw-toggle-wrap { position: relative; }
.pw-toggle-wrap input { padding-right: 40px; }
.pw-toggle-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px;
  transition: color var(--transition);
}
.pw-toggle-btn:hover { color: #fff; }
.auth-link { color: var(--accent); font-weight: 600; transition: opacity var(--transition); }
.auth-link:hover { opacity: 0.8; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-page-footer { margin-top: 32px; font-size: 12px; color: rgba(148,163,184,0.4); }
.form-hint { font-size: 11.5px; color: rgba(148,163,184,0.5); margin-top: 5px; margin-bottom: 18px; }

/* ─── PANEL LAYOUT ─── */
.panel-layout {
  display: flex; min-height: 100vh; background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(139,92,246,0.09), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 100%, rgba(0,180,255,0.05), transparent 50%);
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar); min-height: 100vh;
  background: #0a0f1a; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; z-index: 100;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.sidebar-logo {
  padding: 18px 16px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo-text { font-size: 15px; font-weight: 700; color: #fff; }
.sidebar-section {
  padding: 8px 16px 0;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(148,163,184,0.4); text-transform: uppercase;
  padding: 14px 0 6px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 6px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active {
  background: rgba(139,92,246,0.12); color: #fff;
  border: 1px solid rgba(139,92,246,0.3);
  box-shadow: 0 0 24px rgba(139,92,246,0.15), inset 0 0 0 1px rgba(139,92,246,0.1);
}
.nav-item.active svg { color: var(--accent); }
.nav-badge {
  margin-left: auto; background: var(--accent); color: #000;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
}
.nav-badge-dot {
  margin-left: auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.sidebar-bottom { padding: 10px 10px 16px; border-top: 1px solid var(--border); }
.nav-item-danger { color: rgba(239,68,68,0.7); }
.nav-item-danger:hover { background: rgba(239,68,68,0.06); color: #ef4444; }

/* ─── PANEL CONTENT ─── */
.panel-content { margin-left: var(--sidebar); flex: 1; min-height: 100vh; }
.panel-topbar {
  height: 60px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
}
.topbar-title { font-size: 15px; font-weight: 600; color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.panel-body { padding: 28px; }

.page-header { margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.page-subtitle { font-size: 13px; color: var(--muted); }

/* ─── MOBILE HEADER (PANEL) ─── */
.mobile-header {
  display: none; position: sticky; top: 0; z-index: 60;
  background: rgba(0,0,0,0.95); border-bottom: 1px solid var(--border);
  padding: 14px 16px; align-items: center; justify-content: space-between;
}
.hamburger-btn {
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
  transition: color var(--transition);
}
.hamburger-btn:hover { color: #fff; }
.sidebar-overlay {
  display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); z-index: 90;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.sidebar-overlay.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* ─── STAT CARDS ─── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { padding: 18px 20px; }
.stat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.stat-label svg { width: 13px; height: 13px; color: var(--accent); }
.stat-value { font-size: 26px; font-weight: 800; color: #fff; }
.stat-unit { font-size: 14px; font-weight: 400; color: var(--muted); }

/* ─── PROFILE ─── */
.profile-page { max-width: 1100px; }
.profile-user-card {
  padding: 26px 28px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(10,16,24,0.95), rgba(8,14,22,0.98));
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 0 30px rgba(139,92,246,0.06);
}
.user-card { padding: 22px 24px; margin-bottom: 20px; }
.user-card-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #d4a843; text-transform: uppercase; margin-bottom: 12px; }
.user-card-name { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -0.02em; }
.user-card-id { font-size: 12px; color: rgba(139,163,184,0.65); }
.profile-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.profile-stats .stat-card {
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(12,18,28,0.95), rgba(8,12,20,0.98));
  border-color: rgba(139,92,246,0.15);
}
.profile-stats .stat-card:hover {
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 0 24px rgba(139,92,246,0.1);
}
.stat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.stat-label svg { width: 13px; height: 13px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(139,92,246,0.5)); }
.stat-value { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.profile-pw-section {
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(12,18,28,0.95), rgba(8,12,20,0.98));
  border-color: rgba(139,92,246,0.15);
}
.pw-section { padding: 20px 24px; margin-top: 0; }
.pw-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.pw-section-title svg { width: 15px; height: 15px; color: var(--accent); }
.pw-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.profile-pw-form { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pw-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.pw-fields { display: flex; gap: 12px; flex: 1; min-width: 0; }
.pw-fields .pw-input { flex: 1; min-width: 200px; }
.pw-save-btn { flex-shrink: 0; min-width: 130px; }
.pw-input {
  background: rgba(0,0,0,0.35); border: 1px solid rgba(139,92,246,0.12);
  color: #fff; border-radius: 10px; padding: 11px 14px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.pw-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); background: rgba(139,92,246,0.04); }
.pw-input::placeholder { color: rgba(139,163,184,0.45); }

/* ─── CATALOG ─── */
.catalog-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.catalog-header .page-title { margin-bottom: 0; font-size: 26px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  padding: 22px 22px 18px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(14,20,32,0.98), rgba(10,14,24,0.99));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.svc-card:not(.unavailable):hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 32px rgba(139,92,246,0.1), 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.svc-card.unavailable { cursor: not-allowed; }
.svc-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.svc-card-info { flex: 1; min-width: 0; }
.svc-card-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; transition: transform 0.3s ease;
}
.svc-card:not(.unavailable):hover .svc-card-icon { transform: scale(1.05); }
.svc-icon-blue { background: rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.4); color: #60a5fa; }
.svc-icon-yellow { background: rgba(234,179,8,0.18); border-color: rgba(234,179,8,0.4); color: #facc15; }
.svc-icon-green { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.4); color: #4ade80; }
.svc-icon-pink { background: rgba(236,72,153,0.18); border-color: rgba(236,72,153,0.4); color: #f472b6; }
.svc-icon-cyan { background: rgba(6,182,212,0.18); border-color: rgba(6,182,212,0.4); color: #22d3ee; }
.svc-icon-orange { background: rgba(249,115,22,0.18); border-color: rgba(249,115,22,0.4); color: #fb923c; }
.svc-card-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.svc-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.svc-card-copy {
  font-size: 12.5px; color: rgba(148,163,184,0.55); line-height: 1.55;
  margin-bottom: 16px; flex: 1;
}
.svc-card-price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 14px;
}
.svc-price-main { font-size: 13px; color: var(--muted); }
.svc-price-main strong { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.svc-price-meta { font-size: 12px; color: rgba(148,163,184,0.45); white-space: nowrap; }
.svc-tariff-count { font-size: 12px; color: rgba(148,163,184,0.55); white-space: nowrap; }
.svc-card-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 12px; }
.svc-select-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: rgba(34,211,238,0.7);
  border: 1px solid rgba(34,211,238,0.22);
  background: rgba(34,211,238,0.04);
  transition: all 0.25s ease; text-decoration: none;
}
.svc-card:not(.unavailable):hover .svc-select-link {
  color: #22d3ee;
  border-color: rgba(34,211,238,0.5);
  background: rgba(34,211,238,0.08);
  box-shadow: 0 0 20px rgba(34,211,238,0.1);
}
.svc-select-link.disabled { opacity: 0.3; pointer-events: none; }
.svc-card-lock {
  position: absolute; inset: 0; background: rgba(5,8,14,0.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; backdrop-filter: blur(4px); z-index: 2; border-radius: 16px;
}
.svc-card-lock-icon { color: rgba(148,163,184,0.35); margin-bottom: 2px; }
.svc-card-lock-title { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.6); text-align: center; padding: 0 20px; }
.svc-card-lock-subtitle { font-size: 12px; color: rgba(148,163,184,0.45); }
.locked-overlay {
  position: absolute; inset: 0; background: rgba(5,8,14,0.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; backdrop-filter: blur(3px); z-index: 2; border-radius: 16px;
}
.locked-text { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); text-align: center; padding: 0 20px; }
.locked-sub { font-size: 12px; color: var(--muted); }

/* ─── SERVICE DETAIL ─── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
  transition: color var(--transition);
}
.back-link:hover { color: #fff; }

/* ─── SERVICE LAYOUT (detail page) ─── */
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.service-main { display: flex; flex-direction: column; gap: 14px; }

/* Hero card */
.service-hero {
  padding: 26px 28px;
  background: linear-gradient(160deg, rgba(14,20,32,0.98), rgba(10,14,24,0.99));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
}
.service-hero-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-hero-icon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
}
.service-hero-icon svg { width: 24px; height: 24px; }

/* Per-service icon colors */
.service-icon-chat-broadcast { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.35); color: #60a5fa; }
.service-icon-dm-broadcast { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.35); color: #facc15; }
.service-icon-inviting { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.35); color: #4ade80; }
.service-icon-parser { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.35); color: #f472b6; }
.service-icon-stories { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.35); color: #22d3ee; }
.service-icon-commenting { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.35); color: #fb923c; }

.detail-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.detail-subtitle { font-size: 12.5px; color: var(--muted); }
.service-hero-copy { font-size: 13.5px; color: rgba(148,163,184,0.7); line-height: 1.7; }

/* Benefits card */
.service-benefits {
  padding: 22px 26px;
  background: linear-gradient(160deg, rgba(14,20,32,0.98), rgba(10,14,24,0.99));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
}
.service-section-title {
  font-size: 13px; font-weight: 700; color: rgba(148,163,184,0.6);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.service-section-title svg { color: #22d3ee; }
.service-features { display: flex; flex-direction: column; gap: 10px; }
.service-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: rgba(148,163,184,0.85); line-height: 1.5;
}
.service-feature::before {
  content: '✓';
  color: #22d3ee;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Rail (right side) */
.service-rail { display: flex; flex-direction: column; gap: 14px; }
.service-tariffs {
  background: linear-gradient(160deg, rgba(14,20,32,0.98), rgba(10,14,24,0.99));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
  padding: 22px;
}
.tariff-panel-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.service-summary {
  padding: 20px 22px;
  background: linear-gradient(160deg, rgba(14,20,32,0.98), rgba(10,14,24,0.99));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
}
.service-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); padding: 5px 0;
}
.service-summary-row strong { font-size: 15px; font-weight: 700; color: #fff; }
.service-summary-row.muted strong { font-size: 13px; font-weight: 600; color: rgba(148,163,184,0.55); }

/* Responsive */
@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
}

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.detail-left { display: flex; flex-direction: column; gap: 16px; }
.detail-card { padding: 28px; }
.detail-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.detail-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.detail-icon svg { width: 26px; height: 26px; }
.detail-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.detail-subtitle { font-size: 13px; color: var(--muted); }
.detail-desc { font-size: 14px; color: var(--muted2); line-height: 1.75; }
.feats-card { padding: 24px 28px; }
.feats-hdr {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.feats-hdr svg { color: var(--accent); }
.feats-list { list-style: none; padding: 0; margin: 0; }
.feat-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--muted2); padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feat-item:last-child { border-bottom: none; }
.feat-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.detail-right { display: flex; flex-direction: column; gap: 14px; }
.tariff-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.tariff-panel-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.tariff-item {
  padding: 14px 16px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; margin-bottom: 8px; cursor: pointer;
  transition: all 0.3s ease;
}
.tariff-item:hover { border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.04); }
.tariff-item.selected {
  border-color: var(--accent);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 20px rgba(139,92,246,0.12);
}
.tariff-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tariff-name-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tariff-name { font-size: 14px; font-weight: 700; color: #fff; }
.tariff-price { font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; }
.tariff-desc { font-size: 12px; color: var(--muted); }
.badge-popular {
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.45);
  color: var(--accent); font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; letter-spacing: 0.06em;
}
.checkout-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.checkout-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); padding: 6px 0;
}
.checkout-val { font-size: 15px; font-weight: 700; color: #fff; }
.btn-buy {
  width: 100%; margin-top: 16px; padding: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: rgba(255,255,255,0.45);
  font-size: 14px; font-weight: 600; cursor: not-allowed;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s ease; font-family: inherit;
}
.btn-buy:not(:disabled) {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,180,255,0.15));
  border-color: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 0 24px rgba(139,92,246,0.2);
}
.btn-buy:not(:disabled):hover {
  background: rgba(139,92,246,0.25);
  box-shadow: 0 0 32px rgba(139,92,246,0.35);
  transform: translateY(-1px);
}
.btn-topup-svc {
  width: 100%; margin-top: 10px; padding: 12px;
  background: transparent; border: 1px solid rgba(139,92,246,0.5);
  border-radius: 12px; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s ease; font-family: inherit;
}
.btn-topup-svc:hover {
  background: rgba(139,92,246,0.1);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}
.btn-buy-service {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 12px 24px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.45);
  border-radius: 12px; color: var(--accent); font-size: 14px; font-weight: 600;
  transition: all 0.3s ease;
}
.btn-buy-service:hover {
  background: rgba(139,92,246,0.2);
  box-shadow: 0 0 24px rgba(139,92,246,0.25);
  transform: translateY(-2px);
}

/* ─── ACTIVE SERVICES ─── */
.tabs { display: flex; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; margin-bottom: 20px; }
.tab-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 8px; border: none; background: none;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.tab-btn:hover { color: var(--muted2); background: rgba(255,255,255,0.03); }
.tab-btn.active { background: rgba(139,92,246,0.14); color: var(--accent); font-weight: 600; box-shadow: 0 0 16px rgba(139,92,246,0.1); }
.tab-panel {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.tab-panel.tab-fade-out { opacity: 0; transform: translateY(6px); pointer-events: none; }
.tab-panel.tab-fade-in { opacity: 1; transform: translateY(0); }
.tab-btn svg { width: 14px; height: 14px; }
.tab-ico-yellow { color: #facc15; }
.tab-ico-blue { color: #60a5fa; }
.tab-ico-red { color: #f87171; }
.tab-ico-green { color: #4ade80; }
.tab-btn.active .tab-ico-yellow { filter: drop-shadow(0 0 6px rgba(250,204,21,0.6)); }

.asc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 10px; }
.asc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.asc-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.asc-tariff { font-size: 12px; color: var(--muted); }
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px; flex-shrink: 0;
}
.status-badge.running { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #00d4ff, #0ea5e9); border-radius: 2px; transition: width 0.5s; }
.progress-pct { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 32px; text-align: right; }
.asc-footer { display: flex; align-items: center; justify-content: space-between; }

/* ─── EMPTY STATE ─── */
.empty-state {
  padding: 56px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-state svg { width: 40px; height: 40px; color: rgba(148,163,184,0.25); margin-bottom: 4px; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--muted2); }
.empty-desc { font-size: 13px; color: var(--muted); max-width: 320px; line-height: 1.6; }

/* ─── PAYMENTS ─── */
.balance-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px; margin-bottom: 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.balance-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.balance-lbl svg { width: 12px; height: 12px; }
.balance-amount { font-size: 36px; font-weight: 800; color: #fff; }
.balance-unit { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.balance-refilled { font-size: 12px; color: rgba(148,163,184,0.5); margin-top: 6px; }
.balance-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.history-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.history-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.history-hdr svg { width: 15px; height: 15px; color: var(--accent); }
.history-title { font-size: 14px; font-weight: 700; color: #fff; flex: 1; }
.history-count { font-size: 12px; color: var(--muted); }
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table thead th {
  padding: 11px 18px; text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(148,163,184,0.5); text-transform: uppercase;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.01);
}
.history-table tbody td { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--muted); }
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.amount-plus { color: #4ade80; font-weight: 700; }
.amount-minus { color: #f87171; font-weight: 700; }
.status-ok { color: rgba(74,222,128,0.8); font-weight: 600; }

/* ─── MODAL ─── */
.modal-overlay {
  display: flex; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  z-index: 300; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal-overlay.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.modal {
  background: #0d1520; border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8), 0 0 50px rgba(139,92,246,0.12);
  transform: scale(0.96) translateY(10px); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0); opacity: 1;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.modal-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.modal-title svg { color: var(--accent); }
.modal-close {
  background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; gap: 10px; justify-content: flex-end;
}
.modal-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px; margin-top: 16px;
}
.modal-label:first-child { margin-top: 0; }
.quick-amounts { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.quick-btn {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.quick-btn:hover, .quick-btn.sel { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,0.06); }

/* ─── PAYMENT METHODS ─── */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pay-method {
  position: relative; min-width: 0; padding: 13px 8px 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 86px;
  background: rgba(255,255,255,0.018); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; cursor: pointer; transition: all var(--transition);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted2);
}
.pay-method:hover { border-color: rgba(169,102,255,0.45); color: #fff; }
.pay-method.sel {
  border-color: rgba(169,102,255,0.87);
  background: linear-gradient(118deg, rgba(91,56,187,0.27), rgba(140,46,179,0.19));
  box-shadow: inset 0 0 22px rgba(130,77,255,0.08), 0 0 18px rgba(130,77,255,0.1);
  color: #f2effe;
}
.pay-method-name { margin-top: 5px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.pay-method-crypto-icon, .pay-method-ton-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: #d9d9ed; font-size: 18px; font-weight: 700; line-height: 1;
}
.pay-comm { font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.pay-method.sel .pay-comm { color: #d9c8ff; }

/* ─── PROMO SECTION ─── */
.promo-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; color: #cdb2ff;
  font-size: 12px; font-weight: 700; cursor: pointer;
  padding: 8px 0; font-family: inherit; margin-bottom: 4px; letter-spacing: -0.01em;
}
.promo-toggle:hover { opacity: 0.82; }
.promo-field {
  max-height: 0; overflow: hidden; opacity: 0; margin-bottom: 0;
  transition: max-height 0.38s var(--ease), opacity 0.38s var(--ease), margin 0.38s var(--ease);
}
.promo-field.open { max-height: 110px; opacity: 1; margin-bottom: 4px; }
.promo-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-apply-promo {
  min-width: 92px; height: 41px; padding: 0 14px;
  border: 1px solid rgba(157,108,255,0.48); border-radius: 9px;
  color: #e4d5ff; background: rgba(112,72,205,0.13);
  font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-apply-promo:hover { background: rgba(137,84,238,0.26); }
#promoInput.promo-ok { border-color: rgba(77,221,153,0.55); background: rgba(39,182,120,0.075); }
#promoInput.promo-err { border-color: rgba(255,100,120,0.66); background: rgba(224,65,88,0.075); }
.promo-status {
  min-height: 18px; margin: 6px 2px 0;
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; line-height: 1.4;
}
.promo-status-ok { color: #6cdea5; }
.promo-status-err { color: #ff8a9b; }

/* ─── DEPOSIT SUMMARY ─── */
.deposit-summary {
  background: radial-gradient(circle at 100% 100%, rgba(118,61,255,0.1), transparent 40%), rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 13px; padding: 14px 15px 13px; margin-top: 14px;
}
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted); padding: 2px 0; }
.sum-row strong { color: #f1f0f6; font-size: 11px; font-weight: 700; }
.sum-divider { height: 1px; margin: 10px 0 11px; background: rgba(255,255,255,0.075); }
.sum-row--balance { font-size: 14px; font-weight: 700; color: #f7f6fc; letter-spacing: -0.03em; }
.sum-row--balance strong { color: #5ce5a1; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.deposit-bonus-row {
  display: flex; justify-content: space-between; align-items: center;
  color: #70dda9; font-size: 10px; font-weight: 700; margin-top: 7px;
}

/* ─── PAY BUTTON ─── */
.btn-pay {
  background: linear-gradient(102deg, #7650e6 0%, #a34ce9 51%, #de3cdf 100%) !important;
  border: 0 !important; box-shadow: 0 9px 22px rgba(160,52,213,0.27);
  transition: filter var(--transition-fast), transform var(--transition-fast) !important;
}
.btn-pay:hover { filter: brightness(1.09); transform: translateY(-1px); }

.deposit-hint { margin: 0 0 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.modal-title-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 7px; background: rgba(139,92,246,0.14); color: var(--accent2);
}
.pay-method-note { margin-top: 6px; font-size: 10px; line-height: 1.35; }

@media (max-width: 420px) {
  .pay-method-name { font-size: 10px; }
  .pay-method .pay-comm { font-size: 9px; }
}
}

/* ─── REVIEWS ─── */
.rating-overview { display: flex; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 20px; flex-wrap: wrap; }
.rating-big { font-size: 52px; font-weight: 900; color: #fff; line-height: 1; }
.rating-denom { font-size: 20px; font-weight: 400; color: var(--muted); }
.rbar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rbar-num { font-size: 12px; color: var(--muted); min-width: 10px; text-align: right; }
.rbar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.rbar-fill { height: 100%; background: #fbbf24; border-radius: 3px; transition: width 0.5s; }
.rbar-count { font-size: 12px; color: var(--muted); min-width: 16px; }

.rsort-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.rsort-tab {
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08); color: var(--muted);
  transition: all var(--transition);
}
.rsort-tab:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
.rsort-tab.active { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.25); color: var(--accent); }

.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 10px; }
.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.review-user { font-size: 14px; font-weight: 700; color: #fff; }
.review-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.review-text { font-size: 13.5px; color: var(--muted2); line-height: 1.65; }
.star { color: #fbbf24; }
.star.empty { color: rgba(255,255,255,0.1); }

.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(14,165,233,0.15));
  border: 1px solid rgba(0,212,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--accent);
  text-transform: uppercase;
}

.star-picker-row { display: flex; align-items: center; gap: 12px; }
.star-picker { display: flex; gap: 4px; }
.star-pick {
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; padding: 2px;
  color: rgba(255,255,255,0.15);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.star-pick:hover, .star-pick.filled { color: #fbbf24; }
.star-pick:hover { transform: scale(1.15); }
.star-counter {
  font-size: 13px; color: rgba(148,163,184,0.55); font-weight: 500;
  min-width: 100px; white-space: nowrap;
}
.star-counter.has-value { color: #fbbf24; font-weight: 700; font-size: 15px; }
.review-hint { font-size: 11.5px; color: rgba(148,163,184,0.45); margin-top: 5px; }
.file-upload-wrap { display: flex; align-items: center; gap: 12px; }
.file-upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--muted2);
  cursor: pointer; transition: all var(--transition); user-select: none; white-space: nowrap;
}
.file-upload-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); color: #fff; }
.topbar-deposit {
  background: transparent; border: 1px solid rgba(139,92,246,0.5);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(139,92,246,0.1);
}
.topbar-deposit:hover {
  background: rgba(139,92,246,0.12);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(139,92,246,0.25);
  transform: translateY(-1px);
}
.catalog-balance {
  display: flex; align-items: center; gap: 10px;
  background: rgba(12,18,28,0.9); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 10px 16px;
}
.catalog-balance svg { color: var(--accent); flex-shrink: 0; }
.catalog-balance-label { font-size: 13px; color: var(--muted); }
.catalog-balance-val { font-size: 14px; font-weight: 700; color: #fff; }
.catalog-topup-link {
  background: none; border: none; padding: 0; margin-left: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); cursor: pointer; font-family: inherit;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.catalog-topup-link:hover { color: #fff; text-shadow: 0 0 12px rgba(139,92,246,0.6); }
.file-name-label { font-size: 12.5px; color: rgba(148,163,184,0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }

/* ─── NEWS ─── */
.news-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 10px; }
.news-date { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.news-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.news-icon { width: 28px; height: 28px; border-radius: 7px; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.news-text { font-size: 13.5px; color: var(--muted2); line-height: 1.65; }
.news-code { display: inline-block; background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.35); color: #c084fc; font-family: monospace; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 6px; letter-spacing: 0.05em; }

/* ─── INFO ─── */
.info-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-bottom: 24px; }
.info-stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.info-stat-label { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.info-stat-label svg { width: 13px; height: 13px; }
.info-stat-value { font-size: 20px; font-weight: 800; color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar {
    display: block;
    padding: 10px 12px 0;
  }
  .navbar-inner {
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .panel-content { margin-left: 0; }
  .mobile-header { display: flex; }
  .detail-layout { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .landing-page { padding-top: 92px; }
  .hero { padding: 88px 20px 56px; min-height: calc(100vh - 92px); }
  .section { padding: 60px 20px; }
  .panel-body { padding: 16px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-pw-form { flex-direction: column; align-items: stretch; }
  .pw-save-btn { width: 100%; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 38px; }
  .hero-stats { flex-direction: column; max-width: 100%; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
}


/* ═══════════════════════════════════════════════════════════
   QUANTIA — ULTIMATE PREMIUM EXTENSIONS & OVERRIDES
   ═══════════════════════════════════════════════════════════ */

/* Global Overrides */
body {
  position: relative;
  background: #040509;
}

body::before {
  content: "";
  position: fixed;
  top: -15%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

body::after {
  content: "";
  position: fixed;
  bottom: -15%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(122, 90, 248, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Glassmorphism Overrides for Dashboard Cards */
.card, .detail-card, .history-card, .balance-card, .tariff-panel, .user-card, .pw-section {
  background: rgba(10, 16, 24, 0.5) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.card:hover, .detail-card:hover, .balance-card:hover {
  border-color: rgba(139, 92, 246, 0.22) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.04) !important;
  transform: translateY(-2px);
}

/* Premium Sidebar Overrides */
.sidebar {
  background: rgba(4, 6, 9, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(139, 92, 246, 0.06) !important;
}

.sidebar-logo {
  border-bottom: 1px solid rgba(139, 92, 246, 0.06) !important;
}

.sidebar-balance {
  margin: 16px 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.sidebar-balance-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-balance-val {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 12px;
  color: #fff;
}

.sidebar-balance-btn {
  width: 100%;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #7a5af8 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-balance-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.nav-item {
  border-radius: 8px !important;
  transition: all 0.25s ease !important;
  border: 1px solid transparent !important;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(122, 90, 248, 0.04) 100%) !important;
  border-color: rgba(139, 92, 246, 0.12) !important;
  color: #8b5cf6 !important;
}

.nav-item.active svg {
  stroke: #8b5cf6 !important;
}

/* Form Fields & Focus Glows */
.input-field {
  background: rgba(10, 11, 19, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.input-field:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15) !important;
}

/* Premium Buttons Styling */
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7a5af8 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2) !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-2) !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover {
  border-color: #8b5cf6 !important;
  color: #fff !important;
  background: rgba(139, 92, 246, 0.04) !important;
  transform: translateY(-2px) !important;
}

/* Profile specific styling */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(10, 16, 24, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: 12px;
  padding: 20px;
}

.stat-card .stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b5cf6;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(10, 16, 24, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
}

.quick-action:hover {
  border-color: rgba(139, 92, 246, 0.22) !important;
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(139, 92, 246, 0.06);
  color: #8b5cf6;
}

.pw-section-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.pw-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.pw-fields {
  display: flex;
  gap: 16px;
  flex: 1;
}

.pw-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(10, 11, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  transition: all 0.3s ease;
}

.pw-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.pw-save-btn {
  padding: 12px 24px;
}

/* Service Log Terminal styling */
.svc-log-tail {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.06) !important;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Landing Page Design */
.landing-page {
  position: relative;
  z-index: 1;
  padding-top: 108px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 108px);
  padding: 96px 24px 88px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12), rgba(122, 90, 248, 0.06), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  max-width: 920px;
  margin-bottom: 68px;
}

.hero-h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(46px, 7.2vw, 78px);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.hero-p {
  font-size: clamp(16px, 2.1vw, 19px);
  color: rgba(148,163,184,0.94);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.stat-item-card {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.stat-item-card:hover {
  border-color: rgba(139, 92, 246, 0.22);
}

.stat-item-card .stat-value {
  font-size: 32px;
  font-weight: 800;
}

.stat-item-card .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
}

/* Features grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feat-card {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feat-card:hover {
  border-color: rgba(139, 92, 246, 0.22);
  transform: translateY(-4px);
}

.feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  margin-bottom: 20px;
}

.feat-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: #8b5cf6;
}

.feat-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feat-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Workflow steps */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6 0%, #7a5af8 100%);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-num {
  font-size: 13px;
  font-weight: 800;
  background: #8b5cf6;
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.22);
  transform: translateY(-4px);
}

.pricing-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  margin-bottom: 20px;
}

.pricing-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: #8b5cf6;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.pricing-currency {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
}

.pricing-features svg {
  stroke: #8b5cf6;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 28px;
}

.pricing-note a {
  color: #8b5cf6;
  font-weight: 700;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.advantage-card {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.advantage-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
  stroke: #8b5cf6;
}

.advantage-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 28px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::after {
  content: '›';
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-item[open] .faq-question::after {
  transform: rotate(90deg);
  color: #8b5cf6;
}

.faq-item[open] .faq-question {
  color: #8b5cf6;
}

.faq-answer {
  padding: 0 28px 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
}

/* CTA & Footer */
.cta-section {
  padding-bottom: 100px;
}

.cta-box {
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.12);
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.landing-footer {
  background: rgba(10, 16, 24, 0.5);
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  padding: 64px 32px 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-main {
  max-width: 360px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.08);
  color: var(--text-2);
  background: rgba(139, 92, 246, 0.03);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.06);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #8b5cf6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: #8b5cf6;
}

.footer-copy {
  margin-top: 4px;
}

.footer-bottom-right {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-col-main { max-width: 100%; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { width: 260px; }
  .mobile-header { display: flex; }
  .panel-content { margin-left: 0; padding-top: var(--mobile-hdr); }
  .panel-body { padding: 24px; }
  .panel-topbar { padding: 0 20px; }
  .tabs { overflow-x: auto; padding-bottom: 6px; }
}

@media (max-width: 480px) {
  .profile-stats { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .pw-form { flex-direction: column; align-items: stretch; }
  .pw-fields { flex-direction: column; }
}

/* Landing mobile first viewport fixes */
@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .landing-navbar {
    padding: 10px 12px 0;
  }
  .landing-navbar .navbar-inner {
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 18px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  /* Keep the compact header actionable: login + registration replace hamburger. */
  .landing-navbar .nav-links,
  .landing-navbar .landing-nav-toggle {
    display: none !important;
  }
  .landing-navbar .nav-actions {
    display: flex;
    width: auto;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  .landing-navbar .nav-actions .nav-login {
    font-size: 12px;
    padding: 7px 8px;
  }
  .landing-navbar .nav-actions .btn-sm {
    font-size: 12px;
    line-height: 1;
    padding: 10px 11px;
    white-space: nowrap;
  }

  .landing-page {
    padding-top: 82px;
    touch-action: pan-y;
  }
  .landing-page .hero {
    min-height: 0;
    padding: 34px 16px 34px;
  }
  .landing-page .hero-inner {
    width: 100%;
    margin-bottom: 0;
    padding-top: 0;
  }
  .landing-page .hero-kicker {
    margin-bottom: 16px;
    padding: 7px 11px;
    font-size: 10px;
  }
  .landing-page .hero-h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.06;
    margin-bottom: 16px;
  }
  .landing-page .hero-p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .landing-page .hero-cta {
    gap: 10px;
    margin-bottom: 24px;
  }
  .landing-page .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }
  .landing-page .hero-stats {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-page .hero-stat {
    min-width: 0;
    padding: 13px 10px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .landing-page .hero-stat:nth-child(2n) { border-right: none; }
  .landing-page .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .landing-page .hero-stat-val { font-size: 21px; }
  .landing-page .hero-stat-lbl {
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }
}

/* Landing hero: independent metric cards */
.landing-page .hero-stats {
  display: grid;
  /* Keep every metric visible in one compact row on desktop and tablet. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.landing-page .hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 138px;
  padding: 24px 28px;
  text-align: left;
  background:
    radial-gradient(circle at 86% 9%, rgba(124, 58, 237, 0.18), transparent 43%),
    linear-gradient(145deg, #11111c 0%, #080910 68%, #06070b 100%);
  border: 1px solid rgba(151, 104, 255, 0.3);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(97, 55, 180, 0.09);
  overflow: hidden;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.landing-page .hero-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 28px;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, rgba(175, 116, 255, 0.58), rgba(175, 116, 255, 0));
  pointer-events: none;
}

.landing-page .hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(97, 55, 180, 0.2);
}

.landing-page .hero-stat-val,
.landing-page .hero-stat-lbl {
  position: relative;
  z-index: 1;
}

.landing-page .hero-stat-val {
  font-size: clamp(29px, 3.1vw, 36px);
  line-height: 1;
}

.landing-page .hero-stat-lbl {
  max-width: 150px;
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.09em;
}

@media (max-width: 768px) {
  .landing-page .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 420px;
  }

  .landing-page .hero-stat {
    min-height: 126px;
    padding: 18px 12px;
    text-align: left;
    border: 1px solid rgba(139, 92, 246, 0.24);
  }

  .landing-page .hero-stat-val { font-size: 25px; }

  .landing-page .hero-stat-lbl {
    max-width: 110px;
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: 0.055em;
  }
}


/* ═══════════════════════════════════════════════════════════
   REVIEWS v2  —  improved design
   ═══════════════════════════════════════════════════════════ */

/* Page entrance */
.rv-page-enter { animation: rvFadeUp 0.45s var(--ease) both; }
@keyframes rvFadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

/* ── Hero block ─────────────────────────────────────────── */
.rv-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, rgba(139,92,246,0.07) 0%, rgba(217,70,239,0.04) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.rv-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.rv-hero-left { text-align: center; min-width: 120px; }
.rv-score-wrap { display: flex; align-items: baseline; justify-content: center; gap: 2px; line-height: 1; }
.rv-score {
  font-size: 64px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rv-score-denom { font-size: 22px; font-weight: 400; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.rv-stars-big { display: flex; justify-content: center; gap: 3px; margin: 8px 0 6px; }
.rv-star-big {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.12);
  transition: color 0.3s;
}
.rv-star-big.rv-star-lit { color: #fbbf24; filter: drop-shadow(0 0 4px rgba(251,191,36,0.5)); }
.rv-star-big.rv-star-half { color: #fbbf24; opacity: 0.6; }
.rv-total { font-size: 12px; color: var(--muted); }
.rv-total strong { color: var(--muted2); }

/* ── Bar chart ──────────────────────────────────────────── */
.rv-bars-wrap { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 7px; }
.rv-bar-row { display: flex; align-items: center; gap: 9px; }
.rv-bar-label { display: flex; align-items: center; gap: 4px; min-width: 28px; justify-content: flex-end; }
.rv-bar-num { font-size: 12px; color: var(--muted); font-weight: 600; }
.rv-bar-track {
  flex: 1; height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.rv-bar-fill {
  height: 100%; width: 0; border-radius: 4px;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1);
}
.rv-bar-fill-5 { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.rv-bar-fill-4 { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.rv-bar-fill-3 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rv-bar-fill-2 { background: linear-gradient(90deg, #ea580c, #f97316); }
.rv-bar-fill-1 { background: linear-gradient(90deg, #dc2626, #ef4444); }
.rv-bar-count { font-size: 11px; color: var(--muted); min-width: 18px; text-align: right; }

/* ── Write button ───────────────────────────────────────── */
.rv-write-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 10px;
  padding: 11px 22px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
  transition: all 0.25s var(--ease);
}
.rv-write-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,92,246,0.5);
}
.rv-write-btn:active { transform: translateY(0); }

/* ── Sort bar ───────────────────────────────────────────── */
.rv-sort-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.rv-sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.rv-sort-btn:hover { color: #fff; border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); }
.rv-sort-btn.active {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.35);
  color: #c4b5fd;
}
.rv-sort-icon { font-size: 13px; line-height: 1; }

/* ── Cards grid ─────────────────────────────────────────── */
.rv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* ── Single card ─────────────────────────────────────────── */
.rv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: rvCardIn 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes rvCardIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.rv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

/* Accent left bar per rating */
.rv-card::before {
  content: '';
  position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 3px; border-radius: 0 3px 3px 0;
}
.rv-card-stars-5::before { background: linear-gradient(180deg, #8b5cf6, #a78bfa); box-shadow: 2px 0 12px rgba(139,92,246,0.4); }
.rv-card-stars-5 { border-color: rgba(139,92,246,0.18); }
.rv-card-stars-5:hover { border-color: rgba(139,92,246,0.35); box-shadow: 0 12px 32px rgba(139,92,246,0.15); }

.rv-card-stars-4::before { background: linear-gradient(180deg, #7c3aed, #8b5cf6); }
.rv-card-stars-4 { border-color: rgba(109,40,217,0.15); }

.rv-card-stars-3::before { background: linear-gradient(180deg, #d97706, #fbbf24); }
.rv-card-stars-3 { border-color: rgba(245,158,11,0.15); }

.rv-card-stars-2::before { background: linear-gradient(180deg, #ea580c, #f97316); }
.rv-card-stars-2 { border-color: rgba(234,88,12,0.15); }

.rv-card-stars-1::before { background: linear-gradient(180deg, #dc2626, #ef4444); }
.rv-card-stars-1 { border-color: rgba(220,38,38,0.15); }

/* Decorative quote */
.rv-card-quote {
  position: absolute; right: 18px; top: 10px;
  font-size: 64px; line-height: 1;
  color: rgba(139,92,246,0.08);
  font-family: Georgia, serif; font-weight: 700;
  pointer-events: none; user-select: none;
}

/* Card header */
.rv-card-head { display: flex; align-items: center; gap: 12px; }
.rv-card-meta { flex: 1; min-width: 0; }
.rv-card-user { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card-date { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Avatars — 6 color variants */
.rv-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  text-transform: uppercase;
}
.rv-avatar-0 { background: linear-gradient(135deg,#7c3aed,#a78bfa); }
.rv-avatar-1 { background: linear-gradient(135deg,#0ea5e9,#38bdf8); }
.rv-avatar-2 { background: linear-gradient(135deg,#d946ef,#f0abfc); }
.rv-avatar-3 { background: linear-gradient(135deg,#059669,#34d399); }
.rv-avatar-4 { background: linear-gradient(135deg,#ea580c,#fb923c); }
.rv-avatar-5 { background: linear-gradient(135deg,#0284c7,#7dd3fc); }

/* Stars */
.rv-card-stars { display: flex; gap: 2px; flex-shrink: 0; }
.rv-star-sm {
  width: 13px; height: 13px;
  color: rgba(255,255,255,0.1);
}
.rv-star-sm.lit { color: #fbbf24; }

/* Text */
.rv-card-text {
  font-size: 13.5px; color: var(--muted2);
  line-height: 1.7; flex: 1;
  padding-left: 12px;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

/* Screenshots strip */
.rv-screenshots {
  display: flex; gap: 8px; flex-wrap: wrap; padding-left: 12px;
}
.rv-shot-thumb {
  position: relative; width: 64px; height: 64px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0; display: block;
  transition: transform 0.2s, border-color 0.2s;
}
.rv-shot-thumb:hover { transform: scale(1.06); border-color: var(--accent); }
.rv-shot-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.rv-shot-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  color: #fff;
}
.rv-shot-thumb:hover .rv-shot-overlay { opacity: 1; }

/* Footer */
.rv-card-footer { display: flex; align-items: center; justify-content: space-between; padding-left: 12px; }
.rv-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 6px; text-transform: uppercase;
}
.rv-badge-5 { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.rv-badge-4 { background: rgba(109,40,217,0.15); color: #a78bfa; }
.rv-badge-3 { background: rgba(245,158,11,0.15); color: #fcd34d; }
.rv-badge-2 { background: rgba(234,88,12,0.15); color: #fb923c; }
.rv-badge-1 { background: rgba(220,38,38,0.15); color: #fca5a5; }
.rv-verified {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #10b981; font-weight: 600;
}

/* ── Empty state ─────────────────────────────────────────── */
.rv-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 24px; text-align: center;
  border: 1px dashed rgba(139,92,246,0.2);
  border-radius: var(--radius-lg);
  background: rgba(139,92,246,0.02);
}
.rv-empty-icon { color: rgba(139,92,246,0.3); margin-bottom: 16px; }
.rv-empty-title { font-size: 18px; font-weight: 700; color: var(--muted2); margin-bottom: 8px; }
.rv-empty-sub { font-size: 13px; color: var(--muted); max-width: 300px; line-height: 1.6; }

/* ── Modal star picker (new) ─────────────────────────────── */
.rv-star-picker-wrap { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.rv-star-picker { display: flex; gap: 3px; }
.rv-star-btn {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; padding: 2px;
  color: rgba(255,255,255,0.12);
  transition: color 0.2s, transform 0.2s;
}
.rv-star-btn svg { width: 100%; height: 100%; display: block; }
.rv-star-btn.active, .rv-star-btn.hover { color: #fbbf24; }
.rv-star-btn.active { filter: drop-shadow(0 0 5px rgba(251,191,36,0.55)); }
.rv-star-btn:hover { transform: scale(1.2); }
.rv-star-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
  min-width: 100px;
}
.rv-star-label.has-value { color: #fbbf24; font-weight: 700; font-size: 14px; }

/* Char hint */
.rv-char-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* Screenshot preview in modal */
.rv-screenshot-preview {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.rv-preview-thumb {
  width: 70px; height: 70px; border-radius: 8px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .rv-hero { padding: 20px; gap: 20px; }
  .rv-score { font-size: 52px; }
  .rv-write-btn { width: 100%; justify-content: center; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-hero-left { width: 100%; }
}
