/* ============================================
   QTAlgoPro — Global Stylesheet
   Gold & Black Theme
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --gold: #D4A843;
  --gold-light: #E8B84B;
  --gold-dark: #B8922F;
  --bg-primary: #0A0A0F;
  --bg-secondary: #0D0D14;
  --bg-card: #111118;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --border-color: #1F1F2E;
  --gold-gradient: linear-gradient(135deg, #D4A843, #E8B84B);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-secondary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-light);
}

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover {
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.card-gold {
  border-color: var(--gold-dark);
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
}
.navbar-brand svg {
  width: 28px;
  height: 28px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .navbar-links,
  .navbar-cta {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    gap: 20px;
  }
  .navbar-links.active,
  .navbar-cta.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  text-align: center;
  background: radial-gradient(ellipse at top center, rgba(212, 168, 67, 0.06) 0%, transparent 60%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ============================================
   FEATURE CARDS (3 columns)
   ============================================ */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   FEATURES GRID (2x3)
   ============================================ */
.features-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.feature-item:hover {
  border-color: var(--gold-dark);
}

.feature-item .check {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .features-checklist {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TICKERS GRID
   ============================================ */
.tickers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.ticker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ticker-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.ticker-symbol {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.ticker-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .tickers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .tickers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PRICING
   ============================================ */

/* --- Toggle --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.pricing-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border-color);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.pricing-toggle-switch.active {
  background: var(--gold-dark);
  border-color: var(--gold);
}

.pricing-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.pricing-toggle-switch.active .pricing-toggle-knob {
  transform: translateX(24px);
}

.pricing-toggle-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.pricing-toggle-badge.active {
  opacity: 1;
}

/* --- Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Cards --- */
.pricing-card {
  max-width: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.pricing-card.card-gold {
  transform: scale(1.04);
  border-color: var(--gold-dark);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.1);
}

.pricing-card.card-gold:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-tier-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.pricing-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
  color: var(--text-secondary);
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-annual-equiv {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 8px;
  min-height: 1.2em;
}

.pricing-connection-highlight {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list li .check {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-table thead th {
  background: var(--bg-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.comparison-table tbody tr:hover td {
  background: rgba(212, 168, 67, 0.03);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table .pricing-highlight {
  background: rgba(212, 168, 67, 0.06);
}

.comparison-table thead .pricing-highlight {
  color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
}

.check-yes {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.check-no {
  color: #4B4B5A;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .pricing-card.card-gold {
    transform: none;
  }

  .pricing-card.card-gold:hover {
    transform: translateY(-4px);
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gold-dark);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  flex-shrink: 0;
  position: fixed;
  top: 72px;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
  color: var(--text-primary);
  background: rgba(212, 168, 67, 0.05);
}

.sidebar-nav li a.active {
  color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
  border-left-color: var(--gold);
}

.sidebar-nav li a .nav-icon {
  font-size: 1.1rem;
}

/* Main content */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.dashboard-header p {
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--gold-dark);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card .stat-value.gold {
  color: var(--gold);
}

.stat-card .stat-value.green {
  color: #22C55E;
}

/* Table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.table-card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

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

.data-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

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

.data-table tr:hover td {
  background: rgba(212, 168, 67, 0.03);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-buy {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

.badge-sell {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.badge-filled {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
}

.badge-paper {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}

/* Dashboard responsive */
@media (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .dashboard-main {
    margin-left: 0;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .data-table {
    font-size: 0.8rem;
  }
  .data-table th,
  .data-table td {
    padding: 10px 14px;
  }
}

/* ============================================
   TICKER TOGGLE GRID (Dashboard)
   ============================================ */
.ticker-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ticker-toggle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.ticker-toggle-card:hover {
  border-color: var(--gold-dark);
}

.ticker-toggle-card.active {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.05);
}

.ticker-toggle-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ticker-toggle-symbol {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ticker-toggle-card.active .ticker-toggle-symbol {
  color: var(--gold);
}

.ticker-toggle-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Toggle switch */
.toggle-track {
  width: 44px;
  height: 24px;
  background: #333;
  border-radius: 12px;
  position: relative;
  margin: 0 auto;
  transition: background 0.25s ease;
}

.toggle-track.on {
  background: var(--gold);
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s ease;
}

.toggle-track.on .toggle-thumb {
  transform: translateX(20px);
}

@media (max-width: 768px) {
  .ticker-toggle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   WEBHOOK SETUP (Dashboard)
   ============================================ */
.webhook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
}

.webhook-field {
  margin-bottom: 24px;
}

.webhook-field:last-child {
  margin-bottom: 0;
}

.webhook-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.webhook-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.webhook-value-row code {
  flex: 1;
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--gold);
  overflow-x: auto;
  word-break: break-all;
}

.webhook-payload {
  background: var(--bg-secondary);
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
}

.webhook-instructions {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
}

.webhook-instructions h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.webhook-instructions ol {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
}

.webhook-instructions code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--gold);
}

/* ============================================
   ACCOUNTS GRID (Dashboard)
   ============================================ */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.account-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.account-card-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.account-card-info .account-env {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.account-delete-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.account-delete-btn:hover {
  color: #EF4444;
}

/* ============================================
   GROUPS GRID (Dashboard)
   ============================================ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.group-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.group-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.group-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================
   SETTINGS (Dashboard)
   ============================================ */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-row:last-of-type {
  border-bottom: none;
}

.settings-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   ALERT INFO BOX (Dashboard)
   ============================================ */
.alert-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 32px;
}

.alert-info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
}

.alert-info-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.pagination .page-btn:hover {
  border-color: var(--gold-dark);
  color: var(--text-primary);
}

.pagination .page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-primary);
  font-weight: 600;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}
