@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ========================================================
   LUDUVO MONOCHROME DESIGN SYSTEM (Pure Black & White)
   https://luduvo.com/
   ======================================================== */

:root, [data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-input: #141414;
  --bg-input-focus: #181818;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: #8a8a8a;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(255, 255, 255, 0.4);
  --primary: #ffffff;
  --primary-hover: #eaeaea;
  --accent: #ffffff;
  --accent-hover: #eaeaea;
  --accent-dim: rgba(255, 255, 255, 0.35);
  --success: #22c55e;
  --error: #ef4444;
  --wave-color: 255, 255, 255;
  --card-hover-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.05);
  --btn-outline-border: rgba(255, 255, 255, 0.08);
  --btn-outline-hover-bg: #222222;
  --btn-danger-bg: rgba(239, 68, 68, 0.12);
  --btn-danger-border: rgba(239, 68, 68, 0.25);
  --btn-danger-hover: rgba(239, 68, 68, 0.2);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font-main: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-2: #eaeaea;
  --bg-3: #e0e0e3;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-input: #f0f0f2;
  --bg-input-focus: #ffffff;
  --text: #09090b;
  --text-secondary: #6d6d75;
  --text-muted: #8e8e98;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  --border-hover: rgba(0, 0, 0, 0.16);
  --border-focus: #09090b;
  --primary: #09090b;
  --primary-hover: #27272a;
  --accent: #09090b;
  --accent-hover: #27272a;
  --accent-dim: rgba(0, 0, 0, 0.2);
  --success: #22c55e;
  --error: #ef4444;
  --wave-color: 0, 0, 0;
  --card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --btn-outline-border: rgba(0, 0, 0, 0.12);
  --btn-outline-hover-bg: rgba(0, 0, 0, 0.04);
  --btn-danger-bg: #fef2f2;
  --btn-danger-border: #fecaca;
  --btn-danger-hover: #fee2e2;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font-main: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="darker"] {
  --bg: #000000;
  --bg-2: #080808;
  --bg-3: #101010;
  --bg-card: #080808;
  --bg-card-hover: #121212;
  --bg-input: #0e0e0e;
  --bg-input-focus: #141414;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: #767676;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.03);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 255, 255, 0.4);
  --primary: #ffffff;
  --primary-hover: #eaeaea;
  --accent: #ffffff;
  --accent-hover: #eaeaea;
  --success: #22c55e;
  --error: #ef4444;
  --wave-color: 255, 255, 255;
  --card-hover-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
  --btn-outline-border: rgba(255, 255, 255, 0.08);
  --btn-outline-hover-bg: #161616;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font-main: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ========================================================
   BASE RESETS & TYPOGRAPHY
   ======================================================== */

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

html {
  background-color: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-main, 'Titillium Web', sans-serif);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ========================================================
   CUSTOM SLEEK SCROLLBAR (Black & White Minimal)
   ======================================================== */

html, body, *, *::before, *::after {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent !important;
}

::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
  transition: background 0.2s ease !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45) !important;
}

::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* ========================================================
   AIDESIGNER FLUID SMOKE UTILITIES
   ======================================================== */

.relative {
  position: relative !important;
}

.isolate {
  isolation: isolate !important;
}

.absolute {
  position: absolute !important;
}

.inset-0 {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

.-z-10 {
  z-index: -10 !important;
}

.pointer-events-none {
  pointer-events: none !important;
}

[data-aifx="fluid-smoke"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -10 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0.85 !important;
}

[data-aifx="fluid-smoke"] canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* Hide AIDesigner watermark badge */
[data-aifx-wm],
div[data-aifx-wm] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#vanta-bg,
#waves,
canvas#waves {
  display: none !important;
}

/* Ambient Radial Glow on page */
.page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 520px;
  background: radial-gradient(ellipse 70% 45% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================================
   NAVBAR (Transparent Floating Top Bar)
   ======================================================== */

.nav {
  position: relative;
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.nav-logo {
  font-family: var(--font-main, 'Titillium Web', sans-serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
}

/* ========================================================
   BUTTONS (Monochrome Luduvo Style)
   ======================================================== */

.btn-primary, .step-btn, .modal-step-btn, .continue-btn, .modal-continue, .hero-btn, .plan-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius, 10px) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s ease,
              background 0.2s ease;
}

.btn-primary:hover, .step-btn:hover, .modal-step-btn:hover, .continue-btn:hover, .modal-continue:hover, .hero-btn:hover, .plan-btn-primary:hover {
  background-color: #f0f0f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 255, 255, 0.22) !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.btn-primary:active, .step-btn:active, .modal-step-btn:active, .continue-btn:active, .modal-continue:active, .hero-btn:active, .plan-btn-primary:active {
  transform: scale(0.98);
}

.btn-outline, .plan-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius, 10px) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--bg-3, #181818) !important;
  color: #ffffff !important;
  border: 1px solid var(--border) !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s ease,
              border-color 0.2s ease;
}

.btn-outline:hover, .plan-btn-outline:hover {
  background: #222222 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline:active, .plan-btn-outline:active {
  transform: scale(0.98);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--btn-danger-bg);
  color: var(--error);
  border: 1px solid var(--btn-danger-border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-danger:hover {
  background: var(--btn-danger-hover);
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  border-radius: var(--radius, 10px);
  font-size: 14px;
  font-weight: 600;
  background: #5865f2;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.btn-discord:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-discord svg,
.btn-google svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  border-radius: var(--radius, 10px);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-3, #181818);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn-google:hover {
  background: #222222;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* ========================================================
   CARDS & SURFACES (Monochrome Gaming Surfaces)
   ======================================================== */

.card, .plan-card, .auth-box, .key-box, .stat, .action-card, .section, .stat-card {
  background: var(--bg-card, #111111);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 18px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.22s ease,
              border-color 0.22s ease,
              box-shadow 0.22s ease;
}

.card:hover, .plan-card:hover, .action-card:hover, .stat-card:hover {
  background: var(--bg-card-hover, #161616);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.plan-badge, .hero-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.card-icon, .plan-icon, .action-icon, .modal-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.card-icon svg, .plan-icon svg, .action-icon svg, .modal-plan-icon svg {
  stroke: #ffffff;
}

.plan-card:hover .plan-icon, .action-card:hover .action-icon, .card:hover .card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ========================================================
   INPUTS & FORMS
   ======================================================== */

.form-input, .step-input, .modal-step-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-input, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius, 10px);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.form-input:focus, .step-input:focus, .modal-step-input:focus {
  background: var(--bg-input-focus, #181818);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-label, .step-title, .modal-step-title, .card-label, .section-title, .stat-label, .key-label, .action-title, .auth-title, .purchase-title, .dash-title, .settings-title, .modal-header h2, .plan-name, .modal-plan-info h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ========================================================
   HERO HEADINGS (Monochrome Clean)
   ======================================================== */

h1#title, .hero h1 {
  font-family: var(--font-main, 'Titillium Web', sans-serif);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1#title span, .hero h1 span {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
