/* ================================================
   gagalabs — Design System
   Dark-first · Instrument Serif + Geist · mint #7CFFB2
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --brand-accent:   #7CFFB2;
  --brand-accent-2: #4ADE80;
  --brand-ink:      #0A0B0D;
  --brand-paper:    #FAFAF9;

  /* Semantic */
  --color-success: #4ADE80;
  --color-warning: #FACC15;
  --color-danger:  #F87171;
  --color-info:    #60A5FA;

  /* Tech stack colors */
  --tech-php:   #777BB4;
  --tech-mysql: #00618A;
  --tech-js:    #F7DF1E;
  --tech-html:  #E34F26;
  --tech-css:   #1572B6;
  --tech-xampp: #FB7A24;

  /* Dark mode (default) */
  --bg:        #0A0B0D;
  --bg-elev:   #131418;
  --bg-elev-2: #1A1C20;
  --bg-sunken: #050608;
  --fg-1:      #FAFAF9;
  --fg-2:      rgba(250,250,249,0.72);
  --fg-3:      rgba(250,250,249,0.45);
  --fg-on-accent: #0A0B0D;
  --border-1:  rgba(250,250,249,0.12);
  --border-2:  rgba(250,250,249,0.06);
  --accent:    var(--brand-accent);

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 24px;  --space-6: 32px;
  --space-7: 48px; --space-8: 64px;  --space-9: 96px;

  /* Radii */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* Shadows — soft only, no hard offsets */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.4);
  --shadow-glow: 0 0 0 1px rgba(124,255,178,0.15), 0 8px 32px rgba(124,255,178,0.18);

  /* Type */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;

  /* Type scale */
  --text-h1:       44px;
  --text-h2:       32px;
  --text-h3:       22px;
  --text-h4:       18px;
  --text-body-lg:  17px;
  --text-body:     15px;
  --text-body-sm:  13px;
  --text-caption:  12px;
  --text-overline: 11px;

  /* Layout */
  --topbar-h: 60px;

  /* Legacy compatibility aliases — keep inline styles working */
  --text:          var(--fg-1);
  --text-muted:    var(--fg-3);
  --accent-bright: var(--brand-accent);
  --border:        var(--border-1);
  --surface:       var(--bg-elev);
  --surface2:      var(--bg-elev-2);
  --radius:        var(--radius-lg);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
::selection { background: var(--brand-accent); color: var(--brand-ink); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(250,250,249,0.14); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,255,178,0.35); }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg-1);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-family: var(--font-body); font-size: var(--text-h4); font-weight: 500; color: var(--fg-1); }
p  { color: var(--fg-2); line-height: 1.6; }
a  { color: var(--brand-accent); text-decoration: none; }
a:hover { color: var(--brand-accent-2); }
.it { font-style: italic; }

/* ── Grain texture overlay ── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ══════════════════════════════════
   TOPBAR
   ══════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h); z-index: 1000;
  background: rgba(10,11,13,0.88);
  border-bottom: 1px solid var(--border-1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center;
  padding: 0 32px; gap: 12px;
}
.topbar-brand {
  text-decoration: none; color: var(--fg-1);
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: -0.02em; display: flex; align-items: center;
}
.topbar-brand .it { font-style: italic; color: var(--brand-accent); }
.brand-dot { font-style: italic; color: var(--brand-accent); } /* legacy compat */

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

/* ── Hamburger gomb (mobilon jelenik meg) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  color: var(--fg-1);
  cursor: pointer;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: border-color .15s;
}
.nav-hamburger:hover { border-color: var(--fg-3); }

/* ── Mobil navigációs fiók ── */
.mobile-nav {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 9999;
  background: #0B0C0F;
  border-bottom: 1px solid rgba(250,250,249,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.7);
  padding: 8px 12px 16px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  font-size: 15px; color: var(--fg-2);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  min-height: 44px;
  transition: background .15s, color .15s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(250,250,249,0.07);
  color: var(--fg-1);
}
.mobile-nav-link.cta {
  background: var(--brand-accent);
  color: var(--brand-ink);
  font-weight: 600;
  margin-top: 6px;
  justify-content: center;
}
.mobile-nav-link.cta:hover { background: var(--brand-accent-2); color: var(--brand-ink); }
.mobile-nav-sep {
  height: 1px;
  background: var(--border-1);
  margin: 6px 0;
}

.nav-link {
  padding: 7px 14px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--fg-3);
  font-size: 14px; font-weight: 500;
  transition: color .15s, background .15s;
  font-family: var(--font-body); background: transparent;
  border: none; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--fg-1); background: rgba(250,250,249,0.07); }
.nav-link.btn-accent, .nav-link.nav-cta {
  background: var(--brand-accent); color: var(--brand-ink);
  font-weight: 600; margin-left: 6px;
}
.nav-link.btn-accent:hover, .nav-link.nav-cta:hover { background: var(--brand-accent-2); }

/* ══════════════════════════════════
   PAGE LAYOUT
   ══════════════════════════════════ */
.page-wrap { padding-top: var(--topbar-h); min-height: 100vh; }
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 520px;  margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 780px;  margin: 0 auto; padding: 0 24px; }

/* ── Auth / centered pages ── */
.auth-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--topbar-h));
  padding: 40px 24px;
}
.auth-inner { width: 100%; max-width: 480px; }

/* ── Auth brand header above card ── */
.auth-logo {
  text-align: center; margin-bottom: 32px;
}
.auth-logo-mark {
  font-family: var(--font-display); font-size: 34px;
  letter-spacing: -0.03em; color: var(--fg-1);
  display: block; margin-bottom: 8px; text-decoration: none;
}
.auth-logo-mark .it { font-style: italic; color: var(--brand-accent); }
.auth-logo-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: .1em; text-transform: uppercase;
}

/* ── Form section label ── */
.form-section-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 14px;
}
.form-section-hint {
  font-size: 12px; color: var(--fg-3); margin-top: -8px; margin-bottom: 14px;
}

/* ══════════════════════════════════
   CARD
   ══════════════════════════════════ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.card-sm { padding: 20px; }

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .15s; line-height: 1;
  white-space: nowrap;
}
.btn-primary  { background: var(--brand-accent); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-accent-2); color: var(--brand-ink); }
.btn-secondary { background: var(--bg-elev-2); color: var(--fg-1); border-color: var(--border-1); }
.btn-secondary:hover { background: var(--bg-elev); border-color: rgba(250,250,249,0.22); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg-1); background: rgba(250,250,249,0.06); }
.btn-danger { background: rgba(248,113,113,0.12); color: #FCA5A5; border-color: rgba(248,113,113,0.28); }
.btn-danger:hover { background: rgba(248,113,113,0.2); }
.btn-sm    { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg    { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════
   FORMS
   ══════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--fg-3); letter-spacing: .1em; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-sunken); border: 1px solid var(--border-1);
  border-radius: var(--radius-md); color: var(--fg-1);
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(124,255,178,0.12);
}
.form-control::placeholder { color: var(--fg-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
hr { border: none; border-top: 1px solid var(--border-1); margin: 24px 0; }

/* ══════════════════════════════════
   ALERTS
   ══════════════════════════════════ */
.alert {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
  border: 1px solid transparent;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-error   { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.28); color: #FCA5A5; }
.alert-success { background: rgba(74,222,128,0.1);  border-color: rgba(74,222,128,0.28);  color: #86EFAC; }
.alert-info    { background: rgba(96,165,250,0.1);  border-color: rgba(96,165,250,0.28);  color: #93C5FD; }
.alert-warn    { background: rgba(250,204,21,0.1);  border-color: rgba(250,204,21,0.28);  color: #FDE047; }

/* ══════════════════════════════════
   BADGES
   ══════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .04em; border: 1px solid var(--border-1);
  background: var(--bg-elev-2); color: var(--fg-2);
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-active    { background: rgba(74,222,128,0.1);   color: #86EFAC; border-color: rgba(74,222,128,0.28); }
.badge-inactive  { color: var(--fg-3); }
.badge-completed { background: rgba(124,255,178,0.1);  color: var(--brand-accent); border-color: rgba(124,255,178,0.28); }
.badge-admin     { background: rgba(250,204,21,0.1);   color: #FDE047; border-color: rgba(250,204,21,0.28); }

/* ══════════════════════════════════
   TABLE
   ══════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-1); display: block; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 16px; text-align: left;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3);
  background: var(--bg-elev-2); border-bottom: 1px solid var(--border-1);
}
td {
  padding: 13px 16px; font-size: 13px;
  border-bottom: 1px solid var(--border-2);
  vertical-align: middle; color: var(--fg-1);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(250,250,249,0.025); }

/* ══════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--topbar-h));
}
.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border-1);
  padding: 24px 12px;
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
  padding: 0 12px; margin-bottom: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--fg-3);
  font-size: 14px; font-weight: 500;
  transition: all .15s; cursor: pointer;
  border: none; background: transparent;
  width: 100%; font-family: var(--font-body); text-align: left;
}
.sidebar-link:hover { color: var(--fg-1); background: rgba(250,250,249,0.05); }
.sidebar-link.active {
  color: var(--brand-accent); background: rgba(124,255,178,0.08);
  border-left: 2px solid var(--brand-accent); padding-left: 10px;
}
.sidebar-link i { width: 16px; text-align: center; font-size: 0.85em; flex-shrink: 0; }

.main-content { padding: 36px 40px; min-width: 0; }

/* ── Page header ── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-display); font-size: var(--text-h2);
  font-weight: 400; letter-spacing: -0.025em; color: var(--fg-1);
  display: flex; align-items: center; gap: 10px;
}
.page-title i { font-size: .7em; color: var(--brand-accent); }
.page-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); margin-top: 5px; letter-spacing: .04em;
}

/* ── Stat cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-elev); border: 1px solid var(--border-1);
  border-radius: var(--radius-lg); padding: 22px 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, transparent 100%);
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-display); font-size: 36px; font-weight: 400;
  color: var(--fg-1); letter-spacing: -0.03em; line-height: 1;
}
.stat-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 2rem; opacity: 0.06; color: var(--fg-1); }

/* ══════════════════════════════════
   CHAT
   ══════════════════════════════════ */
.chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--topbar-h) - 80px);
  min-height: 400px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg); border: 1px solid var(--border-1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.msg { display: flex; gap: 10px; max-width: 72%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: rgba(124,255,178,0.12); color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; flex-shrink: 0;
  border: 1px solid rgba(124,255,178,0.22);
}
.msg.mine .msg-avatar { background: var(--bg-elev-2); color: var(--fg-3); border-color: var(--border-1); }
.msg-bubble {
  background: var(--bg-elev); border: 1px solid var(--border-1);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px; font-size: 13px; line-height: 1.55; color: var(--fg-1);
  overflow-wrap: break-word; word-break: break-word; min-width: 0;
}
.msg.mine .msg-bubble {
  background: rgba(124,255,178,0.07); border-color: rgba(124,255,178,0.18);
  border-radius: 14px 14px 4px 14px;
}
.msg-time { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-top: 4px; }
.no-messages {
  text-align: center; padding: 40px; color: var(--fg-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
}
.chat-input-wrap {
  display: flex; border: 1px solid var(--border-1); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--bg-elev); overflow: hidden;
}
.chat-input {
  flex: 1; padding: 14px 16px; background: transparent;
  border: none; outline: none; color: var(--fg-1);
  font-family: var(--font-body); font-size: 14px; resize: none; height: 52px;
}
.chat-input::placeholder { color: var(--fg-3); }
.chat-send {
  padding: 0 20px; background: var(--brand-accent);
  border: none; color: var(--brand-ink); cursor: pointer;
  font-size: 1rem; font-weight: 600; transition: background .15s;
}
.chat-send:hover { background: var(--brand-accent-2); }

/* ══════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════ */
.pricing-hero { text-align: center; padding: 56px 0 64px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--border-1);
  border-radius: var(--radius-pill); background: var(--bg-elev); margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-accent); box-shadow: 0 0 10px var(--brand-accent);
}
.pricing-hero h1 {
  font-family: var(--font-display); font-size: 80px; font-weight: 400;
  letter-spacing: -0.04em; line-height: 0.95; color: var(--fg-1);
  margin: 0 auto 24px; max-width: 700px;
}
.pricing-hero .lead {
  font-size: 17px; color: var(--fg-2); line-height: 1.6;
  max-width: 520px; margin: 0 auto 36px;
}

/* Billing toggle */
.billing { display: flex; justify-content: center; margin-bottom: 56px; }
.seg {
  display: inline-flex; padding: 4px; background: var(--bg-elev-2);
  border: 1px solid var(--border-1); border-radius: var(--radius-md);
}
.seg-opt {
  font-family: var(--font-mono); font-size: 12px; padding: 7px 16px;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--fg-3);
  user-select: none; transition: all .15s;
}
.seg-opt.active { background: var(--bg-elev); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.seg-opt .save { color: var(--brand-accent); }

/* Tiers */
.tier-section { margin-bottom: 64px; }
.tier-section-hd {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-1);
}
.tier-section-title {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 400; letter-spacing: -.025em; color: var(--fg-1);
}
.tier-section-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: .03em;
}
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 0;
  align-items: stretch;
}
.tier {
  background: var(--bg-elev); padding: 32px 28px 30px;
  border: 1px solid var(--border-1); border-radius: var(--radius-xl);
  display: grid;
  grid-template-rows:
    auto    /* tag */
    auto    /* name */
    auto    /* price */
    auto    /* desc */
    auto    /* stack chips */
    auto    /* cta */
    1fr     /* spacer — pushes features to bottom */
    auto    /* divider + feats */;
  gap: 14px; position: relative;
}
.tier .stack-row { min-height: 58px; align-content: flex-start; }
.tier.featured {
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(124,255,178,0.10) 0%, transparent 70%),
    var(--bg-elev);
}
.tier.featured::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(124,255,178,0.35);
  border-radius: var(--radius-xl);
}
.tier-tag {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
  min-height: 28px;
}
.tier-tag .pop {
  color: var(--brand-accent); background: rgba(124,255,178,0.08);
  border: 1px solid rgba(124,255,178,0.35);
  padding: 3px 9px; border-radius: var(--radius-pill); font-size: 10px;
}
.tier-name {
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.1; color: var(--fg-1);
  min-height: 72px; display: flex; align-items: flex-start;
}
.tier-price {
  display: flex; align-items: baseline; gap: 6px;
  min-height: 76px; align-items: center;
}
.tier-price .num {
  font-family: var(--font-display); font-size: 52px; font-weight: 400;
  letter-spacing: -0.04em; line-height: 1; color: var(--fg-1);
}
.tier-price .unit { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }
.tier-strike { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); text-decoration: line-through; margin-top: -8px; }
.tier-desc { font-size: 13px; color: var(--fg-2); line-height: 1.6; min-height: 66px; }
.tier-cta { }
.tier-cta .btn { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }

/* Egyedi kérés — széles vízszintes csík */
.custom-strip {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
  padding: 36px 40px; margin-top: 20px;
  border: 1px solid rgba(124,255,178,0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 80% at 0% 50%, rgba(124,255,178,0.07) 0%, transparent 65%),
    var(--bg-elev);
  position: relative; overflow: hidden;
}
.custom-strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(124,255,178,0.18);
  border-radius: var(--radius-xl);
}
.custom-strip-tag {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--brand-accent); margin-bottom: 10px;
}
.custom-strip-title {
  font-family: var(--font-display); font-size: 30px; font-weight: 400;
  letter-spacing: -.028em; line-height: 1.15; margin-bottom: 10px; color: var(--fg-1);
}
.custom-strip-desc {
  font-size: 13px; color: var(--fg-2); line-height: 1.65;
  max-width: 520px; margin-bottom: 18px;
}
.custom-strip-perks {
  display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 20px;
}
.custom-strip-perks span {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-2);
  display: flex; align-items: center; gap: 6px;
}
.custom-strip-perks span::before {
  content: "✓"; color: var(--brand-accent); font-size: 12px;
}
.custom-strip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.custom-strip-cta {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; min-width: 190px; text-align: center; flex-shrink: 0;
}
.custom-strip-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.custom-strip-price-num {
  font-family: var(--font-display); font-size: 40px; font-weight: 400;
  letter-spacing: -.035em; color: var(--fg-1); font-style: italic;
}
.custom-strip-price-unit {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em;
}
.custom-strip-note {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); line-height: 1.5;
}
.custom-strip-cta .btn { width: 100%; justify-content: center; padding: 13px 24px; font-size: 14px; }
.chip.chip-sm { font-size: 10px; padding: 3px 8px; gap: 5px; }
.chip.chip-sm .dot { width: 6px; height: 6px; }
@media (max-width: 760px) {
  .custom-strip {
    grid-template-columns: 1fr; gap: 24px; padding: 28px 22px;
  }
  .custom-strip-cta {
    width: 100%; border-top: 1px solid var(--border-1); padding-top: 22px;
  }
  .custom-strip-title { font-size: 24px; }
}

/* Szolgáltatás (előfizetés) kártyák — egyforma magasság, gomb alul */
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.svc-pub-card {
  background: var(--bg-elev); border: 1px solid var(--border-1);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.svc-pub-card:hover { border-color: rgba(124,255,178,.3); box-shadow: var(--shadow-md); }
.svc-pub-card.featured { border-color: rgba(124,255,178,.25); background: linear-gradient(135deg,var(--bg-elev) 0%,rgba(124,255,178,.04) 100%); }
.svc-pub-card .svc-feats { flex: 1; }
.svc-pub-card .svc-btn { margin-top: 20px; }

/* Tech chips */
.stack-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-top: 4px;
}
.stack-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  border: 1px solid transparent; line-height: 1;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.chip.php   { background: rgba(119,123,180,0.18); color: #B4B7E8; border-color: rgba(119,123,180,0.4); }
.chip.mysql { background: rgba(0,97,138,0.22);    color: #7DC4E8; border-color: rgba(0,97,138,0.5); }
.chip.js    { background: rgba(247,223,30,0.15);  color: #F7DF1E; border-color: rgba(247,223,30,0.45); }
.chip.html  { background: rgba(227,79,38,0.18);   color: #FF8A6B; border-color: rgba(227,79,38,0.45); }
.chip.css   { background: rgba(21,114,182,0.2);   color: #6BB1F0; border-color: rgba(21,114,182,0.5); }
.chip.xampp { background: rgba(251,122,36,0.18);  color: #FFB07A; border-color: rgba(251,122,36,0.45); }
.chip.api   { background: rgba(124,255,178,0.12); color: var(--brand-accent); border-color: rgba(124,255,178,0.4); }
.chip.php .dot   { background: #777BB4; }
.chip.mysql .dot { background: #00618A; }
.chip.js .dot    { background: #F7DF1E; }
.chip.html .dot  { background: #E34F26; }
.chip.css .dot   { background: #1572B6; }
.chip.xampp .dot { background: #FB7A24; }
.chip.api .dot   { background: var(--brand-accent); }
.chip.react    { background: rgba(97,218,251,.12);  color: #61DAFB; border-color: rgba(97,218,251,.35); }
.chip.react .dot { background: #61DAFB; }
.chip.nextjs   { background: rgba(255,255,255,.08); color: #E2E8F0; border-color: rgba(255,255,255,.18); }
.chip.nextjs .dot { background: #E2E8F0; }
.chip.ts       { background: rgba(49,120,198,.18);  color: #7DB3E8; border-color: rgba(49,120,198,.45); }
.chip.ts .dot  { background: #3178C6; }
.chip.vite     { background: rgba(100,108,255,.15); color: #A5ABFF; border-color: rgba(100,108,255,.4); }
.chip.vite .dot { background: #646CFF; }
.chip.tailwind { background: rgba(6,182,212,.12);   color: #67E8F9; border-color: rgba(6,182,212,.35); }
.chip.tailwind .dot { background: #06B6D4; }
.chip.nodejs   { background: rgba(51,153,51,.15);   color: #86CC86; border-color: rgba(51,153,51,.4); }
.chip.nodejs .dot { background: #339933; }
.chip.express  { background: rgba(200,200,200,.1);  color: #C0C0C0; border-color: rgba(200,200,200,.22); }
.chip.express .dot { background: #AAAAAA; }
.chip.prisma   { background: rgba(90,103,216,.15);  color: #A5B0ED; border-color: rgba(90,103,216,.4); }
.chip.prisma .dot { background: #5A67D8; }
.chip.jwt      { background: rgba(214,58,255,.12);  color: #E879F9; border-color: rgba(214,58,255,.35); }
.chip.jwt .dot { background: #D63AFF; }
.chip.swagger  { background: rgba(133,234,45,.12);  color: #A3E635; border-color: rgba(133,234,45,.35); }
.chip.swagger .dot { background: #85EA2D; }
.chip.pg       { background: rgba(51,103,145,.2);   color: #7CB9E8; border-color: rgba(51,103,145,.5); }
.chip.pg .dot  { background: #336791; }
.chip.muted { opacity: .28; filter: grayscale(0.5); }
/* Stack groups */
.stack-group { width: 100%; }
.stack-group-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); display: block; margin-bottom: 6px; }
.stack-group .stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tier .stack-row.has-groups { flex-direction: column; gap: 10px; min-height: unset; }
.stack-overview { display: flex; flex-direction: column; gap: 14px; align-items: center; margin: 0 0 56px; }
.stack-overview .stack-group { display: flex; flex-direction: column; align-items: center; }
.stack-overview .stack-group-label { text-align: center; }
.stack-overview .stack-chips { justify-content: center; }

/* Feature list */
.tier-divider { height: 1px; background: var(--border-1); margin: 4px 0; }
.feat-cat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-top: 10px; margin-bottom: 4px;
}
.feat-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--fg-1); line-height: 1.5; padding: 3px 0;
}
.feat-row.off { color: var(--fg-3); }
.feat-row .ico { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; }
.feat-row .ico.check { color: var(--brand-accent); }
.feat-row .ico.dash  { color: var(--fg-3); }
.feat-row .v {
  font-family: var(--font-mono); margin-left: auto;
  color: var(--fg-3); font-size: 11px; flex-shrink: 0; padding-left: 8px;
}

/* Compare table */
.compare {
  background: var(--bg-elev); border: 1px solid var(--border-1);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--border-2); font-size: 13px; }
.compare thead th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3); font-weight: 500;
  background: var(--bg-elev-2); border-bottom: 1px solid var(--border-1);
}
.compare thead th.feat-col { color: var(--brand-accent); }
.compare td.center { text-align: center; }
.compare td.muted { color: var(--fg-3); }
.compare tbody tr:hover td { background: var(--bg-elev-2); }
.compare tbody tr.cat td {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); background: var(--bg-sunken);
  padding: 9px 20px; border-bottom: 1px solid var(--border-1);
  border-top: 1px solid var(--border-1);
}
.ic-check { color: var(--brand-accent); font-size: 15px; }
.ic-dash  { color: var(--fg-3); }

/* CTA section */
.cta-section { text-align: center; padding: 64px 0; border-top: 1px solid var(--border-1); }
.cta-section h2 {
  font-family: var(--font-display); font-size: 48px; font-weight: 400;
  letter-spacing: -0.035em; color: var(--fg-1); margin-bottom: 16px;
}
.cta-section p:not(.cta-sub) { color: var(--fg-2); font-size: 16px; max-width: 480px; margin: 0 auto 32px; line-height: 1.65; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand-accent); color: var(--brand-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-md);
  text-decoration: none; transition: background .15s;
  border: none; cursor: pointer;
}
.cta-btn:hover { background: var(--brand-accent-2); color: var(--brand-ink); }
.cta-sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 28px; letter-spacing: .06em; }

/* ══════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-1); padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  max-width: 1160px; margin: 0 auto; letter-spacing: .06em;
}
.footer-mini {
  border-top: 1px solid var(--border-1); padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
}
.footer-brand { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--fg-1); }
.footer-brand .it { font-style: italic; color: var(--brand-accent); }

/* Pricing page layout wrapper */
.pricing-wrap { max-width: 1160px; margin: 0 auto; padding: 100px 40px 120px; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; gap: 12px; }
  .tier.featured::after { display: none; }
  .pricing-hero h1 { font-size: 56px; }
  .tier-name  { min-height: unset; }
  .tier-price { min-height: unset; }
  .tier-desc  { min-height: unset; }
  .tier .stack-row { min-height: unset; }
}
@media (max-width: 860px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: var(--topbar-h); z-index: 50;
    height: 48px; min-height: 48px; max-height: 48px;
    overflow: hidden;
    border-right: none; border-bottom: 1px solid var(--border-1);
    padding: 0; background: var(--bg-elev);
    display: flex; flex-direction: row; align-items: stretch;
  }
  .sidebar-title { display: none; }
  .sidebar-section {
    display: flex; flex-direction: row; align-items: stretch;
    flex-wrap: nowrap; gap: 0; margin-bottom: 0;
    overflow-x: auto; overflow-y: hidden;
    flex: 1; padding: 0 8px;
    scrollbar-width: none;
  }
  .sidebar-section::-webkit-scrollbar { display: none; }
  .sidebar-link {
    padding: 0 14px; height: 48px; line-height: 48px;
    font-size: 13px; width: auto !important; white-space: nowrap;
    flex-shrink: 0; border-radius: 0; border-left: none;
    display: flex; align-items: center; gap: 6px;
  }
  .sidebar-link.active {
    border-left: none; padding-left: 14px;
    border-bottom: 2px solid var(--brand-accent);
    color: var(--brand-accent); background: rgba(124,255,178,0.06);
  }
  .main-content { padding: 24px 20px; min-width: 0; }
  .chat-wrap { height: calc(100dvh - var(--topbar-h) - 48px - 120px); min-height: 320px; }
}
/* ── Tablet közbülső töréspont ── */
@media (max-width: 768px) {
  .topbar { padding: 0 20px; }
  .topbar-nav .nav-link { display: none !important; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  .container-md { padding: 0 20px; }
  .pricing-wrap { padding: 80px 24px 100px; }
  .main-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .topbar-nav .nav-link { display: none !important; }
  .nav-hamburger { display: flex; }
  .pricing-hero { padding: 32px 0 40px; }
  .pricing-hero h1 { font-size: 36px; letter-spacing: -0.03em; }
  .pricing-hero .lead { font-size: 14px; }
  .hero-eyebrow { font-size: 10px; padding: 6px 12px; }
  .card { padding: 24px 20px; }
  .site-footer {
    padding: 28px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .site-footer > div { justify-content: center; }
  /* Pricing page */
  .pricing-wrap { padding: 56px 16px 72px; }
  .tier { padding: 22px 16px; gap: 12px; }
  .tier-price .num { font-size: 36px; }
  .tier-cta .btn { padding: 11px; }
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 32px; }
  .cta-section p { font-size: 14px; }
  /* Quote modal full-width on mobile */
  .quote-modal-overlay { align-items: flex-end; }
  .quote-modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 28px 20px; max-height: 92dvh; overflow-y: auto; }
  /* Stack chips smaller on mobile */
  .chip { font-size: 10px; padding: 4px 8px; }
  /* 2-col form rows collapse to 1 on mobile */
  .form-row { grid-template-columns: 1fr; }
  /* Sub cards single column on very small screens */
  .svc-cards-grid { grid-template-columns: 1fr; }
  /* Chat: buborékok szélesebben, kisebb területfoglalás */
  .msg { max-width: 88%; }
  .chat-wrap { height: calc(100dvh - var(--topbar-h) - 160px); min-height: 260px; }
  /* Main content szűkebb padding */
  .main-content { padding: 16px; }
  /* Stats 2 oszlopos telefonon is */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 28px; }
}

/* ══════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════ */
#gg-cookie {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9000; width: calc(100% - 40px); max-width: 760px;
  background: #111316; border: 1px solid rgba(250,250,249,0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  transition: opacity .3s ease;
}
.gg-cookie-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; flex-wrap: wrap;
}
.gg-cookie-text {
  flex: 1; font-size: 12px; color: var(--fg-3);
  font-family: var(--font-mono); line-height: 1.7; margin: 0;
  min-width: 200px;
}
.gg-cookie-text a { color: var(--brand-accent); text-decoration: none; }
.gg-cookie-text a:hover { text-decoration: underline; }
.gg-cookie-btns { flex-shrink: 0; display: flex; gap: 8px; }
.gg-cookie-btns button {
  background: var(--brand-accent); color: var(--brand-ink);
  border: none; border-radius: var(--radius-sm);
  padding: 9px 22px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
  font-family: var(--font-body);
}
.gg-cookie-btns button:hover { background: var(--brand-accent-2); color: var(--brand-ink); }
.gg-cookie-btns button#gg-cookie-decline {
  background: transparent; color: var(--fg-3);
  border: 1px solid var(--border-1);
}
.gg-cookie-btns button#gg-cookie-decline:hover { background: var(--bg-elev); color: var(--fg-1); }

/* ── FAQ szekció ── */
.faq-section {
  max-width: 760px; margin: 0 auto;
  padding: 0 40px 80px;
}
.faq-title {
  font-family: var(--font-display); font-size: clamp(28px,4vw,42px);
  font-weight: 400; letter-spacing: -.035em; color: var(--fg-1);
  text-align: center; margin-bottom: 40px;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-elev); border: 1px solid var(--border-1);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(124,255,178,.25); }
.faq-q {
  padding: 16px 20px; font-size: 14px; font-weight: 500; color: var(--fg-1);
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; font-size: 18px; font-weight: 400;
  color: var(--brand-accent); flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 20px 16px;
  font-size: 13px; color: var(--fg-3); line-height: 1.75; margin: 0;
}

@media (max-width: 640px) {
  #gg-cookie {
    bottom: 0; left: 0; right: 0; width: 100%;
    transform: none; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: none;
  }
  .gg-cookie-inner { padding: 16px 16px 20px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .gg-cookie-text { font-size: 13px; min-width: 0; }
  .gg-cookie-btns { width: 100%; flex-direction: row; }
  .gg-cookie-btns button { flex: 1; padding: 13px; font-size: 14px; }
  .faq-section { padding: 0 16px 60px; }
}
