@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --bg:        #1a1207;
  --bg2:       #221808;
  --bg3:       #2e2210;
  --board:     #2a1e0c;
  --border:    rgba(255,200,80,0.12);
  --border2:   rgba(255,200,80,0.25);
  --text:      #f5e8c8;
  --text-dim:  #a8905a;
  --text-xdim: #5a4428;
  --gold:      #f5c842;
  --gold2:     #e8a820;
  --gold-dim:  rgba(245,200,66,0.12);
  --green:     #4ecb71;
  --green-dim: rgba(78,203,113,0.12);
  --red:       #ff5a5a;
  --red-dim:   rgba(255,90,90,0.12);
  --blue:      #5ab4ff;
  --orange:    #ff9f43;
  --purple:    #c678ff;
  --teal:      #2ec9c9;
  --card-bg:   rgba(255,200,80,0.04);
  --shadow:    rgba(0,0,0,0.5);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23f5c842' opacity='0.8'/%3E%3C/svg%3E") 10 10, auto;
}

/* ─── SCANLINE TEXTURE ─── */
body::after {
  content:'';
  position:fixed; inset:0; pointer-events:none; z-index:9999;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px);
}

/* ─── ANIMATED BG GRID ─── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(245,200,66,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,66,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* ─── HEADER ─── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(26,18,7,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border2);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-hat {
  font-size: 1.6rem;
  animation: hatBob 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(245,200,66,0.5));
}
@keyframes hatBob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-3px) rotate(3deg); }
}
.logo-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 20px rgba(245,200,66,0.3);
}
.logo-sub {
  font-size: 0.6rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-family: 'Courier Prime', monospace;
  margin-top: -2px;
}

nav { display: flex; gap: 0.3rem; align-items: center; }
.nav-btn {
  padding: 7px 14px; border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; border: none;
  color: var(--text-dim); background: transparent;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.nav-btn:hover { color: var(--gold); background: var(--gold-dim); }
.nav-play {
  background: var(--gold);
  color: #1a1207 !important;
  border: 2px solid var(--gold2);
  box-shadow: 0 4px 0 var(--gold2), 0 0 20px rgba(245,200,66,0.2);
  transition: all 0.15s !important;
}
.nav-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--gold2), 0 0 30px rgba(245,200,66,0.3) !important;
}
.nav-play:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--gold2) !important;
}

/* ─── LEVEL BADGE ─── */
.level-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 14px 5px 8px;
}
.level-xp-bar {
  width: 60px; height: 5px;
  background: var(--text-xdim);
  border-radius: 3px; overflow: hidden;
}
.level-xp-fill {
  height: 100%; width: 62%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 3px;
  animation: xpPulse 2s ease-in-out infinite;
}
@keyframes xpPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.7; }
}
.level-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem; color: var(--gold);
  white-space: nowrap;
}

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  padding: 5rem 2rem 3rem;
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.72rem; font-weight: 800;
  color: var(--gold); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1.2rem;
  animation: fadeUp 0.5s ease both;
}

h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700; line-height: 1;
  letter-spacing: 0.01em;
  animation: fadeUp 0.5s 0.1s ease both;
}
h1 .line1 { color: var(--gold); display: block; }
h1 .line2 { color: var(--text); display: block; }
h1 .line3 {
  display: block;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-dim); margin-top: 1.2rem; max-width: 500px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-stats {
  display: flex; gap: 2rem; margin-top: 1.8rem;
  animation: fadeUp 0.5s 0.25s ease both;
}
.hero-stat-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem; color: var(--gold);
}
.hero-stat-label {
  font-size: 0.75rem; color: var(--text-dim);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex; gap: 12px; margin-top: 2rem;
  animation: fadeUp 0.5s 0.3s ease both;
}

.btn-play {
  background: var(--gold);
  color: #1a1207; font-weight: 800;
  font-size: 1rem; font-family: 'Fredoka', sans-serif;
  padding: 14px 30px; border-radius: 12px;
  border: 3px solid var(--gold2);
  box-shadow: 0 6px 0 var(--gold2), 0 0 30px rgba(245,200,66,0.25);
  cursor: pointer; letter-spacing: 0.04em;
  transition: all 0.15s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold2), 0 0 40px rgba(245,200,66,0.35); }
.btn-play:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--gold2); }

.btn-peek {
  background: transparent;
  color: var(--text); font-weight: 700;
  font-size: 0.9rem; font-family: 'Nunito', sans-serif;
  padding: 14px 24px; border-radius: 12px;
  border: 2px solid var(--border2);
  cursor: pointer; transition: all 0.2s;
}
.btn-peek:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

/* ─── MONOPOLY BOARD PREVIEW ─── */
.monopoly-preview {
  animation: fadeUp 0.6s 0.2s ease both;
  position: relative;
}

.board-frame {
  background: var(--board);
  border: 3px solid var(--border2);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,200,66,0.08) inset, inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}

.board-label {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #1a1207; font-family: 'Fredoka', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 12px; border-radius: 10px;
  white-space: nowrap;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.city-tile {
  background: rgba(255,200,80,0.04);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 6px;
  text-align: center; cursor: pointer;
  transition: all 0.2s; position: relative;
  overflow: hidden;
}
.city-tile:hover {
  background: rgba(255,200,80,0.1);
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.city-tile-icon { font-size: 1.5rem; display: block; margin-bottom: 3px; }
.city-tile-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.65rem; color: var(--text-dim);
  letter-spacing: 0.05em;
}
.city-tile-price {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem; margin-top: 2px;
}
.tile-owned {
  position: absolute; top: 3px; right: 3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.board-coins {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.board-coin {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; color: var(--text-dim);
}
.coin-icon { font-size: 0.9rem; }

/* ─── SECTION ─── */
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border2);
  padding: 4px 12px; border-radius: 6px;
  background: var(--gold-dim); margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: 0.01em; margin-bottom: 0.6rem;
}

.section-desc {
  color: var(--text-dim); font-size: 0.95rem;
  line-height: 1.7; max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ─── FILTER ROW ─── */
.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.fchip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 30px;
  font-size: 0.78rem; font-weight: 800;
  cursor: pointer; border: 2px solid var(--border);
  background: var(--bg2); color: var(--text-dim);
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s; letter-spacing: 0.01em;
}
.fchip:hover { border-color: var(--border2); color: var(--text); }
.fchip.on {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── CARDS ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.card:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,200,66,0.1) inset;
  border-color: var(--border2);
}

/* ─── SCENE ─── */
.scene {
  height: 160px; position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.scene-sky-day   { background: linear-gradient(180deg, #1a3a5c 0%, #0f2233 100%); }
.scene-sky-gold  { background: linear-gradient(180deg, #3a2800 0%, #1a1000 100%); }
.scene-sky-green { background: linear-gradient(180deg, #0a2a18 0%, #051410 100%); }
.scene-sky-red   { background: linear-gradient(180deg, #2a0808 0%, #150404 100%); }
.scene-sky-purple{ background: linear-gradient(180deg, #1a0a2a 0%, #0d0515 100%); }
.scene-sky-teal  { background: linear-gradient(180deg, #052020 0%, #031212 100%); }

/* Ground strip */
.scene-ground {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 28px;
  border-top: 2px solid;
}
.ground-day   { background: rgba(90,180,255,0.06); border-color: rgba(90,180,255,0.15); }
.ground-gold  { background: rgba(245,200,66,0.06); border-color: rgba(245,200,66,0.15); }
.ground-green { background: rgba(78,203,113,0.1); border-color: rgba(78,203,113,0.25); }
.ground-red   { background: rgba(255,90,90,0.05); border-color: rgba(255,90,90,0.12); }
.ground-purple{ background: rgba(198,120,255,0.05); border-color: rgba(198,120,255,0.12); }
.ground-teal  { background: rgba(46,201,201,0.08); border-color: rgba(46,201,201,0.2); }

/* Stars */
.stars {
  position: absolute; inset: 0; pointer-events: none;
}
.star {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.1; transform: scale(0.5); }
}

/* ─── 3D SCENE OBJECTS ─── */
.scene-obj {
  position: relative;
  animation: sceneBob 4s ease-in-out infinite;
}
@keyframes sceneBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* BIG BOX STORE */
.bb-store {
  width: 72px; height: 52px;
  border-radius: 5px 5px 0 0;
  position: relative;
}
.bb-facade {
  position: absolute; inset: 0;
  border-radius: 5px 5px 0 0;
  border: 2px solid;
}
.bb-sign {
  position: absolute; top: 6px; left: 0; right: 0;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 8px; font-weight: 700; letter-spacing: 1px;
}
.bb-windows {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.bb-win {
  width: 13px; height: 16px; border-radius: 2px;
  border: 1px solid rgba(90,180,255,0.4);
  background: rgba(90,180,255,0.15);
}
/* 3D side */
.bb-side {
  position: absolute; right: -10px; top: 4px; bottom: 0;
  width: 10px;
  transform: skewY(-45deg);
  transform-origin: left top;
}

/* CROWN */
.crown-big {
  font-size: 3rem;
  filter: drop-shadow(0 0 15px rgba(245,200,66,0.7));
  animation: crownPulse 2.5s ease-in-out infinite;
}
@keyframes crownPulse {
  0%,100% { filter: drop-shadow(0 0 15px rgba(245,200,66,0.6)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 25px rgba(245,200,66,1)); transform: scale(1.05); }
}

/* HOSPITAL */
.hosp {
  width: 68px; height: 58px;
  background: rgba(20,50,50,0.8);
  border: 2px solid rgba(78,203,113,0.3);
  border-radius: 5px 5px 0 0;
  position: relative;
}
.hosp-cross {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  color: var(--green); font-size: 1.4rem;
  font-weight: 900; line-height: 1;
  text-shadow: 0 0 12px var(--green);
}
.hosp-tag {
  position: absolute; top: 5px; right: 5px;
  font-size: 0.5rem; color: rgba(78,203,113,0.7);
  font-family: 'Courier Prime', monospace;
}

/* TOWER (REIT) */
.tower {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.tower-body {
  border-radius: 4px 4px 0 0;
  border: 2px solid rgba(90,180,255,0.3);
  background: linear-gradient(180deg, rgba(25,50,80,0.9), rgba(15,30,50,0.9));
  position: relative; overflow: hidden;
}
.tower-glow {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(90,180,255,0.05), transparent);
}
.tw-win {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; padding: 4px;
}
.tw-w {
  height: 5px; background: rgba(90,180,255,0.25); border-radius: 1px;
}
.tw-w.on { background: rgba(255,240,150,0.7); }
.land-strip {
  width: 120%; height: 10px; margin-top: -1px;
  background: linear-gradient(90deg, rgba(78,203,113,0.5), rgba(78,203,113,0.2));
  border-top: 2px solid var(--green);
  border-radius: 0 0 3px 3px;
  position: relative;
}
.land-dot {
  position: absolute; top: -4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* OIL RIG */
.rig {
  position: relative; display: flex; flex-direction: column; align-items: center;
}
.rig-base {
  width: 30px; height: 6px;
  background: rgba(255,159,67,0.3);
  border: 1px solid rgba(255,159,67,0.5);
  border-radius: 2px;
}
.rig-leg { width: 3px; height: 45px; background: linear-gradient(180deg,rgba(255,159,67,0.8),rgba(255,159,67,0.3)); }
.rig-top {
  width: 40px; height: 4px;
  background: rgba(255,159,67,0.6);
  border-radius: 2px; margin-bottom: 2px;
}
.rig-flame {
  font-size: 1.2rem;
  animation: flameDance 1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px var(--orange));
}
@keyframes flameDance {
  from { transform: scaleX(0.8) scaleY(1) rotate(-5deg); }
  to   { transform: scaleX(1.2) scaleY(1.1) rotate(5deg); }
}

/* LAB */
.lab {
  width: 70px; height: 55px;
  background: rgba(198,120,255,0.08);
  border: 2px solid rgba(198,120,255,0.3);
  border-radius: 5px; position: relative;
}
.lab-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 6px, transparent 6px, transparent 12px);
  opacity: 0.6; border-radius: 3px 3px 0 0;
}
.lab-q {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -45%);
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  color: rgba(255,90,90,0.9);
  text-shadow: 0 0 15px rgba(255,90,90,0.5);
  animation: qPulse 2s ease-in-out infinite;
}
@keyframes qPulse {
  0%,100% { transform: translate(-50%, -45%) scale(1); opacity: 0.9; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.flask-mini {
  position: absolute; bottom: 5px;
  display: flex; gap: 4px;
}
.fm {
  width: 12px; height: 14px;
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(198,120,255,0.4);
  background: rgba(198,120,255,0.15);
  position: relative; overflow: hidden;
}
.fm::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%;
  background: rgba(198,120,255,0.5);
  animation: flaskBub 2s ease-in-out infinite;
}
@keyframes flaskBub { 0%,100% { height:35%; } 50% { height:50%; } }

/* ENTERTAINMENT */
.ent-scene {
  display: flex; align-items: center; gap: 14px;
}
.ent-icon { font-size: 2.2rem; }
.film-spin {
  width: 44px; height: 44px;
  border: 3px solid rgba(198,120,255,0.5);
  border-radius: 50%; position: relative;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.film-dot {
  position: absolute; width: 7px; height: 7px;
  border-radius: 50%; background: rgba(198,120,255,0.6);
}
.film-dot:nth-child(1) { top: 1px; left: 50%; transform: translateX(-50%); }
.film-dot:nth-child(2) { bottom: 1px; left: 50%; transform: translateX(-50%); }
.film-dot:nth-child(3) { left: 1px; top: 50%; transform: translateY(-50%); }
.film-dot:nth-child(4) { right: 1px; top: 50%; transform: translateY(-50%); }

/* LOGISTICS */
.plane-big { font-size: 2.4rem; animation: planeGo 3s ease-in-out infinite; }
@keyframes planeGo {
  0%,100% { transform: translateX(0) translateY(0) rotate(-5deg); }
  50%      { transform: translateX(10px) translateY(-6px) rotate(5deg); }
}
.pkg-stack { display: flex; flex-direction: column; gap: 3px; }
.pkg {
  height: 14px; border-radius: 3px;
  border: 1px solid rgba(90,180,255,0.3);
  background: rgba(90,180,255,0.1);
  position: relative;
}
.pkg::after {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(90,180,255,0.2);
}

/* ─── SCENE BADGES ─── */
.scene-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.58rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 6px;
  font-family: 'Fredoka', sans-serif;
}
.badge-status { background: rgba(245,200,66,0.2); color: var(--gold); border: 1px solid rgba(245,200,66,0.4); }
.badge-warn   { background: rgba(255,90,90,0.2);  color: var(--red);  border: 1px solid rgba(255,90,90,0.4); }
.badge-own    { background: rgba(78,203,113,0.2); color: var(--green);border: 1px solid rgba(78,203,113,0.4); }
.badge-rx     { background: rgba(90,180,255,0.2); color: var(--blue); border: 1px solid rgba(90,180,255,0.4); }

.scene-counter {
  position: absolute; bottom: 34px; left: 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem; color: rgba(255,255,255,0.35);
}

/* ─── CARD BODY ─── */
.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.7rem;
}

.company-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.01em; line-height: 1.1;
}
.company-ticker {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; color: var(--text-dim); margin-top: 1px;
}

.price-block { text-align: right; }
.price-val {
  font-family: 'Courier Prime', monospace;
  font-size: 0.95rem; font-weight: 700;
}
.price-delta {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; margin-top: 1px;
}
.up { color: var(--green); } .dn { color: var(--red); }

/* Sector chip */
.sec-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 10px; border-radius: 5px;
  margin-bottom: 0.8rem; border: 1px solid;
  font-family: 'Nunito', sans-serif;
}
.sec-consumer  { background: rgba(90,180,255,0.1);  color: var(--blue);   border-color: rgba(90,180,255,0.25); }
.sec-luxury    { background: rgba(245,200,66,0.1);  color: var(--gold);   border-color: rgba(245,200,66,0.25); }
.sec-pharma    { background: rgba(78,203,113,0.1);  color: var(--green);  border-color: rgba(78,203,113,0.25); }
.sec-reit      { background: rgba(46,201,201,0.1);  color: var(--teal);   border-color: rgba(46,201,201,0.25); }
.sec-energy    { background: rgba(255,159,67,0.1);  color: var(--orange); border-color: rgba(255,159,67,0.25); }
.sec-biotech   { background: rgba(255,90,90,0.1);   color: var(--red);    border-color: rgba(255,90,90,0.25); }
.sec-ent       { background: rgba(198,120,255,0.1); color: var(--purple); border-color: rgba(198,120,255,0.25); }
.sec-logistics { background: rgba(90,180,255,0.1);  color: var(--blue);   border-color: rgba(90,180,255,0.25); }

/* OWN-IT BOX */
.own-it {
  background: rgba(255,200,80,0.05);
  border: 1px solid var(--border2);
  border-radius: 10px; padding: 10px 12px;
  margin-bottom: 0.9rem;
}
.own-label {
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); margin-bottom: 4px;
  font-family: 'Courier Prime', monospace;
}
.own-text {
  font-size: 0.82rem; line-height: 1.55; color: var(--text-dim);
}
.own-text strong { color: var(--text); }

/* WARN BOX */
.warn-box {
  background: rgba(255,90,90,0.06);
  border: 1px solid rgba(255,90,90,0.25);
  border-radius: 10px; padding: 10px 12px;
  margin-bottom: 0.9rem;
  display: flex; gap: 8px;
}
.warn-ico { font-size: 1rem; flex-shrink: 0; }
.warn-txt { font-size: 0.78rem; line-height: 1.5; color: rgba(255,160,160,0.9); }
.warn-txt strong { color: var(--red); }

/* METRICS */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-bottom: 0.9rem;
}
.met {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 5px;
  text-align: center;
}
.met-val {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 2px;
}
.met-lbl {
  font-size: 0.58rem; color: var(--text-xdim);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
}

/* COST/VALUE BARS */
.cv-bar { margin-bottom: 7px; }
.cv-head {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; font-weight: 700; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cv-track {
  height: 7px; background: rgba(255,255,255,0.05);
  border-radius: 4px; overflow: hidden;
}
.cv-fill { height: 100%; border-radius: 4px; transition: width 1.2s ease; }
.fill-cost { background: linear-gradient(90deg, var(--red), var(--orange)); }
.fill-val  { background: linear-gradient(90deg, var(--blue), var(--green)); }
.fill-brand{ background: linear-gradient(90deg, var(--gold), var(--orange)); }
.fill-spec { background: linear-gradient(90deg, var(--purple), var(--red)); }

/* ASSET CHIPS */
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 0.7rem; }
.chip {
  font-size: 0.66rem; padding: 3px 9px;
  border-radius: 5px; border: 1px solid;
  font-weight: 700; font-family: 'Nunito', sans-serif;
  letter-spacing: 0.02em;
}
.chip-cost { background: rgba(255,90,90,0.08);   color: var(--red);    border-color: rgba(255,90,90,0.2); }
.chip-val  { background: rgba(78,203,113,0.08);  color: var(--green);  border-color: rgba(78,203,113,0.2); }
.chip-int  { background: rgba(90,180,255,0.08);  color: var(--blue);   border-color: rgba(90,180,255,0.2); }
.chip-warn { background: rgba(245,200,66,0.08);  color: var(--gold);   border-color: rgba(245,200,66,0.2); }
.chip-spec { background: rgba(198,120,255,0.08); color: var(--purple); border-color: rgba(198,120,255,0.2); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.vis { opacity: 1; transform: none; }

/* ─── DIVIDER ─── */
.divider {
  height: 2px; margin: 4rem 0;
  background: repeating-linear-gradient(90deg, var(--border2) 0, var(--border2) 12px, transparent 12px, transparent 20px);
  opacity: 0.5;
}

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1.2rem;
}
.how-card {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 16px; padding: 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.how-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.how-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--border2); line-height: 1;
  margin-bottom: 0.5rem;
}
.how-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.4rem;
}
.how-desc {
  font-size: 0.82rem; line-height: 1.6; color: var(--text-dim);
}

/* ─── MODAL ─── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(10,8,3,0.85); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 2rem;
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 2px solid var(--border2);
  border-radius: 20px;
  max-width: 680px; width: 100%;
  max-height: 82vh; overflow-y: auto;
  animation: mIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes mIn {
  from { opacity:0; transform: scale(0.9) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.modal-hd {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--bg2);
}
.modal-hd-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
}
.modal-close {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,200,80,0.08); border: 1px solid var(--border2);
  color: var(--text-dim); cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-family: 'Fredoka', sans-serif; font-weight: 700;
}
.modal-close:hover { background: rgba(255,90,90,0.15); color: var(--red); }
.modal-bd { padding: 1.4rem; }

/* ─── FOOTER ─── */
footer {
  border-top: 2px solid var(--border);
  padding: 2rem; text-align: center; margin-top: 5rem;
  position: relative; z-index: 1;
}
.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem; color: var(--gold); margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(245,200,66,0.3);
}
.footer-sub {
  color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.3rem;
}
.footer-disc {
  color: var(--text-xdim); font-size: 0.7rem;
  font-family: 'Courier Prime', monospace;
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ─── ANIMATION UTILITY ─── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: none; }
}

/* ─── FREEMIUM SYSTEM ─── */

/* Card blurrata */
.card.locked {
  position: relative;
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

/* Wrapper attorno alle card locked */
.locked-zone {
  position: relative;
  margin-top: 1.5rem;
}

/* Banner fisso sopra le card blurrate */
.paywall-banner {
  position: sticky;
  top: 80px;
  z-index: 100;
  margin: 0 0 -2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(34,24,8,0.97) 0%, rgba(46,34,16,0.97) 100%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,200,66,0.08), inset 0 1px 0 rgba(245,200,66,0.1);
  backdrop-filter: blur(16px);
  animation: bannerIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.paywall-left {
  display: flex; align-items: center; gap: 14px;
}
.paywall-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(245,200,66,0.4));
  animation: hatBob 2.5s ease-in-out infinite;
}
.paywall-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}
.paywall-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.paywall-desc strong { color: var(--text); }

.paywall-plans {
  display: flex; align-items: center; gap: 0.7rem;
  flex-shrink: 0;
}

.plan-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-width: 110px;
}
.plan-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}
.plan-btn.featured {
  background: var(--gold);
  border-color: var(--gold2);
  box-shadow: 0 4px 0 var(--gold2), 0 0 20px rgba(245,200,66,0.2);
}
.plan-btn.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 var(--gold2), 0 0 30px rgba(245,200,66,0.3);
}
.plan-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.plan-btn.featured .plan-price { color: #1a1207; }
.plan-period {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 2px;
}
.plan-btn.featured .plan-period { color: rgba(26,18,7,0.7); }
.plan-badge {
  font-size: 0.6rem; font-weight: 800;
  background: var(--green);
  color: #1a1207;
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 3px;
}

/* Gradiente fade sopra le card locked */
.locked-fade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Counter gratuito */
.free-counter {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-dim);
  border: 1px solid rgba(78,203,113,0.25);
  border-radius: 20px; padding: 4px 12px;
  font-size: 0.72rem; font-weight: 800;
  color: var(--green);
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-left: 0.5rem;
}

@media (max-width: 700px) {
  .paywall-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .paywall-plans { width: 100%; justify-content: center; }
}