/* ============ JOKERCOIN STYLES ============ */
:root {
  --bg-primary: #0a0f1f;
  --bg-secondary: #0e1530;
  --bg-card: #131c3a;
  --bg-card-hover: #182245;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #e8eaf3;
  --text-secondary: #a8b0c8;
  --text-muted: #6f7895;
  --gold: #f5b942;
  --gold-light: #ffd166;
  --gold-dark: #d99a2a;
  --blue: #4a8df0;
  --blue-light: #6ba6ff;
  --green: #16c784;
  --green-soft: rgba(22, 199, 132, 0.15);
  --red: #ea3943;
  --red-soft: rgba(234, 57, 67, 0.15);
  --orange: #ff7a45;
  --yellow: #facc15;
  --purple: #a855f7;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 32px rgba(245, 185, 66, 0.25);
  --gradient-gold: linear-gradient(135deg, #f5b942 0%, #ffd166 50%, #d99a2a 100%);
  --gradient-blue: linear-gradient(135deg, #4a8df0 0%, #6ba6ff 100%);
  --gradient-green: linear-gradient(135deg, #16c784 0%, #4ade80 100%);
  --gradient-red: linear-gradient(135deg, #ea3943 0%, #fb7185 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

[data-theme="light"] {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9ff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text-primary: #0e1530;
  --text-secondary: #455174;
  --text-muted: #8893b0;
  --shadow-sm: 0 4px 12px rgba(20, 30, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 30, 60, 0.12);
  --shadow-lg: 0 16px 48px rgba(20, 30, 60, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

/* Loading Bar */
.loading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient-gold); z-index: 9999;
  transition: width 0.3s ease; box-shadow: 0 0 12px var(--gold);
}
.loading-bar.active { width: 100%; }

/* Live Dot Indicator */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-right: 6px;
  animation: pulse-live 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red);
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.live-text { color: var(--red); font-size: 0.85rem; font-weight: 700; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 15, 31, 0.85); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
[data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.85); }
.navbar.scrolled { background: rgba(10, 15, 31, 0.95); box-shadow: var(--shadow-md); }
[data-theme="light"] .navbar.scrolled { background: rgba(255, 255, 255, 0.95); }

.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.nav-logo img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-text { font-size: 1.3rem; letter-spacing: 1px; color: var(--text-primary); }
.brand-accent {
  background: var(--gradient-gold); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-secondary);
  font-weight: 600; font-size: 0.92rem; transition: all 0.2s ease;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--gold); }

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

.alert-bell, .theme-toggle, .mobile-menu-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 1rem; border: 1px solid var(--border);
  transition: all 0.2s ease; position: relative;
}
.alert-bell:hover, .theme-toggle:hover, .mobile-menu-btn:hover {
  background: var(--bg-card-hover); border-color: var(--gold); color: var(--gold);
}
.alert-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 800; display: flex; align-items: center;
  justify-content: center; padding: 0 5px; border: 2px solid var(--bg-primary);
  animation: pulse-live 2s ease-in-out infinite;
}
.mobile-menu-btn { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; padding: 110px 24px 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1a2452 0%, var(--bg-primary) 60%);
}
[data-theme="light"] .hero { background: radial-gradient(ellipse at top, #e6ecff 0%, var(--bg-primary) 60%); }

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 185, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 185, 66, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 4px; height: 4px; background: var(--gold);
  border-radius: 50%; opacity: 0.6; animation: float-particle 15s linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 1; max-width: 1100px; width: 100%; text-align: center;
}

.hero-logo-wrapper { position: relative; display: inline-block; margin-bottom: 28px; }
.hero-logo {
  width: 200px; height: auto; border-radius: var(--radius-lg); position: relative; z-index: 2;
  animation: hero-float 6s ease-in-out infinite; box-shadow: var(--shadow-lg);
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-logo-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.4) 0%, transparent 70%);
  filter: blur(30px); z-index: 1; animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.2;
  margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px;
}
.hero-title-line2 { font-size: 0.65em; font-weight: 700; color: var(--text-secondary); }
.text-gold {
  background: var(--gradient-gold); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--text-secondary);
  max-width: 720px; margin: 0 auto 36px; line-height: 1.8;
}
.hero-subtitle b { color: var(--gold); font-weight: 800; }

.global-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; max-width: 950px; margin: 0 auto 32px;
}

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px; text-align: center;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold);
}
.stat-label {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600;
}
.stat-value {
  font-size: 1.35rem; font-weight: 800; color: var(--text-primary);
  font-family: 'Inter', monospace;
}
.stat-change { font-size: 0.85rem; font-weight: 700; margin-top: 4px; }

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

.btn-primary, .btn-secondary {
  padding: 14px 26px; border-radius: var(--radius-md); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; cursor: pointer;
}
.btn-primary { background: var(--gradient-gold); color: #1a1a1a; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245, 185, 66, 0.5); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--gold); color: var(--gold); }

.hero-scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1.4rem; animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Ticker */
.ticker-wrapper {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); overflow: hidden; padding: 14px 0; position: relative;
}
.ticker-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: ticker-scroll 70s linear infinite; padding-left: 40px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.ticker-item img { width: 24px; height: 24px; border-radius: 50%; }
.ticker-symbol { color: var(--text-primary); font-weight: 800; font-family: 'Inter', monospace; }
.ticker-price { color: var(--text-primary); font-family: 'Inter', monospace; }
.ticker-loading { padding: 0 24px; color: var(--text-muted); }

.up { color: var(--green) !important; }
.down { color: var(--red) !important; }

/* Sections */
.section { padding: 70px 24px; position: relative; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: 1400px; margin: 0 auto; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 32px;
}
.section-header.center { justify-content: center; text-align: center; }

.section-title {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 900;
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap;
}
.section-title.center { justify-content: center; }
.section-subtitle { color: var(--text-secondary); font-size: 0.98rem; }

/* Signal Filters */
.signal-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.signal-filter {
  padding: 10px 18px; border-radius: var(--radius-sm); background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-secondary); font-weight: 700;
  font-size: 0.9rem; transition: all 0.2s ease;
}
.signal-filter:hover { border-color: var(--gold); color: var(--gold); }
.signal-filter.active {
  background: var(--gradient-gold); color: #1a1a1a; border-color: var(--gold);
}

/* Signals Grid (Recommendations) */
.signals-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.signal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; transition: all 0.3s ease;
  cursor: pointer; position: relative; overflow: hidden;
}
.signal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--signal-color, var(--gold));
}
.signal-card:hover {
  transform: translateY(-4px); border-color: var(--signal-color, var(--gold));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.signal-card-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.signal-card-head img { width: 48px; height: 48px; border-radius: 50%; }
.signal-card-info { flex: 1; min-width: 0; }
.signal-card-info h3 {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.signal-card-info .symbol {
  color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase;
  font-weight: 700; font-family: 'Inter', monospace;
}

.signal-badge {
  padding: 6px 12px; border-radius: 6px; font-weight: 800; font-size: 0.85rem;
  background: var(--signal-color, var(--gold)); color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); white-space: nowrap;
}

.signal-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; font-family: 'Inter', monospace;
}
.signal-price { font-size: 1.4rem; font-weight: 800; }
.signal-change { font-weight: 700; font-size: 1rem; }

/* Signal Score Bar */
.signal-score-row {
  margin-bottom: 14px;
}
.signal-score-label {
  display: flex; justify-content: space-between; font-size: 0.78rem;
  color: var(--text-muted); margin-bottom: 6px; font-weight: 600;
}
.signal-score-bar {
  height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden;
  position: relative;
}
.signal-score-fill {
  height: 100%; background: var(--signal-color, var(--gold));
  border-radius: 3px; transition: width 0.6s ease;
}

.signal-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px;
}
.signal-stat {
  background: var(--bg-secondary); padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.signal-stat-label {
  font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 600;
}
.signal-stat-val {
  font-size: 0.92rem; font-weight: 700; font-family: 'Inter', monospace;
}

.signal-targets {
  background: var(--bg-secondary); border-radius: var(--radius-sm);
  padding: 12px; border: 1px solid var(--border);
}
.signal-target-row {
  display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.85rem;
  font-family: 'Inter', monospace;
}
.signal-target-row span:first-child { color: var(--text-muted); }
.signal-target-row span:last-child { font-weight: 700; }
.target-tp { color: var(--green); }
.target-sl { color: var(--red); }
.target-rr { color: var(--gold); }

/* Whales Grid */
.whales-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.whale-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; transition: all 0.3s ease;
  cursor: pointer; position: relative; overflow: hidden;
}
.whale-card.opportunity {
  border-color: var(--gold); box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.2);
}
.whale-card.opportunity::before {
  content: '🎯 فرصة دخول'; position: absolute; top: 12px; left: 12px;
  background: var(--gradient-gold); color: #1a1a1a; padding: 4px 10px;
  border-radius: 6px; font-size: 0.72rem; font-weight: 800;
}
.whale-card:hover { transform: translateY(-4px); border-color: var(--blue); }

.whale-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.whale-head img { width: 44px; height: 44px; border-radius: 50%; }
.whale-info { flex: 1; min-width: 0; }
.whale-info h3 { font-size: 1rem; font-weight: 800; margin-bottom: 2px; }
.whale-info p { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }

.whale-direction {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.95rem;
}
.whale-direction.buy { background: var(--green-soft); color: var(--green); }
.whale-direction.sell { background: var(--red-soft); color: var(--red); }
.whale-direction.neutral { background: rgba(245, 185, 66, 0.15); color: var(--gold); }

.whale-score-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.whale-score-circle {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; font-family: 'Inter', monospace;
  background: conic-gradient(var(--blue) calc(var(--score, 0) * 1%), var(--bg-secondary) 0);
  position: relative;
}
.whale-score-circle::before {
  content: ''; position: absolute; inset: 4px; background: var(--bg-card); border-radius: 50%;
}
.whale-score-circle span { position: relative; z-index: 1; }

.whale-meta {
  flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem;
}
.whale-meta-row { display: flex; justify-content: space-between; }
.whale-meta-row span:first-child { color: var(--text-muted); }
.whale-meta-row span:last-child { font-weight: 700; font-family: 'Inter', monospace; }

.whale-events {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.whale-event {
  background: var(--bg-secondary); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary);
}

/* Alerts */
.alerts-feed {
  display: grid; gap: 12px; max-width: 950px; margin: 0 auto;
}
.alert-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; transition: all 0.2s ease;
  border-right: 4px solid var(--alert-color, var(--gold));
}
.alert-item:hover { transform: translateX(-4px); background: var(--bg-card-hover); }

.alert-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: rgba(245, 185, 66, 0.15); color: var(--alert-color, var(--gold));
}

.alert-content { flex: 1; min-width: 0; }
.alert-title { font-weight: 800; font-size: 0.98rem; margin-bottom: 3px; }
.alert-message { color: var(--text-secondary); font-size: 0.88rem; }
.alert-time { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }

.alert-severity-high { animation: glow-pulse 2s ease-in-out infinite; }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 185, 66, 0); }
  50% { box-shadow: 0 0 16px rgba(245, 185, 66, 0.3); }
}

/* Toast Container (live notifications) */
.alerts-toast-container {
  position: fixed; top: 80px; left: 20px; z-index: 1500;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; pointer-events: none;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
  box-shadow: var(--shadow-lg); pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  border-right: 4px solid var(--alert-color, var(--gold));
  animation: toast-slide 0.3s ease;
}
@keyframes toast-slide {
  from { transform: translateX(-110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.fade-out { animation: toast-fade 0.4s ease forwards; }
@keyframes toast-fade {
  to { transform: translateX(-110%); opacity: 0; }
}
.toast-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  background: rgba(245, 185, 66, 0.15); color: var(--alert-color, var(--gold));
}
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 2px; }
.toast-msg { font-size: 0.8rem; color: var(--text-secondary); }

/* Disclaimer Box */
.disclaimer-box {
  background: rgba(245, 185, 66, 0.08); border: 1px solid rgba(245, 185, 66, 0.25);
  border-radius: var(--radius-md); padding: 14px 18px; margin-top: 24px;
  color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7;
  display: flex; align-items: flex-start; gap: 10px;
}
.disclaimer-box i { color: var(--gold); font-size: 1.1rem; margin-top: 2px; }

/* Search & Currency */
.market-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box i { position: absolute; right: 14px; color: var(--text-muted); font-size: 0.9rem; }
.search-box input {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 40px 12px 16px;
  color: var(--text-primary); font-size: 0.95rem; width: 240px;
  outline: none; transition: all 0.2s ease;
}
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.15); }

.currency-select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text-primary); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; outline: none;
}
.currency-select:focus { border-color: var(--gold); }

/* Market Table */
.market-table-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.market-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.market-table thead { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.market-table th {
  padding: 14px 12px; text-align: right; font-size: 0.83rem; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.market-table td {
  padding: 14px 12px; border-bottom: 1px solid var(--border);
  font-size: 0.93rem; white-space: nowrap; font-family: 'Inter', monospace;
}
.market-table tbody tr { transition: background 0.15s ease; cursor: pointer; }
.market-table tbody tr:hover { background: var(--bg-card-hover); }
.market-table tbody tr:last-child td { border-bottom: none; }

.coin-cell {
  display: flex; align-items: center; gap: 12px; min-width: 200px; font-family: 'Cairo', sans-serif;
}
.coin-cell img { width: 32px; height: 32px; border-radius: 50%; }
.coin-name { font-weight: 700; color: var(--text-primary); }
.coin-symbol {
  color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; font-weight: 600;
}
.coin-info { display: flex; flex-direction: column; gap: 2px; }
.price-value { font-weight: 700; color: var(--text-primary); }

.range-cell { font-size: 0.82rem; line-height: 1.4; }
.range-cell .high { color: var(--green); }
.range-cell .low { color: var(--red); }

.loading-row { text-align: center !important; padding: 60px 20px !important; color: var(--text-muted); }
.loading-row .spinner { margin: 0 auto 12px; }

.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px;
}
.page-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
  background: var(--gold); color: #1a1a1a; border-color: var(--gold);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { color: var(--text-secondary); font-weight: 600; }

/* Converter */
.converter-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; max-width: 800px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.converter-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.converter-input-group { flex: 1; min-width: 240px; }
.converter-input-group label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 8px;
}
.converter-input {
  display: flex; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s ease;
}
.converter-input:focus-within { border-color: var(--gold); }
.converter-input input {
  flex: 1; background: transparent; border: none; outline: none; padding: 16px;
  color: var(--text-primary); font-size: 1.2rem; font-weight: 700;
  font-family: 'Inter', monospace; min-width: 0;
}
.converter-input select {
  background: var(--bg-card-hover); border: none; outline: none; padding: 0 16px;
  color: var(--text-primary); font-weight: 700; cursor: pointer;
  border-right: 1px solid var(--border); min-width: 130px;
}
.swap-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-gold);
  color: #1a1a1a; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 4px; transition: transform 0.3s ease;
  box-shadow: var(--shadow-gold);
}
.swap-btn:hover { transform: rotate(180deg); }
.converter-rate {
  margin-top: 24px; text-align: center; color: var(--text-secondary); font-size: 0.95rem;
  padding: 12px; background: var(--bg-secondary); border-radius: var(--radius-sm);
  font-family: 'Inter', monospace;
}

/* Footer */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); margin-top: 16px; line-height: 1.7; font-size: 0.95rem; }
.footer-logo { width: 60px; border-radius: var(--radius-md); }
.footer-col h4 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a {
  display: block; padding: 6px 0; color: var(--text-secondary);
  font-size: 0.95rem; transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold); }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  border: 1px solid var(--border); transition: all 0.2s ease; padding: 0;
}
.social-links a:hover {
  background: var(--gradient-gold); color: #1a1a1a; border-color: var(--gold); transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: 0.9rem;
}
.disclaimer i { color: var(--gold); margin-left: 6px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); max-width: 900px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 32px; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 16px; left: 16px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  border: 1px solid var(--border); transition: all 0.2s ease; z-index: 1;
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

.coin-detail-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.coin-detail-header img { width: 64px; height: 64px; border-radius: 50%; }
.coin-detail-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.coin-detail-info .coin-symbol { font-size: 1rem; }
.coin-detail-price {
  font-size: 2.2rem; font-weight: 900; font-family: 'Inter', monospace; margin-top: 8px;
}

.coin-detail-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin: 24px 0;
}
.detail-stat {
  background: var(--bg-secondary); padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.detail-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.detail-stat-value { font-size: 1rem; font-weight: 700; font-family: 'Inter', monospace; }

.chart-container {
  background: var(--bg-secondary); border-radius: var(--radius-md); padding: 16px;
  margin: 20px 0; border: 1px solid var(--border);
}
.chart-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chart-tab {
  padding: 8px 16px; border-radius: var(--radius-sm); background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease;
}
.chart-tab.active, .chart-tab:hover {
  background: var(--gold); color: #1a1a1a; border-color: var(--gold);
}

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--gradient-gold); color: #1a1a1a;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s ease; box-shadow: var(--shadow-gold);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  transform: translateY(-4px); box-shadow: 0 8px 32px rgba(245, 185, 66, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; background: var(--bg-secondary);
    flex-direction: column; padding: 20px; gap: 4px; border-bottom: 1px solid var(--border);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { width: 100%; padding: 12px 16px; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding-top: 90px; }
  .hero-logo { width: 150px; }
  .global-stats { grid-template-columns: repeat(2, 1fr); }
  .converter-row { flex-direction: column; align-items: stretch; }
  .swap-btn { margin: 0 auto; transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }
  .search-box input { width: 100%; }
  .market-controls { width: 100%; }
  .modal-content { padding: 20px; }
  .coin-detail-price { font-size: 1.7rem; }
  .signals-grid, .whales-grid { grid-template-columns: 1fr; }
  .signal-filters { width: 100%; }
  .alerts-toast-container { left: 10px; right: 10px; max-width: none; }
  .section { padding: 50px 16px; }
}

@media (max-width: 480px) {
  .global-stats { grid-template-columns: 1fr; }
  .nav-container { padding: 12px 14px; }
  .brand-text { font-size: 1.05rem; }
  .nav-logo img { width: 36px; height: 36px; }
  .signal-stats { grid-template-columns: 1fr; }
}
