/* ============================================
   GoldTrading TH — components.css
   Reusable UI components
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #D4A853 0%, #F0C870 50%, #D4A853 100%);
  background-size: 200% 100%;
  color: var(--color-navy);
  border-color: #D4A853;
  box-shadow: 0 4px 20px rgba(212,168,83,0.45), 0 2px 8px rgba(212,168,83,0.2);
  position: relative;
  overflow: hidden;
  animation: glowPulse 3s ease-in-out infinite;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmerSweep 2.5s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F0C870 0%, #FFD700 50%, #F0C870 100%);
  border-color: #FFD700;
  color: var(--color-navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(212,168,83,0.6), 0 4px 16px rgba(212,168,83,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold-primary);
  border-color: var(--color-gold-primary);
}

.btn-secondary:hover {
  background: var(--color-gold-primary);
  color: var(--color-navy);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--font-size-lg);
  border-radius: var(--border-radius-sm);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--font-size-sm);
}

.btn-full {
  width: 100%;
}

.btn-green {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

.btn-green:hover {
  background: #219a52;
  border-color: #219a52;
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-body {
  padding: var(--space-lg);
}

.card-gold-border {
  border: 2px solid var(--color-gold-primary);
  box-shadow: var(--shadow-gold), var(--shadow-md);
}

.card-dark {
  background: var(--color-navy-mid);
  color: #fff;
}

/* ---- Price Ticker Card ---- */
.price-ticker-card {
  background: linear-gradient(145deg, #0a1830 0%, #0f2040 60%, #0a1428 100%);
  border: 1px solid rgba(212,168,83,0.5);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(212,168,83,0.15), 0 8px 40px rgba(0,0,0,0.5);
  animation: borderGlow 4s ease-in-out infinite;
}

.price-ticker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B6914, #D4A853, #FFD700, #F0C870, #D4A853, #8B6914);
  background-size: 300% 100%;
  animation: gradientBar 4s ease infinite;
}

.price-ticker-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(212,168,83,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ticker-label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ticker-live-dot {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39,174,96,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(39,174,96,0); }
}

.ticker-pair {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-bottom: 4px;
}

.ticker-price {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #D4A853, #FFD700, #F0C870);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 0 8px rgba(212,168,83,0.5));
}

.ticker-price.updating {
  opacity: 0.5;
}

.ticker-change {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.ticker-change-val {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.ticker-change-pct {
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.ticker-change.up .ticker-change-val,
.ticker-change.up .ticker-change-pct {
  color: var(--color-success);
}

.ticker-change.down .ticker-change-val,
.ticker-change.down .ticker-change-pct {
  color: var(--color-danger);
}

.ticker-change.up .ticker-change-pct {
  background: rgba(39,174,96,0.15);
}

.ticker-change.down .ticker-change-pct {
  background: rgba(231,76,60,0.15);
}

.ticker-arrow {
  font-size: 1.2rem;
}

.ticker-spread {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border-radius: var(--border-radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.ticker-spread-item {
  text-align: center;
}

.ticker-spread-item .label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}

.ticker-spread-item .value {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.ticker-time {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: var(--space-md);
}

/* ---- Broker Featured Card ---- */
.broker-featured-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.broker-featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-light), var(--color-gold-dark));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.broker-rank-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-dark));
  color: var(--color-navy);
  padding: 8px 18px 8px 28px;
  font-size: var(--font-size-xs);
  font-weight: 800;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  letter-spacing: 0.03em;
}

.broker-featured-inner {
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: var(--space-xl);
  align-items: start;
}

.broker-logo-section {
  text-align: center;
}

.broker-logo-placeholder {
  width: 120px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-weight: 800;
  color: var(--color-gold-primary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.broker-our-pick {
  display: inline-block;
  background: var(--color-badge);
  color: var(--color-gold-dark);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212,168,83,0.3);
}

.broker-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.broker-stat-item {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-2);
  border-radius: var(--border-radius-sm);
}

.broker-stat-item .stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.broker-stat-item .stat-value {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
}

.broker-stat-item .stat-value.gold {
  color: var(--color-gold-dark);
}

.broker-cta-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stars {
  color: var(--color-gold-primary);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.rating-max {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ---- Broker Comparison Table ---- */
.broker-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.broker-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  min-width: 700px;
}

.broker-table thead {
  background: var(--color-navy);
  color: #fff;
}

.broker-table thead th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.broker-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.broker-table thead th.sortable:hover {
  background: var(--color-navy-light);
}

.broker-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.broker-table tbody tr:hover {
  background: var(--color-surface-2);
}

.broker-table tbody tr.featured-row {
  border-left: 4px solid var(--color-gold-primary);
  background: rgba(212,168,83,0.04);
}

.broker-table tbody tr.featured-row:hover {
  background: rgba(212,168,83,0.08);
}

.broker-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

.broker-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.broker-name-cell strong {
  font-size: var(--font-size-base);
}

.broker-badge {
  display: inline-block;
  background: var(--color-badge);
  color: var(--color-gold-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212,168,83,0.3);
  white-space: nowrap;
}

.platform-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.pill-navy {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
}

.pill-gold {
  background: var(--color-badge);
  color: var(--color-gold-dark);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: var(--font-size-base);
}

.score-badge.top { color: var(--color-gold-dark); }

/* Table filters */
.table-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-gold-primary);
  border-color: var(--color-gold-primary);
  color: var(--color-navy);
  font-weight: 700;
}

/* ---- Stats Counter Cards ---- */
.stats-section {
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-counter-card {
  background: linear-gradient(145deg, #fff 0%, #fffbf0 100%);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: var(--border-radius);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(212,168,83,0);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #D4A853, #FFD700, #D4A853) 1;
  position: relative;
  overflow: hidden;
}

.stat-counter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(212,168,83,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.stat-counter-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(212,168,83,0.2);
}

.stat-counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8B6914, #D4A853, #C89020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-counter-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ---- Magazine Layout ---- */
.articles-magazine-hero {
  margin-bottom: 24px;
}

.article-card-hero {
  display: grid;
  grid-template-columns: 45% 1fr;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
  min-height: 300px;
}

.article-card-hero:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 0 0 2px rgba(212,168,83,0.3);
}

.article-hero-image {
  display: block;
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 280px;
  overflow: hidden;
}

.article-hero-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.article-hero-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-hero-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.article-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.45;
}

.article-hero-title a {
  color: var(--color-text);
  text-decoration: none;
}

.article-hero-title a:hover {
  color: var(--color-gold-dark);
}

.article-hero-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  flex: 1;
}

.article-hero-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  text-decoration: none;
  padding: 8px 20px;
  border: 2px solid var(--color-gold-primary);
  border-radius: 6px;
  align-self: flex-start;
  transition: background var(--transition), color var(--transition);
}

.article-hero-link:hover {
  background: var(--color-gold-primary);
  color: var(--color-navy);
}

.articles-magazine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.article-meta-top {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .article-card-hero {
    grid-template-columns: 1fr;
  }
  .article-hero-image {
    min-height: 200px;
  }
  .articles-magazine-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Article Preview Cards ---- */
.article-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 2px rgba(212,168,83,0.3);
}

.article-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.article-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.25) 0%, rgba(10,22,40,0.55) 100%);
  pointer-events: none;
}

.article-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.category-technical { background: rgba(10,22,40,0.08); color: var(--color-navy); }
.category-fundamental { background: rgba(212,168,83,0.15); color: var(--color-gold-dark); }
.category-market { background: rgba(39,174,96,0.12); color: #1a7a3f; }
.category-news { background: rgba(52,152,219,0.12); color: #1a5e8a; }

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.article-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  margin-top: auto;
}

.article-levels {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.level-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.level-support { background: rgba(39,174,96,0.12); color: var(--color-success); }
.level-resist { background: rgba(231,76,60,0.12); color: var(--color-danger); }

/* ---- Steps Component ---- */
.steps-container {
  position: relative;
}

.steps-line {
  position: absolute;
  top: 40px;
  left: calc(50% - 50%);
  right: calc(50% - 50%);
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-primary) 0%, var(--color-gold-light) 100%);
  z-index: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.step-card {
  text-align: center;
  padding: var(--space-lg);
}

.step-number {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-light));
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-gold);
  position: relative;
}

.step-icon {
  font-size: 1.8rem;
}

.step-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.step-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

/* ---- Gold Factors Grid ---- */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.factor-card {
  background: linear-gradient(145deg, #fff 0%, #fffdf5 100%);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.factor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(212,168,83,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.factor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212,168,83,0.2), var(--shadow-md);
  border-color: rgba(212,168,83,0.6);
}

.factor-icon {
  display: block;
  margin-bottom: var(--space-md);
  line-height: 0;
}

.factor-icon svg {
  display: block;
}

.factor-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.factor-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ---- Market Hours Table ---- */
.market-hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.market-hours-table th {
  background: var(--color-navy);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.market-hours-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

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

.volatility-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.volatility-low { background: rgba(52,152,219,0.12); color: #1a5e8a; }
.volatility-medium { background: rgba(241,196,15,0.15); color: #7d6008; }
.volatility-high { background: rgba(231,76,60,0.12); color: var(--color-danger); }
.volatility-vhigh { background: rgba(231,76,60,0.2); color: var(--color-danger); font-weight: 800; }

.overlap-row {
  background: rgba(212,168,83,0.06);
  font-weight: 600;
}

/* ---- Tip Box ---- */
.tip-box {
  background: linear-gradient(135deg, var(--color-badge), rgba(240,200,112,0.3));
  border: 1px solid rgba(212,168,83,0.3);
  border-left: 4px solid var(--color-gold-primary);
  border-radius: var(--border-radius-sm);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.tip-box p {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.8;
  margin: 0;
}

.tip-box .tip-title {
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
}

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

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: var(--color-surface);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  line-height: 1.6;
}

.faq-question:hover {
  background: var(--color-surface-2);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-gold-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  margin-left: var(--space-md);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--space-lg);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 var(--space-lg) var(--space-md);
}

.faq-answer p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

/* ---- TradingView Widget Wrapper ---- */
.chart-section {
  background: var(--color-navy-mid);
  padding: 0;
}

/* Full-bleed chart fills the whole section width */
.chart-section .tradingview-widget-container,
.chart-section .tradingview-widget-container__widget {
  display: block;
  width: 100% !important;
}

.chart-section iframe {
  display: block;
  width: 100% !important;
}

.chart-wrapper {
  background: var(--color-navy);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212,168,83,0.2);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chart-title {
  color: #fff;
  font-weight: 700;
}

.chart-link {
  font-size: var(--font-size-sm);
  color: var(--color-gold-primary);
}

/* ---- Trust Badges ---- */
.trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.trust-badge .icon {
  font-size: 1.2rem;
}

/* ---- Sidebar Widget ---- */
.sidebar-widget {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.sidebar-widget-header {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-gold-primary);
}

.broker-sidebar-card {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  color: #fff;
  text-align: center;
  border: 2px solid rgba(212,168,83,0.3);
}

.broker-sidebar-card .broker-name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-gold-primary);
  margin-bottom: var(--space-sm);
}

.broker-sidebar-card .broker-tagline {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.broker-mini-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: var(--space-lg);
  background: rgba(255,255,255,0.06);
  border-radius: var(--border-radius-sm);
  padding: var(--space-md);
}

.mini-stat .label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-stat .value {
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--color-gold-primary);
}

/* ---- Quick Links ---- */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-2);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: all var(--transition);
}

.quick-link:hover {
  background: var(--color-gold-primary);
  color: var(--color-navy);
}

.quick-link .arrow {
  margin-left: auto;
  font-size: 0.8rem;
}

/* ---- In-content CTA Box ---- */
.cta-box {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  text-align: center;
  color: #fff;
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(212,168,83,0.2);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-primary), var(--color-gold-light));
}

.cta-box h3 {
  color: var(--color-gold-primary);
  margin-bottom: var(--space-sm);
}

.cta-box p {
  color: rgba(255,255,255,0.75);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.cta-box-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Price Summary Table ---- */
.price-summary-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-sm);
}

.price-summary-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

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

.price-summary-table .label-col {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 40%;
}

.price-summary-table .value-col {
  font-weight: 700;
  color: var(--color-text);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-gold-primary);
}

.breadcrumb-sep {
  color: var(--color-border);
}

/* ---- Inline CTA Link ---- */
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-gold-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: gap var(--transition);
}

.read-more-link:hover {
  gap: 8px;
  color: var(--color-gold-dark);
}

/* ---- Section Gold Accent ---- */
.section-accent {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #8B6914, #D4A853, #FFD700, #D4A853, #8B6914);
  background-size: 300% 100%;
  animation: gradientBar 4s ease infinite;
  border-radius: 2px;
  margin-bottom: var(--space-md);
  box-shadow: 0 0 10px rgba(212,168,83,0.5);
}

/* ---- Pros / Cons Lists ---- */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.pros-list, .cons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pro-item, .con-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.pro-item::before {
  content: '✅';
  font-size: 0.9rem;
  flex-shrink: 0;
}

.con-item::before {
  content: '⚠️';
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---- Technical Levels ---- */
.technical-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.level-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
}

.level-item.support {
  background: rgba(39,174,96,0.08);
  border-left: 3px solid var(--color-success);
}

.level-item.resistance {
  background: rgba(231,76,60,0.08);
  border-left: 3px solid var(--color-danger);
}

.level-label {
  font-weight: 600;
  color: var(--color-text-muted);
}

.level-value {
  font-weight: 800;
}

/* ---- Thai Traders Social Proof Strip ---- */
.thai-traders-strip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xl);
}

.thai-traders-heading {
  flex-shrink: 0;
  width: 160px;
}

.thai-traders-heading .section-accent-inline {
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-primary), var(--color-gold-light));
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

.thai-traders-heading p {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.thai-traders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  flex: 1;
}

.thai-trader-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.thai-trader-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-navy-light);
  border: 2px solid rgba(212,168,83,0.3);
}

.thai-trader-info {
  flex: 1;
  min-width: 0;
}

.thai-trader-name {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin-bottom: 2px;
}

.thai-trader-role {
  font-size: var(--font-size-xs);
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.thai-trader-quote {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ---- Mobile responsive ---- */
@media (max-width: 1024px) {
  .broker-featured-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .broker-logo-section {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

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

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

@media (max-width: 768px) {
  .thai-traders-strip {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .thai-traders-heading {
    width: auto;
  }

  .thai-traders-grid {
    grid-template-columns: 1fr;
  }

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

  .steps-line {
    display: none;
  }

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

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    gap: var(--space-md);
  }

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

  .cta-box-actions {
    flex-direction: column;
    align-items: center;
  }

  .technical-levels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .broker-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-filters {
    flex-wrap: wrap;
  }
}

/* ---- Promo Banner Ad ---- */
@media (max-width: 640px) {
  .promo-banner-grid {
    grid-template-columns: 1fr !important;
  }
  .promo-banner-visual {
    min-height: 140px;
  }
}

/* ============================================================
   Mobile Bottom Tab Bar
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  min-height: 56px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-tab.active,
.bottom-tab:active {
  color: var(--color-gold-dark);
}

.bottom-tab.active svg {
  stroke-width: 2.4;
}

.bottom-tab.active span {
  color: var(--color-gold-dark);
}
