/* ==========================================================================
   Tárhelyed.hu – Design System v3
   Mély éjkék felületek · prémium arany · vállalati kék
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --th-bg-main: #05070d;
  --th-bg-surface: #0b0f19;
  --th-bg-card: #0f1420;
  --th-bg-card-hover: #141a29;
  --th-bg-input: #080b13;
  --th-border: #1a2131;
  --th-border-light: rgba(255, 255, 255, 0.07);
  --th-border-strong: #273049;

  --th-gold: #f5a524;
  --th-gold-hover: #e08e0b;
  --th-gold-light: #fcc75a;
  --th-gold-subtle: rgba(245, 165, 36, 0.1);
  --th-gold-grad: linear-gradient(135deg, #fcd581 0%, #f5a524 45%, #e07b0b 100%);
  --th-blue: #3b82f6;
  --th-blue-light: #7cb0ff;
  --th-blue-subtle: rgba(59, 130, 246, 0.12);
  --th-green: #10b981;
  --th-green-light: #4ade9f;
  --th-green-subtle: rgba(16, 185, 129, 0.12);
  --th-red: #ef4444;
  --th-red-light: #fca5a5;
  --th-red-subtle: rgba(239, 68, 68, 0.12);

  --th-text-bright: #f8fafc;
  --th-text-main: #d6dde8;
  --th-text-muted: #8a96aa;
  --th-text-dim: #5d687c;

  --th-radius-sm: 8px;
  --th-radius-md: 12px;
  --th-radius-lg: 18px;
  --th-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --th-shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
  --th-shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  --th-ease: cubic-bezier(.16, 1, .3, 1);
  --th-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--th-text-main);
  background: var(--th-bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--th-mono); font-size: .88em; background: rgba(255,255,255,.05); border: 1px solid var(--th-border-light); padding: 1px 6px; border-radius: 5px; color: var(--th-text-bright); word-break: break-all; }
:focus-visible { outline: 2px solid var(--th-gold); outline-offset: 2px; }
::selection { background: rgba(245,165,36,.35); color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
.text-center { text-align: center; }
.text-gold { color: var(--th-gold); }
.text-blue { color: var(--th-blue-light); }
.text-green { color: var(--th-green-light); }
.text-muted { color: var(--th-text-muted); }
.text-gradient { background: var(--th-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-100 { width: 100%; }
.ta-r { text-align: right; white-space: nowrap; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.strike { text-decoration: line-through; color: var(--th-text-muted); }
.link { color: var(--th-blue-light); font-weight: 600; }
.link:hover { text-decoration: underline; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--th-gold); }

/* ---------- Felső sáv + fejléc ---------- */
.top-bar { background: #03050a; border-bottom: 1px solid var(--th-border); padding: 7px 0; font-size: 12.5px; color: var(--th-text-muted); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right a:hover { color: var(--th-text-bright); }
.top-bar-client-link { color: var(--th-gold-light); font-weight: 700; }

.main-header { background: rgba(5, 7, 13, .72); border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: border-color .3s, background .3s; }
body.scrolled .main-header { border-bottom-color: var(--th-border); background: rgba(5, 7, 13, .88); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; gap: 20px; }
.logo-container { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(245,165,36,.5); }
.logo-text-group { display: flex; flex-direction: column; }
.logo-title { font-size: 20px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.02em; line-height: 1.1; }
.yellow-dot { color: var(--th-gold); }
.logo-slogan { font-size: 10.5px; font-weight: 600; color: var(--th-text-muted); letter-spacing: .06em; text-transform: uppercase; }
.badge-v2 { font-family: var(--th-mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(124,176,255,.1); color: var(--th-blue-light); border: 1px solid rgba(124,176,255,.3); vertical-align: middle; margin-left: 6px; display: inline-block; }

.nav-menu { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-link { padding: 8px 13px; font-size: 13.5px; font-weight: 600; color: var(--th-text-muted); border-radius: 999px; display: flex; align-items: center; gap: 7px; }
.nav-link i { font-size: 12px; opacity: .8; }
.nav-link:hover { color: var(--th-text-bright); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--th-text-bright); background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--th-border); background: var(--th-bg-surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--th-text-bright); border-radius: 2px; transition: transform .3s var(--th-ease), opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Gombok ---------- */
.btn-primary, .btn-secondary, .btn-cyan, .btn-ghost, .btn-danger, .btn-action-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .2s var(--th-ease), box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; line-height: 1.3;
}
.btn-primary { background: var(--th-gold-grad); color: #1a1205; box-shadow: 0 6px 20px -8px rgba(245,165,36,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(245,165,36,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-secondary { background: rgba(255,255,255,.04); color: var(--th-text-bright); border-color: var(--th-border-strong); }
.btn-secondary:hover { border-color: var(--th-gold); color: var(--th-gold-light); background: rgba(245,165,36,.06); }
.btn-cyan { background: var(--th-blue); color: #fff; }
.btn-cyan:hover { background: #5294ff; }
.btn-ghost, .btn-action-sm { background: rgba(255,255,255,.04); color: var(--th-text-main); border-color: var(--th-border); }
.btn-ghost:hover, .btn-action-sm:hover { background: rgba(255,255,255,.08); color: var(--th-text-bright); border-color: var(--th-border-strong); }
.btn-danger { background: var(--th-red-subtle); color: var(--th-red-light); border-color: rgba(239,68,68,.3); }
.btn-danger:hover { background: rgba(239,68,68,.22); }
.btn-sm, .btn-action-sm { font-size: 12.5px; padding: 7px 13px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 14.5px; }
.btn-block { width: 100%; }
button:disabled { opacity: .6; cursor: progress; transform: none !important; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--th-border); background: transparent; color: var(--th-text-muted); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { color: var(--th-text-bright); background: rgba(255,255,255,.06); }

/* ---------- Pillek / állapotok ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pill-green { color: var(--th-green-light); background: var(--th-green-subtle); border-color: rgba(16,185,129,.35); }
.pill-gold { color: var(--th-gold-light); background: var(--th-gold-subtle); border-color: rgba(245,165,36,.35); }
.pill-blue { color: var(--th-blue-light); background: var(--th-blue-subtle); border-color: rgba(59,130,246,.35); }
.pill-red { color: var(--th-red-light); background: var(--th-red-subtle); border-color: rgba(239,68,68,.35); }
.pill-gray { color: var(--th-text-muted); background: rgba(255,255,255,.04); border-color: var(--th-border-strong); }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: var(--th-red-subtle); border-color: rgba(239,68,68,.4); color: var(--th-red-light); }
.alert-success { background: var(--th-green-subtle); border-color: rgba(16,185,129,.4); color: var(--th-green-light); }

/* ---------- Aloldalak hero + szekciók (régi osztályok) ---------- */
.hero-section { padding: 80px 0 60px; }
.hero-content { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--th-gold-subtle); border: 1px solid rgba(245,165,36,.3); color: var(--th-gold-light); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: var(--th-text-bright); line-height: 1.1; margin-bottom: 16px; letter-spacing: -.03em; }
.gradient-text { background: var(--th-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slogan { font-size: 16px; color: var(--th-text-muted); margin-bottom: 28px; }
.hero-btn-group { display: flex; justify-content: center; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats-row { display: flex; justify-content: center; gap: 40px; border-top: 1px solid var(--th-border); padding-top: 24px; flex-wrap: wrap; }
.hero-stat-item { display: flex; flex-direction: column; align-items: center; }
.hero-stat-value { font-size: 20px; font-weight: 800; color: var(--th-text-bright); }
.hero-stat-label { font-size: 12px; color: var(--th-text-muted); }

.page-hero { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--th-border); overflow: hidden;
  background: radial-gradient(ellipse 70% 120% at 50% -20%, rgba(245,165,36,.13), transparent 60%), radial-gradient(ellipse 50% 80% at 90% 0%, rgba(59,130,246,.12), transparent 60%); }
.page-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; color: var(--th-text-bright); margin: 10px 0 8px; letter-spacing: -.03em; line-height: 1.15; }
.page-subtitle { font-size: 16px; color: var(--th-text-muted); max-width: 680px; }
.page-hero.text-center .page-subtitle, .text-center .page-subtitle { margin: 0 auto; }

.section-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--th-gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.section-heading { margin-bottom: 40px; }
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--th-text-bright); margin: 8px 0; letter-spacing: -.025em; line-height: 1.2; }
.section-subtitle { font-size: 15px; color: var(--th-text-muted); }

/* ---------- Domain kereső ---------- */
.domain-search-section { margin: 40px auto 60px; }
.domain-search-box { background: linear-gradient(180deg, var(--th-bg-card), var(--th-bg-surface)); border: 1px solid var(--th-border); border-radius: var(--th-radius-lg); padding: 28px; box-shadow: var(--th-shadow-lg); }
.domain-search-header { margin-bottom: 16px; }
.domain-search-title { font-size: 18px; font-weight: 800; color: var(--th-text-bright); margin-bottom: 4px; }
.domain-search-subtitle { font-size: 13.5px; color: var(--th-text-muted); }
.domain-search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.domain-input-group { position: relative; flex: 1; min-width: 220px; }
.domain-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--th-text-muted); }
.domain-input, .domain-tld-select { width: 100%; padding: 14px 16px; background: var(--th-bg-input); border: 1px solid var(--th-border); border-radius: 10px; color: var(--th-text-bright); font-size: 15px; font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s; }
.domain-input { padding-left: 44px; }
.domain-tld-select { width: auto; cursor: pointer; }
.domain-input:focus, .domain-tld-select:focus { border-color: var(--th-gold); box-shadow: 0 0 0 4px rgba(245,165,36,.12); }
.domain-search-btn { padding: 14px 26px; }
.domain-results { margin-top: 18px; }
.domain-results-head { font-size: 14px; color: var(--th-text-bright); margin-bottom: 10px; }
.domain-results-head i { color: var(--th-gold); margin-right: 6px; }
.domain-results-head span { color: var(--th-gold-light); }
.domain-results-grid { display: flex; flex-direction: column; gap: 8px; }
.domain-result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--th-border); color: var(--th-text-bright); }
.domain-result-row.available { border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.04); }
.domain-result-row.taken { border-color: rgba(239,68,68,.22); }
.row-left, .row-right { display: flex; align-items: center; gap: 12px; }
.row-price { font-weight: 800; color: var(--th-gold-light); }
.domain-status-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-available { background: var(--th-green-subtle); color: var(--th-green-light); }
.badge-taken { background: var(--th-red-subtle); color: var(--th-red-light); }

/* ---------- Árazás ---------- */
.pricing-section { padding: 40px 0 80px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.pricing-card { background: var(--th-bg-card); border: 1px solid var(--th-border); border-radius: var(--th-radius-lg); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: transform .35s var(--th-ease), border-color .3s, box-shadow .35s; }
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(245,165,36,.45); box-shadow: 0 30px 60px -30px rgba(245,165,36,.35); }
.pricing-card.featured { border-color: rgba(245,165,36,.6); background: linear-gradient(180deg, rgba(245,165,36,.08), var(--th-bg-card) 40%); }
.pricing-badge { position: absolute; top: -12px; right: 22px; background: var(--th-gold-grad); color: #1a1205; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pricing-header { margin-bottom: 22px; }
.pricing-title { font-size: 20px; font-weight: 800; color: var(--th-text-bright); margin-bottom: 6px; }
.pricing-desc { font-size: 13.5px; color: var(--th-text-muted); min-height: 42px; }
.pricing-price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.price-val { font-size: 34px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.03em; }
.price-period { font-size: 13px; color: var(--th-text-muted); }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li { font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.pricing-features li i { color: var(--th-green-light); font-size: 12px; }

/* ---------- Referenciák / funkciók ---------- */
.references-section { padding: 70px 0; border-top: 1px solid var(--th-border); border-bottom: 1px solid var(--th-border); background: var(--th-bg-surface); }
.references-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.reference-card, .feature-box, .feature-card { background: var(--th-bg-card); border: 1px solid var(--th-border); border-radius: var(--th-radius-lg); padding: 28px; transition: transform .35s var(--th-ease), border-color .3s; }
.reference-card:hover, .feature-box:hover, .feature-card:hover { transform: translateY(-4px); border-color: var(--th-border-strong); }
.reference-icon, .feature-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 16px; background: var(--th-gold-subtle); color: var(--th-gold); border: 1px solid rgba(245,165,36,.2); }
.feature-icon { background: var(--th-blue-subtle); color: var(--th-blue-light); border-color: rgba(59,130,246,.2); }
.reference-title, .feature-title { font-size: 17px; font-weight: 800; color: var(--th-text-bright); margin-bottom: 6px; }
.reference-url a { font-size: 13px; font-weight: 700; color: var(--th-blue-light); display: inline-flex; align-items: center; gap: 5px; }
.reference-desc, .feature-desc { font-size: 13.5px; color: var(--th-text-muted); margin-top: 8px; }
.features-section { padding: 70px 0; }

/* ---------- Tartalom + táblázatok ---------- */
.content-box, .card { background: var(--th-bg-card); border: 1px solid var(--th-border); border-radius: var(--th-radius-lg); padding: 26px; margin-bottom: 22px; }
.content-title, .card-title { font-size: 16.5px; font-weight: 800; color: var(--th-text-bright); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--th-gold); font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head .card-title { margin-bottom: 2px; }
.card-sub { font-size: 13px; color: var(--th-text-muted); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.feature-table, .data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.feature-table th, .data-table th { color: var(--th-text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--th-border); white-space: nowrap; }
.feature-table td, .data-table td { padding: 14px; border-bottom: 1px solid var(--th-border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.feature-table tr:hover td, .data-table tbody tr:hover td { background: rgba(255,255,255,.015); }
.data-table td strong { color: var(--th-text-bright); }
.data-table td small { display: block; font-size: 12px; color: var(--th-text-muted); margin-top: 2px; }
.empty { text-align: center; padding: 36px 16px; color: var(--th-text-muted); font-size: 13.5px; }
.empty i { font-size: 26px; color: var(--th-text-dim); margin-bottom: 10px; display: block; }
.empty p { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 13.5px; margin-bottom: 18px; }
.kv dt { color: var(--th-text-muted); }
.kv dd { color: var(--th-text-bright); font-weight: 600; word-break: break-word; }

/* ---------- Űrlapok ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--th-text-main); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; background: var(--th-bg-input); border: 1px solid var(--th-border); border-radius: 10px; color: var(--th-text-bright); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: var(--th-gold); box-shadow: 0 0 0 4px rgba(245,165,36,.12); }
.form-control::placeholder { color: var(--th-text-dim); }
select.form-control { cursor: pointer; }
.form-note { font-size: 12.5px; color: var(--th-text-muted); margin: 4px 0 16px; }
.form-note i { color: var(--th-gold); margin-right: 4px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--th-text-dim); font-size: 13px; }
.input-icon .form-control { padding-left: 40px; }
.input-suffix { display: flex; align-items: stretch; flex: 1; }
.input-suffix .form-control { border-radius: 10px 0 0 10px; }
.input-suffix span { display: flex; align-items: center; padding: 0 12px; background: rgba(255,255,255,.04); border: 1px solid var(--th-border); border-left: 0; border-radius: 0 10px 10px 0; font-size: 13px; color: var(--th-text-muted); white-space: nowrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--th-text-muted); cursor: pointer; }
.check input { accent-color: var(--th-gold); width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--th-border); }
.inline-form > .form-control { flex: 1; min-width: 140px; }
.row-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.row-actions.start { justify-content: flex-start; }

/* ---------- Modális ablakok ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(2, 4, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 16px; animation: fadeIn .2s; }
.modal-card { background: var(--th-bg-card); border: 1px solid var(--th-border-strong); border-radius: var(--th-radius-lg); padding: 28px; max-width: 540px; width: 100%; position: relative; box-shadow: var(--th-shadow-lg); max-height: calc(100vh - 32px); overflow-y: auto; animation: popIn .35s var(--th-ease); }
.modal-card.modal-wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--th-border); padding-bottom: 14px; margin-bottom: 18px; }
.modal-head h4 { font-size: 16px; font-weight: 800; color: var(--th-text-bright); display: flex; align-items: center; gap: 8px; }
.modal-head .modal-close { position: static; }
.modal-close { position: absolute; top: 16px; right: 18px; background: transparent; border: none; color: var(--th-text-muted); font-size: 24px; cursor: pointer; line-height: 1; width: 32px; height: 32px; border-radius: 8px; }
.modal-close:hover { color: var(--th-text-bright); background: rgba(255,255,255,.06); }
.modal-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 30px; }
.modal-brand img { width: 40px; height: 40px; border-radius: 10px; }
.modal-brand h4 { font-size: 17px; font-weight: 800; color: var(--th-text-bright); }
.modal-brand span { font-size: 12px; color: var(--th-text-muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.order-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--th-gold-subtle); border: 1px solid rgba(245,165,36,.35); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.order-summary span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--th-text-muted); font-weight: 700; }
.order-summary strong { color: var(--th-text-bright); }
.order-price { font-size: 18px; font-weight: 800; color: var(--th-gold-light); white-space: nowrap; }
.order-account { background: var(--th-bg-input); border: 1px solid var(--th-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; }
.order-account span:first-child { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--th-text-muted); font-weight: 700; }
.order-account strong { color: var(--th-text-bright); }
.result-ok { text-align: center; padding: 6px 0; }
.result-ok h3 { font-size: 21px; color: var(--th-text-bright); margin-bottom: 6px; }
.result-ok p { color: var(--th-text-muted); font-size: 13.5px; margin-bottom: 18px; }
.result-ok .kv { text-align: left; background: var(--th-bg-input); border: 1px solid var(--th-border); border-radius: 10px; padding: 14px 16px; }
.result-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--th-green-subtle); color: var(--th-green-light); border: 1px solid rgba(16,185,129,.4); }

/* Vezérlőpult (modalon belül) */
.ctrl-loading { min-height: 200px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--th-text-muted); }
.ctrl-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--th-bg-input); border: 1px solid var(--th-border); border-radius: 12px; padding: 14px; margin-bottom: 16px; font-size: 13px; }
.ctrl-meta span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--th-text-muted); font-weight: 700; margin-bottom: 4px; }
.ctrl-meta strong { color: var(--th-gold-light); }
.ctrl-body { min-height: 220px; }
.seg-tabs { display: flex; gap: 4px; background: var(--th-bg-input); border: 1px solid var(--th-border); border-radius: 12px; padding: 4px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.seg-tabs button { flex: 1; background: transparent; border: 0; color: var(--th-text-muted); font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s, color .2s; }
.seg-tabs button:hover { color: var(--th-text-bright); }
.seg-tabs button.active { background: var(--th-bg-card-hover); color: var(--th-text-bright); box-shadow: var(--th-shadow-sm), inset 0 0 0 1px var(--th-border-strong); }
.sub-title { font-size: 13.5px; color: var(--th-text-bright); margin: 18px 0 8px; }
.log-box, .code-editor { background: #03050a; border: 1px solid var(--th-border); border-radius: 10px; padding: 12px; font-family: var(--th-mono); font-size: 12px; color: var(--th-text-muted); }
.log-box { max-height: 200px; overflow-y: auto; }
.log-box div { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.03); }
.code-editor { width: 100%; min-height: 280px; color: var(--th-text-bright); line-height: 1.55; resize: vertical; outline: none; }

/* ---------- Toast ---------- */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 44px); }
.toast { background: rgba(15,20,32,.96); border: 1px solid var(--th-border-strong); border-radius: 12px; padding: 13px 18px; color: var(--th-text-bright); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 12px; box-shadow: var(--th-shadow-lg); backdrop-filter: blur(10px); animation: toastIn .4s var(--th-ease); transition: opacity .3s, transform .3s; }
.toast i { font-size: 17px; }
.toast-success i { color: var(--th-green-light); }
.toast-error i { color: var(--th-red); }
.toast-out { opacity: 0; transform: translateX(20px); }

/* ---------- Lábléc ---------- */
.main-footer { background: #03050a; border-top: 1px solid var(--th-border); padding: 64px 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--th-text-muted); margin-bottom: 16px; }
.footer-badge { font-size: 12.5px; color: var(--th-gold-light); }
.footer-title { font-size: 12px; font-weight: 700; color: var(--th-text-bright); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: var(--th-text-muted); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--th-text-bright); }
.footer-links i { font-size: 10px; color: var(--th-text-dim); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 10px; color: var(--th-text-muted); }
.footer-contact-item a:hover { color: var(--th-gold); }
.footer-bottom { border-top: 1px solid var(--th-border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--th-text-dim); flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a:hover { color: var(--th-text-muted); }

/* ==========================================================================
   ÜGYFÉLKAPU
   ========================================================================== */
.portal-page { background: var(--th-bg-main); }

/* Bejelentkezés – osztott képernyő */
.auth-split { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px; border-right: 1px solid var(--th-border);
  background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(245,165,36,.18), transparent 60%), radial-gradient(ellipse 70% 60% at 100% 0%, rgba(59,130,246,.16), transparent 60%), var(--th-bg-surface); }
.auth-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 30% 60%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000, transparent 75%); animation: gridPan 30s linear infinite; pointer-events: none; }
.auth-brand > *:not(.auth-grid-bg) { position: relative; z-index: 1; }
.auth-brand-logo, .sidebar-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.02em; }
.auth-brand-logo img, .sidebar-logo img { width: 36px; height: 36px; border-radius: 9px; }
.auth-brand-logo b, .sidebar-logo b { color: var(--th-gold); font-weight: 800; }
.auth-brand-body h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.035em; color: var(--th-text-bright); margin: 14px 0 28px; font-weight: 800; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--th-text-main); }
.auth-points i { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid var(--th-border-strong); color: var(--th-gold); font-size: 14px; flex-shrink: 0; }
.auth-brand-foot { font-size: 12.5px; color: var(--th-text-muted); }
.auth-brand-foot i { color: var(--th-green-light); margin-right: 6px; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; position: relative; }
.auth-back { position: absolute; top: 28px; right: 32px; font-size: 13px; color: var(--th-text-muted); font-weight: 600; }
.auth-back:hover { color: var(--th-text-bright); }
.auth-card { width: 100%; max-width: 440px; }
.auth-title { font-size: 28px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.03em; }
.auth-subtitle { color: var(--th-text-muted); font-size: 14px; margin-bottom: 24px; }

/* App shell */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 22px 16px; background: var(--th-bg-surface); border-right: 1px solid var(--th-border); z-index: 1100; }
.sidebar-logo { padding: 0 8px 4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidebar-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--th-text-dim); padding: 14px 12px 6px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--th-text-muted); position: relative; }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 14px; }
.sidebar-nav a:hover { color: var(--th-text-bright); background: rgba(255,255,255,.04); }
.sidebar-nav a.active { color: var(--th-text-bright); background: rgba(245,165,36,.09); }
.sidebar-nav a.active::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--th-gold); }
.sidebar-nav a.active i { color: var(--th-gold); }
.sidebar-nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--th-text-main); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--th-border); border-radius: 12px; background: var(--th-bg-card); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info strong { display: block; font-size: 13px; color: var(--th-text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { display: block; font-size: 11.5px; color: var(--th-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--th-gold-grad); color: #1a1205; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.sidebar-backdrop { display: none; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: rgba(5,7,13,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--th-border); }
.app-topbar h1 { font-size: 20px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.02em; line-height: 1.2; }
.crumbs { font-size: 12px; color: var(--th-text-muted); }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.sidebar-toggle { display: none; }
.app-content { padding: 28px 32px 60px; max-width: 1280px; width: 100%; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn .45s var(--th-ease); }

.welcome-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 22px; border-radius: var(--th-radius-lg); border: 1px solid var(--th-border);
  background: radial-gradient(ellipse 60% 140% at 100% 0%, rgba(245,165,36,.16), transparent 60%), radial-gradient(ellipse 50% 140% at 0% 100%, rgba(59,130,246,.12), transparent 60%), var(--th-bg-card); }
.welcome-card h2 { font-size: 22px; color: var(--th-text-bright); letter-spacing: -.02em; }
.welcome-card p { color: var(--th-text-muted); font-size: 14px; }
.welcome-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--th-green-light); background: var(--th-green-subtle); border: 1px solid rgba(16,185,129,.3); padding: 7px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--th-green-light); box-shadow: 0 0 0 0 rgba(74,222,159,.6); animation: pulse 2s infinite; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--th-radius-md); border: 1px solid var(--th-border); background: var(--th-bg-card); cursor: pointer; transition: transform .3s var(--th-ease), border-color .2s; }
.stat:hover { transform: translateY(-3px); border-color: var(--th-border-strong); }
.stat-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 10px; }
.stat-ic.gold { background: var(--th-gold-subtle); color: var(--th-gold); }
.stat-ic.blue { background: var(--th-blue-subtle); color: var(--th-blue-light); }
.stat-ic.gray { background: rgba(255,255,255,.06); color: var(--th-text-main); }
.stat-ic.green { background: var(--th-green-subtle); color: var(--th-green-light); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.03em; line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--th-text-muted); }

.ticket { border: 1px solid var(--th-border); background: var(--th-bg-surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ticket-head strong { color: var(--th-text-bright); font-size: 13.5px; }
.ticket-meta { font-size: 12px; color: var(--th-text-muted); margin: 2px 0 6px; }
.ticket-msg { font-size: 13px; color: var(--th-text-main); white-space: pre-wrap; margin-bottom: 8px; }
.ticket-reply { display: flex; gap: 10px; font-size: 13px; background: var(--th-blue-subtle); border: 1px solid rgba(59,130,246,.25); border-radius: 10px; padding: 10px 12px; }
.ticket-reply i { color: var(--th-blue-light); margin-top: 3px; }
.ticket-reply strong { color: var(--th-text-bright); font-size: 12.5px; }
.ticket-reply p { white-space: pre-wrap; }
.ticket form { margin-top: 8px; }

/* ---------- Animációk ---------- */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,159,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,159,0); } }
@keyframes gridPan { to { background-position: 40px 40px; } }

/* ---------- Reszponzív ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-split { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header-actions .header-cta-btn { display: none; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: rgba(5,7,13,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--th-border); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--th-ease); }
  body.nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
  .top-bar-left span:nth-child(n+2) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .35s var(--th-ease); }
  body.sidebar-open .sidebar { transform: none; box-shadow: var(--th-shadow-lg); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1050; }
  .sidebar-toggle { display: inline-flex; }
  .app-topbar { padding: 12px 16px; }
  .app-content { padding: 20px 16px 48px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .logo-slogan { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .ctrl-meta { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .card, .content-box { padding: 18px; }
  .stat-grid { gap: 10px; }
  .stat { padding: 16px; }
  .auth-back { position: static; align-self: flex-start; margin-bottom: 24px; }
  .modal-card { padding: 20px; }
  .domain-search-box { padding: 20px; }
  .domain-tld-select, .domain-search-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
