/* ============================================================
   QubTrading — Global Stylesheet
   Dark glassmorphism foundation for a premium trading platform.
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Reset & Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Dark mode — tells Edge/Chromium to render scrollbars, form controls, etc. dark */
  color-scheme: dark;

  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a1f35;
  --bg-card: rgba(17, 24, 39, 0.7);

  /* Accents */
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;

  /* Status */
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: rgba(241, 245, 249, 0.7);
  --text-muted: rgba(241, 245, 249, 0.45);

  /* Glass — higher opacity for Edge/browser compatibility */
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(17, 24, 39, 0.95);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-cta: linear-gradient(135deg, #7c3aed, #3b82f6);

  /* Spacing */
  --container-max: 1200px;
  --section-pad: 6rem;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.25);

  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Custom scrollbar — Chromium/Edge */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) var(--bg-primary);
}

::selection {
  background: rgba(124, 58, 237, 0.4);
  color: var(--text-primary);
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}


/* ----------------------------------------------------------
   2. Typography
   ---------------------------------------------------------- */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.35rem); }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); }
h6 { font-size: clamp(0.875rem, 1.5vw, 1rem); }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Edge fallback */
}


/* ----------------------------------------------------------
   3. Utilities
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-amber  { color: var(--amber); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-outline {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-left: 8px;
  padding-right: 8px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}


/* ----------------------------------------------------------
   5. Navigation
   ---------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: var(--bg-secondary);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

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

.nav-logo img {
  width: 36px;
  height: 36px;
}

.nav-logo .brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gradient-cta);
  color: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 14, 26, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: color 0.25s ease, background 0.25s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: var(--glass-hover);
}


/* ----------------------------------------------------------
   6a. Nav Logo
   ---------------------------------------------------------- */
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-logo-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.nav-logo-tagline {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  display: block;
}

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


/* ----------------------------------------------------------
   6b. Home Hero
   ---------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: var(--bg-primary);
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.trust-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
}

/* Hero Dashboard Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-dashboard-frame {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(17,24,39,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124,58,237,0.08);
  overflow: hidden;
}

.hero-dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}

.hd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hd-dot.red    { background: #ef4444; }
.hd-dot.yellow { background: #f59e0b; }
.hd-dot.green  { background: #22c55e; }

.hd-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.hero-dashboard-body {
  padding: 1rem;
}

.hd-chart-area {
  position: relative;
  height: 160px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.hd-candle {
  position: absolute;
  width: 6px;
  border-radius: 2px;
}

.hd-candle.green { background: var(--green); }
.hd-candle.red   { background: var(--red); }

.hd-vwap-line {
  position: absolute;
  bottom: 55%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
}

.hd-entry-arrow {
  position: absolute;
  bottom: 5px;
  right: 18%;
  color: var(--green);
  font-size: 1.25rem;
  animation: bounce-arrow 1.5s ease infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hd-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hd-stat {
  text-align: center;
  padding: 6px 0;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

.hd-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hd-stat-val.green-text { color: var(--green); }
.hd-stat-val.amber-text { color: var(--amber); }

.hd-stat-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.green-text { color: var(--green); }
.amber-text { color: var(--amber); }


/* ----------------------------------------------------------
   6c. Social Proof Bar
   ---------------------------------------------------------- */
.social-proof-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
}

.social-proof-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.social-proof-item i {
  color: var(--accent-light);
  font-size: 1.1rem;
}


/* ----------------------------------------------------------
   6d. Performance Section
   ---------------------------------------------------------- */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.perf-text .stat-grid {
  margin-top: 2.5rem;
}

.perf-text .stat-item {
  text-align: left;
}

.perf-visual {
  display: flex;
  justify-content: center;
}

.perf-card {
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.perf-chart-mock {
  margin-bottom: 1.25rem;
}

.equity-line {
  width: 100%;
  height: auto;
}

.perf-card-footer {
  text-align: center;
}


/* ----------------------------------------------------------
   6e. Community Section
   ---------------------------------------------------------- */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.community-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.community-stat i {
  color: var(--accent-light);
  font-size: 1.1rem;
}

.community-stat strong {
  color: var(--text-primary);
}

/* Discord Mockup */
.discord-mockup {
  width: 100%;
  max-width: 440px;
  background: rgba(17,24,39,0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  min-height: 260px;
  box-shadow: var(--shadow-lg);
}

.discord-sidebar {
  width: 160px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--glass-border);
  padding: 1rem 0.75rem;
  flex-shrink: 0;
}

.discord-server-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-channel {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.discord-channel.active {
  background: rgba(124,58,237,0.15);
  color: var(--text-primary);
}

.discord-channel i {
  font-size: 0.65rem;
}

.discord-chat {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: flex-end;
}

.discord-msg {
  display: flex;
  gap: 10px;
}

.discord-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.discord-msg-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-msg-name {
  font-size: 0.72rem;
  font-weight: 600;
}

.discord-msg-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ----------------------------------------------------------
   6f. Page Hero (for inner pages)
   ---------------------------------------------------------- */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}


/* ----------------------------------------------------------
   7. Footer
   ---------------------------------------------------------- */
footer {
  background: var(--bg-primary);
  padding-top: 5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ----------------------------------------------------------
   8. Scroll-to-Top
   ---------------------------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}


/* ----------------------------------------------------------
   8b. Hero Entrance Animations (CSS keyframes, no AOS)
   ---------------------------------------------------------- */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.7s ease forwards;
}

.hero-anim-right {
  opacity: 0;
  transform: translateX(30px);
  animation: heroFadeLeft 0.8s ease forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .hero-anim-right {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ----------------------------------------------------------
   9. AOS (Animate On Scroll) — CSS-only hooks
   ---------------------------------------------------------- */
[data-aos]:not(.aos-animate) {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease;
}

[data-aos="fade-up"]:not(.aos-animate) {
  transform: translateY(30px);
}

[data-aos="fade-down"]:not(.aos-animate) {
  transform: translateY(-30px);
}

[data-aos="fade-left"]:not(.aos-animate) {
  transform: translateX(30px);
}

[data-aos="fade-right"]:not(.aos-animate) {
  transform: translateX(-30px);
}

[data-aos="zoom-in"]:not(.aos-animate) {
  transform: scale(0.9);
}

[data-aos="scale-up"]:not(.aos-animate) {
  transform: scale(0.95);
}

.aos-animate {
  opacity: 1 !important;
  transform: none !important;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease;
}

/* AOS delay support */
[data-aos][data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos][data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos][data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos][data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos][data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos][data-aos-delay="600"] { transition-delay: 600ms; }

/* AOS duration support */
[data-aos-duration="400"].aos-animate  { transition-duration: 400ms; }
[data-aos-duration="600"].aos-animate  { transition-duration: 600ms; }
[data-aos-duration="800"].aos-animate  { transition-duration: 800ms; }
[data-aos-duration="1000"].aos-animate { transition-duration: 1000ms; }

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ----------------------------------------------------------
   10. Responsive Breakpoints
   ---------------------------------------------------------- */

/* --- Tablet / Small Desktop (max 1024px) --- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .perf-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .perf-text {
    text-align: center;
  }

  .perf-text .stat-item {
    text-align: center;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .community-stats {
    justify-content: center;
  }

  .community-visual {
    display: flex;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Tablet Portrait (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-pad: 4rem;
  }

  h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

  #hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-dashboard-frame {
    max-width: 360px;
  }

  .discord-mockup {
    flex-direction: column;
    max-width: 320px;
  }

  .discord-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0.75rem;
    align-items: center;
  }

  .discord-server-name {
    margin-bottom: 0;
    margin-right: auto;
  }

  .discord-channel {
    margin-bottom: 0;
  }

  .hd-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-proof-inner {
    gap: 1.5rem;
  }

  .page-hero {
    padding: 8rem 0 3rem;
  }

  .page-hero::before {
    width: 500px;
    height: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --section-pad: 3rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-sm {
    width: auto;
  }

  .page-hero {
    padding: 7rem 0 2.5rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .nav-inner {
    height: 64px;
  }

  .section-desc {
    font-size: 0.95rem;
  }
}


/* ----------------------------------------------------------
   Auth — Nav Auth Area
   ---------------------------------------------------------- */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 0.75rem;
}

.nav-auth-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-auth-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.nav-auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-auth-user:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}


/* ----------------------------------------------------------
   Auth — Section & Card
   ---------------------------------------------------------- */
.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #fff;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}


/* ----------------------------------------------------------
   Auth — Tabs
   ---------------------------------------------------------- */
.auth-tabs {
  display: flex;
  gap: 0;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.25s ease;
  text-align: center;
  border: none;
  background: none;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.auth-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}


/* ----------------------------------------------------------
   Auth — Form Elements
   ---------------------------------------------------------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrap > i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.5rem;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  background: rgba(10, 14, 26, 0.95);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  padding-left: 0.9rem;
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-link {
  font-size: 0.85rem;
  color: var(--accent-light);
  transition: color 0.2s ease;
}

.form-link:hover {
  color: var(--accent);
}


/* ----------------------------------------------------------
   Auth — Buttons
   ---------------------------------------------------------- */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  text-decoration: none;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.auth-btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.auth-btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: none;
}


/* ----------------------------------------------------------
   Auth — Divider
   ---------------------------------------------------------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}


/* ----------------------------------------------------------
   Auth — Discord Button
   ---------------------------------------------------------- */
.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #5865F2;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.discord-btn:active {
  transform: translateY(0);
}

.discord-btn i {
  font-size: 1.15rem;
}


/* ----------------------------------------------------------
   Auth — Messages
   ---------------------------------------------------------- */
.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-toggle a {
  color: var(--accent-light);
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-toggle a:hover {
  color: var(--accent);
}


/* ----------------------------------------------------------
   Auth — Spinner
   ---------------------------------------------------------- */
.auth-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}


/* ----------------------------------------------------------
   Account — Profile Header
   ---------------------------------------------------------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 3px solid var(--accent);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--bg-tertiary);
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 50%;
}

.profile-avatar-overlay i {
  font-size: 1.1rem;
}

.profile-avatar-wrap:hover .profile-avatar-overlay {
  opacity: 1;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.profile-email {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.profile-joined {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.profile-joined i {
  margin-right: 0.3rem;
}


/* ----------------------------------------------------------
   Account — Grid & Cards
   ---------------------------------------------------------- */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.account-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.account-card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.account-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-card-header h2 i {
  color: var(--accent-light);
}


/* ----------------------------------------------------------
   Account — Subscription Card
   ---------------------------------------------------------- */
.subscription-card {
  display: flex;
  flex-direction: column;
}

.sub-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-plan-row:last-of-type {
  border-bottom: none;
}

.sub-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sub-value {
  font-weight: 600;
  font-size: 0.9rem;
}

.sub-plan-badge {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.plan-basic {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.plan-pro {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
}

.plan-elite {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  color: #fcd34d;
}

.plan-lifetime {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(6, 182, 212, 0.15));
  color: #86efac;
}

.sub-status {
  font-weight: 600;
}

.status-active {
  color: var(--green);
}

.status-cancelled {
  color: var(--red);
}

.status-past_due {
  color: var(--amber);
}


/* ----------------------------------------------------------
   Account — Discord Status Card
   ---------------------------------------------------------- */
.discord-status-card {
  display: flex;
  flex-direction: column;
}


/* ----------------------------------------------------------
   Auth — Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    margin: 0 0.5rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .nav-auth {
    display: none;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
