/*
 * PROP PILOT — GRAND TOURING TERMINAL
 * Electric cyan and ultraviolet, refined with champagne metal.
 * The system is intentionally restrained: cyan communicates live state,
 * violet creates depth, and gold marks premium or exceptional moments.
 */

:root {
  --bg: #07080B;
  --bg-raise: #0B0D12;
  --surface: rgba(14, 17, 23, 0.94);
  --surface2: #12151C;
  --surface3: #191D25;
  --border: rgba(218, 228, 236, 0.075);
  --border2: rgba(99, 230, 232, 0.18);
  --hairline: rgba(218, 228, 236, 0.09);

  --green: #63E6E8;
  --green-deep: #29BDC3;
  --green-dim: rgba(99, 230, 232, 0.085);
  --blue: #63E6E8;
  --blue-dim: rgba(99, 230, 232, 0.075);
  --purple: #7056B8;
  --purple-bright: #9176D8;
  --purple-dim: rgba(112, 86, 184, 0.1);
  --gold: #C8A66A;
  --gold-deep: #8E7042;
  --gold-dim: rgba(200, 166, 106, 0.1);

  --text: #F3F5F7;
  --text-light: #D6DBE0;
  --label: #9AA3AD;
  --muted: #626C77;

  --primary: #63E6E8;
  --primary-gradient: linear-gradient(135deg, #F3F8F8 0%, #9FEAEC 48%, #63DCE0 100%);
  --secondary: #7056B8;
  --secondary-gradient: linear-gradient(135deg, #4A3D79 0%, #7056B8 100%);
  --accent: #63E6E8;
  --radius: 7px;
  --radius-lg: 13px;
}

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

body {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image:
    radial-gradient(54rem 30rem at 82% -8%, rgba(112, 86, 184, 0.095), transparent 70%),
    radial-gradient(42rem 28rem at 8% 14%, rgba(99, 230, 232, 0.045), transparent 72%),
    linear-gradient(180deg, #090A0E 0%, #07080B 66%, #06070A 100%);
  background-attachment: fixed;
  letter-spacing: -0.008em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(154, 163, 173, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 163, 173, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.44);
}

::selection { background: rgba(200, 166, 106, 0.32); color: #fff; }

.display-xl,
.display-lg,
.display-md {
  font-weight: 600;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.display-xl { line-height: 0.98; }

.display-xl .lit,
.display-lg .lit,
.display-md .lit {
  color: #B9EFF0;
  background: linear-gradient(100deg, #F6F8F8 0%, #A6ECEE 55%, #71D9DE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.lede {
  color: #9AA3AD;
  font-weight: 400;
  letter-spacing: -0.012em;
}

/* Navigation: thin, machined, almost invisible. */
.site-nav,
header {
  background: rgba(7, 8, 11, 0.78);
  border-color: rgba(218, 228, 236, 0.075);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.nav-container { min-height: 68px; }

.site-nav::after,
header::after,
.drawer-head::after {
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(99, 230, 232, 0.22) 24%,
    rgba(200, 166, 106, 0.18) 50%,
    rgba(112, 86, 184, 0.18) 76%,
    transparent);
}

.logo { letter-spacing: -0.035em; }
.logo img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(200, 166, 106, 0.18));
}
.auth-logo img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(200, 166, 106, 0.2));
}
.logo span,
.auth-logo span {
  color: #C8A66A;
  text-shadow: none;
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active { color: #EEF4F4; text-shadow: none; }
.nav-link.active::after { background: var(--gold); }

/* Controls: confident geometry, not gaming glow. */
.btn {
  border-radius: 7px;
  letter-spacing: -0.012em;
  transition: transform .22s cubic-bezier(.2,.8,.2,1),
              border-color .22s ease,
              background .22s ease,
              box-shadow .22s ease;
}

.btn-primary,
.btn.primary {
  color: #071013;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 9px 24px rgba(38, 165, 171, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(5, 45, 49, 0.16);
}

.btn-primary:hover,
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(38, 165, 171, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(5, 45, 49, 0.12);
}

.btn-outline,
.btn.outline {
  color: #D8DEE3;
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(218, 228, 236, 0.13);
}

.btn-outline:hover,
.btn.outline:hover {
  color: #F7F9FA;
  border-color: rgba(99, 230, 232, 0.32);
  background: rgba(99, 230, 232, 0.045);
  box-shadow: none;
}

.placard {
  gap: 10px;
  color: #D7C39B;
  background: rgba(200, 166, 106, 0.035);
  border: 1px solid rgba(200, 166, 106, 0.2);
  border-radius: 3px;
  padding: 7px 13px;
  letter-spacing: 0.2em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.placard::before {
  width: 14px;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--gold), rgba(200,166,106,.2));
  box-shadow: none;
}

/* Marketing terminal and display surfaces. */
.hero { padding-top: clamp(78px, 12vh, 140px); }

.hero::before {
  background:
    radial-gradient(circle at 56% 44%, rgba(112, 86, 184, 0.085), transparent 45%),
    radial-gradient(circle at 42% 52%, rgba(99, 230, 232, 0.045), transparent 54%) !important;
  filter: blur(12px);
}

.pfd {
  background:
    linear-gradient(135deg, rgba(255,255,255,.018), transparent 22%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.008) 0 1px, transparent 1px 5px),
    linear-gradient(158deg, #12151A 0%, #0A0C10 58%, #08090C 100%) !important;
  border: 1px solid rgba(218, 228, 236, 0.105) !important;
  border-radius: 16px;
  box-shadow:
    0 58px 130px rgba(0, 0, 0, 0.7),
    0 18px 46px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(0,0,0,.48) !important;
}

.pfd::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,166,106,.58), transparent);
  pointer-events: none;
}

.instrument {
  background: linear-gradient(155deg, rgba(18, 22, 28, 0.88), rgba(8, 10, 14, 0.86)) !important;
  border-color: rgba(218, 228, 236, 0.07) !important;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.instrument .i-label,
.pfd-id,
.pfd-footer { letter-spacing: 0.16em; }
.instrument .i-value { letter-spacing: -0.035em; }
.pfd-status i { box-shadow: 0 0 7px rgba(99,230,232,.4); }

path[stroke="#34D399"] { stroke: #63E6E8 !important; }
stop[stop-color="#34D399"] { stop-color: #63E6E8 !important; }

.firms-strip {
  background: rgba(255,255,255,.012) !important;
  border-color: rgba(218, 228, 236, 0.065) !important;
}

.readout-grid,
.checklist,
.system-card,
.license-card,
.firm-card,
.affiliate-box,
.login-container,
.register-card,
.stat-card,
.card,
.panel,
.trade-form,
.trades-table-wrap,
.calendar-wrap,
.acct-card,
.rules-popup-card,
.modal {
  background:
    linear-gradient(145deg, rgba(255,255,255,.014), transparent 34%),
    linear-gradient(160deg, rgba(17,20,27,.96), rgba(9,11,15,.97)) !important;
  border-color: rgba(218, 228, 236, 0.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.readout-grid { border-radius: 16px; }

.checklist.autopilot {
  border-color: rgba(99, 230, 232, 0.17) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.license-card.featured {
  border-color: rgba(200, 166, 106, 0.36) !important;
  box-shadow:
    0 28px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.license-card.featured::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
  box-shadow: none !important;
}

.system-card::before {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(99,230,232,.42)) !important;
  box-shadow: none;
}

.system-card:hover,
.firm-card:hover,
.license-card:hover,
.stat-card:hover,
.card:hover,
.acct-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 230, 232, 0.16) !important;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.system-card .sys-icon {
  border-color: rgba(99,230,232,.16);
  background: rgba(99,230,232,.055);
}

.runway-cta {
  border-color: rgba(200, 166, 106, 0.19) !important;
  border-radius: 18px;
  background:
    radial-gradient(70% 125% at 50% 0%, rgba(112, 86, 184, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(8, 9, 12, 0.9)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.runway-cta .runway-lights {
  height: 1px;
  background-image: repeating-linear-gradient(90deg,
    rgba(200, 166, 106, 0.72) 0 12px,
    transparent 12px 34px) !important;
  filter: none;
}

/* Comparison and pricing details. */
.filter-btn {
  border-radius: 5px;
  border-color: rgba(218,228,236,.09);
  background: rgba(255,255,255,.012);
}

.filter-btn.active {
  color: #E2CEAA !important;
  border-color: rgba(200, 166, 106, 0.28) !important;
  background: rgba(200, 166, 106, 0.065) !important;
}

.firm-badge,
.card-badge {
  color: #DEC79D !important;
  border-color: rgba(200, 166, 106, 0.28) !important;
  background: #111217 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.firm-card { padding-top: 30px; }

.coupon-wrapper {
  background: rgba(6, 8, 11, 0.72) !important;
  border-color: rgba(200, 166, 106, 0.16) !important;
}

.coupon-code { color: #D7BE91 !important; }

.affiliate-box:hover {
  background: rgba(200, 166, 106, 0.045) !important;
  border-color: rgba(200, 166, 106, 0.28) !important;
}

/* Auth views. */
.login-container,
.register-card {
  border-color: rgba(200, 166, 106, 0.16) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.auth-tape {
  opacity: .65;
  border-color: rgba(200,166,106,.16) !important;
  background-image: repeating-linear-gradient(90deg,
    rgba(200,166,106,.18) 0 1px,
    transparent 1px 18px) !important;
}

.field input,
.field select,
.field textarea,
.trades-filter input,
.search-input {
  color: var(--text);
  background: rgba(5, 7, 10, 0.76) !important;
  border-color: rgba(218, 228, 236, 0.09) !important;
  border-radius: 5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.trades-filter input:focus,
.search-input:focus {
  border-color: rgba(99, 230, 232, 0.44) !important;
  box-shadow: 0 0 0 3px rgba(99, 230, 232, 0.065) !important;
}

.btn-google:hover {
  border-color: rgba(200, 166, 106, 0.22) !important;
  background: rgba(200, 166, 106, 0.03) !important;
}

#plan-badge {
  color: #181208 !important;
  background: linear-gradient(135deg, #E4D0AA, #B68E52) !important;
  box-shadow: 0 8px 20px rgba(142,112,66,.16) !important;
}

/* Dashboard: executive telemetry, high information density. */
.ticker-bar {
  height: 30px;
  background: rgba(8, 9, 12, 0.94);
  border-bottom-color: rgba(218, 228, 236, 0.065);
}

.ticker-label {
  color: #171108;
  background: linear-gradient(135deg, #DCC69D, #B58D52);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.25);
}

.side-drawer {
  background:
    linear-gradient(155deg, rgba(255,255,255,.015), transparent 28%),
    linear-gradient(165deg, #12151B 0%, #080A0D 100%);
  border-right-color: rgba(218, 228, 236, 0.09);
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.58);
}

.tab { border-radius: 5px; }
.tab.active {
  color: #EAF4F4;
  background: linear-gradient(90deg, rgba(99, 230, 232, 0.075), rgba(255,255,255,.008));
  border-left-color: #63E6E8;
  box-shadow: inset 1px 0 0 rgba(99,230,232,.2);
}

.market-status,
.badge.live {
  border-color: rgba(99,230,232,.18);
  background: rgba(99,230,232,.055);
}

.s-value.pos,
.trade-pnl.pos { text-shadow: none !important; }

.gauge-wrap svg,
.detailed-stats-grid svg {
  filter: drop-shadow(0 0 4px rgba(99, 230, 232, 0.13));
}

.cal-day.today,
.cal-day.selected,
.cal-day.win {
  background: rgba(99, 230, 232, 0.055) !important;
  border-color: rgba(99,230,232,.16) !important;
}

.btn-payout.eligible,
.cal-day.payout-day {
  color: #D7BE91;
  border-color: rgba(200,166,106,.28) !important;
  background: rgba(200,166,106,.055) !important;
}

.modal-overlay,
.rules-overlay-bg,
.drawer-scrim {
  background: rgba(3, 4, 7, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #07080B; }
::-webkit-scrollbar-thumb {
  background: #303640;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #4D5863; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 680px) {
  body::before { background-size: 48px 48px; opacity: 0.08; }
  .nav-container { min-height: 60px; }
  .hero { padding-top: 64px; }
  .pfd {
    border-radius: 12px;
    box-shadow: 0 28px 70px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.045) !important;
  }
  .hero-ctas .btn,
  .pricing-btn,
  .action-btn,
  .auth-wrap .btn { width: 100%; }
}
