:root {
    /* ===== MÁRKASZÍNEK — itt állíthatók =====
       A színátmenet a brand-1 → brand-2 → brand-3 sorrendben megy (narancs → magenta).
       Cseréld a hex értékeket tetszés szerint. */
    --brand-1: #f97316;   /* narancs (tangerine) */
    --brand-2: #ec4899;   /* rózsaszín átmenet */
    --brand-3: #c026d3;   /* magenta */
    /* ======================================== */
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f1f5f9;
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

body { background: var(--bg); color: var(--ink); }

/* ---- Bootstrap primary újraszínezése (5.3 CSS változókkal) ---- */
.btn-primary {
    --bs-btn-bg: var(--brand-1); --bs-btn-border-color: var(--brand-1);
    --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
    --bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
    --bs-btn-disabled-bg: var(--brand-1); --bs-btn-disabled-border-color: var(--brand-1);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-1); --bs-btn-border-color: var(--brand-1);
    --bs-btn-hover-bg: var(--brand-1); --bs-btn-hover-border-color: var(--brand-1);
    --bs-btn-active-bg: var(--brand-1); --bs-btn-active-border-color: var(--brand-1);
}
a { color: var(--brand-1); }
.btn { border-radius: .6rem; font-weight: 500; }

/* ---- Layout ---- */
.app-shell { min-height: 100vh; }
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: linear-gradient(165deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
    color: #fff;
    padding: 0;
}
.sidebar .brand {
    display: flex; align-items: center; gap: .65rem;
    padding: 1.25rem 1.4rem; font-size: 1.15rem; font-weight: 700;
    color: #fff; text-decoration: none; letter-spacing: .2px;
}
.sidebar .brand i { font-size: 1.5rem; }
.sidebar .nav-section { padding: .5rem .8rem; }
.sidebar .nav-link {
    display: flex; align-items: center; gap: .8rem;
    color: rgba(255,255,255,.82); border-radius: .7rem;
    padding: .7rem .9rem; margin-bottom: .2rem; font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.sidebar .nav-link i { font-size: 1.15rem; width: 1.3rem; text-align: center; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,.22); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: .7rem 1.4rem; display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 5;
}
.topbar .lang a { color: var(--muted); text-decoration: none; padding: .15rem .35rem; border-radius: .4rem; }
.topbar .lang a.active { color: var(--brand-1); font-weight: 700; background: #eef2ff; }
.content { padding: 1.6rem; flex: 1 0 auto; }
.page-sub { color: var(--muted); margin-top: -.15rem; margin-bottom: 1.25rem; }

/* ---- Üres állapot (empty state) ---- */
.empty-state { text-align: center; padding: 3rem 1.25rem; }
.empty-state .es-icon { font-size: 2.8rem; color: #cbd5e1; margin-bottom: .85rem; }
.empty-state .es-title { font-weight: 600; margin-bottom: .35rem; }
.empty-state .es-text { color: var(--muted); margin-bottom: 1.25rem; }

/* ---- Kezdő lépések (onboarding) ---- */
.onboard .step { display: flex; gap: .9rem; align-items: flex-start; padding: .6rem 0; }
.onboard .step-no { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); }

/* ---- Cards / tables ---- */
.card { border: 0; border-radius: 16px; box-shadow: 0 6px 22px rgba(15,23,42,.06); }
.card-header { background: #fff; border-bottom: 1px solid #eef2f6; font-weight: 600; border-radius: 16px 16px 0 0 !important; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #eef2f6; }
.badge { font-weight: 600; padding: .4em .7em; border-radius: .5rem; }

/* ---- Stat cards (dashboard) ---- */
.stat { border-radius: 16px; overflow: hidden; }
.stat .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; }
.stat .stat-num { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat .stat-label { color: var(--muted); font-size: .85rem; }

/* ---- Auth (login) ---- */
.auth-bg { min-height: 100vh; display: flex; flex-direction: column;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%); }
.auth-wrap { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 420px; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.auth-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(165deg, var(--brand-1), var(--brand-3)); color: #fff; font-size: 1.7rem; }

/* ---- Választó kártyák (mint a Lemon Squeezy fizetés-típusnál) ---- */
.choice-cards { margin-bottom: .25rem; }
.choice-card { display: block; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 1rem 1.1rem;
    cursor: pointer; height: 100%; position: relative; transition: border-color .15s, box-shadow .15s; }
.choice-card:hover { border-color: #cbd5e1; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--brand-1); box-shadow: 0 0 0 .2rem rgba(249,115,22,.14); }
.choice-card .cc-title { font-weight: 600; }
.choice-card .cc-desc { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.choice-card .cc-check { position: absolute; top: .85rem; right: .95rem; color: var(--brand-1); opacity: 0; }
.choice-card:has(input:checked) .cc-check { opacity: 1; }

.section-head { font-weight: 700; font-size: 1.05rem; margin: 0; }
.section-sub { color: var(--muted); font-size: .85rem; margin-top: .1rem; }

/* ---- Integráció: kód + platform-választó ---- */
.code-pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 1rem 1.1rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: .82rem;
    line-height: 1.55; overflow: auto; max-height: 520px; margin: 0; white-space: pre; }
.platform-tab { border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; padding: .7rem .9rem;
    cursor: pointer; display: flex; align-items: center; gap: .6rem; font-weight: 600; width: 100%;
    transition: border-color .15s, box-shadow .15s; color: var(--ink); }
.platform-tab i { font-size: 1.2rem; color: var(--brand-1); }
.platform-tab:hover { border-color: #cbd5e1; }
.platform-tab.active { border-color: var(--brand-1); box-shadow: 0 0 0 .2rem rgba(249,115,22,.14); }
.kv-table td { padding: .45rem .6rem; vertical-align: top; }
.kv-table td:first-child { white-space: nowrap; }

.form-control, .form-select { border-radius: .6rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-1); box-shadow: 0 0 0 .2rem rgba(236,72,153,.18); }

/* ---- Logó ---- */
.brand-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; padding: 4px; flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.sidebar .brand-logo { background: #fff; }
.auth-logo-img { width: 88px; height: 88px; object-fit: contain; }

/* ---- Footer ---- */
.app-footer { padding: 1rem 1.6rem; color: var(--muted); font-size: .82rem; border-top: 1px solid #e2e8f0; background: #fff; text-align: center; }
.auth-footer { padding: 1rem; color: rgba(255,255,255,.9); font-size: .82rem; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* ---- Publikus kirakat (katalógus) ---- */
.catalog-hero { padding: 1.5rem 0 .5rem; }
.catalog-hero .display-6 {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.product-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 6px 22px rgba(15,23,42,.06); border: 1px solid #eef0f4;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(15,23,42,.12); }
.pc-media {
    height: 150px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-initial { color: #fff; font-size: 3.2rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pc-body { padding: 1.1rem 1.25rem .25rem; flex: 1 1 auto; }
.pc-title { font-size: 1.18rem; font-weight: 700; margin: 0 0 .4rem; color: var(--ink); }
.pc-desc { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }
.pc-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.pc-badge {
    font-size: .74rem; font-weight: 600; color: var(--brand-1);
    background: rgba(249,115,22,.10); border-radius: 999px; padding: .22rem .6rem;
}
.pc-foot { padding: .9rem 1.25rem 1.25rem; }
.pc-price { margin-bottom: .7rem; }
.pc-from { color: var(--muted); font-size: .8rem; margin-right: .3rem; }
.pc-amount { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.pc-amount-alt { color: var(--muted); font-size: .9rem; margin-left: .25rem; }

/* ---- Termékoldal (részletes) ---- */
.pd-hero { max-height: 360px; overflow: hidden; background: #f1f5f9; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-long { color: #334155; line-height: 1.7; }
.accordion-button:not(.collapsed) { background: rgba(249,115,22,.08); color: var(--brand-1); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(249,115,22,.14); }

/* ---- Quill rich-text szerkesztő (admin termék-űrlap) ---- */
.quill-editor { background: #fff; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.quill-editor .ql-editor { min-height: 140px; font-size: .95rem; }
.ql-toolbar.ql-snow, .quill-editor.ql-container.ql-snow { border-color: #dbe1ea; }

/* ---- Süti-hozzájárulás (Klaro-szerű modal) ---- */
.cc-overlay { position: fixed; inset: 0; z-index: 1090; display: none; align-items: center; justify-content: center;
    padding: 1rem; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.cc-overlay.cc-open { display: flex; animation: ccFade .2s ease; }
@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }
.cc-modal { width: 100%; max-width: 580px; background: #fff; border-radius: 18px; padding: 1.6rem 1.7rem 1.35rem;
    box-shadow: 0 24px 60px rgba(15,23,42,.28); animation: ccPop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes ccPop { from { transform: translateY(12px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.cc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.cc-head .cc-logo { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid #eee; display: grid; place-items: center; padding: 4px; flex: 0 0 auto; }
.cc-head .cc-logo img { width: 100%; height: 100%; object-fit: contain; }
.cc-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0; }
.cc-msg { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.cc-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: #f8fafc; border: 1px solid #eef0f4; border-radius: 12px; padding: .7rem .85rem; }
.cc-row-text { display: flex; flex-direction: column; }
.cc-row-text strong { font-size: .92rem; color: var(--ink); }
.cc-row-text span { font-size: .78rem; color: var(--muted); }
/* slider switch */
.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; margin: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; cursor: pointer; background: #cbd5e1; border-radius: 999px; transition: background .18s; }
.cc-slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cc-switch input:checked + .cc-slider { background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { opacity: .55; cursor: not-allowed; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.cc-actions-main { display: flex; gap: .5rem; align-items: center; }
.cc-btn { border: 0; border-radius: 10px; padding: .55rem .95rem; font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: filter .15s, background .15s; }
.cc-btn-primary { background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); color: #fff; }
.cc-btn-primary:hover { filter: brightness(1.06); }
.cc-btn-outline { background: #fff; color: var(--brand-1); border: 1px solid var(--brand-1); }
.cc-btn-outline:hover { background: rgba(249,115,22,.08); }
.cc-btn-ghost { background: transparent; color: var(--muted); }
.cc-btn-ghost:hover { background: #f1f5f9; color: var(--ink); }
@media (max-width: 540px) {
    .cc-actions { flex-direction: column-reverse; align-items: stretch; }
    .cc-actions-main { flex-direction: column; }
    .cc-btn { width: 100%; }
}

/* Lebegő újranyitó gomb (megrágott süti), bal alsó sarok */
.cc-reopen { position: fixed; left: 18px; bottom: 18px; z-index: 1085; width: 48px; height: 48px; border: 0;
    border-radius: 50%; background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); color: #fff;
    font-size: 1.25rem; cursor: pointer; box-shadow: 0 6px 18px rgba(15,23,42,.25); display: grid; place-items: center;
    transition: transform .15s, box-shadow .15s; }
.cc-reopen:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(15,23,42,.32); }

/* ---- Katalógus kategória-szűrő fülek ---- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.cat-tab { border: 1px solid #e2e8f0; background: #fff; color: var(--ink); border-radius: 999px;
    padding: .45rem 1rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.cat-tab:hover { border-color: var(--brand-1); color: var(--brand-1); }
.cat-tab.active { background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); color: #fff; border-color: transparent; }
.pc-badge-cat { color: var(--brand-3); background: rgba(192,38,211,.10); }

/* ---- Jogi oldal tartalom ---- */
.legal-body { color: #334155; line-height: 1.7; }
.legal-body h2 { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 .6rem; color: var(--ink); }
.legal-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.2rem 0 .5rem; color: var(--ink); }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; }
.legal-body a { color: var(--brand-1); }
