/* ═══════════════════════════════════════════════════════
   SPOROLDA.HU – Brand Design System
   Logó színek: pasztell kék #C8EEF5, türkiz #4DDBE8,
   zöld #8BC34A, korall #F06B7A, fekete körvonal #1A1A1A
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
  /* Brand színek a logóból */
  --brand:      #F06B7A;   /* korall/rózsaszín */
  --brand-dark: #D94E5E;
  --brand-light:#FDE8EB;
  --teal:       #4DDBE8;   /* türkiz */
  --teal-dark:  #2BBFCC;
  --teal-light: #E0F9FC;
  --green:      #8BC34A;   /* zöld */
  --green-dark: #6A9E2F;
  --green-light:#EEF7E0;
  --sky:        #C8EEF5;   /* pasztell kék */
  --ink:        #1A1A1A;   /* fekete körvonal */

  /* Semleges háttér/felület */
  --bg:         #F7FAFB;
  --surface:    #FFFFFF;
  --surface2:   #EEF6F8;
  --surface3:   #DDF0F4;
  --text:       #1A1A1A;
  --text2:      #4A6067;
  --text3:      #8AADB5;
  --border:     rgba(77,219,232,0.18);
  --border2:    rgba(77,219,232,0.32);

  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-full:9999px;

  --shadow-sm:  0 1px 4px rgba(26,26,26,0.06);
  --shadow:     0 4px 16px rgba(26,26,26,0.08);
  --shadow-lg:  0 8px 40px rgba(26,26,26,0.12);
  --shadow-brand: 0 4px 20px rgba(240,107,122,0.3);
  --shadow-teal:  0 4px 20px rgba(77,219,232,0.3);

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

.dark {
  --bg:       #0D1A1E;
  --surface:  #132028;
  --surface2: #1A2C35;
  --surface3: #223642;
  --text:     #E8F4F7;
  --text2:    #7FB8C5;
  --text3:    #3D7080;
  --border:   rgba(77,219,232,0.12);
  --border2:  rgba(77,219,232,0.22);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.3);
  --shadow:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── TIPOGRÁFIA ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--sky);
  height: 60px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(77,219,232,0.12);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800; font-size: 18px;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; letter-spacing: -.03em;
  text-decoration: none;
}
.nav-logo img {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  display: block;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text span:first-child { font-size: 17px; font-weight: 800; color: var(--text); }
.nav-logo-text span:last-child  { font-size: 10px; font-weight: 600; color: var(--text3); letter-spacing: .04em; }

.nav-search {
  flex: 1; max-width: 500px;
  position: relative;
}
.nav-search form { margin: 0; }
.nav-search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none; font-size: 14px;
}
.nav-search input {
  width: 100%; height: 40px;
  padding: 0 16px 0 38px;
  background: var(--surface2);
  border: 2px solid var(--border2);
  border-radius: var(--radius-full);
  font-size: 13px; color: var(--text);
  transition: all .15s; outline: none;
}
.nav-search input:focus {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(77,219,232,0.15);
}
.nav-search input::placeholder { color: var(--text3); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── GOMBÖK ─────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: var(--radius-full);
  background: var(--brand); color: #fff;
  border: 2px solid var(--ink);
  transition: all .15s; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }

.btn-teal {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: var(--radius-full);
  background: var(--teal); color: var(--ink);
  border: 2px solid var(--ink);
  transition: all .15s; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-teal:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

.btn-ghost {
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-full);
  border: 2px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }

.btn-secondary {
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius);
  background: var(--surface2); border: 2px solid var(--border2);
  color: var(--text2); transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-success {
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--green-light); color: var(--green-dark);
  border: 1.5px solid var(--green); transition: all .15s; cursor: pointer;
}
.btn-success:hover { background: var(--green); color: #fff; }

.btn-danger {
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--brand-light); color: var(--brand-dark);
  border: 1.5px solid var(--brand); transition: all .15s; cursor: pointer;
}
.btn-danger:hover { background: var(--brand); color: #fff; }

/* ── KATEGÓRIA STRIP ────────────────────────────────────── */
.cat-strip {
  background: var(--sky);
  border-bottom: 2px solid var(--ink);
  overflow-x: auto; scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-inner {
  display: flex; gap: 4px; padding: 7px 24px;
  max-width: 1320px; margin: 0 auto; white-space: nowrap;
}
.cat-btn {
  font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--radius-full);
  color: var(--ink); transition: all .15s;
  white-space: nowrap; border: 2px solid transparent; background: none; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.cat-btn:hover  { background: rgba(255,255,255,0.6); border-color: var(--ink); }
.cat-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
  transition: all .2s;
}
.card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.deal-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden; transition: all .2s; position: relative;
  text-decoration: none; color: inherit;
}
.deal-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.deal-card-img {
  aspect-ratio: 4/3; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex-shrink: 0;
  border-bottom: 2px solid var(--ink);
}
.deal-card-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  transition: transform .3s;
}
.deal-card:hover .deal-card-img img { transform: scale(1.06); }

.deal-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.deal-card-store {
  display: flex; align-items: center; gap: 5px; margin-bottom: 5px;
}
.deal-card-store img { width: 12px; height: 12px; border-radius: 3px; }
.deal-card-store span { font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; }

.deal-card-title {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  line-height: 1.3; color: var(--text); margin-bottom: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-card-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.price-best {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: var(--brand); letter-spacing: -.03em; line-height: 1;
}
.price-old { font-size: 12px; color: var(--text3); text-decoration: line-through; }

.deal-card-footer {
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px; border-top: 2px solid var(--surface2); margin-top: auto;
}

/* Ribbon badge-ek */
.ribbon {
  position: absolute; top: 8px; left: 8px;
  background: var(--brand); color: #fff;
  font-family: var(--font-head); font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink); z-index: 2;
  box-shadow: 2px 2px 0 var(--ink);
}
.ribbon-record {
  position: absolute; top: 8px; right: 8px;
  background: #F59E0B; color: #78350F;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink); z-index: 2;
  box-shadow: 2px 2px 0 var(--ink);
}
.ribbon-cond {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--sky); color: var(--ink);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink); z-index: 2;
}

/* Fire-o-meter */
.fire-meter { display: flex; align-items: center; gap: 6px; flex: 1; }
.fire-meter-bar { flex: 1; height: 5px; background: var(--surface3); border-radius: var(--radius-full); overflow: hidden; }
.fire-meter-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--teal), var(--brand)); transition: width .4s; }
.fire-btn { font-size: 12px; font-weight: 600; color: var(--text3); padding: 2px 4px; display: flex; align-items: center; gap: 3px; transition: color .15s; cursor: pointer; }
.fire-btn:hover { color: var(--brand); }

/* Badge-ek */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius-sm);
  border: 1.5px solid currentColor; white-space: nowrap;
}
.badge-brand   { color: var(--brand-dark); background: var(--brand-light); }
.badge-teal    { color: var(--teal-dark);  background: var(--teal-light); }
.badge-green   { color: var(--green-dark); background: var(--green-light); }
.badge-sky     { color: var(--text2);      background: var(--sky); border-color: var(--border2); }
.badge-amber   { color: #92620A;           background: #FEF3C7; border-color: #F59E0B; }
.badge-purple  { color: #5B21B6;           background: #EDE9FE; border-color: #8B5CF6; }
.badge-gray    { color: var(--text3);      background: var(--surface2); border-color: var(--border2); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.page-wrap    { max-width: 1320px; margin: 0 auto; padding: 24px 24px 80px; }
.main-layout  { display: flex; gap: 24px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar      { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }

.deal-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 24px;
}
@media (min-width: 640px)  { .deal-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .deal-grid { grid-template-columns: repeat(4,1fr); } }

/* Hero bento */
.hero-bento { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
@media (min-width: 640px) { .hero-bento { grid-template-columns: 2fr 1fr; } }

.hero-card {
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: 5px 5px 0 var(--ink); overflow: hidden; transition: all .2s;
  text-decoration: none; color: inherit; display: block;
}
.hero-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }

.hero-card-img {
  height: 220px; background: var(--surface2); border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.hero-card-img img { max-width: 100%; max-height: 190px; object-fit: contain; padding: 16px; transition: transform .3s; }
.hero-card:hover .hero-card-img img { transform: scale(1.04); }
.hero-card-body { padding: 16px; }

.hero-small-cards { display: flex; flex-direction: column; gap: 14px; }
.small-card {
  flex: 1; display: flex; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 3px 3px 0 var(--ink); overflow: hidden; transition: all .2s;
  text-decoration: none; color: inherit;
}
.small-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.small-card-img {
  width: 88px; background: var(--surface2); border-right: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative;
}
.small-card-img img { max-width: 100%; max-height: 60px; object-fit: contain; padding: 8px; }
.small-card-body { padding: 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }

/* TOP5 */
.top5-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.top5-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-lg); padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--ink); transition: all .2s;
  text-decoration: none; color: inherit;
}
.top5-item:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.top5-rank {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  width: 28px; text-align: center; flex-shrink: 0; color: var(--surface3);
}
.top5-rank.gold { color: #F59E0B; }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; }
.filter-chip {
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: var(--radius-full); border: 2px solid var(--border2);
  background: var(--surface); color: var(--text2); transition: all .15s;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.filter-chip:hover  { border-color: var(--teal); color: var(--teal-dark); }
.filter-chip.active { background: var(--teal); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ── WIDGET / SIDEBAR ───────────────────────────────────── */
.widget {
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-lg); box-shadow: 4px 4px 0 var(--ink); overflow: hidden;
}
.widget-header {
  padding: 12px 16px; border-bottom: 2px solid var(--ink);
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--sky);
}
.widget-body { padding: 16px; }
.widget-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.widget-list-item:last-child { border-bottom: none; }
.widget-list-item:hover { background: var(--surface2); }

/* ── FORM ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text2); margin-bottom: 6px; letter-spacing: .02em; }
.form-label .req { color: var(--brand); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--border2);
  border-radius: var(--radius); font-size: 13px; color: var(--text);
  transition: all .15s; outline: none; font-family: var(--font-body);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(77,219,232,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  border: 2px solid; box-shadow: 3px 3px 0;
}
.alert-error   { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); box-shadow-color: var(--brand); }
.alert-success { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.alert-info    { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }
.alert-amber   { background: #FEF3C7; border-color: #F59E0B; color: #92620A; }

/* ── DEAL OLDAL ─────────────────────────────────────────── */
.deal-page-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .deal-page-grid { grid-template-columns: 2fr 3fr; } }

.deal-img-box {
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-xl); box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden; position: sticky; top: 72px;
}
.deal-img-inner {
  background: var(--surface2); min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; border-bottom: 2px solid var(--ink);
}
.deal-img-inner img { max-width: 100%; max-height: 260px; object-fit: contain; }
.deal-img-footer { padding: 12px 16px; display: flex; align-items: center; gap: 8px; }

.price-table { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; margin-bottom: 14px; }
.price-table-header { padding: 10px 16px 4px; background: var(--sky); border-bottom: 2px solid var(--ink); }
.price-table-label { font-size: 10px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: none; }
.price-row.best { background: rgba(240,107,122,0.05); }
.price-row-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); min-width: 0; }
.price-row-value { font-family: var(--font-head); font-weight: 800; flex-shrink: 0; }
.price-row.best .price-row-value { font-size: 24px; color: var(--brand); letter-spacing: -.03em; }
.price-row:not(.best) .price-row-value { font-size: 13px; color: var(--text3); text-decoration: line-through; font-weight: 400; }

.market-badge { margin: 0 12px 12px; background: var(--green-light); border: 2px solid var(--green); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--green-dark); }

.condition-box { border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 12px; border: 2px solid; }
.condition-box.loyalty    { background: #FFFBEB; border-color: #F59E0B; }
.condition-box.membership { background: #EDE9FE; border-color: #8B5CF6; }
.condition-box.app        { background: var(--teal-light); border-color: var(--teal); }
.condition-box.coupon     { background: var(--sky); border-color: var(--teal-dark); }

.condition-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.coupon-code { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.coupon-code code { font-family: monospace; font-size: 14px; font-weight: 700; background: var(--surface); padding: 6px 14px; border-radius: var(--radius-sm); border: 2px solid var(--ink); color: var(--brand); letter-spacing: .05em; box-shadow: 2px 2px 0 var(--ink); }

.vote-bar { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-xl); padding: 5px; box-shadow: 3px 3px 0 var(--ink); }
.vote-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--text2); }
.vote-btn:hover { background: var(--surface2); }
.vote-btn.active-fire { background: var(--brand-light); color: var(--brand-dark); border: 1.5px solid var(--brand); }
.vote-btn.active-cold { background: var(--teal-light); color: var(--teal-dark); border: 1.5px solid var(--teal); }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text3); transition: color .15s; }
.breadcrumb a:hover { color: var(--teal-dark); }

/* ── PAGINATION ─────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 13px; font-weight: 700; border: 2px solid var(--border2); background: var(--surface); color: var(--text2); transition: all .15s; text-decoration: none; }
.page-btn:hover  { border-color: var(--teal); color: var(--teal-dark); }
.page-btn.active { background: var(--teal); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ── AUTH ───────────────────────────────────────────────── */
.auth-page { min-height: 75vh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.auth-icon img { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.auth-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-xl); padding: 28px; box-shadow: 6px 6px 0 var(--ink); }

/* ── ADMIN ──────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
}
.admin-sidebar-head {
  padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-logo { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--sky); }
.admin-badge { font-size: 9px; font-weight: 800; background: var(--brand); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: auto; letter-spacing: .05em; }

.admin-nav { flex: 1; padding: 12px 8px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65);
  transition: all .15s; text-decoration: none; margin-bottom: 2px;
  border: none; cursor: pointer; width: 100%; background: none; text-align: left;
}
.admin-nav-item:hover  { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-item.active { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 2px 2px 0 rgba(0,0,0,0.3); }
.admin-nav-badge { margin-left: auto; font-size: 10px; font-weight: 800; background: var(--brand); color: #fff; padding: 1px 6px; border-radius: var(--radius-full); }

.admin-main { margin-left: 230px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 2px solid var(--ink);
  height: 56px; padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 0 var(--ink);
}
.admin-topbar-title { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.admin-content { flex: 1; padding: 24px; }

.stat-card {
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: 4px 4px 0 var(--ink); transition: all .2s;
}
.stat-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.stat-label { font-size: 10px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat-value { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-brand  { color: var(--brand); }
.stat-green  { color: var(--green-dark); }
.stat-teal   { color: var(--teal-dark); }
.stat-amber  { color: #92620A; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 10px 16px; text-align: left; font-size: 10px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .07em; background: var(--sky); border-bottom: 2px solid var(--ink); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface2); }

.status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-full); white-space: nowrap; border: 1.5px solid; }
.status-published { background: var(--green-light); color: var(--green-dark); border-color: var(--green); }
.status-approved  { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); }
.status-draft     { background: #FFFBEB; color: #92620A; border-color: #F59E0B; }
.status-rejected  { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }
.status-expired   { background: var(--surface2); color: var(--text3); border-color: var(--border2); }

.ai-score { display: flex; flex-direction: column; gap: 3px; }
.ai-score-bar { height: 3px; border-radius: 3px; background: var(--surface3); overflow: hidden; }
.ai-score-fill { height: 100%; border-radius: 3px; }
.ai-good .ai-score-fill  { background: var(--green); }
.ai-mid  .ai-score-fill  { background: #F59E0B; }
.ai-bad  .ai-score-fill  { background: var(--brand); }
.ai-good { color: var(--green-dark); }
.ai-mid  { color: #92620A; }
.ai-bad  { color: var(--brand-dark); }

/* ── PROFIL ─────────────────────────────────────────────── */
.level-bar { height: 8px; background: var(--surface3); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; border: 1.5px solid var(--border2); }
.level-bar-fill { height: 100%; border-radius: 99px; transition: width .6s; }
.retention-bar { height: 6px; background: var(--surface3); border-radius: 99px; overflow: hidden; }

/* ── MOBIL NAV ──────────────────────────────────────────── */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 2px solid var(--ink); z-index: 100; padding-bottom: env(safe-area-inset-bottom, 8px); box-shadow: 0 -4px 0 var(--ink); }
.mobile-nav-inner { display: flex; }
.mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 10px; font-weight: 700; color: var(--text3); text-decoration: none; transition: color .15s; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--brand); }
.mobile-nav-icon { font-size: 18px; line-height: 1; }

@media (max-width: 768px) {
  .mobile-nav { display: block; }
  .mobile-spacer { height: 64px; }
  .sidebar { display: none; }
  .main-layout { display: block; }
  .page-wrap { padding: 16px 16px 80px; }
  .nav { padding: 0 16px; }
  .cat-strip-inner { padding: 7px 16px; }
}

/* ── UTILITY ────────────────────────────────────────────── */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 2px; background: var(--surface3); margin: 16px 0; }
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.text-brand  { color: var(--brand); }
.text-teal   { color: var(--teal-dark); }
.text-green  { color: var(--green-dark); }
.text-muted  { color: var(--text3); }
.fw-800 { font-family: var(--font-head); font-weight: 800; }

/* ── ANIMÁCIÓK ──────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:.5} }
.animate-fade-in { animation: fadeIn .3s ease; }
.animate-pulse   { animation: pulse 2s infinite; }

/* Korai hozzáférés sáv */
.early-banner { background: #EDE9FE; border: 2px solid #8B5CF6; border-radius: var(--radius-lg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; box-shadow: 3px 3px 0 #5B21B6; }

/* Lejárt akció kártya */
.deal-expired .deal-card-img img { filter: grayscale(80%); }
.deal-expired .deal-card-title   { color: var(--text3); }
.deal-expired .price-best        { color: var(--text3); }
.deal-expired                    { opacity: .75; }
.deal-expired:hover              { transform: none; box-shadow: 4px 4px 0 var(--ink); border-color: var(--border2); }

/* Toast */
#sp-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; z-index: 9999; white-space: nowrap; pointer-events: none; transition: transform .2s, opacity .2s; border: 2px solid var(--teal); box-shadow: 3px 3px 0 var(--teal); }
