/* ============================================
   COINEE.io — Shared Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-page: #050505;
  --glow-teal: #0a3a30;
  --glow-gold: #2d2a00;
  --text-primary: #FFFFFF;
  --text-muted: #8a99a8;
  --accent: #F5C518;
  --accent-hover: #ffd84a;
  --cta-gradient: linear-gradient(135deg, #D4AF37, #C8A000);
  --cta-text: #0a0a0a;
  --card-bg: rgba(26, 37, 53, 0.85);
  --card-bg-solid: #1a2535;
  --field-bg: #0f1a28;
  --field-border: #2a3a4a;
  --field-border-focus: #F5C518;
  --nav-bg: rgba(10, 10, 10, 0.8);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Background Effects --- */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: var(--bg-page);
  overflow: hidden;
}

/* Radial glow - bottom left teal */
.page-bg::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(10, 58, 48, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

/* Radial glow - top right gold */
.page-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(45, 42, 0, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid */
.page-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    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: 80px 80px;
  pointer-events: none;
}

/* Animated dots/particles */
.bg-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bg-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.15);
  animation: pulse-dot 3s ease-in-out infinite;
}

.bg-dot::before,
.bg-dot::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}

.bg-dot::before {
  width: 8px;
  height: 1px;
  top: 1px;
  left: -2.5px;
}

.bg-dot::after {
  width: 1px;
  height: 8px;
  top: -2.5px;
  left: 1px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

/* Staggered animations for dots */
.bg-dot:nth-child(2n) { animation-delay: 0.5s; }
.bg-dot:nth-child(3n) { animation-delay: 1s; }
.bg-dot:nth-child(4n) { animation-delay: 1.5s; }
.bg-dot:nth-child(5n) { animation-delay: 2s; }
.bg-dot:nth-child(7n) { animation-delay: 0.8s; }
.bg-dot:nth-child(11n) { animation-delay: 1.3s; }

/* --- Page Entrance Animation --- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-up 0.6s ease-out both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-dots {
  color: var(--accent);
  font-size: 0.7em;
  margin-right: 4px;
  line-height: 1;
}

.logo-text {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-pill-gold {
  background: var(--cta-gradient);
  color: var(--cta-text);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
}

.btn-pill-gold:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  color: var(--cta-text);
}

/* --- Logo Large (Centered) --- */
.logo-large {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-primary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
}

.logo-large .logo-dots {
  font-size: 0.6em;
  margin-right: 6px;
}

/* --- Hero Section (Landing Page) --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.hero-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-logo .logo-dots {
  font-size: 0.55em;
  margin-right: 6px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-transform: none;
}

.hero-headline .highlight {
  color: var(--accent);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  border-radius: 50px;
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.5);
  color: var(--cta-text);
}

/* --- Form Pages --- */
.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 3rem;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.form-card-wide {
  max-width: 680px;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: rgba(138, 153, 168, 0.5);
}

.form-input:focus {
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.password-toggle:hover {
  color: var(--text-primary);
}

.form-link-right {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  margin-top: -0.5rem;
}

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

.btn-form {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
  letter-spacing: 0.03em;
}

.btn-form:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent);
  font-weight: 600;
}

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

/* --- Exchange Cards --- */
.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.exchange-card {
  background: rgba(15, 26, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.exchange-card:hover {
  border-color: rgba(245, 197, 24, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.exchange-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.exchange-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-exchange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

.btn-exchange:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  color: var(--cta-text);
}

/* Recommended exchange card */
.exchange-card-recommended {
  border-color: rgba(245, 197, 24, 0.3);
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.08);
  position: relative;
}

.exchange-card-recommended:hover {
  border-color: rgba(245, 197, 24, 0.5);
}

.exchange-badge {
  display: inline-block;
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.exchange-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.exchange-features li {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  white-space: nowrap;
}

.exchange-regulation {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.3rem 0;
}

.regulation-mica {
  color: #4ade80;
}

.regulation-no-mica {
  color: var(--text-muted);
}

.exchange-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

/* --- UID Page: Pill Toggle --- */
.pill-toggle {
  display: flex;
  background: var(--field-bg);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--field-border);
}

.pill-toggle-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pill-toggle-btn.active {
  background: var(--cta-gradient);
  color: var(--cta-text);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.pill-toggle-btn:not(.active):hover {
  color: var(--text-primary);
}

/* --- Success Message --- */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.success-overlay.show {
  display: flex;
}

.success-content {
  text-align: center;
  animation: success-pop 0.5s ease-out both;
}

@keyframes success-pop {
  0% { opacity: 0; transform: scale(0.8); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cta-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.success-emoji {
  font-size: 3rem;
  margin-top: 1rem;
  animation: confetti-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes confetti-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* --- Confetti --- */
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 201;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.footer-logo .logo-dots {
  font-size: 0.6em;
  margin-right: 3px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-copy a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* --- Form validation --- */
.form-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.3rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .btn-cta {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }

  .form-card {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
  }

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

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 420px) {
  .hero-headline {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .nav-right {
    gap: 0.75rem;
  }

  .btn-pill {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }
}

/* ============================================
   DASHBOARD STYLES (.dash-)
   ============================================ */

/* --- Dashboard Navbar --- */
.dash-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dash-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.dash-nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.dash-nav-tab:hover {
  color: var(--text-primary);
}

.dash-nav-tab.active {
  color: var(--text-primary);
}

.dash-nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.dash-tab-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.dash-coming-badge-inline {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* Dashboard User Section */
.dash-nav-user {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dash-user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition);
}

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

.dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}

.dash-user-link:hover .dash-avatar {
  border-color: var(--accent);
}

.dash-user-text {
  font-size: 0.88rem;
  font-weight: 500;
}

.dash-logout {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.dash-logout:hover {
  color: #e74c3c;
}

/* Mobile toggle button */
.dash-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.dash-mobile-toggle:hover {
  color: var(--accent);
}

/* Mobile nav dropdown */
.dash-mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 1.5rem 1rem;
  flex-direction: column;
  gap: 0;
}

.dash-mobile-nav.show {
  display: flex;
}

.dash-mobile-nav-link {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.dash-mobile-nav-link:hover,
.dash-mobile-nav-link.active {
  color: var(--text-primary);
}

.dash-mobile-nav-link.active {
  color: var(--accent);
}

.dash-mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.5rem 0;
}

.dash-mobile-logout {
  color: #e74c3c !important;
}

.dash-mobile-logout:hover {
  color: #ff6b6b !important;
}

/* --- Dashboard Main Content --- */
.dash-main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 2rem 2rem;
}

/* --- Welcome Banner --- */
.dash-welcome {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.dash-welcome-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.dash-welcome-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dash-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  text-decoration: none;
  transition: all var(--transition);
}

.dash-welcome-badge:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: rgba(245, 197, 24, 0.4);
  color: var(--accent-hover);
}

/* --- Dashboard Grid --- */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* --- News Section --- */
.dash-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.dash-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 1px;
}

.dash-news-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.dash-news-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dash-news-card-inner {
  padding: 1.5rem;
}

.dash-news-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.dash-news-excerpt {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.dash-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-news-date {
  font-size: 0.78rem;
  color: rgba(138, 153, 168, 0.6);
}

.dash-news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Sidebar Cards --- */
.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.dash-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.dash-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dash-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.dash-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.dash-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dash-card-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

.dash-market-update {
  font-size: 0.7rem;
  color: rgba(138, 153, 168, 0.5);
  text-align: right;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Flash animations for price changes */
@keyframes flash-green {
  0% { background: rgba(74, 222, 128, 0.25); }
  100% { background: transparent; }
}

@keyframes flash-red {
  0% { background: rgba(248, 113, 113, 0.25); }
  100% { background: transparent; }
}

.flash-green {
  animation: flash-green 0.8s ease-out;
  border-radius: 4px;
}

.flash-red {
  animation: flash-red 0.8s ease-out;
  border-radius: 4px;
}

.dash-card-footer-muted {
  font-size: 0.72rem;
  color: rgba(138, 153, 168, 0.4);
  margin-top: 0.85rem;
  text-align: center;
}

/* --- Market Data Rows --- */
.dash-market-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.dash-market-row:last-child {
  border-bottom: none;
}

.dash-market-pair {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-market-price {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.dash-market-change {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 55px;
  text-align: right;
}

.dash-positive {
  color: #4ade80;
}

.dash-negative {
  color: #f87171;
}

/* --- Coming Soon Badge --- */
.dash-coming-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Dashboard Responsive --- */
@media (max-width: 1024px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dash-navbar {
    padding: 0 1rem;
  }

  .dash-nav-tabs,
  .dash-nav-user {
    display: none;
  }

  .dash-mobile-toggle {
    display: flex;
  }

  .dash-main {
    padding: 90px 1rem 1.5rem;
  }

  .dash-welcome {
    padding: 1.5rem;
  }

  .dash-welcome-title {
    font-size: 1.4rem;
  }

  .dash-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 420px) {
  .dash-main {
    padding: 86px 0.75rem 1rem;
  }

  .dash-welcome {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .dash-welcome-title {
    font-size: 1.25rem;
  }

  .dash-news-card-inner {
    padding: 1.15rem;
  }

  .dash-card {
    padding: 1rem 1.15rem;
  }
}

/* ============================================
   TRADING SCHOOL STYLES (.school-)
   ============================================ */

/* --- School Layout --- */
.school-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 2rem 2rem;
  min-height: calc(100vh - 64px);
  align-items: start;
}

/* --- Sidebar --- */
.school-sidebar {
  position: sticky;
  top: 88px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.25rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.school-sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.school-sidebar-title svg {
  opacity: 0.6;
}

.school-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.school-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.school-cat-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.school-cat-item.active {
  color: var(--text-primary);
  background: rgba(245, 197, 24, 0.05);
  border-left-color: var(--accent);
}

.school-cat-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  padding: 0.15rem 0.55rem;
  min-width: 22px;
  text-align: center;
}

.school-cat-item.active .school-cat-count {
  background: rgba(245, 197, 24, 0.15);
  color: var(--accent);
}

/* --- Mobile Category Pills (hidden on desktop) --- */
.school-mobile-cats {
  display: none;
}

/* --- School Main Content --- */
.school-main {
  min-width: 0;
}

/* --- School Welcome Banner --- */
.school-welcome {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.school-welcome-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.school-welcome-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  max-width: 640px;
}

.school-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 50px;
  padding: 0.35rem 1rem;
}

/* --- Video Section Header --- */
.school-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.school-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.school-section-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
}

.school-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 1px;
}

/* --- Video Grid --- */
.school-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* --- Video Card --- */
.school-video-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.school-video-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* --- Video Placeholder (16:9) --- */
.school-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #0a1018;
  overflow: hidden;
}

.school-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(10, 16, 24, 0.95), rgba(15, 26, 40, 0.95));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.school-video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.12);
  border: 2px solid rgba(245, 197, 24, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.school-video-card:hover .school-video-play-icon {
  background: rgba(245, 197, 24, 0.2);
  border-color: rgba(245, 197, 24, 0.5);
  transform: scale(1.05);
}

.school-video-play-icon svg {
  color: var(--accent);
  margin-left: 2px;
}

.school-video-placeholder-text {
  font-size: 0.78rem;
  color: rgba(138, 153, 168, 0.5);
  font-weight: 500;
}

/* --- Duration Badge --- */
.school-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  backdrop-filter: blur(4px);
}

/* --- Video Overlay (for future YouTube protection) --- */
.school-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* --- Video Info --- */
.school-video-info {
  padding: 1.15rem 1.25rem;
}

.school-video-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.school-video-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.school-video-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(138, 153, 168, 0.6);
}

/* --- Locked Category Styles --- */
.school-cat-locked {
  opacity: 0.55;
  cursor: pointer;
}

.school-cat-locked:hover {
  opacity: 0.75;
}

.school-cat-locked.active {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.03);
  border-left-color: rgba(255, 255, 255, 0.15);
}

.school-cat-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(138, 153, 168, 0.7);
  flex-shrink: 0;
}

.school-cat-locked.active .school-cat-lock {
  background: rgba(245, 197, 24, 0.1);
  color: var(--accent);
}

/* --- Locked Panel (shown when locked category is selected) --- */
.school-locked-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 3rem 1.5rem;
}

.school-locked-inner {
  text-align: center;
  max-width: 380px;
}

.school-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(138, 153, 168, 0.5);
  margin-bottom: 1.5rem;
}

.school-locked-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.school-locked-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.school-locked-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- School Responsive --- */
@media (max-width: 1024px) {
  .school-layout {
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .school-layout {
    display: flex;
    flex-direction: column;
    padding: 88px 1rem 1.5rem;
    gap: 1rem;
  }

  .school-sidebar {
    display: none;
  }

  .school-mobile-cats {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .school-mobile-cats::-webkit-scrollbar {
    display: none;
  }

  .school-mobile-cat {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
  }

  .school-mobile-cat:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
  }

  .school-mobile-cat.active {
    background: rgba(245, 197, 24, 0.1);
    border-color: rgba(245, 197, 24, 0.3);
    color: var(--accent);
  }

  .school-mobile-cat-locked {
    opacity: 0.55;
  }

  .school-mobile-cat-locked:hover {
    opacity: 0.75;
  }

  .school-mobile-cat-locked.active {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
  }

  .school-welcome {
    padding: 1.5rem;
  }

  .school-welcome-title {
    font-size: 1.4rem;
  }

  .school-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .school-layout {
    padding: 86px 0.75rem 1rem;
  }

  .school-welcome {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .school-welcome-title {
    font-size: 1.25rem;
  }

  .school-video-info {
    padding: 1rem;
  }
}

/* ============================================
   ANALYTICS PAGE
   ============================================ */
.analytics-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 2rem 3rem;
}

/* --- Sub-navigation --- */
.analytics-subnav {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.analytics-subnav::-webkit-scrollbar {
  display: none;
}

.analytics-subtab {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.analytics-subtab:hover {
  color: var(--text-primary);
}

.analytics-subtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- Heatmap --- */
.heatmap-container {
  display: flex;
  width: 100%;
  height: 540px;
  position: relative;
}

.heatmap-legends-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 50px;
  flex-shrink: 0;
  padding: 10px 4px;
}

.heatmap-legend-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.heatmap-legend-val {
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.heatmap-legend-gradient {
  border-radius: 3px;
  width: 18px;
  height: 100px;
}

.heatmap-main-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.heatmap-main-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.heatmap-sidebar-wrap {
  width: 22%;
  min-width: 160px;
  max-width: 300px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.heatmap-sidebar-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.heatmap-minimap-wrap {
  width: 100%;
  height: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.heatmap-minimap-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .heatmap-container {
    height: 400px;
  }
  .heatmap-legends-col {
    width: 36px;
    padding: 6px 2px;
  }
  .heatmap-legend-gradient {
    height: 70px;
    width: 14px;
  }
  .heatmap-legend-val {
    font-size: 0.5rem;
  }
  .heatmap-sidebar-wrap {
    width: 25%;
    min-width: 100px;
  }
}

/* --- Controls Bar --- */
.analytics-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 50;
  overflow: visible;
}

.analytics-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.3rem;
}

.analytics-select {
  background: #0f1a28;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.analytics-select:hover,
.analytics-select:focus {
  border-color: var(--accent);
}

.analytics-select option {
  background: #0f1a28;
  color: var(--text-primary);
}

/* --- Searchable Ticker Dropdown --- */
.analytics-search-wrap {
  position: relative;
}

.analytics-search-input {
  width: 100px;
  text-transform: uppercase;
}

.analytics-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  max-height: 360px;
  overflow-y: auto;
  background: #0f1a28;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  margin-top: 4px;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.analytics-dropdown.show {
  display: block;
}

.analytics-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.analytics-dd-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.analytics-dd-item.active {
  color: var(--accent);
  background: rgba(245, 197, 24, 0.06);
}

.analytics-dd-name {
  flex: 1;
}

.analytics-dd-star {
  font-size: 0.82rem;
  color: rgba(138,153,168,0.2);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 0 2px;
  line-height: 1;
}

.analytics-dd-star:hover {
  color: rgba(245, 197, 24, 0.5);
  transform: scale(1.2);
}

.analytics-dd-star.starred {
  color: var(--accent);
}

.analytics-dd-star.starred:hover {
  color: rgba(245, 197, 24, 0.6);
}

.analytics-interval-pills {
  display: flex;
  gap: 0.3rem;
}

.analytics-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.analytics-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.analytics-pill.active {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.3);
  color: var(--accent);
}

/* --- Favorites Pills --- */
.analytics-favorites {
  flex-shrink: 0;
}

.analytics-fav-pills {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.analytics-fav-pill {
  position: relative;
  padding: 0.4rem 1.4rem 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.analytics-fav-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.analytics-fav-pill.active {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.3);
  color: var(--accent);
}

.analytics-fav-remove {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 0.7rem;
  color: rgba(138,153,168,0.4);
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.15s;
}

.analytics-fav-remove:hover {
  color: #ef5350;
}

.analytics-fav-add {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.analytics-fav-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 197, 24, 0.05);
}

.analytics-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.analytics-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

/* --- Chart Panels --- */
.analytics-panels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analytics-panel {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.analytics-panel:first-child {
  border-radius: 12px 12px 0 0;
}

.analytics-panel:last-child {
  border-radius: 0 0 12px 12px;
}

.analytics-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.analytics-panel-title {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.analytics-panel-info {
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 400;
}

.analytics-panel-info b {
  font-weight: 600;
}

.analytics-panel-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.analytics-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.analytics-tag-spot {
  background: rgba(239, 83, 80, 0.12);
  color: #ef5350;
}

.analytics-tag-futures {
  background: rgba(245, 197, 24, 0.12);
  color: #F5C518;
}

.analytics-chart-container {
  position: relative;
  width: 100%;
}

/* Make lightweight-charts canvases fill container */
.analytics-chart-container > div {
  width: 100% !important;
}

/* --- Analytics Responsive --- */
@media (max-width: 768px) {
  .analytics-main {
    padding: 88px 0.5rem 2rem;
  }

  .analytics-controls {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .analytics-interval-pills {
    gap: 0.2rem;
  }

  .analytics-pill {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }

  .analytics-panel-header {
    padding: 0.5rem 0.75rem 0;
    font-size: 0.72rem;
  }

  .analytics-panel-info {
    font-size: 0.68rem;
  }

  .analytics-status {
    display: none;
  }
}

@media (max-width: 420px) {
  .analytics-main {
    padding: 86px 0.35rem 1.5rem;
  }

  .analytics-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .analytics-interval-pills {
    flex-wrap: wrap;
  }
}

/* ============================================
   TAPE / TIME & SALES
   ============================================ */

/* Status dot */
.tape-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F44336;
  flex-shrink: 0;
  transition: background 0.3s;
}

.tape-status-dot.live {
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* Pause button */
.tape-pause-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tape-pause-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.tape-pause-btn.paused {
  background: rgba(239,83,80,0.1);
  border-color: rgba(239,83,80,0.3);
  color: #ef5350;
}

.tape-paused-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ef5350;
}

/* Main tape container */
.tape-container {
  display: flex;
  gap: 2px;
  min-height: 600px;
}

.tape-left {
  flex: 7;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}

.tape-right {
  flex: 3;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Tape table */
.tape-table-wrap {
  overflow-y: auto;
  max-height: 620px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.tape-table-wrap::-webkit-scrollbar {
  width: 5px;
}

.tape-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.tape-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.tape-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tape-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.tape-table thead th {
  background: rgba(15, 26, 40, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tape-table thead th:last-child {
  text-align: center;
}

.tape-table tbody tr {
  animation: tapeSlideIn 0.15s ease-out;
}

.tape-table tbody td {
  padding: 0.25rem 0.6rem;
  font-family: 'Inter', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  height: 28px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.tape-table tbody td:last-child {
  text-align: center;
}

/* Row variants */
.tape-row-buy {
  border-left: 2px solid rgba(38,166,154,0.5);
}

.tape-row-sell {
  border-left: 2px solid rgba(239,83,80,0.5);
}

.tape-row-whale {
  background: rgba(245,197,24,0.08) !important;
  font-weight: 600;
}

.tape-row-whale td {
  font-weight: 600;
  font-size: 0.82rem;
}

.tape-row-big {
  background: rgba(255,255,255,0.02);
}

.tape-table tbody tr:nth-child(even):not(.tape-row-whale):not(.tape-row-big) {
  background: rgba(255,255,255,0.01);
}

/* Side badges */
.tape-side-buy {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(38,166,154,0.12);
  color: #26a69a;
  letter-spacing: 0.03em;
}

.tape-side-sell {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(239,83,80,0.12);
  color: #ef5350;
  letter-spacing: 0.03em;
}

/* Entrance animation */
@keyframes tapeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats panel */
.tape-stat-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.tape-stat-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.tape-stat-value {
  font-family: 'Inter', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.tape-green {
  color: #26a69a !important;
}

.tape-red {
  color: #ef5350 !important;
}

/* Pressure bar */
.tape-pressure-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.tape-pressure-buy {
  background: #26a69a;
  transition: width 0.4s ease;
  border-radius: 4px 0 0 4px;
}

.tape-pressure-sell {
  background: #ef5350;
  transition: width 0.4s ease;
  border-radius: 0 4px 4px 0;
}

.tape-pressure-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tape-pressure-buy-label {
  color: #26a69a;
}

.tape-pressure-sell-label {
  color: #ef5350;
}

/* Top trades mini table */
.tape-top-trades {
  flex: 1;
  min-height: 0;
}

.tape-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.tape-mini-table thead th {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tape-mini-table thead th:last-child {
  text-align: center;
}

.tape-mini-table tbody td {
  font-family: 'Inter', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.tape-mini-table tbody td:last-child {
  text-align: center;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .tape-container {
    flex-direction: column;
    min-height: auto;
  }

  .tape-left {
    order: 1;
  }

  .tape-right {
    order: 2;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .tape-right .tape-stat-card {
    flex: 1 1 calc(50% - 2px);
    min-width: 140px;
  }

  .tape-right .tape-stat-card:first-child,
  .tape-right .tape-top-trades {
    flex: 1 1 100%;
  }

  .tape-table-wrap {
    max-height: 450px;
  }
}

@media (max-width: 480px) {
  .tape-table tbody td {
    font-size: 0.72rem;
    padding: 0.2rem 0.4rem;
  }

  .tape-table thead th {
    font-size: 0.62rem;
    padding: 0.4rem;
  }

  .tape-stat-value {
    font-size: 0.9rem;
  }
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 2rem 3rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.08);
  border: 2px solid rgba(245, 197, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

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

.profile-section {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--accent);
}

.profile-section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.profile-field {
  margin-bottom: 1rem;
}

.profile-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.profile-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #0f1a28;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.profile-input:focus {
  border-color: var(--accent);
}

.profile-select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a99a8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.profile-select option {
  background: #0f1a28;
  color: var(--text-primary);
}

.profile-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: rgba(15, 26, 40, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  color: rgba(205, 210, 218, 0.7);
  font-size: 0.9rem;
}

.profile-lock-icon {
  color: rgba(138, 153, 168, 0.3);
  flex-shrink: 0;
}

.profile-hint {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.35rem;
  opacity: 0.8;
}

.profile-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #D4AF37, #C8A000);
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

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

/* Toast */
.profile-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.profile-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-toast-success {
  background: rgba(38, 166, 154, 0.9);
  color: #fff;
}

.profile-toast-error {
  background: rgba(239, 83, 80, 0.9);
  color: #fff;
}

@media (max-width: 768px) {
  .profile-main {
    padding: 90px 1rem 2rem;
  }

  .profile-section {
    padding: 1.25rem 1.25rem;
  }

  .profile-avatar-large {
    width: 56px;
    height: 56px;
  }

  .profile-title {
    font-size: 1.3rem;
  }
}

/* Admin Link in Navbar */
.dash-admin-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(245, 197, 24, 0.6);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.dash-admin-link:hover {
  color: var(--accent);
  border-color: rgba(245, 197, 24, 0.4);
  background: rgba(245, 197, 24, 0.05);
}

.dash-admin-mobile {
  color: rgba(245, 197, 24, 0.6) !important;
  font-weight: 600;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  margin-right: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 0.3rem 0.55rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

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

.lang-btn.active {
  background: rgba(245, 197, 24, 0.15);
  color: var(--accent);
}

/* ============================================
   ADMIN PANEL — Styles
   ============================================ */

/* --- Admin Layout --- */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- Admin Sidebar --- */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: rgba(10, 15, 25, 0.95);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s ease;
}

.admin-sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-sidebar-header .logo {
  font-size: 1.3rem;
}

.admin-sidebar-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 197, 24, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.admin-nav-item.active {
  color: var(--accent);
  background: rgba(245, 197, 24, 0.06);
  border-left-color: var(--accent);
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-nav-item.active svg {
  opacity: 1;
}

.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.admin-back-link svg {
  width: 16px;
  height: 16px;
}

/* --- Admin Main Content --- */
.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

.admin-page-header {
  margin-bottom: 2rem;
}

.admin-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.admin-page-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Admin Section (show/hide) --- */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: fade-in-up 0.35s ease-out both;
}

/* --- KPI Cards --- */
.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-kpi-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  backdrop-filter: blur(8px);
}

.admin-kpi-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.admin-kpi-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.admin-kpi-sub .kpi-green {
  color: #22c55e;
}

/* --- Admin Cards --- */
.admin-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* --- Admin Tables --- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.65rem 0.75rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Status badges in table */
.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.admin-status-verified {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}

.admin-status-pending {
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
}

.admin-status-none {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}

.admin-ftd {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-ftd-yes {
  color: #26a69a;
  background: rgba(38,166,154,0.1);
}

.admin-ftd-no {
  color: var(--text-muted);
  opacity: 0.5;
}

.admin-status-published {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}

.admin-status-draft {
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
}

/* --- Chart Placeholder --- */
.admin-chart-placeholder {
  background: rgba(15, 26, 40, 0.6);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-chart-placeholder svg {
  margin-right: 0.5rem;
  opacity: 0.5;
}

/* --- Admin Buttons --- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-accent {
  background: var(--cta-gradient);
  color: var(--cta-text);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.admin-btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.admin-btn-small {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.admin-btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.admin-btn-outline:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}

.admin-btn-danger {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}

.admin-btn-danger:hover {
  background: rgba(239,68,68,0.2);
}

/* --- Search & Filters --- */
.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-search-input {
  flex: 1;
  max-width: 340px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.admin-search-input::placeholder {
  color: rgba(138,153,168,0.5);
}

.admin-search-input:focus {
  border-color: var(--field-border-focus);
}

.admin-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.admin-search-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-filter-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-filter-pill:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.admin-filter-pill.active {
  background: rgba(245,197,24,0.12);
  border-color: rgba(245,197,24,0.3);
  color: var(--accent);
}

/* --- Expandable Categories (Trading School) --- */
.admin-category-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.admin-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-category-header:hover {
  background: rgba(255,255,255,0.02);
}

.admin-category-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.admin-category-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.admin-category-card.open .admin-category-chevron {
  transform: rotate(180deg);
}

.admin-category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.admin-category-card.open .admin-category-body {
  max-height: 600px;
}

.admin-category-body-inner {
  padding: 0 1.25rem 1rem;
}

/* Video row inside category */
.admin-video-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
}

.admin-video-row:last-child {
  border-bottom: none;
}

.admin-video-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-video-title {
  color: var(--text-primary);
  font-weight: 500;
}

.admin-video-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- News Items in Admin --- */
.admin-news-item {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.admin-news-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-news-item-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.admin-news-item-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-news-item-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.admin-news-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* --- Modal Overlay --- */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-overlay.show {
  display: flex;
}

.admin-modal {
  background: var(--card-bg-solid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fade-in-up 0.25s ease-out both;
}

.admin-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.admin-modal .form-group {
  margin-bottom: 1rem;
}

.admin-modal .form-label {
  font-size: 0.82rem;
}

.admin-modal .form-input {
  font-size: 0.88rem;
}

.admin-modal textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

.admin-modal select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a99a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.admin-modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.admin-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* --- Settings Section --- */
.admin-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-settings-group {
  margin-bottom: 1.25rem;
}

.admin-settings-group .form-label {
  margin-bottom: 0.4rem;
}

.admin-settings-group .form-input {
  width: 100%;
}

.admin-settings-full {
  grid-column: 1 / -1;
}

/* --- Toast Notification --- */
.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-bg-solid);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #22c55e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- Mobile Hamburger for Admin --- */
.admin-mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: var(--card-bg-solid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.admin-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* Sidebar overlay for mobile */
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 190;
}

.admin-sidebar-backdrop.show {
  display: block;
}

/* --- Admin Responsive --- */
@media (max-width: 1100px) {
  .admin-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-mobile-toggle {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
    padding: 4.5rem 1rem 2rem;
  }

  .admin-kpi-row {
    grid-template-columns: 1fr;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.78rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.5rem;
  }

  .admin-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-wrapper {
    max-width: 100%;
  }

  .admin-modal {
    padding: 1.5rem;
  }

  .admin-toast {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }

  .admin-page-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .admin-main {
    padding: 4rem 0.75rem 1.5rem;
  }

  .admin-kpi-value {
    font-size: 1.5rem;
  }

  .admin-filter-pills {
    gap: 0.35rem;
  }
  
  .admin-filter-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
}

/* ============================================
   LANDING PAGE
   ============================================ */

/* --- Scroll Reveal Animation --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- LP Shared --- */
.lp-section {
  position: relative;
  padding: 5rem 1.5rem;
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

/* --- HERO --- */
.lp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 3rem;
}

.lp-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.lp-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.lp-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 480px;
}

.lp-hero-cta {
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
  letter-spacing: 0.1em;
}

.lp-hero-trust {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px dotted rgba(138, 153, 168, 0.4);
  padding-bottom: 2px;
}

.lp-hero-trust #userCount {
  color: var(--accent);
  font-weight: 600;
}

/* --- Hero Mockup --- */
.lp-hero-visual {
  display: flex;
  justify-content: center;
}
.lp-hero-screenshot {
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 40px rgba(245,197,24,0.05);
}

.lp-mockup {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}

.lp-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lp-mockup-dots {
  display: flex;
  gap: 5px;
}

.lp-mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.lp-mockup-dots span:first-child { background: #ef4444; }
.lp-mockup-dots span:nth-child(2) { background: #F5C518; }
.lp-mockup-dots span:last-child { background: #22c55e; }

.lp-mockup-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lp-mockup-body {
  padding: 1rem;
}

.lp-mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lp-mockup-kpi {
  background: var(--field-bg);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lp-mockup-kpi-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.lp-mockup-kpi-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.lp-mockup-kpi-change {
  font-size: 0.65rem;
  font-weight: 600;
}

.lp-green { color: #22c55e; }
.lp-red { color: #ef4444; }

.lp-mockup-chart {
  background: var(--field-bg);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  height: 80px;
  overflow: hidden;
}

.lp-chart-svg {
  width: 100%;
  height: 100%;
}

.lp-mockup-news {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  background: var(--field-bg);
  border-radius: 6px;
}

.lp-mockup-news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Benefits Grid --- */
.lp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.lp-benefit-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.lp-benefit-icon {
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.08);
  border-radius: 10px;
}

.lp-benefit-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-benefit-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- App Preview --- */
.lp-preview-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}

.lp-preview-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lp-preview-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.lp-preview-tab:hover {
  color: var(--text-primary);
}

.lp-preview-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lp-preview-content {
  padding: 0;
  min-height: 280px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}
.lp-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 16px 16px;
}

.lp-preview-panel {
  display: none;
}

.lp-preview-panel.active {
  display: block;
  animation: fade-in-up 0.3s ease-out both;
}

/* Preview: Dashboard */
.lp-prev-dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.lp-prev-price-card {
  background: var(--field-bg);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lp-prev-coin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lp-prev-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lp-prev-change {
  font-size: 0.8rem;
  font-weight: 600;
}

.lp-prev-news-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--field-bg);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lp-prev-news-badge {
  background: var(--accent);
  color: var(--cta-text);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Preview: Analytika */
.lp-prev-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lp-prev-analytics-pair {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.lp-prev-analytics-badges {
  display: flex;
  gap: 0.5rem;
}

.lp-prev-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--field-bg);
  color: var(--text-muted);
  font-weight: 500;
}

.lp-prev-badge.active {
  background: rgba(245, 197, 24, 0.15);
  color: var(--accent);
}

.lp-prev-chart-area {
  background: var(--field-bg);
  border-radius: 8px;
  padding: 1rem 0.5rem;
  margin-bottom: 1rem;
  height: 160px;
}

.lp-prev-candle-svg {
  width: 100%;
  height: 100%;
}

.lp-prev-analytics-footer {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Preview: Heatmap */
.lp-prev-heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.lp-prev-heatmap-range {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.lp-prev-heatmap-visual {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  height: 200px;
}

.lp-prev-heatmap-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 55px;
  text-align: right;
  padding: 2px 0;
}

.lp-prev-heatmap-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 6px;
  overflow: hidden;
}

.lp-heatbar {
  flex: 1;
  border-radius: 2px;
}

.lp-prev-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.lp-heatmap-gradient-bar {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #F5C518, #ef4444);
}

/* --- About Section --- */
.lp-about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  align-items: start;
}

.lp-about-avatar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lp-avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--field-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent);
}
.lp-avatar-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(245,197,24,0.15);
}

.lp-about-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lp-about-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.lp-about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.lp-about-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lp-about-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.lp-about-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff4444;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lp-about-yt-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6666;
  transform: translateX(4px);
}

.lp-about-socials {
  display: flex;
  gap: 10px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.lp-about-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.2);
  color: #F5C518;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
}
.lp-about-social-btn:hover {
  background: rgba(245,197,24,0.15);
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-1px);
}

/* --- Testimonials --- */
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lp-testimonial-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-testimonial-quote {
  opacity: 0.7;
}

.lp-testimonial-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.lp-testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.lp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lp-testimonial-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.lp-testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Steps --- */
.lp-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.lp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  flex: 1;
}

.lp-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.lp-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.lp-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lp-step-connector {
  display: flex;
  align-items: center;
  padding-top: 24px;
}

/* --- Final CTA --- */
.lp-cta-section {
  padding-bottom: 2rem;
}

.lp-final-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.lp-cta-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* --- FAQ --- */
.lp-faq-section {
  padding-top: 1rem;
}

.lp-faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.lp-faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease;
}

.lp-faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.lp-faq-item.open .lp-faq-question::after {
  transform: rotate(45deg);
}

.lp-faq-question:hover {
  color: var(--accent);
}

.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.lp-faq-item.open .lp-faq-answer {
  max-height: 200px;
  padding: 0 1.25rem 1rem;
}

.lp-faq-answer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- LP Responsive --- */
@media (max-width: 900px) {
  .lp-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lp-hero-text {
    align-items: center;
  }

  .lp-hero-visual {
    order: -1;
  }

  .lp-mockup {
    max-width: 360px;
  }

  .lp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .lp-about-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lp-about-avatar {
    justify-content: center;
  }

  .lp-about-stats {
    justify-content: center;
  }

  .lp-about-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lp-steps {
    flex-direction: column;
    align-items: center;
  }

  .lp-step-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .lp-prev-dash-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .lp-section {
    padding: 3rem 1rem;
  }

  .lp-hero {
    padding: 5rem 1rem 2rem;
  }

  .lp-benefits-grid {
    grid-template-columns: 1fr;
  }

  .lp-about-card {
    padding: 1.5rem;
  }

  .lp-avatar-circle {
    width: 90px;
    height: 90px;
    font-size: 1.6rem;
  }

  .lp-preview-content {
    padding: 1rem;
  }

  .lp-prev-analytics-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-prev-heatmap-visual {
    height: 160px;
  }

  .lp-final-cta {
    padding: 2rem 1.25rem;
  }

  .lp-prev-dash-cards {
    grid-template-columns: 1fr;
  }

  .lp-hero-headline {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
}

/* --- LP Navbar Mobile Fix --- */
@media (max-width: 420px) {
  .navbar {
    padding: 0 0.75rem;
    gap: 0.25rem;
  }

  .nav-right {
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.72rem;
  }

  .btn-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .lang-switcher {
    margin-right: 0.25rem;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-dots {
    font-size: 0.6em;
    margin-right: 2px;
  }
}

/* =============================================
   AFFILIATE ANALYTICS SECTION
   ============================================= */

/* --- KPI Cards with revenue emphasis --- */
.aff-kpi-row {
  margin-bottom: 2rem;
}

.aff-kpi-card {
  position: relative;
  overflow: hidden;
}

.aff-kpi-volume {
  border-color: rgba(234, 179, 8, 0.25);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(234, 179, 8, 0.04) 100%);
}

.aff-kpi-fee {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(34, 197, 94, 0.04) 100%);
}

.aff-value-gold {
  color: #eab308 !important;
}

.aff-value-green {
  color: #22c55e !important;
}

.aff-value-muted {
  color: var(--text-muted) !important;
}

.aff-trader-ratio {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Progress bar --- */
.aff-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.aff-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #22c55e);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* --- Bar Chart --- */
.aff-chart-card {
  position: relative;
}

.aff-chart-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #eab308;
}

.aff-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  padding: 0.5rem 0;
}

.aff-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #eab308 0%, rgba(234, 179, 8, 0.3) 100%);
  border-radius: 3px 3px 0 0;
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  position: relative;
}

.aff-bar:hover {
  opacity: 0.85;
  transform: scaleY(1.03);
  transform-origin: bottom;
}

.aff-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Segments Card --- */
.aff-segments-card {
  padding-bottom: 0.5rem;
}

.aff-segment {
  margin-bottom: 2px;
}

.aff-segment-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s ease;
}

.aff-segment-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Segment border colors */
.aff-border-gold { border-left-color: #eab308; }
.aff-border-green { border-left-color: #22c55e; }
.aff-border-blue { border-left-color: #3b82f6; }
.aff-border-orange { border-left-color: #f97316; }
.aff-border-red { border-left-color: #ef4444; }
.aff-border-gray { border-left-color: #6b7280; }

.aff-segment-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}

.aff-segment-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.aff-segment-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.aff-segment-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.aff-segment-stats {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

.aff-segment-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 100px;
}

.aff-stat-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aff-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Export button (golden outline) */
.aff-export-btn {
  border: 1px solid rgba(234, 179, 8, 0.4) !important;
  color: #eab308 !important;
  background: transparent !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.aff-export-btn:hover {
  background: rgba(234, 179, 8, 0.1) !important;
  border-color: #eab308 !important;
}

/* Chevron */
.aff-segment-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

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

/* Expanded detail */
.aff-segment-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  border-left: 4px solid transparent;
}

.aff-border-gold + .aff-segment-detail { border-left-color: rgba(234, 179, 8, 0.15); }
.aff-border-green + .aff-segment-detail { border-left-color: rgba(34, 197, 94, 0.15); }
.aff-border-blue + .aff-segment-detail { border-left-color: rgba(59, 130, 246, 0.15); }
.aff-border-orange + .aff-segment-detail { border-left-color: rgba(249, 115, 22, 0.15); }
.aff-border-red + .aff-segment-detail { border-left-color: rgba(239, 68, 68, 0.15); }
.aff-border-gray + .aff-segment-detail { border-left-color: rgba(107, 114, 128, 0.15); }

.aff-segment.open .aff-segment-detail {
  max-height: 500px;
  padding: 1rem 1.25rem;
}

.aff-detail-table {
  font-size: 0.82rem;
}

.aff-detail-placeholder {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* --- Spinner for refresh --- */
@keyframes aff-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.aff-spin {
  animation: aff-spin 1s linear infinite;
}

/* --- Quick Actions --- */
.aff-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .aff-segment-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .aff-segment-main {
    min-width: unset;
    flex: 1 1 100%;
  }

  .aff-segment-stats {
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .aff-segment-stat {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .aff-bar-chart {
    height: 100px;
    gap: 2px;
  }

  .aff-segment-row {
    padding: 0.85rem 1rem;
  }

  .aff-segment-stats {
    gap: 1rem;
  }

  .aff-quick-actions {
    flex-direction: column;
  }

  .aff-quick-actions .admin-btn {
    width: 100%;
    justify-content: center;
  }

  .aff-segment-chevron {
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .aff-segment-row {
    position: relative;
    padding-right: 2.5rem;
  }
}

/* GATE PAGES */
/* ============================================
   Activation Gate Pages — gate-uid & gate-deposit
   ============================================ */

.gate-main {
  padding: 100px 1.5rem 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
}

.gate-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  text-align: center;
}

/* Gate Icons */
.gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.gate-icon-warning {
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.2);
  color: var(--accent);
}

.gate-icon-progress {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
  animation: gate-pulse 2s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
}

/* Gate Titles */
.gate-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.gate-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gate-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Gate Steps Box */
.gate-steps-box {
  background: rgba(15, 26, 40, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.gate-steps-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.gate-steps-list {
  padding-left: 1.25rem;
  margin: 0;
}

.gate-steps-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.gate-steps-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Gate Exchange Grid */
.gate-exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gate-exchange-card {
  background: rgba(15, 26, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.gate-exchange-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gate-exchange-recommended {
  border-color: rgba(245, 197, 24, 0.25);
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.06);
}

.gate-exchange-recommended:hover {
  border-color: rgba(245, 197, 24, 0.4);
}

.gate-exchange-badge {
  display: inline-block;
  background: var(--cta-gradient);
  color: var(--cta-text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.gate-exchange-badge-outline {
  background: transparent;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.gate-exchange-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.gate-exchange-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Gate Buttons */
.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.gate-btn-gold {
  background: var(--cta-gradient);
  color: var(--cta-text);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

.gate-btn-gold:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  color: var(--cta-text);
}

.gate-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.gate-btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

/* Already have account link */
.gate-already {
  margin-bottom: 2rem;
  font-size: 0.88rem;
}

.gate-already a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.gate-already a:hover {
  color: var(--accent-hover);
}

/* Info box */
.gate-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(15, 26, 40, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.gate-info-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.gate-info-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.gate-info-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Contact link */
.gate-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.gate-contact a {
  color: var(--accent);
}

/* === GATE DEPOSIT specific === */

/* Progress indicator */
.gate-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto 2rem;
  max-width: 480px;
}

.gate-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gate-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-step-circle-done {
  background: rgba(74, 222, 128, 0.15);
  border: 2px solid #4ade80;
  color: #4ade80;
}

.gate-step-circle-pending {
  background: rgba(245, 197, 24, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  animation: gate-pulse-gold 2s ease-in-out infinite;
}

@keyframes gate-pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 197, 24, 0); }
}

.gate-step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.gate-step-done .gate-step-label {
  color: #4ade80;
}

.gate-step-pending .gate-step-label {
  color: var(--accent);
}

.gate-progress-line {
  width: 48px;
  height: 2px;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.gate-line-done {
  background: #4ade80;
}

.gate-line-pending {
  background: rgba(245, 197, 24, 0.3);
  position: relative;
  overflow: hidden;
}

.gate-line-pending::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: gate-line-shimmer 2s ease-in-out infinite;
}

@keyframes gate-line-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Deposit highlight box */
.gate-deposit-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.15);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.gate-deposit-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.gate-deposit-content {
  flex: 1;
}

.gate-deposit-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.gate-deposit-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Auto-check badge */
.gate-auto-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: left;
}

.gate-auto-icon {
  flex-shrink: 0;
  color: #4ade80;
  margin-top: 2px;
}

.gate-auto-badge strong {
  display: block;
  font-size: 0.88rem;
  color: #4ade80;
  margin-bottom: 0.2rem;
}

.gate-auto-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Refresh note */
.gate-refresh-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.gate-refresh-note svg {
  flex-shrink: 0;
}

/* Check status button */
.gate-check-btn {
  width: auto;
  padding: 0.7rem 2.5rem;
  margin-bottom: 1.5rem;
}

/* Toast notification */
.gate-toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg-solid);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
  white-space: nowrap;
}

.gate-toast svg {
  color: var(--accent);
  flex-shrink: 0;
}

.gate-toast.show {
  bottom: 2rem;
}

/* === GATE RESPONSIVE === */
@media (max-width: 768px) {
  .gate-main {
    padding: 80px 1rem 2rem;
  }

  .gate-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .gate-title {
    font-size: 1.45rem;
  }

  .gate-exchange-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gate-progress {
    gap: 0;
  }

  .gate-progress-line {
    width: 32px;
  }

  .gate-step-label {
    font-size: 0.65rem;
  }

  .gate-step-circle {
    width: 30px;
    height: 30px;
  }

  .gate-step-circle svg {
    width: 13px;
    height: 13px;
  }

  .gate-deposit-box {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .gate-deposit-content {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .gate-main {
    padding: 76px 0.75rem 1.5rem;
  }

  .gate-card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }

  .gate-title {
    font-size: 1.3rem;
  }

  .gate-icon {
    width: 64px;
    height: 64px;
  }

  .gate-icon svg {
    width: 36px;
    height: 36px;
  }

  .gate-steps-box {
    padding: 1.25rem 1.25rem;
  }

  .gate-exchange-logo {
    font-size: 1.3rem;
  }

  .gate-toast {
    left: 1rem;
    right: 1rem;
    transform: none;
    white-space: normal;
    font-size: 0.8rem;
  }

  .gate-toast.show {
    bottom: 1rem;
  }
}

/* FOOTPRINT CHART */
.fp-chart-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  background: #0a0e14;
  border-radius: 12px;
  overflow: hidden;
  cursor: crosshair;
}

.fp-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.fp-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: rgba(10, 14, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  line-height: 1.6;
  color: rgba(200, 210, 220, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 140px;
  max-width: 200px;
}

.fp-gathering {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(160, 175, 190, 0.6);
  font-size: 0.85rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  z-index: 10;
}

.fp-gathering svg {
  color: rgba(160, 175, 190, 0.4);
}

@media (max-width: 768px) {
  .fp-chart-wrap {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .fp-chart-wrap {
    height: 380px;
  }
}

/* =============================================
   DOM 3-PANEL VIEW — TradingLite Style
   ============================================= */

/* Controls bar */
.dom-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  background: #0c1018;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px 10px 0 0;
  flex-wrap: wrap;
}
.dom-controls .analytics-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(200,210,220,0.5);
  margin-right: 4px;
}
.dom-controls .analytics-select {
  font-size: 0.78rem;
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #e0e6ed;
}
.dom-controls .analytics-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(200,210,220,0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.dom-controls .analytics-pill:hover {
  background: rgba(255,255,255,0.08);
}
.dom-controls .analytics-pill.active {
  background: rgba(0,194,168,0.15);
  border-color: rgba(0,194,168,0.3);
  color: #26a69a;
}

/* 3-panel container */
.dom-view {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 650px;
  background: #0a0e14;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

/* Panel 1: Main Chart (left) */
.dom-main-chart {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #0a0e14;
}
.dom-main-canvas-wrap {
  flex: 3 1 0;
  min-height: 0;
  position: relative;
  cursor: crosshair;
}
.dom-main-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.dom-cvd-wrap {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dom-cvd-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Panel 2: DOM Ladder (center) */
.dom-ladder-panel {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  background: #0c1018;
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.dom-ladder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(200,210,220,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.dom-ladder-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.dom-ladder-row {
  display: flex;
  align-items: center;
  height: 17px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.68rem;
  line-height: 17px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.dom-ladder-row.ask-row {
  color: #ef5350;
}
.dom-ladder-row.bid-row {
  color: #26a69a;
}
.dom-ladder-row.mid-row {
  background: rgba(245,197,24,0.12);
  border-top: 1px solid rgba(245,197,24,0.3);
  border-bottom: 1px solid rgba(245,197,24,0.3);
}
.dom-ladder-cell {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 3px;
  position: relative;
  z-index: 1;
}
.dom-ladder-cell.price-cell {
  color: rgba(220,230,240,0.85);
  flex: 1.2;
}
.dom-ladder-cell.delta-cell {
  flex: 0.8;
  font-size: 0.63rem;
}
.dom-ladder-cell.bid-cell {
  text-align: right;
}
.dom-ladder-cell.ask-cell {
  text-align: left;
}
.dom-ladder-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.18;
  z-index: 0;
}
.dom-ladder-bar.bid-bar {
  right: 50%;
  background: #26a69a;
}
.dom-ladder-bar.ask-bar {
  left: 50%;
  background: #ef5350;
}

/* Panel 3: Order Book + Price (right) */
.dom-ob-panel {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  background: #0c1018;
  overflow: hidden;
}
.dom-price-display {
  padding: 14px 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dom-price-big {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #26a69a;
  transition: color 0.2s;
}
.dom-price-big.down {
  color: #ef5350;
}
.dom-price-change {
  font-size: 0.7rem;
  color: rgba(200,210,220,0.45);
  margin-top: 2px;
}

/* Trades table */
.dom-trades-section {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dom-trades-header {
  display: flex;
  padding: 4px 8px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(200,210,220,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.dom-trades-header span {
  flex: 1;
  text-align: center;
}
.dom-trades-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.dom-trade-row {
  display: flex;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.66rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.dom-trade-row.buy {
  color: #26a69a;
}
.dom-trade-row.sell {
  color: #ef5350;
}
.dom-trade-row span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

/* OB Summary */
.dom-ob-summary {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dom-ob-ratio-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ef5350;
  overflow: hidden;
  margin-bottom: 6px;
}
.dom-ob-ratio-fill {
  height: 100%;
  background: #26a69a;
  border-radius: 3px;
  transition: width 0.3s;
}
.dom-ob-ratio-text {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.65rem;
  color: rgba(200,210,220,0.5);
}
.dom-ob-ratio-text .bid-text { color: #26a69a; }
.dom-ob-ratio-text .ask-text { color: #ef5350; }

/* Responsive: hide panels on smaller screens */
@media (max-width: 1200px) {
  .dom-ob-panel {
    display: none;
  }
  .dom-ladder-panel {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }
}
@media (max-width: 900px) {
  .dom-ladder-panel {
    display: none;
  }
}
@media (max-width: 480px) {
  .dom-view {
    height: 420px;
  }
}

/* ===========================================
   Whale Tracker
   =========================================== */

/* Summary Cards */
.whale-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.whale-card {
  background: rgba(26,37,53,0.85);
  border: 1px solid rgba(245,197,24,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.whale-card-wide {
  grid-column: span 4;
  padding: 14px 18px;
}
.whale-card-icon {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
}
.whale-icon-long { color: #22c55e; }
.whale-icon-short { color: #ef4444; }
.whale-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
}
.whale-card-value {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}
.whale-long { color: #22c55e; }
.whale-short { color: #ef4444; }

/* Ratio Bar */
.whale-ratio-bar {
  width: 100%;
  height: 8px;
  background: #ef4444;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}
.whale-ratio-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 4px 0 0 4px;
  transition: width 0.5s ease;
}
.whale-ratio-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

/* Controls */
.whale-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(26,37,53,0.85);
  border: 1px solid rgba(245,197,24,0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.whale-refresh-btn {
  background: rgba(245,197,24,0.12);
  color: #F5C518;
  border: 1px solid rgba(245,197,24,0.2);
  padding: 6px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.whale-refresh-btn:hover {
  background: rgba(245,197,24,0.2);
  border-color: rgba(245,197,24,0.35);
}

/* Table */
.whale-table-wrap {
  background: rgba(26,37,53,0.85);
  border: 1px solid rgba(245,197,24,0.08);
  border-radius: 12px;
  overflow-x: auto;
  min-height: 300px;
  position: relative;
}
.whale-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.whale-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.whale-table thead th {
  background: rgba(15,26,40,0.95);
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid rgba(245,197,24,0.1);
  user-select: none;
}
.whale-table thead th:first-child,
.whale-table thead th:nth-child(2),
.whale-table thead th:nth-child(3),
.whale-table thead th:nth-child(4) {
  text-align: left;
}
.whale-table thead th.sortable {
  cursor: pointer;
  transition: color 0.15s;
}
.whale-table thead th.sortable:hover {
  color: #F5C518;
}
.whale-table thead th.active-sort {
  color: #F5C518;
}

.whale-row {
  cursor: pointer;
  transition: background 0.15s;
}
.whale-row:hover {
  background: rgba(245,197,24,0.04);
}
.whale-row td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
}
.whale-td-rank {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  width: 36px;
  text-align: left;
}
.whale-td-addr { text-align: left; }
.whale-addr-link {
  color: #F5C518;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
}
.whale-addr-link:hover {
  text-decoration: underline;
}
.whale-td-coin { text-align: left; }
.whale-coin-badge {
  background: rgba(245,197,24,0.1);
  color: #F5C518;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.whale-td-side { text-align: left; }
.whale-side-long {
  color: #22c55e;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.whale-side-short {
  color: #ef4444;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.whale-td-size {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.whale-size-sub {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}
.whale-td-entry,
.whale-td-mark,
.whale-td-lev,
.whale-td-liq {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.whale-td-lev {
  color: rgba(255,255,255,0.6);
}
.whale-td-pnl {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.whale-pnl-pos, td.whale-pnl-pos { color: #22c55e; }
.whale-pnl-neg, td.whale-pnl-neg { color: #ef4444; }
.whale-pnl-pct {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}

/* Loading & Empty */
.whale-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.whale-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(245,197,24,0.2);
  border-top-color: #F5C518;
  border-radius: 50%;
  animation: whaleSpin 0.7s linear infinite;
}
@keyframes whaleSpin {
  to { transform: rotate(360deg); }
}
.whale-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* Modal */
.whale-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whale-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.whale-modal-content {
  position: relative;
  z-index: 1;
  background: #0f1a28;
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: 16px;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.whale-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(245,197,24,0.1);
}
.whale-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: #F5C518;
}
.whale-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.whale-modal-close:hover { color: #fff; }

.whale-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.whale-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.whale-modal-stat {
  background: rgba(26,37,53,0.6);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.whale-modal-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.whale-modal-stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.whale-modal-empty {
  text-align: center;
  padding: 30px;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

/* Modal Position Table */
.whale-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}
.whale-modal-table thead th {
  background: rgba(15,26,40,0.6);
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(245,197,24,0.08);
}
.whale-modal-table thead th:first-child,
.whale-modal-table thead th:nth-child(2) {
  text-align: left;
}
.whale-modal-table tbody td {
  padding: 8px 10px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.whale-modal-table tbody td:first-child,
.whale-modal-table tbody td:nth-child(2) {
  text-align: left;
}

.whale-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(245,197,24,0.1);
  display: flex;
  justify-content: flex-end;
}
.whale-modal-hl-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
}
.whale-modal-hl-link:hover {
  color: #F5C518;
}

/* Responsive */
@media (max-width: 768px) {
  .whale-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .whale-card-wide {
    grid-column: span 2;
  }
  .whale-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .whale-controls > div:last-child {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .whale-table {
    font-size: 11px;
  }
  .whale-table thead th,
  .whale-row td {
    padding: 8px 8px;
  }
  .whale-th-entry,
  .whale-td-entry,
  .whale-th-liq,
  .whale-td-liq {
    display: none;
  }
  .whale-modal-stats {
    grid-template-columns: 1fr;
  }
  .whale-modal-content {
    width: 95%;
    max-height: 90vh;
  }
}
@media (max-width: 480px) {
  .whale-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .whale-card-value {
    font-size: 20px;
  }
  .whale-th-mark,
  .whale-td-mark,
  .whale-th-lev,
  .whale-td-lev {
    display: none;
  }
}
