/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;
  --accent: #8B5CF6;
  --accent-dim: rgba(139, 92, 246, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1000px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

::selection {
  background: var(--accent);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul { list-style: none; }

img {
  display: block;
  max-width: 100%;
}


/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: opacity 0.3s var(--ease);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}


.mobile-nav-drawer {
  display: none;
}

/* ===========================
   HERO (index.html)
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 72px 48px 0;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Interactive Game Canvas on Home */
#gameCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

body.game-running #gameCanvas {
  pointer-events: auto;
  z-index: 15;
}

.home-body {
  overflow: hidden;
}

.home-hero {
  position: relative;
  z-index: 20;
  pointer-events: none;
}

.home-hero .hero-content {
  pointer-events: none;
}

.home-hero .hero-links,
.home-hero .hero-links a,
.home-hero .arcade-start-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
  cursor: pointer;
}

body.game-running .home-hero {
  pointer-events: none;
}

body.game-running .home-hero .hero-links a,
body.game-running .home-hero .arcade-start-btn {
  pointer-events: none;
}

/* Arcade HUD (top center) */
.arcade-hud {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 24px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  max-width: 95vw;
}

.arcade-hud.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.hud-label {
  color: #71717a;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.hud-num {
  font-weight: 700;
  color: #c084fc;
}

.hud-num.best {
  color: #fbbf24;
}

.hud-volume-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 auto;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hud-volume-btn:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(167, 139, 250, 0.65);
  transform: translateY(-1px);
}

.hud-volume-btn:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}

.volume-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-off,
.hud-volume-btn[aria-pressed="true"] .volume-on {
  display: none;
}

.hud-volume-btn[aria-pressed="true"] .volume-off {
  display: block;
}

.hud-exit-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-exit-btn:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

/* Modal Buttons row */
.modal-best {
  font-size: 0.95rem;
  color: #fbbf24;
  margin-bottom: 16px;
}

.modal-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-exit-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-exit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Game Over Modal */
.game-over-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-over-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.08);
  border-radius: 20px;
  padding: 42px 52px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-kicker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #8B5CF6;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 10%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.modal-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #a1a1aa;
  margin-bottom: 24px;
}

.modal-score span {
  color: #ffffff;
  font-weight: 700;
}

.modal-retry-btn {
  background: #8B5CF6;
  color: #ffffff;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 28px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.modal-retry-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* HUD mode tag */
.hud-mode-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.hud-mode-tag.easy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hud-mode-tag.hard {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Active Power-up Tag in HUD */
.hud-powerup-item {
  flex-shrink: 0;
}

.hud-powerup-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0.02em;
  animation: pulse-badge 1s infinite alternate ease-in-out;
}

@keyframes pulse-badge {
  from { transform: scale(0.96); opacity: 0.85; }
  to { transform: scale(1.04); opacity: 1; }
}

/* Lang Switch in Navbar - Ultra-sleek minimalist capsule */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(18, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 3px 4px;
  margin-left: 20px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-switch:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lang-pill {
  background: transparent;
  border: none;
  color: #71717a;
  font-family: 'JetBrains Mono', -apple-system, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  letter-spacing: 0.04em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lang-pill:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.06);
}

.lang-pill:active {
  transform: scale(0.92);
}

.lang-pill.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 800;
  letter-spacing: 0.05em;
  animation: lang-pill-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lang-pill-pop {
  0% { transform: scale(0.86); opacity: 0.7; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   MODE SELECTOR MODAL (EASY / HARD)
   ========================================== */
.mode-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mode-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mode-dialog {
  width: 92%;
  max-width: 880px;
  max-height: 92vh;
  overflow-y: auto;
  margin: auto;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%), #0c0d10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 40px 34px 32px;
  text-align: center;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: modalEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.arcade-options {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto 16px;
}

.arcade-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.arcade-option-btn,
.arcade-option-control {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(29,30,37,.96), rgba(18,19,23,.96));
  color: #c8c7d2;
  font: 600 .72rem 'JetBrains Mono', monospace;
  box-shadow: 0 5px 18px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035);
}

.arcade-option-btn { cursor: pointer; transition: border-color .2s, background .2s, transform .2s, color .2s; }
.arcade-option-btn:hover { border-color: rgba(167,139,250,.55); color: white; transform: translateY(-1px); }
.arcade-option-btn:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.arcade-option-btn.is-active { border-color: rgba(167,139,250,.55); color: #e9d5ff; background: linear-gradient(120deg, rgba(124,58,237,.28), rgba(236,72,153,.13)); }
.option-icon { color: #a78bfa; font-size: 1rem; line-height: 1; }
.arcade-option-control input[type="range"] {
  width: clamp(76px, 8vw, 106px);
  height: 18px;
  margin: 0 2px 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.arcade-option-control input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa 0 var(--range-fill, 18%), rgba(255,255,255,.13) var(--range-fill, 18%) 100%);
}

.arcade-option-control input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.13); }
.arcade-option-control input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: #a78bfa; }
.arcade-option-control input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #f4efff;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,.17), 0 0 10px rgba(167,139,250,.55);
}

.arcade-option-control input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #f4efff;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,.17);
}

.arcade-option-control input[type="range"]:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; border-radius: 999px; }

.arcade-option-control input[type="checkbox"] {
  position: relative;
  width: 37px;
  height: 21px;
  flex: 0 0 auto;
  margin: 0 1px 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.arcade-option-control input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #aaa7b4;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}

.arcade-option-control input[type="checkbox"]:checked { border-color: rgba(167,139,250,.55); background: rgba(139,92,246,.38); box-shadow: inset 0 0 8px rgba(139,92,246,.16); }
.arcade-option-control input[type="checkbox"]:checked::before { transform: translateX(16px); background: #f2eaff; }
.arcade-option-control input[type="checkbox"]:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }

.arcade-settings-panel {
  padding: 13px 15px 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.settings-caption {
  display: block;
  color: #777584;
  font: 700 .59rem 'JetBrains Mono', monospace;
  letter-spacing: .16em;
  text-align: left;
}

.arcade-settings-row {
  display: grid;
  grid-template-columns: 1.08fr 1fr .98fr;
  gap: 11px;
  margin-top: 9px;
}

.arcade-settings-row .arcade-option-control {
  justify-content: flex-start;
  min-width: 0;
  padding: 8px 12px;
  border-color: rgba(255,255,255,.075);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(32,32,39,.82), rgba(21,22,27,.82));
}

.control-label { color: #cbc7d6; white-space: nowrap; }
.theme-control { position: relative; }
.theme-picker { position: relative; margin-left: auto; }
.theme-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 105px;
  justify-content: space-between;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 7px;
  background: rgba(8,9,12,.48);
  color: #f1eff7;
  font: 600 .66rem 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-picker-trigger:hover,
.theme-picker.is-open .theme-picker-trigger {
  border-color: rgba(167,139,250,.52);
  background: rgba(124,58,237,.11);
  box-shadow: 0 0 0 3px rgba(139,92,246,.08);
}

.theme-picker-trigger svg { width: 11px; height: 11px; fill: none; stroke: #a8a4b4; stroke-width: 1.6; transition: transform .18s ease; }
.theme-picker.is-open .theme-picker-trigger svg { transform: rotate(180deg); }
.theme-swatch { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.theme-swatch-neon { color: #a78bfa; background: #a78bfa; }
.theme-swatch-ember { color: #fb7185; background: #fb7185; }
.theme-swatch-ice { color: #67e8f9; background: #67e8f9; }
.theme-swatch-mono { color: #d4d4d8; background: #d4d4d8; }
.theme-swatch-sunset { color:#fb923c; background:linear-gradient(135deg,#fb923c,#ec4899); }
.theme-swatch-forest { color:#4ade80; background:linear-gradient(135deg,#22c55e,#a3e635); }
.theme-swatch-ocean { color:#38bdf8; background:linear-gradient(135deg,#2563eb,#22d3ee); }
.theme-swatch-violet { color:#c084fc; background:linear-gradient(135deg,#9333ea,#ec4899); }
.theme-swatch-aurora { color:#55e6c1; background:linear-gradient(135deg,#55e6c1,#8b5cf6); }
.theme-swatch-crimson { color:#fb4568; background:linear-gradient(135deg,#fb4568,#ff9b8e); }
.theme-swatch-gold { color:#facc15; background:linear-gradient(135deg,#facc15,#fb923c); }
.theme-swatch-mint { color:#34d399; background:linear-gradient(135deg,#34d399,#a3e635); }
.theme-swatch-cyber { color:#22d3ee; background:linear-gradient(135deg,#22d3ee,#a855f7); }
.theme-swatch-rose { color:#fb7185; background:linear-gradient(135deg,#fb7185,#f0abfc); }
.theme-swatch-galaxy { color:#a78bfa; background:linear-gradient(135deg,#a78bfa,#38bdf8); }
.theme-swatch-coral { color:#fb7185; background:linear-gradient(135deg,#fb7185,#fdba74); }
.theme-swatch-sapphire { color:#60a5fa; background:linear-gradient(135deg,#60a5fa,#22d3ee); }
.theme-swatch-toxic { color:#a3e635; background:linear-gradient(135deg,#a3e635,#22c55e); }
.theme-swatch-pearl { color:#f5f5f4; background:linear-gradient(135deg,#f5f5f4,#c4b5fd); }
.theme-swatch-lava { color:#f97316; background:linear-gradient(135deg,#f97316,#ef4444); }
.theme-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  width: 172px;
  max-height: min(62vh, 510px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(29,28,37,.99), rgba(15,16,21,.99));
  box-shadow: 0 15px 38px rgba(0,0,0,.52), 0 0 24px rgba(139,92,246,.11), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: themeMenuEnter .14s ease-out both;
}

.theme-picker-menu[hidden] { display: none; }
.theme-picker-menu button {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 16px 14px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #bdb9c9;
  font: 600 .67rem 'JetBrains Mono', monospace;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.theme-picker-menu button:hover,
.theme-picker-menu button:focus-visible { outline: none; border-color: rgba(167,139,250,.16); background: rgba(139,92,246,.12); color: #fff; }
.theme-picker-menu button.is-selected { color: #f4efff; background: rgba(139,92,246,.09); }
.theme-picker-menu button .theme-check { justify-self: end; color: #c4b5fd; opacity: 0; }
.theme-picker-menu button.is-selected .theme-check { opacity: 1; }
.theme-picker-menu [data-i18n] { background: transparent; }
.theme-picker-trigger:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }

@keyframes themeMenuEnter {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.arcade-guide {
  max-width: 780px;
  margin: 12px auto;
  padding: 17px;
  border: 1px solid rgba(139,92,246,.19);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(20,19,28,.97), rgba(14,15,19,.97));
  color: #a1a1aa;
  font: .7rem/1.6 'JetBrains Mono', monospace;
  text-align: left;
}

.arcade-guide[hidden] { display: none; }
.arcade-guide:not([hidden]) { animation: tutorialEnter .24s ease-out both; }
.tutorial-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tutorial-header h3 { margin: 4px 0 0; color: #f4f1ff; font-size: 1.05rem; letter-spacing: -.02em; }
.tutorial-step-count { color: #716d82; font: 700 .62rem 'JetBrains Mono', monospace; }
.tutorial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tutorial-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.025); }
.tutorial-scene { position: relative; height: 112px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); background: radial-gradient(ellipse at 50% 110%, rgba(124,58,237,.15), transparent 60%), #0b0c10; }
.tutorial-scene::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 35%, rgba(0,0,0,.15)); }
.tutorial-scene svg { width: 100%; height: 100%; overflow: visible; }
.tutorial-scene .scene-star { fill: #d8d4e8; opacity: .7; }
.scene-hud { position: absolute; left: 8px; bottom: 7px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: rgba(8,9,12,.78); color: #9491a3; font: 600 .48rem 'JetBrains Mono', monospace; letter-spacing: .03em; }
.scene-hud b { color: #c4b5fd; font-weight: 700; }
.tutorial-card h4 { margin: 11px 11px 4px; color: #eeeaf8; font-size: .76rem; }
.tutorial-card p { min-height: 56px; margin: 0 11px 12px; color: #888695; font-size: .64rem; line-height: 1.55; }
.shot-beam { fill: none; stroke: url(#shotGlow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 7; animation: tutorialBeam .7s linear infinite; filter: drop-shadow(0 0 5px #c084fc); }
.shot-beam-secondary { stroke: #c084fc; opacity: .45; animation-delay: -.35s; }
.tutorial-ship { fill: #e9d5ff; stroke: #a78bfa; stroke-width: 2; }
.target-glow { fill: #ff168a; opacity: .22; animation: tutorialPulse 1.3s ease-in-out infinite; }
.enemy-wing { fill: #ff8052; stroke: #140e18; stroke-width: 5; stroke-linejoin: bevel; }
.enemy-body { fill: #e90068; stroke: #140e18; stroke-width: 4; stroke-linejoin: bevel; }
.enemy-float { transform-box: fill-box; transform-origin: center; animation: tutorialFloat 1.8s ease-in-out infinite; }
.boss-ring { fill: none; stroke: #ff168a; stroke-width: 2; stroke-dasharray: 5 5; transform-origin: 161px 69px; animation: tutorialSpin 7s linear infinite; }
.boss-eye { fill: #f5e9e9; stroke: #ff168a; stroke-width: 3; }
.boss-laser { stroke: #38bdf8; stroke-width: 3; stroke-dasharray: 4 4; animation: tutorialPulse .9s ease-in-out infinite; }
.tutorial-bomb { fill: #8f1239; stroke: #ff4d7d; stroke-width: 2; animation: tutorialFloat 1.4s ease-in-out infinite; }
.powerup-orb circle { fill: rgba(20,18,30,.95); stroke-width: 3; }
.powerup-orb path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.orb-triple circle { stroke: #c084fc; filter: drop-shadow(0 0 7px #c084fc); }
.orb-nuke circle { stroke: #ef4444; filter: drop-shadow(0 0 7px #ef4444); }
.orb-freeze circle { stroke: #38bdf8; filter: drop-shadow(0 0 7px #38bdf8); }
.scene-powerups text { fill: #8f8b9b; font: 700 8px 'JetBrains Mono', monospace; letter-spacing: 1px; }
@media (max-width: 480px) {
  .modal-content { width: 92%; padding: 30px 22px; }
}
.run-stats { max-width: 520px; margin: 0 auto 22px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; background: rgba(255, 255, 255, 0.02); color: #a1a1aa; font: .72rem/1.7 'JetBrains Mono', monospace; }

@keyframes tutorialBeam { to { stroke-dashoffset: -21; } }
@keyframes tutorialPulse { 50% { opacity: .5; transform: scale(.94); } }
@keyframes tutorialFloat { 50% { transform: translateY(-5px); } }
@keyframes tutorialSpin { to { transform: rotate(360deg); } }
@keyframes tutorialEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

body[data-arcade-theme="ember"] #gameCanvas { filter: hue-rotate(105deg) saturate(1.25); }
body[data-arcade-theme="ice"] #gameCanvas { filter: hue-rotate(185deg) saturate(.8); }
body[data-arcade-theme="mono"] #gameCanvas { filter: grayscale(1); }
body[data-arcade-theme="sunset"] #gameCanvas { filter:hue-rotate(330deg) saturate(1.25); }
body[data-arcade-theme="forest"] #gameCanvas { filter:hue-rotate(75deg) saturate(.9); }
body[data-arcade-theme="ocean"] #gameCanvas { filter:hue-rotate(165deg) saturate(1.1); }
body[data-arcade-theme="violet"] #gameCanvas { filter:hue-rotate(35deg) saturate(1.3); }
body[data-arcade-theme="aurora"] #gameCanvas { filter:hue-rotate(125deg) saturate(1.1); }
body[data-arcade-theme="crimson"] #gameCanvas { filter:hue-rotate(320deg) saturate(1.35); }
body[data-arcade-theme="gold"] #gameCanvas { filter:sepia(.32) saturate(1.5) hue-rotate(350deg); }
body[data-arcade-theme="mint"] #gameCanvas { filter:hue-rotate(75deg) saturate(.92); }
body[data-arcade-theme="cyber"] #gameCanvas { filter:hue-rotate(155deg) saturate(1.4); }
body[data-arcade-theme="rose"] #gameCanvas { filter:hue-rotate(300deg) saturate(1.2); }
body[data-arcade-theme="galaxy"] #gameCanvas { filter:hue-rotate(205deg) saturate(1.2); }
body[data-arcade-theme="coral"] #gameCanvas { filter:hue-rotate(330deg) saturate(1.15); }
body[data-arcade-theme="sapphire"] #gameCanvas { filter:hue-rotate(185deg) saturate(1.12); }
body[data-arcade-theme="toxic"] #gameCanvas { filter:hue-rotate(65deg) saturate(1.18); }
body[data-arcade-theme="pearl"] #gameCanvas { filter:grayscale(.55) brightness(1.12); }
body[data-arcade-theme="lava"] #gameCanvas { filter:hue-rotate(335deg) saturate(1.45); }

@keyframes arcadeCanvasShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 2px); }
  45% { transform: translate(4px, -3px); }
  70% { transform: translate(-3px, -2px); }
}

body.arcade-screen-shake #gameCanvas { animation: arcadeCanvasShake .26s ease-out; }

@media (prefers-reduced-motion: reduce) {
  body.arcade-screen-shake #gameCanvas { animation: none; }
  .tutorial-scene *, .tutorial-scene *::before, .tutorial-scene *::after { animation: none !important; }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mode-header {
  margin-bottom: 24px;
}

.mode-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #8B5CF6;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.mode-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 15%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin: 0;
}

.mode-cards.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.mode-card {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(22, 23, 29, 0.95), rgba(13, 14, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: left;
  cursor: pointer;
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), border-color .22s ease, box-shadow .22s ease, background .22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.03);
}

.mode-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 100%;
  opacity: .55;
  pointer-events: none;
  background: radial-gradient(ellipse at 0 0, rgba(16,185,129,.12), transparent 58%);
}

.mode-card.easy { border-color: rgba(16,185,129,.22); }
.mode-card.hard { border-color: rgba(239,68,68,.22); }

.mode-card.hard::before {
  background: radial-gradient(ellipse at 100% 0, rgba(239,68,68,.13), transparent 58%);
}

.mode-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(34,35,42,.99), rgba(20,21,26,.99));
}

.mode-card:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}

.mode-card.easy:hover {
  border-color: rgba(52,211,153,.65);
  box-shadow: 0 16px 36px rgba(0,0,0,.24), 0 0 28px rgba(16,185,129,.16), inset 0 1px rgba(255,255,255,.035);
}

.mode-card.hard:hover {
  border-color: rgba(248,113,113,.68);
  box-shadow: 0 16px 36px rgba(0,0,0,.24), 0 0 28px rgba(239,68,68,.17), inset 0 1px rgba(255,255,255,.035);
}

.mode-card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}

.mode-card.easy .mode-card-badge { color: #34d399; background: rgba(16,185,129,.075); border-color: rgba(52,211,153,.22); }
.mode-card.hard .mode-card-badge { color: #fb7185; background: rgba(239,68,68,.075); border-color: rgba(251,113,133,.22); }

.mode-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  text-shadow: 0 3px 18px rgba(255,255,255,.08);
}

.mode-card p {
  font-size: 0.76rem;
  color: #9a99a6;
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.mode-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.065);
}

.mode-key-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #c4c3ce;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.095);
  padding: 5px 9px;
  border-radius: 7px;
  display: inline-block;
  transition: background .2s ease, border-color .2s ease;
}

.mode-card:hover .mode-key-hint { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }

.mode-best-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #71717a;
}

.mode-best-label strong {
  color: #fbbf24;
  font-size: .8rem;
  text-shadow: 0 0 12px rgba(251,191,36,.2);
}

.mode-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px -4px -4px;
  padding: 13px 4px 0;
  border-top: 1px solid rgba(255,255,255,.065);
}

.mode-footer-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #777584;
  line-height: 1.6;
}

.mode-cancel-btn {
  background: none;
  border: none;
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.mode-cancel-btn:hover {
  color: #ffffff;
}

.mode-cancel-btn {
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.mode-cancel-btn:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }

.mode-card:active,
.arcade-option-btn:active,
.mode-cancel-btn:active { transform: translateY(1px) scale(.99); }

@media (max-width: 768px) {
  .mode-cards.two-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mode-dialog {
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 18px;
  }

  .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tutorial-scene { height: 128px; }
  .arcade-options { max-width: 560px; }
}

@media (max-width: 480px) {
  .mode-dialog { width: 94%; padding: 22px 14px; border-radius: 16px; }
  .game-choice-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 17px; }
  .game-choice-card { min-height: 124px; padding: 15px; }
  .arcade-action-row { display: grid; grid-template-columns: 1fr; }
  .arcade-action-row .arcade-option-btn { justify-content: center; }
  .arcade-settings-row { grid-template-columns: 1fr; gap: 7px; }
  .arcade-settings-row .arcade-option-control { justify-content: space-between; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .tutorial-scene { height: 155px; }
  .tutorial-card p { min-height: 0; }
  .arcade-hud {
    gap: 10px;
    padding: 6px 14px;
    max-width: 98vw;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
  }
  .hud-item { font-size: 0.72rem; gap: 5px; }
  .hud-label { font-size: 0.6rem; }
  .hud-exit-btn { font-size: 0.65rem; padding: 3px 8px; }
}

/* ==========================================
   MINIMAL GLASS LAUNCH BUTTON (CLEAN & SUBTLE)
   ========================================== */
.arcade-launcher {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.game-choice-dialog {
  max-width: 660px;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.09) 0%, transparent 60%), #0c0d10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 38px 34px 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.game-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 590px; margin: 24px auto 0; }
.game-choice-card { position: relative; display: grid; justify-items: start; gap: 12px; min-height: 176px; padding: 24px 22px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px; background: linear-gradient(145deg, rgba(22, 23, 29, 0.95), rgba(13, 14, 18, 0.98)); color: #ece8f5; text-align: left; cursor: pointer; transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), border-color .22s ease, box-shadow .22s ease; box-shadow: 0 10px 28px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.025); }
.game-choice-card:hover, .game-choice-card:focus-visible { outline: none; transform: translateY(-4px); border-color: rgba(167,139,250,.5); box-shadow: 0 16px 36px rgba(0,0,0,.24), 0 0 28px rgba(139,92,246,.12), inset 0 1px rgba(255,255,255,.04); }
.game-choice-card.typing-choice { border-color: rgba(56,189,248,.12); }
.game-choice-card.typing-choice:hover, .game-choice-card.typing-choice:focus-visible { border-color: rgba(56,189,248,.45); box-shadow: 0 16px 36px rgba(0,0,0,.24), 0 0 28px rgba(56,189,248,.1), inset 0 1px rgba(255,255,255,.04); }
.game-choice-icon { color: #c4b5fd; font-size: 1.6rem; line-height: 1; }
.typing-choice .game-choice-icon { color: #7dd3fc; }
.game-choice-card strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.game-choice-card > span:nth-of-type(2) { color: #9a99a6; font-size: .76rem; line-height: 1.6; }
.game-choice-card kbd { position: absolute; top: 16px; right: 16px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: rgba(255,255,255,.03); color: #a1a1aa; font: .65rem 'JetBrains Mono', monospace; }
.game-choice-dialog .mode-footer-row { max-width: 590px; margin-right: auto; margin-left: auto; }

@media (max-width: 480px) {
  .game-choice-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 17px; }
  .game-choice-card { min-height: 124px; padding: 15px; }
}

.arcade-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  color: #d4d4d8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.arcade-start-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.arcade-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 10px #8B5CF6;
  animation: pulse-dot 2s infinite ease-in-out;
}

.arcade-btn-shortcut {
  font-size: 0.65rem;
  color: #71717a;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.hero-name {
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin-bottom: 22px;
}

.hero-name .line {
  display: block;
  background: linear-gradient(
    180deg,
    #ffffff 15%,
    #a1a1aa 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

.hero-role {
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 500;
  color: #71717a;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-line {
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
  margin: 0 auto 32px;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.hero-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: #a1a1aa;
  letter-spacing: 0.03em;
  transition: all 0.25s var(--ease);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.hero-links a:hover {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
}

.hero-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3f3f46;
}

/* Scroll hint removed */

@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


/* ===========================
   PAGE LAYOUT (subpages)
   =========================== */
.page {
  min-height: 100vh;
  padding: 160px 48px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-header {
  margin-bottom: 80px;
}

.page-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===========================
   ABOUT PAGE
   =========================== */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about-lead {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-200);
  max-width: 640px;
}

.about-body {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 640px;
  margin-top: 20px;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.3s var(--ease);
  padding-left: 0;
  position: relative;
}

.detail-list li:hover {
  color: var(--white);
}


/* ===========================
   PROJECTS PAGE (Spacious & Modern)
   =========================== */
.projects-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 160px 48px 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #0f1012;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.project-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.15);
}

.project-card.btn-open-live {
  cursor: pointer;
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #141518;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
  opacity: 0.92;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.04);
  opacity: 1;
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.project-card:hover .project-img-overlay {
  opacity: 1;
}

.live-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(14, 15, 18, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.6);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.25);
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}

.project-card:hover .live-hint-pill {
  transform: translateY(0);
}

.project-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-direct-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  transition: all 0.2s ease;
  cursor: pointer;
}

.card-direct-link:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.project-meta {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(139, 92, 246, 0.02) 100%);
}

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

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.proj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.proj-badge.live {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.proj-badge.work {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c084fc;
}

.proj-badge.bio {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.project-desc {
  font-size: 0.86rem;
  color: #949ba4;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.project-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 9px;
  border-radius: 6px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.proj-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.proj-action-btn.primary {
  background: #ffffff;
  color: #0a0a0c;
  border: 1px solid #ffffff;
}

.proj-action-btn.primary:hover {
  background: #eaeaea;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.proj-action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.proj-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveBeaconPulse 1.8s infinite ease-in-out;
}

@keyframes liveBeaconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.proj-action-btn.icon-btn {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proj-action-btn.icon-btn:hover {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

/* ===========================
   INTERACTIVE LIVE SITE BROWSER MODAL
   =========================== */
.project-live-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  padding: 24px;
}

.project-live-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.live-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.live-browser-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  height: 82vh;
  max-height: calc(100vh - 72px);
  margin: auto;
  display: flex;
  flex-direction: column;
  background: #0d0e11;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(139, 92, 246, 0.2);
  transform: scale(0.96);
  transition: all 0.35s var(--ease);
}

.project-live-modal.active .live-browser-window {
  transform: scale(1);
}

.live-browser-window.maximized {
  max-width: 98vw;
  height: 94vh;
  max-height: calc(100vh - 32px);
}

/* Mobile device view toggle inside browser window */
.live-browser-window.mobile-view .iframe-container {
  width: 410px;
  height: 100%;
  margin: 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.browser-header {
  height: 48px;
  background: #141519;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.win-btn:hover {
  opacity: 0.8;
}

.win-btn.close {
  background: #ff5f56;
}

.win-btn.minimize {
  background: #ffbd2e;
}

.win-btn.maximize {
  background: #27c93f;
}

.browser-address-bar {
  flex-grow: 1;
  max-width: 540px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.browser-address-bar:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.15);
}

.address-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
  margin-right: 8px;
}

.address-url {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-domain {
  font-weight: 600;
  color: #ffffff;
}

.url-sep {
  color: #71717a;
}

.url-slug {
  color: #a1a1aa;
}

.address-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #34d399;
  flex-shrink: 0;
  margin-left: 8px;
}

.badge-live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.address-badge.preview-badge {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.badge-live-dot.preview-dot {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Notice banner below browser header */
.browser-preview-notice {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, rgba(20, 21, 25, 0.95) 50%, rgba(139, 92, 246, 0.12) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  user-select: none;
  flex-shrink: 0;
}

.preview-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d4d4d8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-notice-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  flex-shrink: 0;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.preview-notice-tag {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* Green Live Theme for Current Site in Modal */
.browser-preview-notice.current-site-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(20, 21, 25, 0.95) 50%, rgba(16, 185, 129, 0.16) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
}

.browser-preview-notice.current-site-banner .preview-notice-left {
  color: #a7f3d0;
  font-weight: 500;
}

.browser-preview-notice.current-site-banner .preview-notice-pulse {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.preview-notice-tag.live-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.address-badge.current-site-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.badge-live-dot.live-dot-green {
  background: #10b981;
  box-shadow: 0 0 7px #10b981;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* Floating Site Notification Toast (Current Site) */
.site-floating-toast {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.site-toast-icon {
  font-size: 1.1rem;
}

.site-toast-text {
  color: #a7f3d0;
  letter-spacing: 0.02em;
}

/* Current Site Card styling */
.project-card.card-current-site {
  cursor: pointer;
}

.project-card.card-current-site.pulse-glow {
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.35), 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

.live-hint-pill.current-hint-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Toast warning when user clicks any link in preview */
.preview-modal-toast {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 19, 24, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  white-space: nowrap;
}

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

.browser-url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.device-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #71717a;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-btn.active {
  background: rgba(139, 92, 246, 0.2);
  color: #ffffff;
}

.device-btn:hover:not(.active) {
  color: #d4d4d8;
}

.browser-newtab-btn,
.browser-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.browser-newtab-btn:hover,
.browser-close-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
}

.browser-body {
  position: relative;
  flex-grow: 1;
  width: 100%;
  height: calc(100% - 48px);
  background: #000000;
  overflow: hidden;
}

.browser-loader {
  position: absolute;
  inset: 0;
  background: #0d0e11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.browser-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

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

.iframe-container {
  width: 100%;
  height: 100%;
  transition: width 0.35s var(--ease);
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===========================
   LIGHTBOX MODAL
   =========================== */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 24px;
}

.project-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #111215;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.15);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.project-lightbox.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 21, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lightbox-close:hover {
  background: rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.8);
  transform: scale(1.08);
}

.lightbox-img-box {
  overflow: auto;
  max-height: calc(90vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0d;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 14px 24px;
  background: #111215;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #a1a1aa;
}

/* ===========================
   EXPERIENCE PAGE (Modern Timeline)
   =========================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s var(--ease);
}

.exp-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-item:hover {
  background: rgba(139, 92, 246, 0.02);
}

.exp-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 2px;
}

.exp-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s var(--ease);
}

.exp-item:hover .exp-num {
  background: linear-gradient(180deg, #ffffff 10%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(2px);
}

.exp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}

.exp-status-pill.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.exp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: expPulseDot 2s infinite ease-in-out;
}

.exp-dot.purple {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.exp-dot.dim {
  background: #71717a;
  box-shadow: none;
  animation: none;
}

@keyframes expPulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

.exp-role {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.exp-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 500px;
}


/* ===========================
   CONTACT PAGE
   =========================== */
.contact-content {
  max-width: 600px;
}

.contact-lead {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-200);
  margin-bottom: 60px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s var(--ease);
  gap: 20px;
}

.contact-link:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-link:hover {
  padding-left: 16px;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  width: 80px;
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}

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

.contact-value {
  font-size: 0.95rem;
  color: var(--gray-400);
  flex: 1;
  transition: color 0.3s var(--ease);
}

.contact-link:hover .contact-value {
  color: var(--white);
}

.contact-link .arrow {
  font-size: 1.1rem;
  color: var(--gray-600);
  transform: translateX(0);
  transition: all 0.3s var(--ease);
}

.contact-link:hover .arrow {
  color: var(--accent);
  transform: translateX(6px);
}


/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 40px 48px;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}


/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }


/* ===========================
   PAGE TRANSITION
   =========================== */
body {
  animation: fadeIn 0.5s var(--ease) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) and (min-width: 769px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .project-live-modal {
    padding: 8px;
  }
  .live-browser-window {
    height: 94vh;
    border-radius: 10px;
  }
  .browser-address-bar {
    display: none;
  }
  .live-browser-window.mobile-view .iframe-container {
    width: 100%;
    border-left: none;
    border-right: none;
  }

  .arcade-hud {
    top: 64px;
    gap: 8px;
    padding: 6px 14px;
    width: 94%;
    max-width: 440px;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .arcade-hud::-webkit-scrollbar {
    display: none;
  }
  .hud-item {
    gap: 4px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .hud-label {
    font-size: 0.58rem;
  }
  .hud-exit-btn {
    padding: 3px 8px;
    font-size: 0.65rem;
    flex-shrink: 0;
  }
  .hud-powerup-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .nav {
    padding: 0 24px;
  }

  .nav-lang-desktop {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Full-Screen Luxury Mobile Drawer */
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #08090b !important;
    z-index: 999999 !important;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 24px 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }

  .drawer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-decoration: none;
  }

  .drawer-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
  }

  .drawer-close-btn:active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: scale(0.95);
  }

  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: auto 0;
    padding: 18px 0;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #a1a1aa;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.2s var(--ease);
  }

  .drawer-link-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #52525b;
    letter-spacing: 0.08em;
  }

  .drawer-link-text {
    flex: 1;
  }

  .drawer-link:active,
  .drawer-link.active {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #ffffff;
  }

  .drawer-link.active .drawer-link-num {
    color: #a855f7;
    font-weight: 700;
  }

  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }

  .drawer-lang-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .drawer-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: #71717a;
    font-weight: 600;
  }

  .drawer-lang-switch {
    display: inline-flex;
    gap: 3px;
    background: rgba(18, 19, 24, 0.85);
    padding: 3px 4px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .drawer-lang-switch .lang-pill {
    padding: 6px 16px;
    font-size: 0.74rem;
    font-weight: 700;
  }

  .drawer-socials {
    display: flex;
    gap: 10px;
  }

  .drawer-social-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #d4d4d8;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--ease);
  }

  .drawer-social-item:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .hero {
    padding: 72px 24px 0;
  }

  .page {
    padding: 140px 24px 60px;
  }

  .page-header {
    margin-bottom: 48px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .projects-container {
    padding: 130px 20px 60px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .exp-badge-wrap {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .footer {
    padding: 32px 24px;
  }

  .scroll-hint {
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 3.2rem;
  }

  .page-title {
    font-size: 2.8rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 12px;
  }

  .hero-links .dot {
    display: none;
  }
}



/* ===========================
   ABOUT PAGE & DISCORD CARD
   =========================== */
.about-page {
  max-width: 1160px;
  padding-top: 98px;
}

.about-page .page-header {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .about-page {
    padding-top: 88px;
  }
  .about-page .page-header {
    margin-bottom: 20px;
  }
}

.about-layout-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 72px;
}

.about-left-col {
  width: 100%;
}

.about-left-col .discord-card-container {
  margin-bottom: 0;
  justify-content: flex-start;
}

.about-right-col {
  width: 100%;
}

.discord-card-container {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.discord-card {
  width: 100%;
  max-width: 440px;
  background: #111214;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Banner */
.dc-banner {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #0b0b0b;
}

.dc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar + Badges header row */
.dc-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.dc-avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.dc-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid #111214;
  object-fit: cover;
  background: #111214;
  display: block;
}

/* Exact Discord status badge cutout */
.dc-status-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.dc-status-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dc-status-bg {
  fill: #111214;
}

.dc-status-fill {
  fill: #80848e; /* default offline */
  transition: fill 0.3s var(--ease);
}

.dc-status-dnd-bar {
  fill: #111214;
  display: none;
}

/* Status variants */
[data-status="online"] .dc-status-fill {
  fill: #23a55a;
}

[data-status="idle"] .dc-status-fill {
  fill: #f0b232;
}

[data-status="dnd"] .dc-status-fill {
  fill: #f23f43;
}
[data-status="dnd"] .dc-status-dnd-bar {
  display: block;
}

[data-status="offline"] .dc-status-fill {
  fill: #80848e;
}

/* Badges pill container */
.dc-badges-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px 8px;
  margin-bottom: 8px;
  max-width: calc(100% - 110px);
  flex-wrap: wrap;
}

.dc-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.dc-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.dc-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Clan pill badge */
.dc-clan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.dc-clan-badge img {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.dc-clan-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #dbdee1;
  letter-spacing: 0.03em;
}

/* Card Body */
.dc-body {
  padding: 14px 20px 20px;
}

.dc-profile-names {
  margin-bottom: 12px;
}

.dc-displayname-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-displayname {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f2f3f5;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dc-pronouns {
  font-size: 0.72rem;
  font-weight: 500;
  color: #949ba4;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
}

.dc-username {
  display: block;
  font-size: 0.85rem;
  color: #949ba4;
  margin-top: 2px;
}

/* Custom Status */
.dc-custom-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #dbdee1;
}

.dc-emoji-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.dc-status-text {
  font-weight: 400;
}

/* Divider */
.dc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 14px 0;
}

/* Sections */
.dc-section {
  margin: 4px 0;
}

.dc-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b5bac1;
  margin-bottom: 8px;
}

/* Bio */
.dc-bio p {
  font-size: 0.88rem;
  color: #dbdee1;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dc-bio a {
  color: #00a8fc;
  text-decoration: none;
}

.dc-bio a:hover {
  text-decoration: underline;
}

.dc-inline-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

/* Member Since */
.dc-member-since {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #dbdee1;
}

.dc-member-since svg {
  color: #949ba4;
}

/* Real-Time Activity (e.g. Game Playing / Spotify) */
.dc-activity {
  background: #1e1f22;
  border-radius: 8px;
  padding: 12px;
}

.dc-activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dc-activity-img-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.dc-activity-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.dc-activity-small-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #1e1f22;
  object-fit: cover;
}

.dc-spotify-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #1e1f22;
  border-radius: 50%;
  padding: 2px;
  display: flex;
}

.dc-activity-game-fallback {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #2b2d31;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dc-activity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dc-activity-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-activity-details {
  font-size: 0.8rem;
  color: #dbdee1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-activity-state {
  font-size: 0.76rem;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Connected Accounts */
.dc-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-connection-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #1e1f22;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #dbdee1;
  transition: background 0.2s ease, color 0.2s ease;
}

.dc-connection-item:hover {
  background: #2b2d31;
  color: #ffffff;
}

/* Nameplate label */
.dc-nameplate-label {
  display: none;
}

/* ===========================
   INTERACTIVE BIO CARD (Terminal Style)
   =========================== */
.about-bio-card {
  background: rgba(17, 18, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
}

.about-bio-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.6), 0 0 35px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Card Topbar (macOS / Terminal style) */
.bio-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 11, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bio-card-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.bio-dot.red { background: #ef4444; }
.bio-dot.yellow { background: #eab308; }
.bio-dot.green { background: #22c55e; }

.bio-card-dots:hover .bio-dot {
  transform: scale(1.15);
}

.bio-card-filename {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
}

.bio-card-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bio-card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* Card Body */
.bio-card-body {
  padding: 32px 34px 36px;
}

.bio-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bio-pill-tag {
  color: #a78bfa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.bio-role-badge {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e4e4e7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
}

.about-bio-card .about-heading {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #ffffff;
  padding-bottom: 0;
  position: relative;
}

.about-bio-card .about-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: #8b5cf6;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}

.bio-typing-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 26px;
  min-height: 145px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.about-bio-card .about-body {
  font-size: 1.04rem;
  color: #d4d4d8;
  line-height: 1.85;
  margin: 0;
}

.typing-cursor {
  display: inline-block;
  color: #a78bfa;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  margin-left: 2px;
  animation: cursor-blink 0.85s infinite;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.9);
  vertical-align: baseline;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Feature / Spec Chips */
.bio-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  transition: all 0.25s ease;
  user-select: none;
}

.bio-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.bio-chip:hover .bio-chip-icon {
  transform: scale(1.12);
}

.bio-chip.chip-amber .bio-chip-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}
.bio-chip.chip-amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.bio-chip.chip-pink .bio-chip-icon {
  color: #ec4899;
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.5));
}
.bio-chip.chip-pink:hover {
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

.bio-chip.chip-cyan .bio-chip-icon {
  color: #06b6d4;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
}
.bio-chip.chip-cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.bio-chip.chip-violet .bio-chip-icon {
  color: #a78bfa;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}
.bio-chip.chip-violet:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.15);
}

/* Responsive adjustment */
@media (max-width: 992px) {
  .about-layout-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-left-col .discord-card-container {
    justify-content: center;
  }
  
  .bio-card-body {
    padding: 24px 20px 24px;
  }
}

/* ===========================
   MEGA-CLEAN MINIMAL FOOTER (Slika 2 fazon)
   =========================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px 0 40px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon-glow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.footer-icon-glow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.footer-name {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-name strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-name span {
  color: #ffffff;
  font-weight: 700;
}

.footer-copy {
  font-size: 0.78rem;
  color: #52525b;
  margin-left: 6px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.84rem;
  color: #71717a;
  text-decoration: none;
  transition: color 0.25s var(--ease);
  letter-spacing: 0.01em;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .about-section {
    margin-bottom: 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav {
    gap: 18px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .discord-card {
    margin: 0 -24px 48px;
    border-radius: 0;
    max-width: none;
  }

  .dc-banner {
    height: 120px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-copy {
    margin-left: 0;
  }
}

/* ===========================
   PRICES PAGE & PACKAGES
   =========================== */
.prices-page {
  max-width: 1160px;
  padding-top: 98px;
}

.prices-page .page-header {
  margin-bottom: 36px;
}

.prices-tag {
  display: inline-block;
  color: #a78bfa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.prices-subtitle {
  font-size: 1.05rem;
  color: #a1a1aa;
  max-width: 680px;
  margin-top: 14px;
  line-height: 1.6;
}

.prices-disclaimer-wrap {
  margin-top: 16px;
}

.prices-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.4;
}

.prices-disclaimer svg {
  color: #a78bfa;
  flex-shrink: 0;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 56px;
}

/* Pricing Card */
.pricing-card {
  background: rgba(17, 18, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 28px 30px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7), 0 0 32px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Featured Card */
.pricing-card.featured {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(26, 22, 40, 0.85) 0%, rgba(14, 15, 22, 0.85) 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(167, 139, 250, 0.2);
}

.pricing-card.featured:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(167, 139, 250, 0.3);
}

.pricing-badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 15px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #8B5CF6 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
  user-select: none;
  white-space: nowrap;
}

/* Card Header */
.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
}

.pricing-duration svg {
  color: #71717a;
}

.pricing-card.featured .pricing-duration {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.28);
  color: #ddd6fe;
}

.pricing-card.featured .pricing-duration svg {
  color: #a78bfa;
}

.pricing-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: #a1a1aa;
  line-height: 1.5;
  min-height: 52px;
  margin-bottom: 18px;
}

/* Price Box */
.pricing-price-box {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 22px;
}

.pricing-card.featured .pricing-price-box {
  border-color: rgba(139, 92, 246, 0.25);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: #71717a;
  font-weight: 500;
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  font-family: var(--font);
}

.pricing-card.featured .pricing-amount {
  background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #71717a;
  margin-top: 6px;
}

/* Feature List */
.pricing-features-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a78bfa;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.pricing-feature-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: #d4d4d8;
  line-height: 1.45;
}

.pricing-feature-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA Button */
.pricing-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pricing-cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.pricing-card.featured .pricing-cta-btn {
  background: #8B5CF6;
  border-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.pricing-card.featured .pricing-cta-btn:hover {
  background: #7c3aed;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

/* ===========================
   ADDONS SECTION
   =========================== */
.addons-section {
  margin-bottom: 64px;
}

.addons-header {
  margin-bottom: 24px;
}

.addons-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 8px;
}

.addons-subtitle {
  font-size: 0.9rem;
  color: #a1a1aa;
  max-width: 620px;
  line-height: 1.5;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.addon-card {
  background: rgba(17, 18, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.addon-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(22, 24, 32, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.1);
}

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

.addon-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.addon-icon-wrap.icon-violet {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.addon-icon-wrap.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.addon-icon-wrap.icon-pink {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #ec4899;
}

.addon-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.addon-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: 'JetBrains Mono', monospace;
}

.addon-price-badge.highlight {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.addon-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.addon-unit {
  font-size: 0.65rem;
  color: #71717a;
}

.addon-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 6px;
}

.addon-desc {
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.5;
}

/* ===========================
   INTERACTIVE PRICE CALCULATOR
   =========================== */
.calc-section {
  margin-bottom: 64px;
}

.calc-header {
  margin-bottom: 24px;
}

.calc-tag {
  display: inline-block;
  color: #a78bfa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.calc-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 8px;
}

.calc-subtitle {
  font-size: 0.9rem;
  color: #a1a1aa;
  max-width: 620px;
  line-height: 1.5;
}

.calc-card {
  background: rgba(17, 18, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.calc-body {
  padding: 32px 30px;
}

.calc-step-block {
  margin-bottom: 28px;
}

.calc-step-block:last-child {
  margin-bottom: 0;
}

.calc-step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.calc-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Base Package Radio Grid */
.calc-pkg-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.calc-radio-card {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.calc-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-radio-content * {
  pointer-events: none;
}

.calc-radio-content {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-radio-card:hover .calc-radio-content {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.calc-radio-card.active .calc-radio-content {
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.2);
}

.calc-radio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.calc-pkg-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.calc-pkg-cost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: #a78bfa;
}

.calc-pkg-sub {
  font-size: 0.72rem;
  color: #71717a;
  line-height: 1.3;
}

/* Addons Checkbox Grid */
.calc-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.calc-addon-pill {
  cursor: pointer;
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.22s ease;
}

.calc-addon-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-addon-pill > span,
.calc-check-custom,
.calc-addon-name,
.calc-addon-badge {
  pointer-events: none;
}

.calc-check-custom {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.calc-addon-pill:hover .calc-check-custom {
  border-color: rgba(139, 92, 246, 0.6);
}

.calc-addon-pill.active {
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.14);
}

.calc-addon-pill.active .calc-check-custom {
  background: #8B5CF6;
  border-color: #8B5CF6;
}

.calc-addon-pill.active .calc-check-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Locked addon pill (requires specific base package) */
.calc-addon-lock {
  display: none;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  pointer-events: none;
}

.calc-addon-pill.locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.calc-addon-pill.locked .calc-addon-lock {
  display: inline;
}

.calc-addon-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e4e4e7;
  flex: 1;
  line-height: 1.35;
}

.calc-addon-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a78bfa;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}

.calc-addon-badge.highlight {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.25);
}

/* Calculator Footer Bar */
.calc-footer-bar {
  background: rgba(10, 11, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.calc-total-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-total-label {
  font-size: 0.92rem;
  color: #a1a1aa;
  font-weight: 500;
}

.calc-total-num-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.calc-total-currency {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #a78bfa;
}

.calc-total-val {
  font-family: var(--font);
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  min-width: 50px;
  transition: transform 0.2s ease;
}

.calc-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 12px;
  background: #8B5CF6;
  border: 1px solid #a78bfa;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.calc-order-btn:hover {
  background: #7c3aed;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

@media (max-width: 768px) {
  .calc-body {
    padding: 24px 20px;
  }
  .calc-footer-bar {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .calc-total-wrap {
    justify-content: space-between;
  }
  .calc-order-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Custom Project Banner */
.prices-custom-card {
  background: rgba(17, 18, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 72px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.prices-custom-left {
  flex: 1;
  min-width: 280px;
}

.prices-custom-tag {
  color: #a78bfa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.prices-custom-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.prices-custom-desc {
  font-size: 0.86rem;
  color: #a1a1aa;
  line-height: 1.55;
}

.prices-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.prices-custom-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  
  .prices-custom-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
  
  .prices-custom-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .prices-page {
    padding-top: 88px;
  }
  .prices-page .page-header {
    margin-bottom: 24px;
  }
  .pricing-card {
    padding: 26px 20px 24px;
  }
}
