/* ============================================
   Variables
   ============================================ */
:root {
  --bg-primary:    #1E1F22;
  --bg-secondary:  #2B2D31;
  --bg-card:       #313338;
  --bg-card-hover: #383a40;
  --border:        #3f4147;
  --blurple:       #5865F2;
  --blurple-dark:  #4752C4;
  --blurple-glow:  rgba(88, 101, 242, 0.35);
  --text-primary:  #FFFFFF;
  --text-secondary:#B5BAC1;
  --text-muted:    #80848e;
  --green:         #23a55a;
  --radius:        12px;
  --radius-lg:     20px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   Container
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   Typography helpers
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--blurple) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(88, 101, 242, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--blurple);
  color: #fff;
  border-color: var(--blurple);
}
.btn-primary:hover {
  background: var(--blurple-dark);
  border-color: var(--blurple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--blurple-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: rgba(88, 101, 242, 0.5);
  color: var(--text-primary);
  background: rgba(88, 101, 242, 0.08);
  transform: translateY(-2px);
}
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.btn-xl  { padding: 15px 36px; font-size: 16px; border-radius: 12px; }
.glow-btn:hover {
  box-shadow: 0 0 0 4px rgba(88,101,242,0.2), 0 12px 32px var(--blurple-glow);
  transform: translateY(-3px);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 14px 0;
  background: rgba(30, 31, 34, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s var(--ease);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-accent { color: var(--blurple); }
.logo-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding: 3px 7px;
  background: var(--bg-card);
  border-radius: 4px;
  margin-left: 8px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: floatOrb 10s ease-in-out infinite;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: var(--blurple);
  opacity: 0.18;
  top: -260px; right: -160px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 450px; height: 450px;
  background: #818cf8;
  opacity: 0.1;
  bottom: -120px; left: -80px;
  animation-delay: 5s;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 10%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 10%, transparent 90%);
}
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.22);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tag {
  padding: 6px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Hero Mockup --- */
.hero-mockup {
  flex: 0 0 460px;
  animation: floatMockup 6s ease-in-out infinite;
}
.mockup-window {
  background: #1a1b1e;
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 80px rgba(88,101,242,0.12),
    0 0 160px rgba(88,101,242,0.06);
}
.mockup-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--blurple) 0%, #a5b4fc 50%, #22d3ee 100%);
}
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.mockup-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}
.mockup-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(35,165,90,0.15);
  border: 1px solid rgba(35,165,90,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  animation: pulse 2.2s ease-in-out infinite;
}
.mockup-body { padding: 16px 18px; }
.mockup-log { font-family: 'Courier New', Courier, monospace; font-size: 12px; line-height: 1.5; }
.log-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  opacity: 0;
  animation: fadeInLog 0.35s forwards;
}
.log-line:nth-child(1)  { animation-delay: 0.3s; }
.log-line:nth-child(2)  { animation-delay: 0.6s; }
.log-line:nth-child(3)  { animation-delay: 0.9s; }
.log-line:nth-child(4)  { animation-delay: 1.2s; }
.log-line:nth-child(5)  { animation-delay: 1.5s; }
.log-line:nth-child(6)  { animation-delay: 1.8s; }
.log-line:nth-child(7)  { animation-delay: 2.1s; }
.log-line:nth-child(8)  { animation-delay: 2.4s; }
.log-line:nth-child(9)  { animation-delay: 2.7s; }
.log-line:nth-child(10) { animation-delay: 3.0s; }
.log-line:nth-child(11) { animation-delay: 3.3s; }
.log-line:nth-child(12) { animation-delay: 3.6s; }

.log-time   { color: var(--text-muted); flex-shrink: 0; }
.log-status { font-weight: 700; min-width: 38px; flex-shrink: 0; }
.log-worker { color: #e879f9; flex-shrink: 0; }
.log-msg    { color: var(--text-secondary); }

.log-ok   { color: var(--green); }
.log-info { color: #22d3ee; }
.log-warn { color: #f0b132; }

.cursor-blink { animation: blink 1s step-end infinite; }
.mockup-stats-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-pill {
  flex: 1;
  padding: 10px 6px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid transparent;
}
.stat-pill-blurple {
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.2);
}
.stat-pill-green {
  background: rgba(35,165,90,0.1);
  border-color: rgba(35,165,90,0.2);
}
.stat-pill-warn {
  background: rgba(240,177,50,0.08);
  border-color: rgba(240,177,50,0.2);
}
.stat-pill .stat-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  font-family: var(--font);
}
.stat-pill .stat-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  display: block;
}
.stat-pill-blurple .stat-value { color: #a5b4fc; }
.stat-pill-green   .stat-value { color: var(--green); }
.stat-pill-warn    .stat-value { color: #f0b132; }
.text-green  { color: var(--green); }
.text-blurple { color: var(--blurple); }
.text-warn   { color: #f0b132; }

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  padding: 56px 0;
  background: var(--bg-secondary);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-label-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   Features Section
   ============================================ */
.features-section { padding: 100px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88,101,242,0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
  border-color: rgba(88, 101, 242, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(88,101,242,0.15);
}
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blurple);
  margin-bottom: 20px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover .feature-icon {
  background: rgba(88, 101, 242, 0.22);
  box-shadow: 0 0 22px rgba(88,101,242,0.3);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.steps-container {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  flex: 1;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  align-self: stretch;
}
.step:hover {
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-5px);
}
.step-connector {
  width: 56px;
  height: 2px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--border) 0%, rgba(88,101,242,0.5) 50%, var(--border) 100%);
}
.step-number {
  font-size: 40px;
  font-weight: 900;
  color: rgba(88,101,242,0.2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
  line-height: 1;
}
.step-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-orb {
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(88,101,242,0.18) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}
.cta-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand .logo { margin-bottom: 8px; display: inline-flex; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Icon helpers (Font Awesome)
   ============================================ */
.btn i {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.btn-lg i { font-size: 16px; }
.btn-xl i { font-size: 17px; }

.btn .fa-discord,
.btn i.fa-discord { color: #5865F2; }
.btn-primary i.fa-discord { color: inherit; }   /* blurple on blurple would be invisible */

.feature-icon i {
  font-size: 22px;
  line-height: 1;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Keyframes
   ============================================ */
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}
@keyframes floatMockup {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(35,165,90,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(35,165,90,0); }
}
@keyframes fadeInLog {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .hero-mockup { flex: 0 0 380px; }
}
@media (max-width: 960px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags    { justify-content: center; }
  .hero-mockup  { flex: none; width: min(440px, 100%); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-card + .stat-card:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-container {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .step-connector {
    width: 2px; height: 36px;
    background: linear-gradient(180deg, var(--border) 0%, rgba(88,101,242,0.5) 50%, var(--border) 100%);
    margin: 0 auto;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .cta-actions  { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
  .stat-card + .stat-card::before { display: none; }
}

/* ============================================
   Hamburger & Mobile Nav
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}
.mobile-nav.open .mobile-nav-inner {
  transform: translateX(0);
}
.mobile-nav-close {
  align-self: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.mobile-nav-close:hover { border-color: var(--blurple); color: var(--text-primary); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.mobile-nav-links a:hover { background: var(--bg-card); color: var(--text-primary); }
.mobile-nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ============================================
   Countdown Banner
   ============================================ */
.countdown-banner {
  position: sticky;
  top: 57px;
  z-index: 190;
  background: linear-gradient(135deg, rgba(88,101,242,0.18) 0%, rgba(88,101,242,0.08) 100%);
  border-bottom: 1px solid rgba(88,101,242,0.25);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}
.cd-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.cd-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}
.cd-unit span {
  font-size: 16px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--text-primary);
  line-height: 1;
}
.cd-unit small {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cd-sep {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cd-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blurple);
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: 6px;
  padding: 5px 12px;
  transition: all 0.2s var(--ease);
}
.cd-cta:hover { background: rgba(88,101,242,0.15); color: #a5b4fc; }

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section { padding: 100px 0; background: var(--bg-secondary); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88,101,242,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.pricing-popular {
  border-color: rgba(88,101,242,0.6);
  background: linear-gradient(160deg, rgba(88,101,242,0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(88,101,242,0.25), 0 20px 60px rgba(88,101,242,0.12);
  transform: scale(1.04);
}
.pricing-popular:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--blurple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 20px;
}
.pricing-header { margin-bottom: 24px; }
.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 6px;
}
.price-currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}
.price-amount {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features li i { color: var(--green); flex-shrink: 0; font-size: 13px; }
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section { padding: 100px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88,101,242,0.35);
}
.testimonial-stars { color: #f0b132; font-size: 13px; display: flex; gap: 3px; }
.testimonial-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-card > p::before { content: '"'; }
.testimonial-card > p::after  { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.author-name  { font-size: 14px; font-weight: 700; }
.author-plan  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
img.author-avatar { object-fit: cover; background: var(--bg-secondary); }

/* ── Reviews (written by logged-in users) ── */
.testimonials-section button.btn { font-family: var(--font); }

.reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 26px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.reviews-score {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.reviews-score-stars { color: #f0b132; font-size: 16px; display: flex; gap: 3px; }
.reviews-count       { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.reviews-empty       { font-size: 15px; color: var(--text-secondary); }
.reviews-summary-action { margin-left: auto; }
.reviews-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.review-form[hidden] { display: none; }
.review-form-head { display: flex; align-items: center; gap: 12px; }
.review-form-head img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.review-form-head strong { display: block; font-size: 14px; }
.review-form-head span   { font-size: 12px; color: var(--text-muted); }

.star-input { border: none; }
.star-input legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
/* Inputs are in 5→1 order and displayed reversed, so "~" selects the lower stars */
.star-input-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.star-input-stars input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.star-input-stars label {
  font-size: 26px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.star-input-stars input:checked ~ label { color: #f0b132; }
.star-input-stars:hover label           { color: var(--border); }
.star-input-stars label:hover,
.star-input-stars label:hover ~ label   { color: #f5c451; }
.star-input-stars label:hover           { transform: scale(1.12); }
.star-input-stars input:focus-visible + label {
  outline: 2px solid var(--blurple);
  outline-offset: 3px;
  border-radius: 4px;
}

.review-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.review-form textarea:focus { border-color: rgba(88,101,242,0.55); }
.review-form textarea::placeholder { color: var(--text-muted); }
.review-form-foot  { display: flex; gap: 12px; font-size: 12px; min-height: 16px; }
.review-form-error { color: #f38b8d; }
.review-form-count { color: var(--text-muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.review-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.review-form-actions .review-delete { margin-right: auto; color: #f38b8d; }
.review-form-actions .review-delete:hover { border-color: rgba(237,66,69,0.5); background: rgba(237,66,69,0.08); }

.review-card > p { white-space: pre-line; overflow-wrap: anywhere; }
.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-remove {
  padding: 4px 6px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.review-remove:hover { color: #ed4245; background: rgba(237,66,69,0.1); }
.review-you {
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #c7d2fe;
  background: rgba(88,101,242,0.25);
  border-radius: 5px;
}
.review-hidden { display: none !important; }
.reviews-more  { text-align: center; margin-top: 28px; }

/* ============================================
   FAQ Section
   ============================================ */
.faq-section { padding: 100px 0; background: var(--bg-secondary); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item.open { border-color: rgba(88,101,242,0.4); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: color 0.2s var(--ease);
}
.faq-question:hover { color: #a5b4fc; }
.faq-question i {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--blurple); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 0;
}

/* ============================================
   Changelog Section
   ============================================ */
.changelog-section { padding: 100px 0; }
.changelog-timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blurple) 0%, var(--border) 100%);
  border-radius: 2px;
}
.changelog-item {
  position: relative;
  margin-bottom: 40px;
}
.changelog-item:last-child { margin-bottom: 0; }
.changelog-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 14px; height: 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
}
.changelog-dot-current {
  background: var(--blurple);
  border-color: var(--blurple);
  box-shadow: 0 0 12px rgba(88,101,242,0.5);
}
.changelog-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.changelog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.changelog-version {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.changelog-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag-current {
  background: rgba(88,101,242,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(88,101,242,0.3);
}
.changelog-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}
.changelog-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.changelog-content ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.changelog-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blurple);
  font-size: 12px;
}

/* ============================================
   Responsive — new sections
   ============================================ */
@media (max-width: 960px) {
  .pricing-grid      { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-popular   { transform: none; }
  .pricing-popular:hover { transform: translateY(-4px); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid          { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 640px) {
  .hamburger         { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .reviews-summary-action      { margin-left: 0; width: 100%; }
  .reviews-summary-action .btn { width: 100%; justify-content: center; }
  .countdown-banner  { gap: 10px; }
  .cd-label          { display: none; }
  .changelog-timeline { padding-left: 24px; }
}

/* ============================================
   VPS Add-on Banner
   ============================================ */
.vps-addon {
  margin-top: 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(0,120,212,0.08) 0%, rgba(88,101,242,0.06) 100%);
  border: 1px solid rgba(0,120,212,0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.vps-addon-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.vps-addon-icon {
  width: 48px; height: 48px;
  background: rgba(0,120,212,0.12);
  border: 1px solid rgba(0,120,212,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0078d4;
  font-size: 22px;
  flex-shrink: 0;
}
.vps-addon h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.vps-addon p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.vps-addon p strong { color: var(--text-primary); }
@media (max-width: 640px) {
  .vps-addon { flex-direction: column; }
  .vps-addon .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Shared inner page layout
   ============================================ */
.page-inner {
  padding: 110px 0 80px;
  min-height: 100vh;
}
.page-header {
  text-align: center;
  margin-bottom: 56px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ============================================
   Nav user badge
   ============================================ */
.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-avatar-placeholder {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blurple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ============================================
   Buy page extras
   ============================================ */
.buy-grid { max-width: 960px; margin: 0 auto 40px; }

.ltc-pay-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(88,101,242,0.08);
  border-radius: 8px;
  border: 1px solid rgba(88,101,242,0.2);
}

.ltc-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(88,101,242,0.06);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}
.ltc-info-icon { font-size: 18px; color: var(--blurple); flex-shrink: 0; margin-top: 2px; }
.ltc-info-banner strong { color: var(--text-primary); }

/* ============================================
   Payment page
   ============================================ */
.pay-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.pay-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
}
.pay-step-active {
  color: var(--text-primary);
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.3);
}
.pay-step-done { color: var(--green); }
.pay-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.pay-step-active .pay-step-num { background: var(--blurple); border-color: var(--blurple); color: #fff; }
.pay-step-done .pay-step-num   { background: rgba(35,165,90,0.2); border-color: var(--green); color: var(--green); }
.pay-step-line {
  width: 40px; height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto 32px;
}
@media (max-width: 768px) { .payment-layout { grid-template-columns: 1fr; } }

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
}
.payment-card-qr {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.payment-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 20px;
}
.payment-amount-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.payment-eur {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.payment-ltc-eq {
  font-size: 16px;
  color: var(--text-secondary);
}
.payment-ltc-eq strong { color: #a5b4fc; }
.payment-rate {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.payment-rate-warn { color: #f0b132; }
.payment-rate a { color: #a5b4fc; }

.payment-steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pstep {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pstep-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.3);
  color: var(--blurple);
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pstep > div {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.pstep > div strong { color: var(--text-primary); }

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-img {
  width: 180px; height: 180px;
  border-radius: 12px;
  border: 2px solid rgba(88,101,242,0.35);
  box-shadow: 0 0 32px rgba(88,101,242,0.2);
}
.qr-label {
  font-size: 12px;
  color: var(--text-muted);
}

.ltc-address-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ltc-address-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.ltc-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ltc-address-row code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #a5b4fc;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}
.copy-btn:hover { border-color: var(--blurple); color: var(--blurple); }
.copy-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-top: 6px;
}

.ltc-amount-block {
  text-align: center;
  padding: 16px;
  background: rgba(88,101,242,0.06);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: var(--radius);
}
.ltc-amount-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.ltc-amount-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
}
.ltc-amount-value span {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font);
}

.confirm-pay-btn {
  font-size: 16px;
  padding: 14px 24px;
}
.confirm-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}
.confirm-success {
  text-align: center;
  padding: 20px;
}
.confirm-success i {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
}
.confirm-success h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.confirm-success p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.confirm-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(240,50,50,0.08);
  border: 1px solid rgba(240,50,50,0.25);
  border-radius: 8px;
  color: #f87171;
  font-size: 14px;
  margin-top: 12px;
}

.payment-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(240,177,50,0.06);
  border: 1px solid rgba(240,177,50,0.22);
  border-radius: 8px;
  font-size: 13px;
  color: #f0b132;
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================
   Support Chat page
   ============================================ */
.chat-page { overflow: hidden; }
.chat-page [hidden] { display: none !important; }

.support-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.support-bg .hero-orb-1 { opacity: 0.14; }

.support-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  max-width: 1200px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 92px 28px 28px;
}

/* ── Info panel ── */
.support-aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 4px 0 0;
  scrollbar-width: none;
}
.support-aside::-webkit-scrollbar { display: none; }
.support-aside .section-badge { align-self: flex-start; }
.support-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.support-title .nowrap { white-space: nowrap; }
.support-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.support-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}
.support-points li { display: flex; align-items: flex-start; gap: 14px; }
.support-point-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: #a5b4fc;
  background: linear-gradient(135deg, rgba(88,101,242,0.22), rgba(129,140,248,0.06));
  border: 1px solid rgba(88,101,242,0.28);
}
.support-points strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.support-points li > div > span { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.chat-page kbd {
  display: inline-block;
  padding: 0 5px;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.support-tip {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: rgba(240,177,50,0.06);
  border: 1px solid rgba(240,177,50,0.2);
  border-radius: var(--radius);
}
.support-tip i      { color: #f0b132; margin-top: 3px; }
.support-tip p      { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.support-tip strong { color: var(--text-primary); }

.support-account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(43,45,49,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.support-account img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  flex-shrink: 0;
}
.support-account > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.support-account-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.support-account-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-account-home {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.support-account-home:hover {
  color: var(--text-primary);
  border-color: rgba(88,101,242,0.5);
  background: rgba(88,101,242,0.1);
}

/* ── Chat card ── */
.chat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, rgba(49,51,56,0.92) 0%, rgba(43,45,49,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.chat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,0.7), transparent);
  pointer-events: none;
}

.chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(30,31,34,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.chat-header-text { min-width: 0; }
.support-avatar {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blurple) 0%, #818cf8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(88,101,242,0.35);
}
.support-avatar::after {
  content: '';
  position: absolute;
  right: -3px; bottom: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 3px solid #2f3136;
  transition: background 0.3s var(--ease);
}
.support-avatar.is-online::after { background: var(--green); }
.chat-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.chat-verified { color: #818cf8; font-size: 13px; }
.chat-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f0b132;
  flex-shrink: 0;
}
.status-dot.online  { background: var(--green); animation: pulse 2.2s ease-in-out infinite; }
.status-dot.offline { background: #ed4245; }

.ticket-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #57d98a;
  background: rgba(35,165,90,0.1);
  border: 1px solid rgba(35,165,90,0.28);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticket-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ticket-pill.is-closed {
  color: #f0b132;
  background: rgba(240,177,50,0.08);
  border-color: rgba(240,177,50,0.25);
}

/* ── Message area ── */
.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.chat-list {
  margin-top: auto;           /* few messages sit at the bottom, like a messenger */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-empty {
  margin: auto;
  max-width: 470px;
  padding: 24px 8px;
  text-align: center;
  animation: chatIn 0.4s var(--ease);
}
.chat-empty-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--blurple), #818cf8);
  box-shadow: 0 14px 36px rgba(88,101,242,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.chat-empty h2 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.chat-empty p  { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 22px; }
.chat-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chat-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-topic i { width: 16px; text-align: center; color: #a5b4fc; }
.chat-topic:hover {
  color: var(--text-primary);
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.45);
  transform: translateY(-1px);
}

.chat-date-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chat-date-sep::before,
.chat-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Composer ── */
.chat-composer-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 12px 20px 14px;
  background: rgba(30,31,34,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px;
  background: rgba(30,31,34,0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-composer:focus-within {
  border-color: rgba(88,101,242,0.6);
  box-shadow: 0 0 0 4px rgba(88,101,242,0.14);
}
.composer-btn {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.composer-btn:hover:not(:disabled) { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.composer-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.composer-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  max-height: 160px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 20px;
  scrollbar-width: thin;
}
.composer-input::placeholder { color: var(--text-muted); }
.composer-send {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, var(--blurple), #6d78f7);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(88,101,242,0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.composer-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(88,101,242,0.45);
}
.composer-send:disabled {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  box-shadow: none;
  cursor: default;
}
.composer-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 0 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.composer-count          { font-variant-numeric: tabular-nums; }
.composer-count.is-limit { color: #f38b8d; }

.chat-toast {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fbd0d1;
  background: rgba(58,30,33,0.96);
  border: 1px solid rgba(237,66,69,0.45);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  animation: chatIn 0.25s var(--ease);
}
.chat-toast i { color: #ed4245; flex-shrink: 0; }

/* ── Drag & drop overlay ── */
.chat-drop {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  padding: 18px;
  background: rgba(30,31,34,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.chat-card.is-dragging .chat-drop { display: flex; }
.chat-drop-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(129,140,248,0.7);
  border-radius: 16px;
  color: #c7d2fe;
  font-size: 15px;
  font-weight: 600;
}
.chat-drop-inner i { font-size: 38px; color: #818cf8; }

/* ── Lightbox ── */
.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  animation: chatFade 0.2s var(--ease);
}
.chat-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.chat-lightbox-open {
  position: absolute;
  top: 20px; right: 20px;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s var(--ease);
}
.chat-lightbox-open:hover { background: rgba(255,255,255,0.18); }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes chatFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 960px) {
  .support-shell { grid-template-columns: minmax(0, 1fr); padding: 84px 16px 16px; }
  .support-aside { display: none; }
}
@media (max-width: 640px) {
  .support-shell       { padding: 76px 8px 8px; }
  .chat-card           { border-radius: 18px; }
  .chat-card-header    { padding: 12px 14px; }
  .chat-scroll         { padding: 16px 12px 8px; }
  .chat-composer-wrap  { padding: 10px 10px 12px; }
  .composer-input      { font-size: 16px; }   /* prevents iOS zoom on focus */
  .composer-hint > span:first-child { display: none; }
  .chat-topics         { grid-template-columns: 1fr; }
  .chat-row            { max-width: 92%; }
  /* This page has no hamburger menu, so keep the profile menu (avatar only) */
  .chat-page .nav-cta          { display: flex; }
  .chat-page .nav-profile-name { display: none; }
}
@media (max-width: 400px) {
  .ticket-pill { display: none; }
}

/* ── Shared chat parts (also used by the admin panel) ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.chat-input:focus  { border-color: rgba(88,101,242,0.5); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blurple);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-send-btn:hover { background: var(--blurple-dark); transform: scale(1.05); }

/* ============================================
   Admin support panel
   ============================================ */
.admin-page  { overflow: hidden; }

.admin-login-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
}
.admin-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.admin-login-icon {
  font-size: 40px;
  color: var(--blurple);
  margin-bottom: 16px;
}
.admin-login-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.admin-login-box p  { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.admin-login-form { display: flex; flex-direction: column; gap: 12px; }
.admin-pwd-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.admin-pwd-input:focus { border-color: rgba(88,101,242,0.5); }
.admin-login-err {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(240,50,50,0.08);
  border: 1px solid rgba(240,50,50,0.25);
  border-radius: 8px;
  color: #f87171; font-size: 14px;
}

.admin-layout {
  display: flex;
  height: 100vh;
  padding-top: 0;
}
.admin-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.admin-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card);
}
.admin-badge {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(88,101,242,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: 100px;
  padding: 3px 10px;
}
.admin-sidebar-label {
  padding: 12px 20px 8px;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-user-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
  scrollbar-width: thin;
}
.admin-empty {
  padding: 24px 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.admin-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  position: relative;
}
.admin-user-item:hover { background: var(--bg-card-hover); }
.admin-user-item.active { background: rgba(88,101,242,0.12); }
.admin-user-item.has-unread .user-item-name::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--blurple);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.user-item-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blurple);
  color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-item-info { flex: 1; min-width: 0; }
.user-item-name {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-item-last {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-item-count {
  font-size: 11px; font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 7px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.admin-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-no-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
}
.admin-no-chat i { font-size: 48px; opacity: 0.3; }
.admin-no-chat p  { font-size: 14px; }

.admin-chat-view {
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.admin-chat-view { display: flex; }

.admin-chat-header {
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-chat-user-info { display: flex; align-items: center; gap: 12px; }
.admin-chat-name { font-size: 15px; font-weight: 700; }
.admin-chat-sub  { font-size: 12px; color: var(--text-muted); }
.admin-messages  { flex: 1; min-height: 0; }

@media (max-width: 640px) {
  .admin-sidebar { width: 100%; display: none; }
}

/* ============================================
   Admin sidebar extras (new design)
   ============================================ */
.admin-self-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(88,101,242,0.07);
  border-bottom: 1px solid var(--border);
}
.admin-self-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}
.admin-self-name  { font-size: 13px; font-weight: 700; }
.admin-logout-link {
  font-size: 11px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s var(--ease);
}
.admin-logout-link:hover { color: #f87171; }

.admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.user-item-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

/* ============================================
   Staff modal
   ============================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: #a5b4fc;
}
.modal-close {
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}
.modal-close:hover { border-color: var(--blurple); color: var(--text-primary); }

.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.2s var(--ease);
  border-bottom: 2px solid transparent;
  font-family: var(--font);
}
.modal-tab:hover { color: var(--text-primary); }
.modal-tab.active {
  color: var(--blurple);
  border-bottom-color: var(--blurple);
  background: rgba(88,101,242,0.05);
}

.modal-panel {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
}

.user-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.user-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font);
}
.user-search-input::placeholder { color: var(--text-muted); }

.staff-list { display: flex; flex-direction: column; gap: 6px; }

.staff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease);
}
.staff-item:hover { border-color: rgba(88,101,242,0.35); }
.staff-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.staff-info { flex: 1; min-width: 0; }
.staff-name {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.staff-id  { font-size: 11px; color: var(--text-muted); font-family: 'Courier New', monospace; }
.staff-already {
  font-size: 12px; font-weight: 700;
  color: var(--green);
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}

.btn-add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(35,165,90,0.12);
  border: 1px solid rgba(35,165,90,0.35);
  border-radius: 7px;
  color: var(--green);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font);
  transition: all 0.2s var(--ease);
}
.btn-add:hover { background: rgba(35,165,90,0.22); }
.btn-add:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-remove {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(240,50,50,0.08);
  border: 1px solid rgba(240,50,50,0.25);
  border-radius: 7px;
  color: #f87171;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font);
  transition: all 0.2s var(--ease);
}
.btn-remove:hover { background: rgba(240,50,50,0.18); }

/* ============================================
   Navbar — profile dropdown
   ============================================ */
.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  z-index: 100;
}
.nav-profile:hover { background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.45); }
.nav-profile.open  { background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.55); border-radius: 12px 12px 0 0; }

.nav-profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-chevron {
  font-size: 9px;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.nav-profile.open .nav-profile-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  min-width: 230px;
  background: var(--bg-secondary);
  border: 1px solid rgba(88,101,242,0.45);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  z-index: 200;
  overflow: hidden;
}
.nav-profile.open .nav-profile-dropdown {
  display: block;
  animation: dropdownIn 0.15s var(--ease);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dropdown header */
.npd-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.npd-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.npd-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.npd-tag  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Dropdown items */
.npd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
  cursor: pointer;
}
.npd-item:hover           { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.npd-item i               { width: 16px; text-align: center; flex-shrink: 0; opacity: 0.8; }
.npd-item-support         { color: var(--green); }
.npd-item-support:hover   { background: rgba(35,165,90,0.1); color: var(--green); }
.npd-item-danger          { color: #f87171; }
.npd-item-danger:hover    { background: rgba(240,50,50,0.09); color: #f87171; }
.npd-divider              { height: 1px; background: var(--border); margin: 3px 0; }

/* Support Dashboard button (kept for admin panel internal use) */
.btn-support-dash {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(35,165,90,0.12);
  border: 1px solid rgba(35,165,90,0.3);
  border-radius: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.btn-support-dash:hover { background: rgba(35,165,90,0.22); }

/* Danger / success action buttons */
.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(240,50,50,0.1);
  border: 1px solid rgba(240,50,50,0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: all 0.2s var(--ease);
}
.btn-danger:hover  { background: rgba(240,50,50,0.2); }
.btn-success {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(35,165,90,0.1);
  border: 1px solid rgba(35,165,90,0.3);
  border-radius: 8px;
  color: var(--green);
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: all 0.2s var(--ease);
}
.btn-success:hover { background: rgba(35,165,90,0.2); }

/* ============================================
   Payment — auto-detection state
   ============================================ */
.detect-section {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(88,101,242,0.07);
  border: 1px solid rgba(88,101,242,0.22);
  border-radius: var(--radius);
}
.detect-spinner {
  font-size: 22px;
  color: var(--blurple);
  flex-shrink: 0;
  margin-top: 2px;
}
.detect-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detect-text strong { font-size: 14px; font-weight: 700; }
.detect-text span   { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.detect-timer       { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   Chat — message rows with avatars
   ============================================ */
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 78%;
  animation: chatIn 0.25s var(--ease);
}
.chat-row-them    { align-self: flex-start; }
.chat-row-me      { align-self: flex-end; flex-direction: row-reverse; }
.chat-row-grouped { margin-top: -9px; }
.chat-row-grouped .chat-msg-avatar { visibility: hidden; height: 0; }

.chat-msg-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04);
}
.chat-avatar-spacer { display: block; visibility: hidden; height: 0; }

.chat-msg-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.chat-row-me .chat-msg-content { align-items: flex-end; }

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.chat-row-me .chat-msg-meta { flex-direction: row-reverse; }
.chat-msg-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0 4px;
}
.chat-row-me .chat-msg-name { color: #a5b4fc; }
.chat-staff-badge {
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(88,101,242,0.25);
  border-radius: 5px;
}
.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 4px;
}
.chat-msg-meta .chat-msg-name,
.chat-msg-meta .chat-time { padding: 0; }

.chat-bubble {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-row-them .chat-bubble {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-top-left-radius: 6px;
}
.chat-row-me .chat-bubble {
  background: linear-gradient(135deg, #5865F2 0%, #6d78f7 100%);
  color: #fff;
  border-top-right-radius: 6px;
  box-shadow: 0 6px 18px rgba(88,101,242,0.25);
}

/* Image in chat */
.chat-image-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  border-radius: 14px;
  cursor: zoom-in;
}
/* The width cap must not be a percentage: the wrapper shrinks to fit the image,
   so "100%" is circular and browsers then size the wrapper from the image's
   natural width, leaving the scaled-down image stuck at its left edge. */
.chat-bubble-image {
  display: block;
  max-width: min(300px, calc(100vw - 130px));
  max-height: 320px;
  border-radius: 14px;
  object-fit: contain;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-image-btn .chat-bubble-image { cursor: zoom-in; }
.chat-bubble-image:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* Image being uploaded */
.chat-pending-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.3);
}
.chat-pending-image img {
  display: block;
  max-width: min(300px, calc(100vw - 130px));
  max-height: 320px;
  opacity: 0.45;
}
.chat-pending-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Image upload button (admin panel) */
.chat-img-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  font-family: var(--font);
}
.chat-img-btn:hover { border-color: var(--blurple); color: var(--blurple); }
.chat-img-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Disabled chat input */
.chat-input-disabled .chat-input,
.chat-input-disabled .chat-send-btn,
.chat-input-disabled .chat-img-btn {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.chat-input-disabled {
  background: rgba(0,0,0,0.08);
}

/* Closed ticket banner */
.ticket-closed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(240,177,50,0.07);
  border-bottom: 1px solid rgba(240,177,50,0.22);
  font-size: 13px;
  color: #f0b132;
  flex-shrink: 0;
}
.ticket-closed-banner i { flex-shrink: 0; }

/* System messages in chat */
.chat-system-msg {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chat-system-msg-open { color: var(--green); border-color: rgba(35,165,90,0.3); background: rgba(35,165,90,0.06); }

/* ============================================
   Admin sidebar — filter tabs + ticket badges
   ============================================ */
.admin-sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.ticket-filter {
  display: flex;
  gap: 3px;
}
.ticket-filter-btn {
  padding: 3px 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s var(--ease);
}
.ticket-filter-btn:hover       { color: var(--text-primary); border-color: var(--blurple); }
.ticket-filter-btn.active      { background: rgba(88,101,242,0.15); border-color: var(--blurple); color: var(--blurple); }

.ticket-status-badge { font-size: 11px; margin-left: 4px; }

/* Admin chat header actions */
.admin-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-chat-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
