/* ===== CSS VARIABLES ===== */
:root {
  --bg-dark: #0e0e10;
  --bg-card: #18181c;
  --bg-card2: #1e1e24;
  --bg-header: #141416;
  --border: #2a2a35;
  --border-bright: #3a3a4a;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.25);
  --accent: #f59e0b;
  --accent-dim: #d97706;
  --red: #ef4444;
  --blue: #3b82f6;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-green: 0 0 24px rgba(34, 197, 94, 0.3);
  --transition: 0.2s ease;
}

/* ===== BASE ===== */
body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.011;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.forum-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.forum-breadcrumb .active {
  color: var(--green);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.username {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}

.deposit-badge {
  background: linear-gradient(135deg, #1a3a2a, #0f2018);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  display: flex;
  gap: 5px;
  align-items: center;
}

.dep-amount {
  color: #fff;
  font-weight: 700;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: #0a1a0f;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 32px;
  border-right: 1px solid #1a3a1a;
}

.ticker-item .ti-amount {
  color: var(--accent);
  font-weight: 700;
}

.ticker-item .ti-sep {
  color: var(--text-muted);
}

/* ===== HERO ===== */
.hero-wrap {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  padding: 60px 60px;
  position: relative;
  z-index: 2;
}

/* Full-bleed bg grid sits inside hero-wrap */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 40px;
}

.tag-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius);
  border: 1px solid;
}

.tag.green {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(34, 197, 94, 0.08);
}

.tag.gray {
  color: var(--text-secondary);
  border-color: var(--border);
  background: var(--bg-card);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--green);
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

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

.hero-3d {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

#card-canvas {
  width: 100%;
  max-width: 600px;
  height: 550px;
  display: block;
}

/* ===== BUTTONS ===== */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.btn-main:hover {
  background: #16a34a;
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-main.small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  border-color: var(--green-dim);
  color: var(--green);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-title .prefix {
  color: var(--green);
  font-family: var(--font-mono);
  margin-right: 8px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  font-weight: 300;
}

section {
  padding: 80px 0;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-green);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  font-size: 24px;
  color: var(--green);
  padding: 0 14px;
  flex-shrink: 0;
}

/* ===== OFFERS ===== */
.offers-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--green-dim);
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

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

.offer-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.offer-bank {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.3;
}

.offer-amount {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.offer-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.offer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
}

.offer-tag.age-14 {
  color: #22d3ee;
  border-color: #0891b2;
  background: rgba(34, 211, 238, 0.08);
}

.offer-tag.age-18 {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(245, 158, 11, 0.08);
}

.offer-tag.age-20 {
  color: var(--red);
  border-color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

.offer-tag.type-debit {
  color: var(--blue);
  border-color: #2563eb;
  background: rgba(59, 130, 246, 0.08);
}

.offer-tag.type-credit {
  color: #a78bfa;
  border-color: #7c3aed;
  background: rgba(167, 139, 250, 0.08);
}

.offer-tag.type-invest {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(245, 158, 11, 0.08);
}

.offer-condition {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.offer-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== IP SECTION ===== */
.ip-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.ip-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: border-color var(--transition);
}

.ip-card:hover {
  border-color: var(--accent-dim);
}

.bank-name {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.ip-amount {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}

.ip-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.ip-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.ip-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.warning-block {
  display: flex;
  gap: 12px;

  align-items: flex-start;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 16px;
  color: #fca5a5;
  line-height: 1.6;
  justify-content: center;
}

/* ===== REFERRAL ===== */
.ref-card {
  background: linear-gradient(135deg, #0f2518, #0e0e10 60%);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: inset 0 0 60px rgba(34, 197, 94, 0.05);
}

.ref-amount {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  color: var(--green);
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
  margin-bottom: 12px;
}

.ref-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CALCULATOR ===== */
.calc-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.calc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.calc-item:hover {
  border-color: var(--border-bright);
}

.calc-item.selected {
  border-color: var(--green-dim);
  background: rgba(34, 197, 94, 0.06);
}

.calc-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-bright);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 11px;
}

.calc-item.selected .calc-checkbox {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

.calc-item-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.calc-item.selected .calc-item-name {
  color: var(--text-primary);
}

.calc-item-amount {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  font-weight: 700;
}

.calc-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: sticky;
  top: 80px;
  text-align: center;
}

.calc-result-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calc-result-amount {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--green);
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.calc-result-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.calc-cta {
  width: 100%;
  justify-content: center;
}

/* ===== TRUST ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.trust-card:hover {
  border-color: var(--green-dim);
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--green);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card2);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-card);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 3.7s forwards;
  max-width: 280px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.toast-icon {
  font-size: 16px;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 20px;
    text-align: center;
    gap: 24px;
  }

  .hero-wrap {
    min-height: auto;
  }

  .hero-content {
    padding-right: 0;
  }

  .tag-line,
  .hero-cta {
    justify-content: center;
  }

  .hero-3d {
    min-height: 240px;
    width: 100%;
  }

  #card-canvas {
    max-width: 340px;
    height: 240px;
    margin: 0 auto;
  }

  .steps-grid {
    flex-direction: column;
  }

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

  .calc-inner {
    grid-template-columns: 1fr;
  }

  .calc-result-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .site-header .user-badge {
    display: none;
  }

  .burger {
    display: flex;
  }

  section {
    padding: 52px 0;
  }

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

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

  .ref-card {
    padding: 28px 20px;
  }

  #toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .deposit-badge {
    font-size: 10px;
  }
}