/* ═══════════════════════════════════════════════════════════
   FXMask – Professional Forex Trading Website
   Color Scheme: Black (#080808) + Red (#cc0000)
   ═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --bg-0:        #080808;
  --bg-1:        #0e0e0e;
  --bg-2:        #141414;
  --bg-3:        #1a1a1a;
  --bg-alt:      #0b0b0b;

  --red:         #cc0000;
  --red-bright:  #e60000;
  --red-dark:    #990000;
  --red-dim:     rgba(204, 0, 0, 0.15);
  --red-glow:    rgba(204, 0, 0, 0.30);
  --red-glow2:   rgba(204, 0, 0, 0.08);

  --white:       #ffffff;
  --gray-100:    #e0e0e0;
  --gray-400:    #888888;
  --gray-600:    #555555;
  --border:      #222222;
  --border-red:  rgba(204, 0, 0, 0.35);

  --green:       #00c853;
  --green-dim:   rgba(0, 200, 83, 0.15);
  --danger:      #ff3333;
  --danger-dim:  rgba(255, 51, 51, 0.15);

  --font:        'Inter', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red:  0 8px 32px var(--red-glow);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── LOGO TEXT ─────────────────────────────────────────── */
.logo-fx   { color: var(--red);   font-weight: 900; letter-spacing: -1px; }
.logo-mask { color: var(--white); font-weight: 900; letter-spacing: -1px; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.6rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-100);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover { color: var(--white); background: var(--bg-3); }

.btn-nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-nav-cta:hover {
  background: var(--red-bright) !important;
  box-shadow: 0 4px 16px var(--red-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding: 13px 24px;
}

.btn-youtube {
  background: #ff0000;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,0,0,0.4);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

/* Backgrounds */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(204,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--gray-100);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat { text-align: left; }

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

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

.chart-pair {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.chart-price {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Bar chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 100px;
  margin-bottom: 16px;
}

.bar {
  flex: 1;
  background: var(--bg-3);
  border-radius: 3px 3px 0 0;
  transition: height 1s ease;
}

.bar.up { background: linear-gradient(180deg, var(--red-bright), var(--red-dark)); }

.chart-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.chart-label { color: var(--gray-400); }

/* Mini stats row */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
}

.mini-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mini-value {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Color helpers */
.up   { color: var(--green); }
.down { color: var(--danger); }

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-600);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 96px 0;
  background: var(--bg-0);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.subsection { margin-bottom: 48px; }
.subsection:last-child { margin-bottom: 0; }

.subsection-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-100);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subsection-title i { color: var(--red); }

/* ─── CARDS GRID ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ─── PRODUCT CARD ───────────────────────────────────────── */
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-red);
  box-shadow: 0 20px 48px var(--red-glow2), var(--shadow-card);
}

.card:hover::before { opacity: 1; }

.card-featured {
  border-color: var(--border-red);
  background: linear-gradient(160deg, var(--bg-2) 0%, rgba(204,0,0,0.06) 100%);
}

.card-featured::before { opacity: 1; }

.card-free {
  border-style: dashed;
}

/* Card elements */
.card-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-premium { background: rgba(180,120,0,0.2); color: #f0a500; border: 1px solid rgba(240,165,0,0.3); }
.badge-hot     { background: var(--red-dim);        color: var(--red);  border: 1px solid var(--border-red); }
.badge-free    { background: rgba(0,200,83,0.15);   color: var(--green); border: 1px solid rgba(0,200,83,0.3); }

.card-icon {
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-features li {
  font-size: 0.84rem;
  color: var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li i {
  color: var(--green);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
}

.card-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
}

.free-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}

/* ─── COURSE CARDS ───────────────────────────────────────── */
.course-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-red);
  box-shadow: 0 20px 48px var(--red-glow2);
}

.course-featured {
  border-color: var(--border-red);
  background: linear-gradient(160deg, var(--bg-2) 0%, rgba(204,0,0,0.06) 100%);
}

.course-level {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

.level-beginner    { background: rgba(0,200,83,0.15);  color: var(--green); }
.level-intermediate{ background: rgba(255,165,0,0.15); color: #ffaa00; }
.level-advanced    { background: var(--red-dim);        color: var(--red); }

.course-modules {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.course-modules li {
  font-size: 0.84rem;
  color: var(--gray-100);
  display: flex;
  align-items: center;
  gap: 9px;
}

.course-modules li i { color: var(--red); font-size: 0.75rem; }

.course-meta {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════
   TRADING DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.dashboard-wrapper {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

.dash-time {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}

.table-scroll { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.dash-table thead tr {
  background: var(--bg-3);
}

.dash-table th {
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.dash-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--gray-100);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  transition: background 0.15s;
}

.dash-table tbody tr:hover { background: var(--bg-3); }
.dash-table tbody tr:last-child td { border-bottom: none; }

.td-pair {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.td-trend i { font-size: 0.8rem; }

.td-trend .up-arrow   { color: var(--green); }
.td-trend .down-arrow { color: var(--danger); }

/* Flash animations for price updates */
@keyframes flashUp {
  0%   { background: var(--green-dim); }
  100% { background: transparent; }
}

@keyframes flashDown {
  0%   { background: var(--danger-dim); }
  100% { background: transparent; }
}

.flash-up   { animation: flashUp 0.6s ease; }
.flash-down { animation: flashDown 0.6s ease; }

.change-up   { color: var(--green);  font-weight: 600; }
.change-down { color: var(--danger); font-weight: 600; }

.dashboard-footer {
  padding: 12px 24px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════════════════════════ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.community-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.community-card:hover { transform: translateY(-6px); }

.yt-card {
  background: linear-gradient(135deg, #1a0000 0%, #0e0e0e 100%);
  border: 1px solid rgba(255,0,0,0.25);
}

.wa-card {
  background: linear-gradient(135deg, #001a08 0%, #0e0e0e 100%);
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.comm-icon {
  font-size: 3rem;
  line-height: 1;
}

.yt-icon { color: #ff0000; }
.wa-icon { color: #25d366; }

.community-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.community-card p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.comm-stats {
  display: flex;
  gap: 20px;
  font-size: 0.83rem;
  color: var(--gray-400);
}

.comm-stats span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.comm-stats i { color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.soc-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.soc-link:hover {
  background: var(--red-dim);
  border-color: var(--border-red);
  color: var(--red);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-100);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.disclaimer {
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.disclaimer i { color: #ff8800; margin-top: 2px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of a revealed grid */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – TABLET (≤ 900px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content { order: 1; }
  .hero-visual  { order: 2; max-width: 460px; margin: 0 auto; width: 100%; }

  .hero-desc  { max-width: 100%; }
  .hero-cta   { justify-content: center; }
  .hero-stats { justify-content: center; }

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

  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE (≤ 600px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 900;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    font-size: 1.2rem;
    padding: 14px 32px;
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero { padding: 90px 0 50px; }

  .hero-title { letter-spacing: -1px; }

  .mini-stats { grid-template-columns: 1fr 1fr; }
  .mini-stats .mini-stat:last-child { grid-column: 1 / -1; }

  /* Cards */
  .cards-grid,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Sections */
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }

  /* Community */
  .community-card { padding: 28px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand { grid-column: auto; }

  .footer-bottom {
    text-align: center;
  }

  .disclaimer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   EA LISTING PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

.ea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ea-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  overflow: hidden;
}

.ea-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
  opacity: 0;
  transition: var(--transition);
}

.ea-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-red);
  box-shadow: 0 20px 48px var(--red-glow2), var(--shadow-card);
}

.ea-card:hover::before { opacity: 1; }

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

.ea-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0,200,83,0.15);
  color: var(--green);
  border: 1px solid rgba(0,200,83,0.3);
}

.ea-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.ea-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ea-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.ea-body p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.ea-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.ea-features li {
  font-size: 0.8rem;
  color: var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ea-features li i {
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ea-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}

/* EA Detail Page Specifics */
.ea-detail-page {
  padding-top: 120px;
}

.ea-detail-page .card {
  margin: 2rem 0;
}

.stat-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-100);
  margin-bottom: 4px;
}

.stat-box p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Responsive for EA grid */
@media (max-width: 900px) {
  .ea-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .ea-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .ea-card {
    padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   EA DETAIL PAGE IMAGE FIXES
   ═══════════════════════════════════════════════════════════ */

/* New image container class - use this for all EA images */
.ea-image-container {
  max-width: 900px;
  margin: 0 auto 2rem;
  border: 2px solid rgba(0,255,136,0.3);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,255,136,0.2);
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1538 100%);
}

.ea-image-container img,
.ea-image-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Fix for old ea-image class with inline SVGs */
.ea-image {
  max-width: 900px;
  margin: 0 auto 2rem;
  border: 2px solid rgba(0,255,136,0.3);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,255,136,0.2);
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1538 100%);
  position: relative;
}

.ea-image svg {
  width: 100%;
  height: auto;
  display: block;
  position: static;
}
