/* ============================================================
   GameOn Launcher — Urban Rebel / School Edition
   Fibonacci Grayscale · Yellow Primary · Turquoise Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Tokens (Fibonacci Grayscale Scale) ─────────────────── */
:root {
  /* Grayscale — luminance: 4%·8%·14%·23%·43%·69%·100% */
  --g-0:         #0a0a0a;  /* absolute black       */
  --g-1:         #141414;  /* bg surface           */
  --g-2:         #232323;  /* cards / elevated     */
  --g-3:         #3b3b3b;  /* borders active       */
  --g-4:         #6e6e6e;  /* muted text           */
  --g-5:         #b0b0b0;  /* secondary text       */
  --g-6:         #ffffff;  /* white                */

  /* Aliases for backward compatibility */
  --bg-base:     var(--g-0);
  --bg-surface:  var(--g-1);
  --bg-elevated: var(--g-2);
  --border:      var(--g-3);
  --text-muted:  var(--g-4);
  --text-main:   var(--g-6);
  --white:       var(--g-6);

  /* Brand Accents */
  --primary:        #FFC107;
  --primary-light:  #FFD54F;
  --primary-dark:   #FFB300;
  --secondary:      #00E5FF;
  --secondary-light:#84FFFF;
  --secondary-dark: #00B8D4;
  --error:          #f44336;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,.6);
  --shadow-md:   0 4px 20px rgba(0,0,0,.7);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.8);
  --shadow-neon: 0 0 16px rgba(0,229,255,0.35);
  --shadow-gold: 0 0 20px rgba(255,193,7,0.4);

  /* Radii — Fibonacci: 5·8·13·21 */
  --radius-sm:   5px;
  --radius-md:   8px;
  --radius-lg:   13px;
  --radius-xl:   21px;

  /* Typography */
  --font-body:   'Inter', sans-serif;
  --font-title:  'Space Grotesk', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Spacing Fibonacci: 8·13·21·34·55·89 */
  --sp-1: 8px; --sp-2: 13px; --sp-3: 21px;
  --sp-4: 34px; --sp-5: 55px; --sp-6: 89px;

  --transition: 0.2s ease;
}

/* ── Global Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--g-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--g-4); }

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Accessibility ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }
p  { color: var(--text-muted); font-size: .95rem; }
.mono-tag {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  color: var(--primary); letter-spacing: .12em; text-transform: uppercase;
}
em { font-style: normal; color: var(--primary); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 1.25rem; max-width: 1200px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-title); font-size: 1.4rem;
  color: var(--white); font-weight: 800; letter-spacing: -0.03em;
}
.nav-logo .logo-accent { color: var(--primary); }
.nav-logo img { height: 36px; width: auto; }

/* ── Spotlight Search ───────────────────────────────────── */
.spotlight-wrap { position: relative; flex: 1; max-width: 420px; margin: 0 1.5rem; }
.spotlight-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--g-2); border: 1px solid var(--g-3);
  border-radius: var(--radius-lg); padding: .5rem 1rem;
  transition: all .25s ease; cursor: text;
}
.spotlight-search:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,193,7,.12);
}
.spotlight-search input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: .88rem; color: var(--white);
}
.spotlight-search input::placeholder { color: var(--g-4); }
.spotlight-icon { color: var(--g-4); font-size: .9rem; flex-shrink: 0; }
.spotlight-kbd {
  font-family: var(--font-mono); font-size: .68rem; color: var(--g-4);
  background: var(--g-3); border-radius: 4px; padding: .1rem .4rem;
  flex-shrink: 0;
}
.spotlight-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--g-1); border: 1px solid var(--g-3);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; z-index: 200;
}
.spotlight-results.open { display: block; }
.spotlight-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; font-size: .875rem; cursor: pointer;
  transition: background var(--transition);
}
.spotlight-item:hover { background: var(--g-2); }
.spotlight-item-icon { font-size: 1.1rem; }
.spotlight-item-name { color: var(--white); font-weight: 500; }
.spotlight-item-type { font-family: var(--font-mono); font-size: .68rem; color: var(--g-4); margin-left: auto; }
.nav-links { display: flex; gap: .25rem; }
.nav-link {
  padding: .5rem .85rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.05); color: var(--secondary); text-shadow: 0 0 8px rgba(0,229,255,0.4); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); color: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-neon);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: var(--bg-base); z-index: 99;
  padding: 1.5rem 1.25rem; flex-direction: column; gap: .5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 1.1rem; padding: .75rem 1rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; transition: all var(--transition);
  line-height: 1.2;
}
.btn-primary { background: var(--primary); color: var(--bg-base); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3); }
.btn-terra { background: var(--secondary); color: var(--bg-base); }
.btn-terra:hover { background: var(--secondary-light); transform: translateY(-1px); box-shadow: var(--shadow-neon); }
.btn-outline { border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: rgba(0,229,255,0.1); box-shadow: var(--shadow-neon); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-surface); color: var(--white); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Social Buttons */
.btn-google {
  background: var(--bg-surface); color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-google:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.btn-facebook { background: #1877f2; color: var(--white); border: 1px solid #1877f2; }
.btn-facebook:hover { background: #1464d8; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover { border-color: var(--secondary); transform: translateY(-3px); box-shadow: var(--shadow-neon); }
.card-body { padding: 1.25rem; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-elevated); }

/* ── Game Card ───────────────────────────────────────────── */
.game-card { position: relative; }
.game-card .card-img {
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.1);
}
.game-card .fav-btn {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(20,20,20,.8); border-radius: 50%; border: 1px solid var(--border);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted);
  transition: all var(--transition); z-index: 2;
}
.game-card .fav-btn:hover { transform: scale(1.15); color: var(--white); }
.game-card .fav-btn.active { color: var(--primary); border-color: var(--primary); text-shadow: 0 0 8px rgba(255,193,7,0.5); }
.game-badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700;
}
.badge-easy   { background: rgba(46, 125, 50, 0.2); color: #4caf50; border: 1px solid #4caf50; }
.badge-medium { background: rgba(245, 127, 23, 0.2); color: #ffeb3b; border: 1px solid #ffeb3b; }
.badge-hard   { background: rgba(198, 40, 40, 0.2); color: #ef5350; border: 1px solid #ef5350; }
.badge-expert { background: rgba(69, 39, 160, 0.2); color: #b39ddb; border: 1px solid #b39ddb; }
.game-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.game-tag {
  background: var(--bg-elevated); color: var(--secondary); border: 1px solid rgba(0,229,255,0.2);
  padding: .15rem .5rem; border-radius: 20px; font-size: .7rem;
}
.game-players { font-size: .8rem; color: var(--text-muted); }

/* ── Menu Card ───────────────────────────────────────────── */
.menu-card { position: relative; }
.menu-card .promo-ribbon {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: var(--secondary); color: var(--bg-base);
  font-size: .7rem; font-weight: 700; padding: .25rem .65rem; border-radius: 20px;
  box-shadow: var(--shadow-neon);
}
.menu-card .price {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
}
.menu-card .card-img {
  background: linear-gradient(135deg, #1f1f1f, #0a0a0a);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

/* ── Filters Bar ─────────────────────────────────────────── */
.filters-bar {
  background: var(--bg-surface); border-radius: var(--radius-md); border: 1px solid var(--border);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: .5rem; }
.filter-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-select, .filter-search {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .45rem .75rem; font-size: .875rem; font-family: inherit;
  background: var(--bg-elevated); color: var(--white);
  transition: all var(--transition);
}
.filter-select:focus, .filter-search:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 5px rgba(0,229,255,0.3); }
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--border); border-radius: 20px;
  padding: .3rem .8rem; font-size: .78rem; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition); cursor: pointer;
  background: var(--bg-elevated);
}
.filter-chip:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-chip.active { background: var(--secondary); color: var(--bg-base); border-color: var(--secondary); text-shadow: none; box-shadow: var(--shadow-neon); font-weight: 600;}

/* ── Hero Launcher ───────────────────────────────────────── */
#hero {
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,193,7,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,229,255,.06) 0%, transparent 65%),
    var(--g-0);
  color: var(--white); padding: clamp(3rem,8vw,6rem) 0 clamp(3rem,6vw,5rem);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--g-3);
}
/* Notebook line texture */
#hero::before {
  content:''; position:absolute; inset:0;
  background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.025) 39px, rgba(255,255,255,.025) 40px);
  pointer-events:none;
}
.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: var(--sp-5);
  position: relative; z-index:1;
}
.hero-content { text-align: left; }
.hero-eyebrow { margin-bottom: var(--sp-2); display:block; }
#hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
#hero h1 em { color: var(--primary); font-style:normal;
  display:block; text-shadow: 0 0 40px rgba(255,193,7,.25); }
.hero-sub { color: var(--g-4); font-size: 1rem; max-width: 440px; margin-bottom: var(--sp-3); line-height:1.7; }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.hero-visual {
  position: relative; display:flex;
  align-items:center; justify-content:center; min-height: 380px;
}
/* Sticker float */
.sticker-float {
  width: clamp(220px, 30vw, 340px);
  filter: drop-shadow(0 0 0 6px #fff) drop-shadow(0 16px 40px rgba(255,193,7,.5));
  animation: floatSticker 5s ease-in-out infinite;
  transform-origin: center;
  position: relative; z-index:2;
}
@keyframes floatSticker {
  0%,100% { transform: rotate(-6deg) translateY(0); }
  33%      { transform: rotate(-3deg) translateY(-18px); }
  66%      { transform: rotate(-8deg) translateY(-8px); }
}
/* Decorative rings */
.hero-deco-ring {
  position:absolute; width:320px; height:320px; border-radius:50%;
  border: 1px dashed rgba(255,193,7,.15);
  animation: spinSlow 30s linear infinite;
}
.hero-deco-ring::after {
  content:''; position:absolute; inset:30px; border-radius:50%;
  border: 1px dashed rgba(0,229,255,.1);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-deco-dots {
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius:50%; width:320px; height:320px; pointer-events:none;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section Label (Launcher style) ─────────────────────── */
.section-label {
  margin-bottom: var(--sp-4);
  display:flex; flex-direction:column; gap: var(--sp-1);
}
.section-label .mono-tag { margin-bottom: .25rem; }
.section-label h2 { margin:0; }
/* Legacy support */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p { max-width: 520px; margin: 0 auto; color: var(--text-muted); }
.section-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .15em;
  font-size: .75rem; font-weight: 700; color: var(--secondary);
  margin-bottom: .5rem; text-shadow: 0 0 10px rgba(0,229,255,0.4);
}

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.tab-btn {
  padding: .65rem 1.25rem; font-size: .9rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition);
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--secondary); border-bottom-color: var(--secondary); font-weight: 600; text-shadow: 0 0 10px rgba(0,229,255,0.3); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.8); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border);
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8); animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 1.75rem 1.75rem 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-header h3 { font-size: 1.35rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted); flex-shrink: 0; transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--white); }
.modal-body { padding: 1.25rem 1.75rem 1.75rem; }
.modal-divider {
  text-align: center; position: relative; margin: 1rem 0;
  color: var(--text-muted); font-size: .8rem;
}
.modal-divider::before, .modal-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 500; color: var(--text-muted); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .7rem .9rem; font-size: .9rem; font-family: inherit;
  background: var(--bg-elevated); color: var(--white);
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 8px rgba(0,229,255,0.2);
}
.form-error { font-size: .78rem; color: var(--error); margin-top: .3rem; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }

/* Taste chips */
.taste-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.taste-chip {
  border: 1px solid var(--border); border-radius: 20px; background: var(--bg-elevated);
  padding: .35rem .9rem; font-size: .8rem; cursor: pointer;
  transition: all var(--transition); color: var(--text-muted);
}
.taste-chip:hover { border-color: var(--primary); color: var(--primary); }
.taste-chip.selected { background: var(--primary); color: var(--bg-base); border-color: var(--primary); font-weight: 600; }

/* ── Academia InfoCard ───────────────────────────────────── */
#academia {
  background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.academia-card {
  background: var(--bg-base); border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.academia-visual {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0,0,0,0) 100%);
  padding: 2.5rem; color: var(--white); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
}
.academia-visual h3 { font-size: 1.5rem; color: var(--secondary); margin-bottom: .5rem; text-shadow: 0 0 10px rgba(0,229,255,0.3); }
.academia-visual p { color: var(--text-muted); font-size: .9rem; }
.lang-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.lang-badge {
  background: rgba(0, 229, 255, 0.1); color: var(--secondary); border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px; padding: .3rem .8rem; font-size: .78rem; font-weight: 600;
}
.academia-info { padding: 2.5rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255, 193, 7, 0.1); color: var(--primary); border: 1px solid rgba(255, 193, 7, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 0 10px rgba(255, 193, 7, 0.15);
}
.info-text strong { display: block; font-size: .9rem; color: var(--white); margin-bottom: .15rem; }
.info-text span { font-size: .82rem; color: var(--text-muted); }

/* ── Loyalty Banner ──────────────────────────────────────── */
.loyalty-banner {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(0, 229, 255, 0.05) 100%);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  color: var(--white); box-shadow: 0 0 20px rgba(255, 193, 7, 0.05);
}
.loyalty-banner h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: .25rem; text-shadow: 0 0 10px rgba(255,193,7,0.3); }
.loyalty-banner p { color: var(--text-muted); font-size: .9rem; }

/* ── Toast ───────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  background: var(--bg-elevated); border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  min-width: 260px; max-width: 360px; font-size: .88rem; color: var(--white);
  animation: toastIn .3s ease;
  border-left: 4px solid var(--secondary);
}
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--primary); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }

/* ── Profile Dropdown ────────────────────────────────────── */
.profile-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); width: 220px; overflow: hidden;
  border: 1px solid var(--border); z-index: 101;
  display: none;
}
.profile-menu.open { display: block; }
.profile-menu-header { padding: 1rem; border-bottom: 1px solid var(--border); }
.profile-menu-header .name { font-weight: 600; font-size: .9rem; color: var(--white); }
.profile-menu-header .email { font-size: .75rem; color: var(--text-muted); }
.profile-menu a, .profile-menu button {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .7rem 1rem; font-size: .875rem; color: var(--text-muted);
  transition: background var(--transition);
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--bg-elevated); color: var(--white); }
.profile-menu .logout-btn { color: var(--error); border-top: 1px solid var(--border); }
.nav-profile-wrap { position: relative; }

/* ── Skeleton Loading ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--border); }

/* ── Bento Grid ──────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
}
.bento-grid > *:first-child {
  grid-column: span 2;
}
.bento-grid > *:first-child .card-img { aspect-ratio: 16/9; font-size: 4.5rem; }
.bento-grid > *:first-child .card-body h3 { font-size: 1.15rem; }

/* ── Menu Strip (horizontal scroll) ─────────────────────── */
.menu-strip {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overflow-y: visible;
  padding-bottom: var(--sp-2); scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--g-3) transparent;
}
.menu-strip::-webkit-scrollbar { height: 4px; }
.menu-strip::-webkit-scrollbar-track { background: transparent; }
.menu-strip::-webkit-scrollbar-thumb { background: var(--g-3); border-radius: 99px; }
.menu-strip > * { flex: 0 0 240px; scroll-snap-align: start; }

/* ── Sidebar Panel ───────────────────────────────────────── */
.sidebar-panel {
  position: fixed; top: 64px; right: 0; bottom: 0; width: 280px;
  background: var(--g-1); border-left: 1px solid var(--g-3);
  z-index: 150; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: var(--sp-3);
  box-shadow: -8px 0 32px rgba(0,0,0,.5);
}
.sidebar-panel.open { transform: translateX(0); }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 149;
  background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }
.sidebar-header {
  font-family: var(--font-title); font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: var(--sp-3);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--g-2);
  display:flex; align-items:center; justify-content:center;
  font-size:.9rem; color: var(--g-4); cursor:pointer;
  transition: all var(--transition);
}
.sidebar-close:hover { background: var(--g-3); color: var(--white); }
.sidebar-user {
  text-align: center; padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--g-3); margin-bottom: var(--sp-3);
}
.sidebar-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--g-2);
  border: 2px solid var(--primary); box-shadow: var(--shadow-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: var(--primary);
  margin: 0 auto var(--sp-2); overflow: hidden;
}
.sidebar-avatar img { width:100%; height:100%; object-fit:cover; }
.sidebar-name { font-family: var(--font-title); font-weight: 700; color: var(--white); }
.sidebar-email { font-size: .75rem; color: var(--g-4); margin-top: 2px; }
.sidebar-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.sidebar-stat {
  background: var(--g-2); border-radius: var(--radius-md);
  padding: var(--sp-2); text-align: center; border: 1px solid var(--g-3);
}
.sidebar-stat-value {
  font-family: var(--font-title); font-size: 1.4rem; font-weight: 800;
  color: var(--primary); display: block;
}
.sidebar-stat-label { font-size: .7rem; color: var(--g-4); font-family: var(--font-mono); }
.sidebar-menu-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .75rem; border-radius: var(--radius-md);
  color: var(--g-4); font-size: .875rem; transition: all var(--transition);
  cursor: pointer; width: 100%; text-align: left; border: none; background: none;
  font-family: inherit;
}
.sidebar-menu-link:hover { background: var(--g-2); color: var(--white); }
.sidebar-menu-link.danger { color: var(--error); }
.sidebar-menu-link.danger:hover { background: rgba(244,67,54,.1); }

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Navbar CTA Button ───────────────────────────────────── */
.btn-nav-cta {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  padding: .45rem 1rem; border-radius: var(--radius-md);
  background: var(--primary); color: var(--g-0);
  letter-spacing: .05em; transition: all var(--transition);
}
.btn-nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

/* ── Card hover glow upgrade ─────────────────────────────── */
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255,193,7,.12); }

/* ── Academia upgrade ────────────────────────────────────── */
.academia-visual h3 { color: var(--primary); text-shadow: var(--shadow-gold); }

/* ── Footer ──────────────────────────────────────────────── */
#footer {
  background: var(--bg-surface); color: var(--white); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-title); font-size: 1.4rem; color: var(--primary); margin-bottom: .75rem; font-weight: 700; text-shadow: 0 0 10px rgba(255,193,7,0.2); }
.footer-desc { color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.footer-heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--text-muted); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--secondary); text-shadow: 0 0 8px rgba(0,229,255,0.4); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: .8rem; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .academia-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loyalty-banner { flex-direction: column; text-align: center; }
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .bento-grid > *:first-child { grid-column: span 2; }
  .hero-layout { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-visual { min-height: 260px; }
  .sticker-float { width: clamp(160px, 40vw, 240px); }
  .spotlight-wrap { max-width: 280px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .75rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid > *:first-child { grid-column: span 1; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; min-height: 200px; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto var(--sp-3); }
  .spotlight-wrap { display: none; }
  .sidebar-panel { width: 100%; }
}
