@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

body {
  background: #0c0c0c;
  color: #e8e8e8;
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(90, 179, 110, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(90, 179, 110, 0.04), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

/* Landing water-grid canvas replaces static CSS lattice */
body.has-water-grid {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(90, 179, 110, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(90, 179, 110, 0.04), transparent 50%);
  background-size: auto, auto;
}

.water-grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  display: none;
}

body.has-water-grid .water-grid-canvas {
  display: block;
}

a { color: #5a9de0; text-decoration: none; }
a:hover { text-decoration: underline; color: #7ab0e8; }

/* ── AUTH / SETUP SCREENS ── */
/* Hidden by default — only .is-open shows (prevents login covering landing) */
.setup-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 2; /* above fixed water grid */
}

.setup-screen.is-open {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.setup-tilt-wrap {
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}

.setup-box {
  background: linear-gradient(165deg, #1c1c1c 0%, #151515 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 2.25rem 2rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(90, 179, 110, 0.04);
  position: relative;
  overflow: hidden;
  /* flat = whole card transforms as one layer so clicks match the visual */
  transform-style: flat;
  will-change: transform;
  transition: box-shadow 0.25s ease;
}

.setup-box.is-tilting {
  transition: box-shadow 0.15s ease;
}

.setup-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5ab36e 40%, #5ab36e 60%, transparent);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}

/* No glare/shine overlay on tilt cards */

.setup-box > * {
  position: relative;
  z-index: 1;
}

/* Interactive controls always sit above glare and receive clicks */
.setup-box .setup-btn,
.setup-box .setup-input,
.setup-box .template-link,
.setup-box .settings-btn,
.setup-box a,
.setup-box label {
  position: relative;
  z-index: 3;
  pointer-events: auto !important;
}

.setup-btn,
.setup-input,
.template-link {
  touch-action: manipulation;
  cursor: pointer;
}

.setup-input {
  cursor: text;
}

@media (prefers-reduced-motion: reduce) {
  .setup-box,
  .setup-box.is-tilting {
    transition: none !important;
    transform: none !important;
  }
}

@media (hover: none) {
  .setup-box,
  .landing-preview {
    transform: none !important;
  }
}

.setup-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.setup-logo svg {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
}

.setup-title {
  font-size: 20px;
  font-weight: 500;
  color: #f2f2f2;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.01em;
}

.setup-sub {
  font-size: 12px;
  color: #7a7a7a;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  text-align: center;
}

.setup-label {
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.setup-input {
  width: 100%;
  background: #0e0e0e;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #eee;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.setup-input:focus {
  border-color: rgba(90, 179, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(90, 179, 110, 0.08);
}

.setup-input::placeholder { color: #3a3a3a; }

.setup-btn {
  width: 100%;
  background: #eee;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.setup-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.setup-btn:active { transform: scale(0.99); }

.setup-btn:disabled {
  background: #2a2a2a;
  color: #555;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.setup-btn-google {
  background: #f5f5f5;
  margin-top: 0;
}

.setup-btn-google:hover { background: #fff; }

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.setup-btn-secondary {
  background: transparent;
  color: #c8c8c8;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  margin-top: 4px;
}

.setup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #eee;
  box-shadow: none;
}

.setup-btn-secondary:disabled {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.06);
  color: #444;
}

.auth-panel {
  background: rgba(0, 0, 0, 0.28);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.15rem 0;
  color: #555;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.setup-error {
  font-size: 11px;
  color: #d07070;
  margin-top: 12px;
  display: none;
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(196, 92, 92, 0.08);
  border: 0.5px solid rgba(196, 92, 92, 0.2);
  border-radius: 8px;
}

.setup-ok {
  font-size: 11px;
  color: #5ab36e;
  margin-top: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(90, 179, 110, 0.08);
  border: 0.5px solid rgba(90, 179, 110, 0.2);
  border-radius: 8px;
}

.config-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(196, 92, 92, 0.15);
  color: #c45c5c;
  border-bottom: 0.5px solid rgba(196, 92, 92, 0.3);
  font-size: 11px;
  padding: 10px 16px;
  text-align: center;
}

.db-pick-btn {
  font-size: 12px !important;
  margin-top: 8px !important;
}

.setup-help {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.setup-help-title {
  font-size: 10px;
  color: #5a5a5a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-align: center;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.setup-step-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 11px;
  color: #8a8a8a;
  line-height: 1.5;
}

.step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(90, 179, 110, 0.12);
  color: #5ab36e;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-step {
  font-size: 11px;
  color: #6a6a6a;
  margin-bottom: 6px;
  line-height: 1.5;
}

.setup-step span { color: #7a7a7a; }

.template-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 12px;
  color: #c8c8c8 !important;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.template-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eee !important;
}

.auth-footer-note {
  margin-top: 1rem;
  font-size: 11px;
  color: #5a5a5a;
  line-height: 1.55;
  text-align: center;
}

/* ── DASHBOARD SHELL ── */
.dashboard {
  display: none;
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.dashboard.is-open {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  background: rgba(22, 22, 22, 0.85);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 6;
}

.sync-status {
  font-size: 11px;
  color: #7a7a7a;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 12px;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  transition: background 0.3s;
}

.sync-dot.live { background: #5ab36e; box-shadow: 0 0 6px rgba(90, 179, 110, 0.5); }
.sync-dot.error { background: #c45c5c; }

.settings-btn {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  position: relative;
  z-index: 7;
  pointer-events: auto;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.settings-btn:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Account settings panel ── */
.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease,
    background 0.35s ease,
    backdrop-filter 0.4s ease;
}

.account-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.account-panel {
  width: min(420px, 100%);
  max-height: min(86vh, 640px);
  overflow-y: auto;
  background: linear-gradient(165deg, #1c1c1c 0%, #141414 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(90, 179, 110, 0.06);
  padding: 1.35rem 1.35rem 1.15rem;
  transform: translateY(28px) scale(0.88);
  opacity: 0;
  filter: blur(6px);
  will-change: transform, opacity, filter;
}

.account-overlay.is-open .account-panel {
  animation: account-panel-pop 0.52s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

/* Closing: reverse ease (class removed mid-animation handled via transition) */
.account-overlay:not(.is-open) .account-panel {
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
  transform: translateY(16px) scale(0.94);
  opacity: 0;
  filter: blur(4px);
}

@keyframes account-panel-pop {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.86);
    filter: blur(8px);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(90, 179, 110, 0);
  }
  55% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(90, 179, 110, 0.2),
      0 0 40px rgba(90, 179, 110, 0.12);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(90, 179, 110, 0.08);
  }
}

/* Stagger inner content on open */
.account-overlay.is-open .account-panel-header,
.account-overlay.is-open .account-section {
  animation: account-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-overlay.is-open .account-panel-header {
  animation-delay: 0.06s;
}

.account-overlay.is-open .account-section:nth-of-type(1) {
  animation-delay: 0.12s;
}

.account-overlay.is-open .account-section:nth-of-type(2) {
  animation-delay: 0.18s;
}

.account-overlay.is-open .account-section:nth-of-type(3) {
  animation-delay: 0.24s;
}

@keyframes account-item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.15rem;
}

.account-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5ab36e;
  margin-bottom: 4px;
}

.account-panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: -0.02em;
}

.account-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #aaa;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}

.account-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.account-close:active {
  transform: scale(0.96);
}

.account-section {
  padding: 0.85rem 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.account-section-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 0.65rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0.35rem 0;
  font-size: 12px;
}

.account-row-key {
  color: #7a7a7a;
  flex-shrink: 0;
}

.account-row-val {
  color: #e0e0e0;
  text-align: right;
  word-break: break-all;
}

.account-row-val.is-ok {
  color: #5ab36e;
}

.account-row-val.is-warn {
  color: #d4a040;
}

.account-row-val.is-bad {
  color: #c45c5c;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.85rem;
}

.account-action-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #ddd;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.account-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.account-action-btn:active {
  transform: scale(0.99);
}

.account-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.account-action-danger {
  color: #e08a8a;
  border-color: rgba(196, 92, 92, 0.25);
}

.account-action-danger:hover {
  color: #f0a0a0;
  background: rgba(196, 92, 92, 0.1);
  border-color: rgba(196, 92, 92, 0.4);
}

.account-db-picker {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  animation: account-slide-in 0.22s ease;
}

.account-db-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9a9a9a;
  margin-bottom: 0.55rem;
}

.account-text-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #5ab36e;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.account-text-btn:hover {
  text-decoration: underline;
}

.account-db-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.account-db-list .db-pick-btn {
  width: 100%;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.account-db-list .db-pick-btn:hover {
  background: rgba(90, 179, 110, 0.12);
  border-color: rgba(90, 179, 110, 0.35);
}

.account-error {
  margin-top: 0.65rem;
  font-size: 11px;
  color: #e08a8a;
}

.account-hint {
  margin-top: 0.75rem;
  font-size: 10px;
  line-height: 1.45;
  color: #5a5a5a;
}

.account-section-footer {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  padding-bottom: 0.15rem;
}

.account-logout-btn {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #111;
  background: #e8e8e8;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.account-logout-btn:hover {
  background: #fff;
}

.account-logout-btn:active {
  transform: scale(0.99);
}

@keyframes account-slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-overlay,
  .account-panel,
  .account-db-picker,
  .account-overlay.is-open .account-panel,
  .account-overlay.is-open .account-panel-header,
  .account-overlay.is-open .account-section {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }
  .account-overlay.is-open .account-panel {
    transform: none;
    opacity: 1;
  }
  .account-overlay.is-open .account-panel-header,
  .account-overlay.is-open .account-section {
    opacity: 1;
    transform: none;
  }
}

body.theme-light .account-overlay {
  background: rgba(20, 24, 28, 0.35);
}

body.theme-light .account-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f4f6f8 100%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

body.theme-light .account-panel-title {
  color: #111;
}

body.theme-light .account-close {
  color: #555;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .account-close:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}

body.theme-light .account-section {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .account-section-label {
  color: #888;
}

body.theme-light .account-row-key {
  color: #777;
}

body.theme-light .account-row-val {
  color: #222;
}

body.theme-light .account-action-btn {
  color: #333;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .account-action-btn:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
}

body.theme-light .account-action-danger {
  color: #b54545;
  border-color: rgba(180, 70, 70, 0.25);
}

body.theme-light .account-db-picker {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .account-db-list .db-pick-btn {
  color: #222;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .account-hint {
  color: #888;
}

body.theme-light .account-logout-btn {
  color: #fff;
  background: #1a1a1a;
}

body.theme-light .account-logout-btn:hover {
  background: #000;
}

/* Theme toggle — moon (dark) / sun (light), dashboard header only */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c8c8c8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  position: relative;
  z-index: 7;
  pointer-events: auto;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle .theme-icon {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

/* Dark mode (default): show moon */
.theme-toggle .theme-icon-moon {
  display: block;
}

/* Light mode: show sun */
body.theme-light .theme-toggle .theme-icon-sun {
  display: block;
}

body.theme-light .theme-toggle .theme-icon-moon {
  display: none;
}

/* ── LIGHT THEME (dashboard app shell only) ── */
body.theme-light {
  background: #eef1f4;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(90, 179, 110, 0.12), transparent 55%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  color: #1a1a1a;
}

body.theme-light .dash-header {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Logo: PULSE reads black on light header; PNL stays green */
body.theme-light .dash-logo-pulse {
  fill: #111111 !important;
}

body.theme-light .dash-logo-pnl {
  fill: #5ab36e !important;
}

body.theme-light .dash-logo-tick {
  stroke: #111111;
  opacity: 0.2;
}

body.theme-light .session-clock,
body.theme-light .sync-status {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #555;
}

body.theme-light .settings-btn {
  color: #555;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .settings-btn:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}

body.theme-light .theme-toggle {
  color: #444;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .theme-toggle:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.07);
}

body.theme-light .nav-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .nav-btn {
  color: #777;
}

body.theme-light .nav-btn.active {
  background: #eef1f4;
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(90, 179, 110, 0.35);
}

body.theme-light .nav-btn:hover:not(.active) {
  color: #333;
}

body.theme-light .page-heading,
body.theme-light .trades-page-label {
  color: #888;
}

body.theme-light .card,
body.theme-light .chart-box,
body.theme-light .trade-log,
body.theme-light .trade-review-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.theme-light .card:hover,
body.theme-light .trade-review-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.theme-light .card-label,
body.theme-light .chart-title,
body.theme-light .trade-info-label,
body.theme-light .grade-label {
  color: #888;
}

body.theme-light .card-value,
body.theme-light .trade-review-name,
body.theme-light .trade-info-value,
body.theme-light .donut-center .big {
  color: #141414;
}

body.theme-light .card-sub,
body.theme-light .trade-review-date,
body.theme-light .donut-center .small {
  color: #888;
}

body.theme-light .trade-log th {
  color: #888;
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .trade-log td {
  color: #444;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.theme-light .trade-log tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light .empty,
body.theme-light .trade-review-empty,
body.theme-light .trade-screenshot-empty {
  color: #999;
}

body.theme-light .trade-review-empty {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .trade-review-body {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .trade-info-box,
body.theme-light .trade-screenshot-wrap {
  background: #f6f7f9;
  border-color: rgba(0, 0, 0, 0.07);
}

body.theme-light .grade-description {
  color: #666;
}

body.theme-light .trade-chevron {
  color: #999;
}

body.theme-light .site-footer {
  color: #999;
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .footer-dot {
  color: #ccc;
}

body.theme-light .footer-discord {
  color: #888 !important;
}

body.theme-light .footer-discord:hover {
  color: #5865f2 !important;
}

body.theme-light .badge.flat {
  background: rgba(0, 0, 0, 0.06);
  color: #777;
}

/* Chart.js canvas sits on light cards — axis text is drawn by JS; soft override via filter not needed */

.session-clock {
  font-size: 11px;
  color: #9a9a9a;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.session-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.session-pip.active {
  background: #5ab36e;
  animation: sessionPulse 1.8s ease-out infinite;
}

.session-pip.pre { background: #d4a040; }
.session-pip.closed { background: #2e2e2e; border: 1px solid #3a3a3a; }

@keyframes sessionPulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 179, 110, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(90, 179, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 179, 110, 0); }
}

/* NAV */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.nav-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.page-heading {
  font-size: 11px;
  color: #5a5a5a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Phase-1 modular layout presets */
.layout-picker {
  position: relative;
  z-index: 5;
}

.layout-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.layout-picker-btn:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.layout-picker-btn[aria-expanded='true'] {
  color: #e8e8e8;
  border-color: rgba(90, 179, 110, 0.4);
  background: rgba(90, 179, 110, 0.08);
}

.layout-picker-btn[aria-expanded='true'] .layout-picker-chevron {
  transform: rotate(180deg);
}

.layout-picker-chevron {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.7;
  flex-shrink: 0;
}

.layout-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: #1a1a1a;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
  z-index: 15;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.layout-picker-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.layout-picker-menu[hidden] {
  display: none !important;
}

.layout-picker-menu.is-open[hidden] {
  display: block !important;
}

.layout-picker-hint {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5a5a;
  padding: 8px 10px 4px;
}

.layout-picker-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  color: #c8c8c8;
  transition: background 0.12s, color 0.12s;
}

.layout-picker-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.layout-picker-item.is-selected {
  background: rgba(90, 179, 110, 0.12);
  color: #e8e8e8;
}

.layout-picker-item-title {
  font-size: 12px;
  font-weight: 500;
}

.layout-picker-item-desc {
  font-size: 10px;
  color: #666;
}

.layout-picker-item.is-selected .layout-picker-item-desc {
  color: #7a9a80;
}

/* Widget grid + edit / drag (iOS-style rearrange) */
.dash-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.dash-tile {
  position: relative;
  min-width: 0;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.dash-tile-full {
  grid-column: 1 / -1;
}

.dash-tile-half {
  grid-column: span 1;
}

.dash-tile.chart-box,
.dash-tile.trade-log {
  margin-bottom: 0;
}

/* Stats row stays a 4-col card grid inside a full tile */
.dash-tile.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.dash-tile-handle {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  font-size: 12px;
  letter-spacing: -2px;
  color: #5ab36e;
  background: rgba(12, 12, 12, 0.85);
  border: 0.5px solid rgba(90, 179, 110, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
  line-height: 1.2;
}

.dash-edit-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  font-size: 11px;
  color: #a8d4b0;
  background: rgba(90, 179, 110, 0.1);
  border: 0.5px solid rgba(90, 179, 110, 0.28);
  border-radius: 10px;
}

.dash-edit-banner:not([hidden]) {
  display: flex;
}

.dash-edit-done-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #0c0c0c;
  background: #5ab36e;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.dash-edit-done-inline:hover {
  filter: brightness(1.08);
}

.dash-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dash-edit-btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  flex-shrink: 0;
}

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

.dash-edit-btn:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.dash-edit-btn.is-active {
  color: #0c0c0c;
  background: #5ab36e;
  border-color: #5ab36e;
}

/* Edit mode: highlight + jiggle (iOS home screen vibe) */
#dashboard-page.dash-edit-mode .dash-tile {
  cursor: grab;
  outline: 1.5px dashed rgba(90, 179, 110, 0.45);
  outline-offset: 3px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(90, 179, 110, 0.12);
  animation: dash-tile-jiggle 0.28s ease-in-out infinite;
}

#dashboard-page.dash-edit-mode .dash-tile:nth-child(2n) {
  animation-delay: 0.05s;
}

#dashboard-page.dash-edit-mode .dash-tile:nth-child(3n) {
  animation-delay: 0.1s;
}

#dashboard-page.dash-edit-mode .dash-tile-handle {
  display: block;
}

#dashboard-page.dash-edit-mode .dash-tile.dash-dragging {
  animation: none !important;
  cursor: grabbing;
  opacity: 0.75;
  outline-color: #5ab36e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(90, 179, 110, 0.5);
  z-index: 8;
  transform: scale(1.03);
}

/* Pause jiggle while dragging / FLIP so transform animations stay clean */
#dashboard-page.dash-edit-mode.is-dragging-tile .dash-tile,
#dashboard-page.dash-edit-mode .dash-tile.dash-flipping {
  animation: none !important;
}

#dashboard-page.dash-edit-mode .dash-tile.dash-flipping {
  z-index: 3;
  will-change: transform;
  pointer-events: none;
}

#dashboard-page.dash-edit-mode .dash-tile.dash-drop-target {
  outline-color: rgba(90, 179, 110, 0.85);
  background: rgba(90, 179, 110, 0.04);
}

@keyframes dash-tile-jiggle {
  0%,
  100% {
    transform: rotate(-0.4deg);
  }
  50% {
    transform: rotate(0.4deg);
  }
}

/* Widget visibility by preset */
#dashboard-page.layout-compact [data-widget='win_loss'],
#dashboard-page.layout-compact [data-widget='asset_overview'],
#dashboard-page.layout-compact [data-widget='trade_log'] {
  display: none !important;
}

#dashboard-page.layout-analysis [data-widget='trade_log'] {
  display: none !important;
}

/* Compact: give equity more room */
#dashboard-page.layout-compact [data-widget='equity'] .chart-wrap {
  height: 280px;
}

#dashboard-page.layout-analysis [data-widget='equity'] .chart-wrap {
  height: 240px;
}

@media (max-width: 900px) {
  .dash-widgets-grid {
    grid-template-columns: 1fr;
  }
  .dash-tile-half {
    grid-column: 1 / -1;
  }
  .dash-tile.cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.theme-light .layout-picker-btn {
  color: #555;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .layout-picker-btn:hover,
body.theme-light .layout-picker-btn[aria-expanded='true'] {
  color: #111;
  background: rgba(90, 179, 110, 0.08);
  border-color: rgba(90, 179, 110, 0.35);
}

body.theme-light .layout-picker-menu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body.theme-light .layout-picker-item {
  color: #333;
}

body.theme-light .layout-picker-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

body.theme-light .layout-picker-item.is-selected {
  background: rgba(90, 179, 110, 0.12);
  color: #111;
}

body.theme-light .layout-picker-item-desc {
  color: #888;
}

body.theme-light .dash-edit-btn {
  color: #555;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .dash-edit-btn:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}

body.theme-light .dash-edit-btn.is-active {
  color: #fff;
  background: #1a1a1a;
  border-color: #1a1a1a;
}

body.theme-light .dash-edit-banner {
  color: #2a5a35;
  background: rgba(90, 179, 110, 0.12);
  border-color: rgba(90, 179, 110, 0.3);
}

body.theme-light .dash-tile-handle {
  background: rgba(255, 255, 255, 0.95);
  color: #3a8a4a;
}

@media (prefers-reduced-motion: reduce) {
  .layout-picker-menu,
  .layout-picker-chevron {
    transition: none !important;
  }
  #dashboard-page.dash-edit-mode .dash-tile {
    animation: none !important;
  }
}

.share-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.12s;
}

.share-card-btn:hover {
  color: #e8e8e8;
  background: rgba(90, 179, 110, 0.1);
  border-color: rgba(90, 179, 110, 0.35);
}

.share-card-btn:active {
  transform: scale(0.97);
}

/* Share card modal */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.35s ease, backdrop-filter 0.4s ease;
}

.share-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.share-modal {
  width: min(560px, 100%);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  background: linear-gradient(165deg, #1c1c1c 0%, #141414 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.25rem 1.1rem;
  transform: translateY(20px) scale(0.94);
  opacity: 0;
}

.share-overlay.is-open .share-modal {
  animation: account-panel-pop 0.48s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

.share-overlay:not(.is-open) .share-modal {
  transition: transform 0.2s ease, opacity 0.18s ease;
}

.share-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.share-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5ab36e;
  margin-bottom: 4px;
}

.share-modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: -0.02em;
}

.share-preview-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0c;
  line-height: 0;
}

.share-preview-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.share-action-primary,
.share-action-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.share-action-primary {
  color: #111;
  background: #e8e8e8;
  border: none;
  flex: 1 1 auto;
  min-width: 120px;
}

.share-action-primary:hover {
  background: #fff;
}

.share-action-secondary {
  color: #ddd;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  flex: 1 1 auto;
  min-width: 100px;
}

.share-action-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.share-action-primary:active,
.share-action-secondary:active {
  transform: scale(0.98);
}

.share-status {
  margin-top: 0.65rem;
  font-size: 11px;
  color: #5ab36e;
}

.share-status.is-error {
  color: #e08a8a;
}

.share-status.is-ok {
  color: #5ab36e;
}

.share-hint {
  margin-top: 0.55rem;
  font-size: 10px;
  color: #5a5a5a;
  line-height: 1.4;
}

body.theme-light .share-card-btn {
  color: #555;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .share-card-btn:hover {
  color: #111;
  background: rgba(90, 179, 110, 0.1);
  border-color: rgba(90, 179, 110, 0.35);
}

body.theme-light .share-modal {
  background: linear-gradient(165deg, #fff 0%, #f4f6f8 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .share-modal-title {
  color: #111;
}

body.theme-light .share-action-primary {
  color: #fff;
  background: #1a1a1a;
}

body.theme-light .share-action-secondary {
  color: #333;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .share-hint {
  color: #888;
}

@media (prefers-reduced-motion: reduce) {
  .share-overlay.is-open .share-modal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.nav-toggle {
  display: flex;
  gap: 4px;
  background: rgba(22, 22, 22, 0.9);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.nav-btn {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 7px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s;
}

.nav-btn.active {
  background: #242424;
  color: #eee;
  box-shadow: inset 0 0 0 1px rgba(90, 179, 110, 0.2);
}

.nav-btn:hover:not(.active) { color: #aaa; }

/* PAGES */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.2s ease; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* STATS CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.card {
  background: linear-gradient(160deg, #1a1a1a 0%, #151515 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-label {
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-value {
  font-size: 26px;
  font-weight: 500;
  color: #f0f0f0;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.card-value.is-counting {
  text-shadow: 0 0 18px rgba(90, 179, 110, 0.2);
}

.card-enter {
  animation: cardEnter 0.45s ease both;
}

.panel-enter {
  animation: panelEnter 0.5s ease both;
}

.trade-row-enter {
  animation: rowEnter 0.35s ease both;
}

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

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rowEnter {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card-sub {
  font-size: 11px;
  color: #5a5a5a;
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

.badge.up { background: rgba(90, 179, 110, 0.12); color: #5ab36e; }
.badge.down { background: rgba(196, 92, 92, 0.12); color: #c45c5c; }
.badge.flat { background: rgba(120, 120, 120, 0.1); color: #666; }

.chart-box {
  background: linear-gradient(160deg, #1a1a1a 0%, #151515 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 14px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 12px;
  font-weight: 500;
  color: #9a9a9a;
  border-left: 2px solid #5ab36e;
  padding-left: 10px;
  letter-spacing: 0.04em;
}

/* Asset overview picker (donut) */
.asset-overview-header {
  gap: 10px;
  flex-wrap: wrap;
}

.asset-picker {
  position: relative;
  z-index: 4;
  margin-left: auto;
}

.asset-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  max-width: 180px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.asset-picker-btn:hover {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.asset-picker-btn[aria-expanded='true'] {
  color: #e8e8e8;
  border-color: rgba(90, 179, 110, 0.4);
  background: rgba(90, 179, 110, 0.08);
}

.asset-picker-btn[aria-expanded='true'] .asset-picker-chevron {
  transform: rotate(180deg);
}

.asset-picker-chevron {
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.7;
}

#assetPickerLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(220px, 70vw);
  max-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 12;
}

.asset-picker-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.asset-picker-menu[hidden] {
  display: none !important;
}

.asset-picker-menu.is-open[hidden] {
  display: flex !important;
}

.asset-picker-hint {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a5a;
  padding: 10px 12px 6px;
}

.asset-picker-list {
  overflow-y: auto;
  max-height: 200px;
  padding: 0 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #c8c8c8;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.asset-picker-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.asset-picker-item.is-selected {
  background: rgba(90, 179, 110, 0.12);
  color: #e8e8e8;
}

.asset-picker-item:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.asset-picker-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
}

.asset-picker-item.is-selected .asset-picker-check {
  background: #5ab36e;
  border-color: #5ab36e;
  color: #0c0c0c;
}

.asset-picker-count {
  margin-left: auto;
  font-size: 10px;
  color: #666;
}

body.theme-light .asset-picker-btn {
  color: #666;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .asset-picker-btn:hover,
body.theme-light .asset-picker-btn[aria-expanded='true'] {
  color: #111;
  background: rgba(90, 179, 110, 0.08);
  border-color: rgba(90, 179, 110, 0.35);
}

body.theme-light .asset-picker-menu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body.theme-light .asset-picker-item {
  color: #333;
}

body.theme-light .asset-picker-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

body.theme-light .asset-picker-item.is-selected {
  background: rgba(90, 179, 110, 0.12);
  color: #111;
}

body.theme-light .asset-picker-check {
  border-color: rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .asset-picker-menu,
  .asset-picker-chevron {
    transition: none !important;
  }
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bottom-row .chart-box { margin-bottom: 0; }
.bottom-row .chart-wrap { height: 160px; }

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center .big {
  font-size: 20px;
  font-weight: 500;
  color: #eee;
  transition: color 0.2s;
}

.donut-center .small {
  font-size: 10px;
  color: #5a5a5a;
  margin-top: 2px;
}

.trade-log {
  background: linear-gradient(160deg, #1a1a1a 0%, #151515 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-top: 14px;
  overflow-x: auto;
}

.trade-log table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.trade-log th {
  text-align: left;
  color: #6a6a6a;
  font-weight: 400;
  padding: 8px 8px 10px 0;
  letter-spacing: 0.06em;
  font-size: 10px;
  text-transform: uppercase;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.trade-log td {
  padding: 11px 8px 11px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
  color: #aaa;
}

.trade-log tbody tr {
  transition: background 0.12s;
}

.trade-log tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.trade-log tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag.nq { background: rgba(55, 138, 221, 0.15); color: #5a9de0; }
.tag.gc { background: rgba(186, 117, 23, 0.15); color: #d4a040; }
.tag.long { background: rgba(90, 179, 110, 0.12); color: #5ab36e; }
.tag.short { background: rgba(196, 92, 92, 0.12); color: #c45c5c; }
.tag.win { background: rgba(90, 179, 110, 0.12); color: #5ab36e; }
.tag.loss { background: rgba(196, 92, 92, 0.12); color: #c45c5c; }
.tag.breakeven { background: rgba(120, 120, 120, 0.1); color: #666; }

.pnl-pos { color: #5ab36e; }
.pnl-neg { color: #c45c5c; }

.empty {
  color: #4a4a4a;
  font-size: 12px;
  text-align: center;
  padding: 2.5rem 1rem;
  line-height: 1.6;
}

/* TRADES REVIEW */
.trades-page-label {
  font-size: 11px;
  color: #5a5a5a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.trade-review-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trade-review-card {
  background: linear-gradient(160deg, #1a1a1a 0%, #151515 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.trade-review-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.trade-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
}

.trade-review-name {
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
}

.trade-review-date {
  font-size: 11px;
  color: #5a5a5a;
  margin-top: 3px;
}

.trade-review-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trade-pnl-sm {
  font-size: 13px;
  font-weight: 500;
}

.trade-chevron {
  font-size: 10px;
  color: #555;
  transition: transform 0.2s;
}

.trade-chevron.open { transform: rotate(180deg); }

.trade-review-body {
  display: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}

.trade-review-body.open { display: block; }

.trade-body-inner { padding: 1.35rem 1.4rem 1.5rem; }

.grade-block { margin-bottom: 1.2rem; }

.grade-label {
  font-size: 10px;
  color: #5a5a5a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.grade-box {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 12px;
  border: 1.5px solid;
}

.grade-ap { background: rgba(90, 179, 110, 0.1); border-color: rgba(90, 179, 110, 0.3); color: #5ab36e; }
.grade-a  { background: rgba(90, 179, 110, 0.08); border-color: rgba(90, 179, 110, 0.2); color: #5ab36e; }
.grade-bp { background: rgba(90, 200, 150, 0.08); border-color: rgba(90, 200, 150, 0.2); color: #5acc96; }
.grade-b  { background: rgba(212, 160, 64, 0.08); border-color: rgba(212, 160, 64, 0.25); color: #d4a040; }
.grade-cp { background: rgba(212, 130, 50, 0.08); border-color: rgba(212, 130, 50, 0.2); color: #d4802a; }
.grade-c  { background: rgba(196, 92, 92, 0.08); border-color: rgba(196, 92, 92, 0.2); color: #c45c5c; }
.grade-d  { background: rgba(196, 60, 60, 0.1); border-color: rgba(196, 60, 60, 0.3); color: #c43c3c; }
.grade-none { background: rgba(80, 80, 80, 0.1); border-color: rgba(80, 80, 80, 0.2); color: #555; }

.grade-description {
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.6;
  max-width: 480px;
}

.trade-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.1rem;
}

.trade-info-box {
  background: rgba(0, 0, 0, 0.3);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.trade-info-label {
  font-size: 10px;
  color: #5a5a5a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.trade-info-value {
  font-size: 15px;
  font-weight: 500;
  color: #ddd;
}

.trade-info-value.long { color: #5ab36e; }
.trade-info-value.short { color: #c45c5c; }
.trade-info-value.pnl-pos { color: #5ab36e; }
.trade-info-value.pnl-neg { color: #c45c5c; }

.trade-screenshot-wrap {
  margin-top: 1.2rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 0.5px dashed rgba(255, 255, 255, 0.08);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.trade-screenshot-wrap:hover {
  border-color: rgba(90, 179, 110, 0.25);
}

.trade-screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.trade-screenshot-empty {
  font-size: 11px;
  color: #4a4a4a;
}

.trade-review-empty {
  color: #4a4a4a;
  font-size: 12px;
  text-align: center;
  padding: 3.5rem 1rem;
  line-height: 1.6;
  background: rgba(22, 22, 22, 0.6);
  border: 0.5px dashed rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

/* FOOTER */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 2rem;
  padding: 1.25rem 0.5rem 0.5rem;
  font-size: 10px;
  color: #4a4a4a;
  letter-spacing: 0.04em;
  border-top: 0.5px solid rgba(255, 255, 255, 0.04);
}

.site-footer-auth {
  margin-top: 1.5rem;
  padding: 0;
  border-top: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.footer-dot {
  color: #333;
  user-select: none;
}

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5a5a5a !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.footer-discord:hover {
  color: #7289da !important;
}

.footer-discord-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .dashboard { padding: 1rem 0.85rem 2rem; }
  .dash-header { padding: 0.55rem 0.65rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-value { font-size: 20px; }
  .chart-wrap { height: 160px; }
  .bottom-row { grid-template-columns: 1fr; }
  .bottom-row .chart-wrap { height: 140px; }
  .trade-log table { font-size: 11px; }
  .trade-log th, .trade-log td { padding: 8px 6px 8px 0; }
  .setup-box { padding: 1.75rem 1.35rem; }
}

@media (max-width: 600px) {
  .trade-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cards { gap: 8px; }
  .card { padding: 0.85rem; }
  .card-value { font-size: 18px; }
  .header-right { width: 100%; justify-content: flex-start; }
}

/* ══════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════ */
.landing,
#landingScreen {
  display: none;
  min-height: 100vh;
  padding: 0 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  z-index: 1;
}

.landing.is-open,
#landingScreen.is-open {
  display: block !important;
}

/* ── Landing sky: water grid + stars + shooting stars ── */
.landing-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Only paint while landing is open (parent display:none hides this) */
}

.landing-stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  will-change: opacity;
}

/* Dense far field */
.landing-stars-a {
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 28% 18%, rgba(200, 255, 220, 0.5), transparent),
    radial-gradient(1px 1px at 38% 68%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 48% 22%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 58% 55%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 68% 14%, rgba(200, 255, 220, 0.4), transparent),
    radial-gradient(1px 1px at 78% 72%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 88% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 94% 60%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 12% 78%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 42% 88%, rgba(200, 255, 220, 0.35), transparent),
    radial-gradient(1px 1px at 72% 90%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 22% 55%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 55% 8%, rgba(255, 255, 255, 0.4), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 5.5s ease-in-out infinite alternate;
  opacity: 0.85;
}

/* Mid field — different phase */
.landing-stars-b {
  background-image:
    radial-gradient(1px 1px at 5% 30%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 25% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 35% 48%, rgba(200, 255, 220, 0.4), transparent),
    radial-gradient(1px 1px at 52% 35%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 65% 78%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 82% 18%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(200, 255, 220, 0.35), transparent),
    radial-gradient(1px 1px at 15% 92%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 45% 60%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 75% 45%, rgba(255, 255, 255, 0.25), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 7s ease-in-out infinite alternate-reverse;
  opacity: 0.7;
}

/* Sparse bright gems */
.landing-stars-c {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 70% 25%, rgba(90, 179, 110, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 85% 50%, rgba(200, 255, 220, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 10% 50%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 90%, rgba(90, 179, 110, 0.4), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 4s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes stars-twinkle {
  0% { opacity: calc(0.45 * var(--sky-fade, 1)); }
  50% { opacity: calc(0.9 * var(--sky-fade, 1)); }
  100% { opacity: calc(0.55 * var(--sky-fade, 1)); }
}

/* Below-the-fold: pause meteors so the lower page feels calmer */
.landing-sky.sky-deep .shooting-star {
  animation-play-state: paused;
  opacity: 0 !important;
}

/* Scroll-linked sky drift (vars set from JS) */
.landing-sky {
  --sky-parallax: 0px;
  --sky-fade: 1;
  transform: translate3d(0, var(--sky-parallax), 0);
  will-change: transform, opacity;
}

/* star opacity driven by --sky-fade inside twinkle keyframes */

/* ── Ticker planets (NQ / ES / GC monograms — not official logos) ── */
.sky-planet {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: calc(0.55 * var(--sky-fade, 1));
  will-change: transform;
}

.sky-planet-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow:
    inset -8px -6px 16px rgba(0, 0, 0, 0.45),
    inset 6px 4px 12px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.sky-planet-core::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.35),
    transparent 55%
  );
  pointer-events: none;
}

.sky-planet-label {
  position: relative;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
}

.sky-planet-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148%;
  height: 38%;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}

/* NQ — cool tech blue (Nasdaq vibe, monogram only) */
.sky-planet-nq {
  top: 14%;
  left: 8%;
  width: 72px;
  height: 72px;
  animation: planet-float-a 14s ease-in-out infinite;
}

.sky-planet-nq .sky-planet-core {
  width: 56px;
  height: 56px;
  background:
    radial-gradient(circle at 30% 25%, rgba(160, 210, 255, 0.5), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(40, 80, 160, 0.9), #1a2a4a 70%);
  border: 1px solid rgba(120, 180, 255, 0.35);
}

.sky-planet-nq .sky-planet-label {
  font-size: 13px;
  color: rgba(220, 235, 255, 0.95);
  text-shadow: 0 0 10px rgba(100, 160, 255, 0.5);
}

.sky-planet-nq .sky-planet-ring {
  border-color: rgba(140, 190, 255, 0.28);
  width: 155%;
  height: 36%;
}

/* ES — slate / silver equity */
.sky-planet-es {
  top: 58%;
  right: 6%;
  left: auto;
  width: 58px;
  height: 58px;
  opacity: 0.48;
  animation: planet-float-b 17s ease-in-out infinite;
}

.sky-planet-es .sky-planet-core {
  width: 46px;
  height: 46px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 65% 70%, rgba(70, 75, 90, 0.95), #2a2e38 72%);
  border: 1px solid rgba(200, 205, 215, 0.28);
}

.sky-planet-es .sky-planet-label {
  font-size: 12px;
  color: rgba(230, 232, 238, 0.92);
  text-shadow: 0 0 8px rgba(180, 190, 210, 0.35);
}

/* AC — subtle pink (same simple orb style as ES) */
.sky-planet-ac {
  top: 62%;
  left: 10%;
  width: 54px;
  height: 54px;
  opacity: 0.46;
  animation: planet-float-d 15s ease-in-out infinite;
}

.sky-planet-ac .sky-planet-core {
  width: 44px;
  height: 44px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 220, 235, 0.4), transparent 45%),
    radial-gradient(circle at 65% 70%, rgba(120, 60, 85, 0.9), #3a2432 72%);
  border: 1px solid rgba(230, 160, 190, 0.3);
  box-shadow:
    inset -8px -6px 16px rgba(0, 0, 0, 0.4),
    inset 6px 4px 12px rgba(255, 200, 220, 0.1),
    0 0 22px rgba(200, 120, 160, 0.12);
}

.sky-planet-ac .sky-planet-label {
  font-size: 11px;
  color: rgba(255, 220, 235, 0.92);
  text-shadow: 0 0 8px rgba(220, 140, 175, 0.4);
}

/* GC — warm gold */
.sky-planet-gc {
  top: 28%;
  right: 14%;
  left: auto;
  width: 64px;
  height: 64px;
  opacity: 0.52;
  animation: planet-float-c 12s ease-in-out infinite;
}

.sky-planet-gc .sky-planet-core {
  width: 50px;
  height: 50px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 240, 180, 0.55), transparent 48%),
    radial-gradient(circle at 70% 72%, rgba(140, 90, 20, 0.95), #8a6a20 70%);
  border: 1px solid rgba(230, 190, 80, 0.4);
  box-shadow:
    inset -8px -6px 16px rgba(0, 0, 0, 0.4),
    inset 6px 4px 12px rgba(255, 230, 150, 0.15),
    0 0 28px rgba(200, 150, 40, 0.18);
}

.sky-planet-gc .sky-planet-label {
  font-size: 12px;
  color: rgba(255, 245, 200, 0.95);
  text-shadow: 0 0 10px rgba(220, 170, 50, 0.45);
}

.sky-planet-ring-gc {
  border-color: rgba(230, 190, 80, 0.32);
  width: 150%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(18deg);
}

@keyframes planet-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, 14px, 0); }
}

@keyframes planet-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, -10px, 0); }
}

@keyframes planet-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-8px, 12px, 0) rotate(4deg); }
}

@keyframes planet-float-d {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -12px, 0); }
}

@media (max-width: 700px) {
  .sky-planet-nq {
    width: 52px;
    height: 52px;
    top: 12%;
    left: 4%;
  }
  .sky-planet-nq .sky-planet-core {
    width: 40px;
    height: 40px;
  }
  .sky-planet-nq .sky-planet-label { font-size: 11px; }

  .sky-planet-es {
    width: 44px;
    height: 44px;
    top: 62%;
    right: 4%;
  }
  .sky-planet-es .sky-planet-core {
    width: 36px;
    height: 36px;
  }
  .sky-planet-es .sky-planet-label { font-size: 10px; }

  .sky-planet-ac {
    width: 42px;
    height: 42px;
    top: 68%;
    left: 6%;
  }
  .sky-planet-ac .sky-planet-core {
    width: 34px;
    height: 34px;
  }
  .sky-planet-ac .sky-planet-label { font-size: 10px; }

  .sky-planet-gc {
    width: 48px;
    height: 48px;
    top: 22%;
    right: 8%;
  }
  .sky-planet-gc .sky-planet-core {
    width: 38px;
    height: 38px;
  }
  .sky-planet-gc .sky-planet-label { font-size: 10px; }
}

/* Shooting stars — head leads (left), trail fades behind (right), flies down-left */
.shooting-star {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(230, 255, 240, 0.9) 18%,
    rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.35),
    0 0 12px 2px rgba(90, 179, 110, 0.15);
  opacity: 0;
  transform-origin: left center;
  will-change: transform, opacity;
}

.shooting-star::after {
  content: '';
  position: absolute;
  left: -1px;
  right: auto;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7);
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-38deg) scaleX(0.25);
  }
  4% {
    opacity: 1;
  }
  12% {
    opacity: 1;
    transform: translate3d(-28vw, 22vh, 0) rotate(-38deg) scaleX(1);
  }
  18% {
    opacity: 0;
    transform: translate3d(-42vw, 34vh, 0) rotate(-38deg) scaleX(0.7);
  }
  100% {
    opacity: 0;
    transform: translate3d(-42vw, 34vh, 0) rotate(-38deg) scaleX(0.25);
  }
}

/* Staggered starts — feel organic, not a loop of clones */
.ss-1 {
  top: 8%;
  left: 72%;
  animation: shooting-star 6.5s linear infinite;
  animation-delay: 0.8s;
}

.ss-2 {
  top: 18%;
  left: 92%;
  width: 90px;
  animation: shooting-star 7.8s linear infinite;
  animation-delay: 2.4s;
}

.ss-3 {
  top: 4%;
  left: 55%;
  width: 130px;
  animation: shooting-star 8.2s linear infinite;
  animation-delay: 4.1s;
}

.ss-4 {
  top: 32%;
  left: 85%;
  width: 80px;
  animation: shooting-star 9s linear infinite;
  animation-delay: 1.5s;
}

.ss-5 {
  top: 12%;
  left: 100%;
  width: 100px;
  animation: shooting-star 7.2s linear infinite;
  animation-delay: 5.6s;
}

/* Keep landing content above the fixed sky */
.landing-hero,
.landing-preview-section,
.landing-steps,
.landing-cta-band,
.landing .site-footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .landing-stars,
  .shooting-star,
  .sky-planet,
  .landing-cta-pulse::after,
  .landing-motto-accent.is-typing::after {
    animation: none !important;
  }
  .shooting-star {
    display: none;
  }
  .landing-stars {
    opacity: 0.55;
  }
  .sky-planet {
    opacity: 0.4;
  }
  .landing-cta-pulse::after {
    display: none;
  }
  .landing-sky {
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .landing-session-label {
    max-width: 72px;
  }
  .landing-session {
    padding: 5px 8px 5px 7px;
  }
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0.5rem;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(12,12,12,0.92) 60%, transparent);
  backdrop-filter: blur(8px);
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.landing-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.landing-nav-logo-svg {
  width: 220px;
  height: auto;
  max-width: min(52vw, 240px);
  display: block;
}

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

/* Live session chip in landing nav */
.landing-session {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8a8a8a;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  max-width: min(42vw, 200px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-session-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
}

.landing-session-pip.active {
  background: #5ab36e;
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(90, 179, 110, 0.5);
  animation: sessionPulse 1.8s ease-out infinite;
}

.landing-session-pip.closed {
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
}

.landing-session-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-nav-link {
  font-size: 12px;
  color: #8a8a8a !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.landing-nav-link:hover { color: #e8e8e8 !important; }

.landing-nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #111;
  background: #eee;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  position: relative;
}

.landing-nav-cta:hover { background: #fff; }
.landing-nav-cta:active { transform: scale(0.98); }

/* Soft green pulse ring on primary CTAs only */
.landing-cta-pulse {
  position: relative;
  isolation: isolate;
}

.landing-cta-pulse::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(90, 179, 110, 0.85);
  box-shadow:
    0 0 0 1px rgba(90, 179, 110, 0.25),
    0 0 18px 2px rgba(90, 179, 110, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: cta-pulse-ring 2.1s ease-out infinite;
}

/* Stronger pulse on main Get started buttons; nav Sign in stays subtler */
.landing-btn-primary.landing-cta-pulse::after {
  inset: -6px;
  border-width: 2.5px;
  border-color: rgba(90, 179, 110, 0.95);
  box-shadow:
    0 0 0 2px rgba(90, 179, 110, 0.28),
    0 0 22px 4px rgba(90, 179, 110, 0.45);
  animation-duration: 1.85s;
}

@keyframes cta-pulse-ring {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  55% {
    opacity: 0.35;
    transform: scale(1.14);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

.landing-hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.landing-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #5ab36e;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.landing-motto {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f4f4f4;
  margin-bottom: 1.25rem;
  overflow: visible;
}

.landing-motto-line {
  display: block;
  overflow: visible;
}

.landing-motto-accent {
  color: #5ab36e;
  /* Solid fill — clip/gradient was eating the italic trailing edge (the "d") */
  -webkit-text-fill-color: #5ab36e;
  display: inline-block;
  /* Keep the fun italic lean permanently */
  font-style: italic;
  transform: skewX(-4deg);
  transform-origin: left bottom;
  /* Room for italic overhang so "d" isn't clipped */
  padding-right: 0.22em;
  margin-right: -0.08em;
  overflow: visible;
  min-height: 1.1em;
  white-space: nowrap;
}

/* Blinking caret while typing */
.landing-motto-accent.is-typing::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.05em;
  background: #5ab36e;
  border-radius: 1px;
  animation: motto-caret 0.7s steps(1, end) infinite;
  transform: skewX(4deg); /* cancel parent skew a bit so caret stays upright-ish */
}

.landing-motto-accent.is-typed::after {
  display: none;
}

@keyframes motto-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.landing-sub {
  font-size: 14px;
  color: #7a7a7a;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.landing-btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #0c0c0c;
  background: #eee;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  position: relative;
}

.landing-btn-primary:hover {
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.landing-btn-primary:active { transform: scale(0.98); }

.landing-btn-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #ccc !important;
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.landing-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
  color: #fff !important;
}

/* Dashboard mock */
.landing-preview-section {
  padding: 1rem 0 3.5rem;
  display: flex;
  justify-content: center;
}

.landing-preview-tilt-wrap {
  width: 100%;
  max-width: 820px;
  perspective: 1200px;
}

.landing-preview {
  background: linear-gradient(165deg, #1a1a1a 0%, #121212 100%);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 80px rgba(0,0,0,0.55),
    0 0 100px rgba(90,179,110,0.06);
  transform-style: flat;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.landing-preview > * {
  position: relative;
  z-index: 1;
}

.lp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lp-logo {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #e8e8e8;
  font-weight: 500;
}

.lp-logo span { color: #5ab36e; }

.lp-chip {
  font-size: 10px;
  color: #8a8a8a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.35);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.lp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ab36e;
  box-shadow: 0 0 6px rgba(90,179,110,0.6);
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.lp-card {
  background: rgba(0,0,0,0.28);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
}

.lp-label {
  font-size: 9px;
  color: #5a5a5a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lp-value {
  font-size: 16px;
  font-weight: 500;
  color: #eee;
  font-variant-numeric: tabular-nums;
}

.lp-value.lp-pos { color: #5ab36e; }

.lp-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 9px;
  color: #5ab36e;
  background: rgba(90,179,110,0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.lp-sub {
  font-size: 10px;
  color: #555;
  margin-top: 4px;
}

.lp-chart {
  background: rgba(0,0,0,0.25);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.6rem;
  margin-bottom: 10px;
}

.lp-chart-title {
  font-size: 10px;
  color: #8a8a8a;
  border-left: 2px solid #5ab36e;
  padding-left: 8px;
  margin-bottom: 10px;
}

.lp-chart-svg {
  width: 100%;
  max-width: 100%;
  height: 110px;
  max-height: 120px;
  display: block;
}

.lp-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lp-mini {
  background: rgba(0,0,0,0.25);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lp-mini-title {
  font-size: 10px;
  color: #8a8a8a;
  align-self: flex-start;
  border-left: 2px solid #5ab36e;
  padding-left: 8px;
}

.lp-donut {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.lp-donut-win {
  background: conic-gradient(#3a6e45 0 100%, #222 0);
  mask: radial-gradient(circle at center, transparent 42%, #000 43%);
  -webkit-mask: radial-gradient(circle at center, transparent 42%, #000 43%);
}

.lp-donut-asset {
  background: conic-gradient(#3a5a8a 0 100%, #222 0);
  mask: radial-gradient(circle at center, transparent 42%, #000 43%);
  -webkit-mask: radial-gradient(circle at center, transparent 42%, #000 43%);
}

/* How it works */
.landing-steps {
  padding: 1rem 0 3rem;
}

.landing-section-title {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.landing-step {
  background: linear-gradient(165deg, #1a1a1a, #141414);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.35rem 1.2rem;
}

.landing-step-num {
  display: block;
  font-size: 11px;
  color: #5ab36e;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.landing-step h3 {
  font-size: 15px;
  font-weight: 500;
  color: #eee;
  margin-bottom: 8px;
}

.landing-step p {
  font-size: 12px;
  color: #6a6a6a;
  line-height: 1.6;
}

.landing-cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 0.5rem 0 1rem;
  background: linear-gradient(165deg, rgba(26,26,26,0.9), rgba(18,18,18,0.95));
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 0 60px rgba(90,179,110,0.04);
}

.landing-cta-band h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 8px;
}

.landing-cta-band p {
  font-size: 13px;
  color: #6a6a6a;
  margin-bottom: 1.35rem;
}

.site-footer-landing {
  border-top: none;
  margin-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.login-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.login-back {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 8px 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9a9a9a;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

.login-back:hover {
  color: #eee;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Ensure home/landing can always be forced open */
#landingScreen.is-open,
.landing.is-open {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  transform: translateY(36px) scale(0.96);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 800px) {
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .landing-steps-grid { grid-template-columns: 1fr; }
  .landing-hero { padding: 2.5rem 0 2rem; }
  .landing-preview-section { padding-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .landing { padding: 0 1rem 1.5rem; }
  .landing-motto { font-size: 2.1rem; }
  .lp-value { font-size: 14px; }
}
