@font-face { font-family: Inter; src: url('../fonts/Inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Roboto; src: url('../fonts/Roboto.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/Montserrat.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/OpenSans.ttf') format('truetype'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: Lato; src: url('../fonts/Lato.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url('../fonts/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: Raleway; src: url('../fonts/Raleway.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Oswald; src: url('../fonts/Oswald.ttf') format('truetype'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
:root {
    --ink: #201a17;
    --muted: #625b57;
    --line: #eadfd8;
    --paper: #ffffff;
    --canvas: #fff8f3;
    --brand: #f26a21;
    --brand-dark: #d95714;
    --brand-soft: #fff1e8;
    --brand-surface: #fff8f3;
    --brand-border: #f1c2a5;
    --good: #15825f;
    --warn: #9a6700;
    --bad: #bb2d3b;
    --radius: 18px;
    --shadow: 0 12px 32px rgba(24, 36, 65, .07);
    --shadow-hover: 0 20px 46px rgba(24, 36, 65, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg,#f9faff 0,#f5f7fb 240px); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: clamp(1.65rem, 4vw, 2.4rem); letter-spacing: -.04em; }
h2 { margin-bottom: .25rem; font-size: 1.2rem; }
code { padding: .15rem .35rem; border-radius: 5px; background: #eef1f5; }
.installer-body { min-height: 100vh; background: radial-gradient(circle at 10% 0%, #e3e9ff 0, transparent 35%), var(--canvas); }
.installer-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.installer-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; border-radius: 14px; background: var(--brand); font-size: 1.4rem; font-weight: 800; box-shadow: 0 8px 24px rgba(52,88,235,.25); }
.eyebrow { margin-bottom: 2px; color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card { margin-bottom: 22px; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(222,227,235,.95); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 22px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-row { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.check-row > span { display: grid; flex: 0 0 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; }
.check-row strong, .check-row small { display: block; }
.check-row small { color: var(--muted); }
.check-row.is-ok > span { background: var(--good); }
.check-row.is-warning > span { background: var(--warn); }
.check-row.is-error > span { background: var(--bad); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; color: #344054; font-size: .92rem; font-weight: 750; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); border: 1px solid #cbd3df; border-radius: 12px; background: #fbfcfe; box-shadow: 0 1px 2px rgba(16,24,40,.03); font: inherit; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; outline: 0; }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #98a2b3; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(54,89,227,.12); }
.field small, .muted { color: var(--muted); font-weight: 400; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; color: #fff; border: 1px solid transparent; border-radius: 11px; background: var(--brand); box-shadow: 0 7px 16px rgba(54,89,227,.18); font: inherit; font-weight: 780; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); background: var(--brand-dark); box-shadow: 0 10px 24px rgba(54,89,227,.24); }
.button-large { width: 100%; min-height: 54px; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; }
.alert-error { color: #8d1b28; border: 1px solid #f0bcc2; background: #fff0f2; }
.hint { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.centered { text-align: center; }
.success-panel { text-align: center; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 76px; border-bottom: 1px solid rgba(222,227,235,.9); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.topbar-inner { display: grid; grid-template-columns: minmax(190px,1fr) auto minmax(190px,1fr); width: min(1240px,calc(100% - 36px)); min-height: 76px; margin: 0 auto; align-items: center; gap: 24px; }
.brand-link, .topnav { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-link > span:last-child { display: grid; line-height: 1.2; }
.brand-link small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.brand-mark.small { width: 35px; height: 35px; border-radius: 10px; font-size: 1rem; }
.brand-logo { display: block; width: auto; max-width: min(300px,28vw); height: var(--app-logo-height-desktop,35px); object-fit: contain; }
.topnav { gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #f7f8fb; }
.topnav a { padding: 8px 14px; border-radius: 9px; }
.topnav a.is-active { color: var(--brand); background: #fff; box-shadow: 0 2px 8px rgba(25,39,72,.08); }
.topnav a, .link-button { color: var(--muted); font: inherit; font-weight: 700; text-decoration: none; }
.topnav form { margin: 0; }
.link-button { padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.link-button:hover { color: var(--brand); background: #f1f4ff; }
.account-menu { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.account-menu form { margin: 0 0 0 4px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(135deg,var(--brand),#7a5ce7); font-size: .82rem; font-weight: 850; }
.account-name { max-width: 130px; overflow: hidden; font-size: .88rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 10% 0%, #e3e9ff 0, transparent 35%), var(--canvas); }
.auth-card { width: min(100%, 480px); margin: 0; }
.auth-card-wide { width: min(100%, 720px); }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lead { color: var(--muted); }
.stack-form { display: grid; gap: 18px; margin-top: 25px; }
.auth-foot { margin: 22px 0 0; text-align: center; }
.app-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 80px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.metric-card { display: grid; gap: 5px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#fff,#fbfcff); box-shadow: 0 6px 18px rgba(20,34,63,.04); }
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { font-size: 2rem; }
.empty-state { padding-block: 54px; text-align: center; }
.empty-state p { color: var(--muted); }
.empty-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; color: var(--brand); border-radius: 50%; background: #edf0ff; font-size: 1.8rem; }
.alert-success { color: #0b6649; border: 1px solid #a9dfcc; background: #ebfaf4; }
.status-line { display: flex; gap: 14px; align-items: flex-start; }
.status-line > span { display: grid; flex: 0 0 35px; height: 35px; place-items: center; color: #fff; border-radius: 50%; background: var(--warn); font-weight: 800; }
.status-line.is-current > span { background: var(--good); }
.status-line p { margin: 0; color: var(--muted); }
.migration-list { margin-block: 24px; }
.error-page { width: min(600px, 100%); margin: 12vh auto 0; text-align: center; }
.button-secondary { color: var(--brand); border: 1px solid #cbd4fb; background: #f7f8ff; box-shadow: none; }
.button-secondary:hover { background: #e8edff; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); font-weight: 700; text-decoration: none; }
.compact-heading { margin-bottom: 18px; }
.event-form { padding-bottom: 72px; }
.form-section { display: grid; grid-template-columns: 210px 1fr; gap: 34px; }
.step-marker { display: flex; align-items: flex-start; gap: 12px; }
.step-marker > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; color: #fff; border-radius: 50%; background: var(--brand); font-weight: 800; }
.step-marker p { color: var(--muted); font-size: .9rem; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: flex; align-items: center; padding: 0 11px; color: var(--muted); border: 1px solid #cbd3df; border-right: 0; border-radius: 9px 0 0 9px; background: #f6f8fa; font-weight: 500; }
.input-prefix input { border-radius: 0 9px 9px 0; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; width: fit-content; margin: 0 0 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.event-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.event-card { display:flex; min-height:210px; flex-direction:column; overflow:hidden; color:var(--ink); border:1px solid var(--line); border-radius:14px; background:#fff; transition:transform .15s ease,box-shadow .15s ease; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-card-main { display:block; flex:1; padding:24px 24px 12px; color:var(--ink); text-decoration:none; }
.event-card h2 { margin-top: 24px; font-size: 1.3rem; }
.event-card p, .event-card small { color: var(--muted); }
.event-card-actions { display:flex; justify-content:flex-end; padding:0 18px 15px; }
.event-card-duplicate { padding:5px 9px; color:var(--muted); border:1px solid var(--line); border-radius:8px; background:#fafbfc; font-size:.75rem; font-weight:650; line-height:1.2; text-decoration:none; }
.event-card-duplicate:hover,.event-card-duplicate:focus-visible { color:var(--brand); border-color:#b8c4f4; background:#f1f4ff; }
.status-badge { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px; color: #5c6678; background: #edf0f4; font-size: .78rem; font-weight: 800; text-transform: capitalize; }
.status-ready { color: #705400; background: #fff4c5; }
.status-active { color: #086044; background: #daf6eb; }
.status-activated { color: #075985; background: #e0f2fe; }
.status-pending { color: #705400; background: #fff4c5; }
.status-suspended { color: #8d1b28; background: #fff0f2; }
.status-completed { color: #31538c; background: #e4edff; }
.status-archived { color: #69717f; background: #eceef1; }
.event-list { display: grid; }
.event-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.event-row:first-child { border-top: 0; }
.event-row strong, .event-row small { display: block; }
.event-row small { color: var(--muted); }
.event-hero { padding-bottom: 22px; }
.event-hero-main, .event-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.event-hero-actions { display:grid; flex:0 0 230px; gap:7px; }
.event-status-control { display:grid; gap:5px; margin:0; padding:9px; border:1px solid var(--line); border-radius:11px; background:#fafbfc; }
.event-status-control > label { color:var(--muted); font-size:.7rem; font-weight:650; }
.event-status-row { display:grid; grid-template-columns:minmax(0,1fr) 40px; gap:6px; }
.event-status-row select { width:100%; min-width:0; min-height:40px; padding:7px 9px; color:var(--ink); border:1px solid #d4dae4; border-radius:8px; background:#fff; font:inherit; font-size:.84rem; }
.event-status-row button { display:grid; width:40px; height:40px; place-items:center; padding:0; color:var(--brand); border:1px solid #cbd4fb; border-radius:8px; background:#f3f5ff; cursor:pointer; }
.event-status-row button:hover,.event-status-row button:focus-visible { color:#fff; border-color:var(--brand); background:var(--brand); }
.event-status-row button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.event-title-line { justify-content: flex-start; align-items: center; }
.event-title-line h1 { margin: 0; }
.public-link { display: grid; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.public-link span, .public-link small { color: var(--muted); }
.public-link a { font-weight: 700; overflow-wrap: anywhere; }
.public-link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0; }
.public-link-row strong { overflow-wrap: anywhere; }
.event-tabs { display: flex; gap: 4px; margin: 0 0 20px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.event-tabs a, .event-tabs span { flex: 0 0 auto; padding: 8px 12px; color: var(--muted); border-radius: 7px; font-weight: 700; text-decoration: none; }
.event-tabs .is-active { color: var(--brand); background: #edf0ff; }
.two-column-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.agenda-list { display: grid; }
.agenda-item { display: grid; grid-template-columns: minmax(155px,auto) minmax(0,1fr) auto; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.agenda-item time { display:grid; gap:2px; color: var(--brand); font-weight: 800; }
.agenda-item p { margin: 3px 0 0; color: var(--muted); }
.icon-button { width: 34px; height: 34px; color: var(--muted); border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 1.25rem; }
.danger { color: var(--bad) !important; }
.inline-editor { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.inline-editor summary { color: var(--brand); cursor: pointer; font-weight: 800; }
.compact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.compact-row strong, .compact-row small { display: block; }
.compact-row small { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #aab1bc; }
.dot.active { background: var(--good); }
.slug-form { display: grid; grid-template-columns: 1.2fr .65fr .65fr 1.4fr auto; gap: 12px; align-items: end; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.table-actions { display: flex; gap: 12px; justify-content: flex-end; }
.table-actions form { margin: 0; }
.table-scroll { width: 100%; overflow-x: auto; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); }
.toolbar-form { display: grid; grid-template-columns: minmax(240px,1fr) minmax(150px,.35fr) auto; gap: 12px; align-items: end; }
.danger-zone { margin-top: 22px; border-color: #efc4ca; background: #fffafb; }
.toggle-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbff; cursor: pointer; }
.toggle-card > input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-control { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #aeb6c4; transition: background .15s ease; }
.toggle-control::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); content: ''; transition: transform .15s ease; }
.toggle-card input:checked + .toggle-control { background: var(--brand); }
.toggle-card input:checked + .toggle-control::after { transform: translateX(20px); }
.toggle-card strong, .toggle-card small { display: block; }
.toggle-card small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.action-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.participant-top-actions { gap: 8px; }
.package-product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 14px; }
.package-product-card { display: grid; align-content: start; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.package-product-card h3,.package-product-card p,.package-product-card dl { margin: 0; }
.package-product-card p,.package-product-card dt,.package-product-card small { color: var(--muted); font-size: .86rem; }
.package-product-card dl { display: grid; gap: 7px; }
.package-product-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.package-product-card dd { margin: 0; text-align: right; font-size: .86rem; font-weight: 700; }
.package-price { color: var(--brand-dark); font-size: 1.45rem; }
.package-price-note { margin: 14px 0 0; }
.order-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-submit-row strong,.order-submit-row small { display: block; }
.order-submit-row small { color: var(--muted); }
.package-inventory-list,.admin-order-list,.admin-package-list { display: grid; gap: 10px; }
.package-inventory-row,.admin-order-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.package-inventory-row > div,.admin-order-row > div:first-child { display: grid; gap: 5px; }
.package-inventory-row small,.admin-order-row small { display: block; color: var(--muted); }
.package-assign-form { display: flex; align-items: end; gap: 8px; min-width: min(100%,390px); }
.package-assign-form .field { flex: 1; }
.bank-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.bank-details div { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.bank-details span { color: var(--muted); font-size: .8rem; }
.admin-package-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr 70px auto; gap: 9px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.admin-package-description { grid-column: 1 / -2; }
.admin-order-actions { display: flex; align-items: end; gap: 8px; }
.admin-order-actions form:first-child { display: flex; align-items: end; gap: 8px; }
.rich-content { position: relative; max-width: 850px; line-height: 1.65; }
.rich-content > :first-child { margin-top: 0; }.rich-content > :last-child { margin-bottom: 0; }
.package-product-card { position: relative; min-height: 330px; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.package-product-card:hover { transform: translateY(-2px); border-color: #bac7ef; box-shadow: 0 15px 34px rgba(29,46,88,.1); }
.package-product-card.is-premium { border-color: #bfa965; background: linear-gradient(155deg,#fffdf5 0%,#fff 52%,#f8f4ff 100%); box-shadow: 0 12px 30px rgba(104,75,13,.09); }
.package-product-card.is-premium .package-price { color: #705311; }
.package-product-card.is-premium .status-badge { color: #5a430e; background: #f4e7b8; }
.premium-flag { position: absolute; top: 13px; right: 13px; padding: 4px 8px; color: #fff; border-radius: 99px; background: linear-gradient(135deg,#9b7418,#c8a649); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.package-quantity { align-self: end; margin-top: auto; }
.package-price-breakdown { display: grid; gap: 6px; padding: 11px; border-radius: 11px; background: rgba(244,246,250,.8); }
.package-price-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.package-price-breakdown span { color: var(--muted); font-size: .75rem; }
.package-price-breakdown strong { font-size: .88rem; }.package-price-breakdown .package-price { font-size: 1.12rem; }
.package-price-breakdown .package-price-total { padding-top: 7px; border-top: 1px solid var(--line); }.package-price-breakdown .package-price-total strong { color: var(--brand-dark); font-size: 1.05rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; margin-top: 10px; }
.checkout-panel,.settings-subcard { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfc; }
.checkout-panel h3,.settings-subcard h3 { margin: 0; }
.payment-method-list { display: grid; gap: 10px; margin-bottom: 16px; }
.payment-method-option { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.payment-method-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(54,89,227,.12); }
.payment-method-option.is-card:has(input:checked) { border-color: #927426; background: #fffdf7; box-shadow: 0 0 0 2px rgba(165,126,28,.12); }
.payment-method-option input { margin-top: 4px; }.payment-method-option strong,.payment-method-option small { display: block; }.payment-method-option small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.checkout-submit { width: 100%; margin-top: 6px; }
.checkout-total { display: grid; gap: 7px; margin: 14px 0; padding: 14px; border: 1px solid #ccd5f4; border-radius: 12px; background: #f7f9ff; }
.checkout-total > div { display: flex; justify-content: space-between; gap: 14px; }.checkout-total span { color: var(--muted); font-size: .86rem; }.checkout-total > div:last-child { padding-top: 8px; border-top: 1px solid #dce2f5; }.checkout-total > div:last-child strong { color: var(--brand-dark); font-size: 1.12rem; }
.package-inventory-row.is-premium { border-color: #d8c88e; background: linear-gradient(90deg,#fffdf7,#fff); }
.admin-package-row.is-premium { border-color: #d8c88e; background: #fffdf7; }
.payment-admin-grid,.credential-grid,.email-template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-commerce-nav { display: flex; gap: 6px; margin: -8px 0 22px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(22,35,63,.05); }
.admin-commerce-nav a { flex: 1 0 auto; padding: 10px 16px; color: var(--muted); border-radius: 9px; font-size: .88rem; font-weight: 800; text-align: center; text-decoration: none; }
.admin-commerce-nav a:hover,.admin-commerce-nav a:focus { color: var(--brand); background: #f3f5ff; }
.admin-commerce-nav a.is-active { color: #fff; background: var(--brand); }
.payment-redirect-card form[data-netopia-redirect] { min-height: 24px; }
.field-help { margin: 0 0 14px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.settings-subcard { display: grid; gap: 13px; }
.settings-subcard legend { padding: 0 7px; font-weight: 850; }
.netopia-settings { border-color: #cbc08e; background: #fffdf7; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f1f3f7; }
.rich-editor-toolbar button { min-width: 34px; padding: 5px 8px; color: var(--ink); border: 1px solid #d5dae5; border-radius: 7px; background: #fff; cursor: pointer; }
.rich-editor { min-height: 150px; padding: 13px; overflow: auto; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #fff; line-height: 1.55; }
.rich-editor:focus { border-color: var(--brand); outline: 2px solid rgba(54,89,227,.12); }
.template-variables { margin: 0; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.payment-redirect-card { width: min(100%,620px); margin: 9vh auto 0; text-align: center; }
.payment-loader { width: 46px; height: 46px; margin: 0 auto 18px; border: 4px solid #dce2f7; border-top-color: var(--brand); border-radius: 50%; animation: payment-spin .8s linear infinite; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
.date-time-picker { display: grid; grid-template-columns: minmax(145px,1fr) 76px auto 76px; align-items: center; gap: 8px; }
.date-time-picker > span { color: var(--muted); font-size: 1.1rem; font-weight: 800; text-align: center; }
.date-time-picker input, .date-time-picker select { min-width: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.settings-card { display: grid; grid-template-columns: auto 1fr auto; min-height: 168px; align-items: start; gap: 16px; padding: 26px; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.settings-card:hover { transform: translateY(-2px); border-color: #c4cffb; box-shadow: var(--shadow-hover); }
.settings-card h2 { margin-bottom: 8px; }
.settings-card p { margin: 0; color: var(--muted); }
.settings-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--brand); border-radius: 12px; background: #edf0ff; font-size: 1.1rem; font-weight: 850; }
.settings-arrow { color: #98a2b3; font-size: 1.3rem; }
.settings-form { margin-top: 0; }
.settings-layout { grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); }
.security-note { color: var(--good); font-size: .85rem; font-weight: 700; }
.branding-preview { display: grid; min-height: 150px; margin: 18px 0; place-items: center; padding: 18px; overflow: hidden; border: 1px dashed #bcc6d8; border-radius: 14px; background: #fff; }
.branding-preview img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; }
.clean-list { display: grid; gap: 10px; padding-left: 20px; }
.info-card { background: linear-gradient(145deg,#f7f9ff,#fff); }
.mobile-menu-button, .mobile-bottom-nav, .mobile-drawer, .mobile-drawer-overlay { display: none; }
.mobile-menu-button svg, .mobile-bottom-nav svg, .drawer-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-summary { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.profile-summary strong, .profile-summary span, .profile-summary small { display: block; }
.profile-summary span, .profile-summary small { color: var(--muted); }
.profile-avatar { width: 52px; height: 52px; font-size: 1.15rem; }
.account-settings-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 18px; align-items: start; }
.security-note-card { margin-top: 22px; padding: 14px; border: 1px solid #cfe4dc; border-radius: 12px; background: #f2fbf7; }
.security-note-card p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.qr-detail-layout { display: grid; grid-template-columns: minmax(320px,1fr) minmax(280px,.65fr); gap: 20px; align-items: start; }
.qr-preview-card, .qr-print-card { text-align: center; }
.qr-preview-card { width: min(100%,520px); justify-self: center; }
.qr-person-name { color: var(--ink); font-size: clamp(1.25rem,3vw,1.75rem); font-weight: 850; line-height: 1.15; }
.qr-company { margin-top: 5px; color: var(--muted); font-size: .95rem; }
.qr-svg { width: min(100%,340px); margin: 18px auto; }
.qr-svg svg { display: block; width: 100%; height: auto; }
.qr-event-title { color: var(--muted); font-size: .82rem; font-weight: 750; }
.qr-actions-card .stack-form form { display: grid; margin: 0; }
.qr-print-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.qr-print-card { display: flex; min-height: 310px; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; break-inside: avoid; }
.qr-print-card .qr-svg { width: min(100%,210px); margin: 12px auto; }
.button-small { min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: .86rem; }
.button-quiet { color: var(--muted); border-color: transparent; background: transparent; box-shadow: none; }
.button-danger { color: #fff; background: var(--bad); box-shadow: none; }
.button-danger:hover { background: #962331; box-shadow: none; }
.participant-form { padding-bottom: 72px; }
.participant-filters { display: grid; grid-template-columns: minmax(240px,1.5fr) repeat(2,minmax(150px,.65fr)) auto auto; gap: 12px; align-items: end; }
.participant-search-mobile,.participant-filter-card-mobile { display:none; }
.filter-card { padding-block: 20px; }
.participant-list-card { padding: 0; overflow: hidden; }
.participant-mobile-add { display:none; }
.event-banner-settings { padding-block:20px; }
.event-banner-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; margin-bottom:12px; }
.event-banner-heading h2 { margin:0; }
.event-banner-controls,.event-banner-upload { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; }
.event-banner-upload { flex:1 1 420px; min-width:0; margin:0; }
.event-banner-file { flex:1 1 260px; min-width:0; gap:5px; }
.event-banner-file input { min-height:44px; padding:8px 10px; font-size:.88rem; }
.event-banner-delete { margin:0; }
.event-banner-controls .button { min-height:44px; }
.participant-summary-breakdown { border-top:1px solid var(--line); }
.participant-summary-breakdown:first-child { border-top:0; }
.participant-summary-breakdown > summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; min-height:42px; padding:8px 0; list-style:none; cursor:pointer; }
.participant-summary-breakdown > summary::-webkit-details-marker { display:none; }
.participant-summary-breakdown > summary:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.participant-summary-label { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
.participant-summary-toggle { color:var(--ink); font-size:.8rem; text-decoration:underline; text-underline-offset:3px; }
.participant-summary-breakdown .when-open,.participant-summary-breakdown[open] .when-closed { display:none; }
.participant-summary-breakdown[open] .when-open { display:inline; }
.participant-category-counts { margin:0 0 12px; padding:8px 14px; background:var(--canvas); font-size:.88rem; }
.participant-category-counts > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; padding:7px 0; }
.participant-category-counts dt { overflow-wrap:anywhere; }
.participant-category-counts dd { margin:0; font-weight:700; font-variant-numeric:tabular-nums; }
.participant-category-empty { margin:4px 0 14px; font-size:.88rem; }
@media (max-width:640px) { .participant-summary-breakdown > summary { min-height:44px; font-size:.84rem; } }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbff; }
.bulk-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.check-cell { width: 46px; text-align: center; }
.participant-table td strong, .participant-table td small, .participant-table td a { display: block; }
.participant-table td small { color: var(--muted); }
.participant-table tbody tr:hover { background: #fafbff; }
.participant-mobile-cell { display: none !important; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.icon-action { display: inline-grid !important; width: 38px; height: 38px; min-height: 0; place-items: center; padding: 0; color: var(--brand); border: 1px solid #d4daf0; border-radius: 10px; background: #f8f9ff; box-shadow: none; cursor: pointer; text-decoration: none; }
.icon-action:hover { color: var(--brand-dark); border-color: #aebcf5; background: #edf1ff; }
.icon-action.danger { color: var(--bad); border-color: #f0c7cc; background: #fff7f8; }
.icon-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-qr-warning { display: none !important; }
.category-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 750; }
.category-pill i { width: 10px; height: 10px; border-radius: 50%; background:#8992a5; }
.source-label { color: var(--muted); font-size: .75rem; font-weight: 800; }
.participant-status-confirmed { color: #086044; background: #daf6eb; }
.participant-status-declined { color: #8d1b28; background: #fff0f2; }
.category-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(300px,1.2fr); gap: 28px; }
.category-form { display: grid; grid-template-columns: 1fr 90px auto; gap: 10px; align-items: end; }
.color-field input { padding: 6px; }
.category-list { display: grid; align-content: start; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.category-row:first-child { border-top: 0; }
.category-row form { margin: 0; }
.custom-field-list { display: grid; align-content: start; gap: 10px; }
.custom-field-row { display: grid; grid-template-columns: minmax(180px,1fr) 92px auto auto; gap: 10px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.custom-field-row .field,.custom-field-row .inline-toggle { margin: 0; }
.custom-field-row .inline-toggle { min-height: 44px; }
.custom-field-row .inline-actions { justify-content: flex-end; }
.compact-number input { min-width: 0; }
.file-drop { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 7px; padding: 24px; border: 2px dashed #b8c3e8; border-radius: 16px; background: #f8f9ff; text-align: center; cursor: pointer; }
.file-drop input { max-width: 100%; margin-bottom: 8px; }
.file-drop span { color: var(--muted); }
.info-strip { padding: 14px 16px; border-radius: 11px; background: #f1f4ff; color: #445174; }
.mapping-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.preview-table { min-width: 760px; }
.preview-table td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-report .metric-grid { margin: 18px 0; }
.metric-grid.compact .metric-card { padding: 16px; }
.metric-grid.compact strong { font-size: 1.5rem; }
.error-list { max-height: 280px; overflow: auto; color: var(--bad); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 26px; }
.pagination a { display: grid; min-width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-decoration: none; font-weight: 700; }
.pagination a.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.centered-actions { justify-content: center; }
.operator-shell { width: min(1100px,calc(100% - 28px)); margin: 0 auto; padding: 24px 0 60px; }
.operator-entry { width: min(520px,100%); margin: 10vh auto 0; text-align: center; }
.operator-entry .brand-mark { margin: 0 auto 14px; }
.operator-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.scanner-layout { width: min(720px,100%); margin: 0 auto; }
.scanner-panel { padding: 18px; }
.scanner-page-heading h1 { font-size:clamp(1.75rem,4vw,2.5rem); }
.scanner-camera { position: relative; display: grid; min-height: 420px; overflow: hidden; place-items: center; border-radius: 16px; background: #0a1020; }
.scanner-camera video { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.scanner-frame { position: absolute; width: min(68%,300px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.9); border-radius: 20px; box-shadow: 0 0 0 999px rgba(4,9,20,.25); pointer-events: none; }
.scanner-idle { position: absolute; display: grid; gap: 4px; color: #fff; text-align: center; }
.scanner-idle span { color: #c7cede; }
.scanner-controls { margin-top: 14px; }
.scanner-status { margin: 14px 0 0; color: var(--muted); text-align: center; }
.template-variables { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.template-variables code { padding:5px 8px; border:1px solid var(--line); border-radius:8px; background:#f6f8fd; color:var(--brand); }
.name-order { display:flex; flex-wrap:wrap; gap:10px 18px; margin:0; padding:12px; border:1px solid var(--line); border-radius:10px; }
.name-order legend { padding:0 5px; color:var(--muted); font-size:.82rem; font-weight:700; }
.new-operator-link input { flex: 1; min-width: 180px; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd3df; border-radius: 11px; font: inherit; }
.scan-result { min-height: 420px; }
.scan-result.scan-success { border: 2px solid #45b991; background: #f1fcf8; }
.scan-result.scan-warning { border: 2px solid #e2b647; background: #fffaf0; }
.scan-result.scan-error { border: 2px solid #e09099; background: #fff5f6; }
.scan-result > .button { width: 100%; margin-top: 10px; }
.scan-meta { color: var(--muted); }
.operator-instructions { margin: 18px 0; padding: 16px; border: 2px solid #e2b647; border-radius: 12px; background: #fff; }
.operator-instructions p { margin: 6px 0 0; white-space: pre-wrap; }
.operator-access { margin-top: 18px; }
.operator-link-form { display: grid; grid-template-columns: 1fr 190px auto; gap: 12px; align-items: end; }
.new-operator-link { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding: 15px; border: 1px solid #a9dfcc; border-radius: 12px; background: #ebfaf4; }
.new-operator-link strong { width: 100%; }
.operator-link-list { margin-top: 22px; }
.checkin-arrived { color: #086044; background: #daf6eb; }
.checkin-pending { color: #69717f; background: #eceef1; }
.participant-arrived { box-shadow: inset 4px 0 0 #45b991; }
.scan-point-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.scan-point-tabs a { display: grid; flex: 0 0 auto; min-width: 170px; padding: 11px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.scan-point-tabs a.is-active { color: var(--brand); border-color: #aebcf5; background: #f1f4ff; }
.scan-point-tabs a.is-disabled { opacity: .55; }
.scan-point-tabs small { color: var(--muted); }
.scan-point-management { margin-top: 18px; }
.scan-point-form { display: grid; grid-template-columns: 1fr 1.2fr 190px auto; gap: 12px; align-items: end; }
.scan-point-list { margin-top: 22px; }
.scan-point-list form { margin: 0; }
.input-suffix { display: flex; align-items: center; }
.input-suffix input { border-radius: 10px 0 0 10px; }
.input-suffix span { align-self: stretch; display: grid; place-items: center; min-width: 48px; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: #f7f8fb; font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; }
.bulk-badge-form { display: flex; align-items: end; gap: 12px; }
.bulk-badge-form .field { min-width: 220px; }
.form-hint { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.bulk-badge-form { flex-wrap: wrap; }

/* Builder badge v4: canvas desktop, fără stiluri inline incompatibile cu CSP. */
.badge-mobile-notice { display:none; }
.badge-studio { display:grid; gap:22px; }
.badge-studio-form { display:grid; grid-template-columns:minmax(330px,410px) minmax(520px,1fr); gap:22px; align-items:start; }
.badge-controls { display:grid; gap:14px; }
.badge-panel { display:grid; gap:15px; padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 8px 28px rgba(23,38,72,.06); }
.badge-panel-heading { display:flex; gap:11px; align-items:flex-start; }
.badge-panel-number { display:grid; flex:0 0 27px; width:27px; height:27px; place-items:center; color:#fff; border-radius:9px; background:var(--brand); font-size:.75rem; font-weight:850; }
.badge-panel-heading h2 { margin:0 0 2px; font-size:1rem; }
.badge-panel-heading p { margin:0; color:var(--muted); font-size:.78rem; line-height:1.35; }
.badge-preset-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:0; padding:0; border:0; }
.badge-preset-picker input { position:absolute; opacity:0; }
.badge-preset-picker span { display:grid; min-height:61px; align-content:center; padding:9px; border:1px solid var(--line); border-radius:11px; background:#fafbfe; cursor:pointer; text-align:center; }
.badge-preset-picker strong,.badge-preset-picker small { display:block; }
.badge-preset-picker strong { font-size:.79rem; }
.badge-preset-picker small { margin-top:2px; color:var(--muted); font-size:.64rem; }
.badge-preset-picker input:checked + span { color:var(--brand); border-color:var(--brand); background:#f0f3ff; box-shadow:0 0 0 2px rgba(54,89,227,.1); }
.badge-compact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.badge-compact-grid .field { gap:4px; }
.badge-compact-grid .field > span { font-size:.72rem; }
.badge-compact-details { border:1px solid var(--line); border-radius:11px; background:#fafbfc; }
.badge-compact-details summary { padding:11px 13px; cursor:pointer; font-size:.8rem; font-weight:750; }
.badge-compact-details > div { padding:0 12px 12px; }
.badge-margin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.badge-print-hint { padding:0 12px; margin:0 0 10px; }
.badge-studio .input-suffix { min-width:0; width:100%; }
.badge-studio .input-suffix input { flex:1 1 0; min-width:0; width:0; padding-left:10px; padding-right:5px; }
.badge-studio .input-suffix span { flex:0 0 auto; min-width:32px; padding:0 7px; font-size:.75rem; }
.badge-margin-grid .field-wide { grid-column:1 / -1; }
.segmented-control { display:grid; grid-template-columns:repeat(3,1fr); padding:3px; border-radius:10px; background:#eef1f6; }
.segmented-control button { min-height:34px; padding:5px; color:var(--muted); border:0; border-radius:8px; background:transparent; cursor:pointer; font:inherit; font-size:.75rem; font-weight:700; }
.segmented-control button.is-active { color:var(--ink); background:#fff; box-shadow:0 2px 7px rgba(22,36,69,.12); }
.badge-background-controls { display:grid; gap:9px; }
.badge-upload-box { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px; border:1px dashed #bdc7e9; border-radius:11px; background:#f7f8ff; }
.badge-upload-box strong,.badge-upload-box small { display:block; }
.badge-upload-box strong { font-size:.78rem; }
.badge-upload-box small { margin-top:2px; color:var(--muted); font-size:.66rem; }
.badge-current-background { display:grid; grid-template-columns:54px 1fr auto; gap:9px; align-items:center; }
.badge-current-background img { width:54px; height:40px; object-fit:cover; border:1px solid var(--line); border-radius:7px; }
.badge-add-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.badge-add-actions > .button,.badge-add-actions .badge-add-menu-wrap > .button { width:100%; justify-content:center; font-size:.78rem; }
.badge-add-menu-wrap { position:relative; }
.badge-add-menu { position:absolute; top:calc(100% + 6px); left:0; z-index:12; display:grid; width:240px; max-height:290px; padding:6px; overflow-y:auto; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 16px 40px rgba(18,32,62,.18); }
.badge-add-menu[hidden] { display:none; }
.badge-add-menu button { padding:9px 10px; border:0; border-radius:8px; background:transparent; cursor:pointer; text-align:left; font:inherit; font-size:.8rem; }
.badge-add-menu button:hover,.badge-add-menu button:focus { color:var(--brand); background:#f0f3ff; }
.badge-empty-selection { padding:14px; color:var(--muted); border:1px dashed var(--line); border-radius:11px; background:#fafbfc; font-size:.8rem; line-height:1.5; }
.badge-inspector [data-inspector-text],.badge-inspector [data-inspector-qr],.badge-inspector [data-inspector-image] { display:grid; gap:10px; }
.badge-inspector [hidden] { display:none; }
.badge-canvas-column { position:sticky; top:24px; display:grid; gap:12px; min-width:0; padding:18px; border:1px solid var(--line); border-radius:18px; background:#f2f4f9; box-shadow:0 14px 45px rgba(20,35,67,.08); }
.badge-canvas-toolbar,.badge-canvas-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.badge-canvas-toolbar strong,.badge-canvas-toolbar small { display:block; }
.badge-canvas-toolbar small { margin-top:2px; color:var(--muted); font-size:.72rem; }
.badge-unsaved { padding:5px 8px; color:#815c00; border-radius:99px; background:#fff0bc; font-size:.69rem; font-weight:750; }
.badge-canvas-stage { display:grid; min-height:540px; place-items:center; padding:20px; overflow:auto; border:1px solid #d9deea; border-radius:14px; background:#e6e9f0; background-image:radial-gradient(circle at 1px 1px,rgba(49,61,86,.12) 1px,transparent 0); background-size:16px 16px; }
.badge-canvas-stage canvas { display:block; max-width:100%; height:auto; touch-action:none; cursor:grab; }
.badge-canvas-stage canvas.is-dragging { cursor:grabbing; }
.badge-canvas-actions { flex-wrap:wrap; }
.badge-position { color:var(--muted); font-size:.7rem; font-variant-numeric:tabular-nums; }
.badge-save-button { width:100%; }
.badge-builder-message { padding:10px 12px; border-radius:10px; font-size:.78rem; font-weight:650; }
.badge-builder-message.is-error { color:#8d1b28; background:#fff0f2; }
.badge-builder-message.is-success { color:#086642; background:#e8f8f0; }
.badge-builder-message.is-info { color:#2947b8; background:#edf1ff; }
.badge-print-panel { display:grid; grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr); gap:24px; align-items:end; }
.badge-print-panel h2 { margin:.15rem 0 .35rem; font-size:1.2rem; }
.badge-print-panel p:not(.eyebrow) { margin:0; color:var(--muted); font-size:.84rem; }
.badge-print-panel.is-locked { grid-template-columns:1fr; border-style:dashed; background:#fafbfc; }
.badge-print-panel .bulk-badge-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:10px; align-items:end; }
.button-small { min-height:34px; padding:7px 10px; font-size:.75rem; }

/* Badge editor: one active tool panel, a stable preview and an explicit save boundary. */
.badge-studio [hidden] { display:none !important; }
.badge-studio-form { display:block; }
.badge-editor-fields { display:grid; grid-template-columns:310px minmax(0,1fr); align-items:start; gap:20px; min-width:0; margin:0; padding:0; border:0; }
.badge-editor-header { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.badge-editor-header strong { display:block; font-size:.94rem; }
.badge-editor-header [data-save-status] { display:block; margin-top:5px; color:var(--muted); font-size:.78rem; }
.badge-editor-history { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.badge-editor-history .link-button { margin:0 8px; font-size:.77rem; }
.badge-editor-tabs { display:flex; gap:4px; padding:5px; border:1px solid var(--line); border-radius:13px; background:#eef1f7; }
.badge-editor-tabs button { display:inline-flex; align-items:center; justify-content:center; gap:5px; flex:1; min-height:38px; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; font:inherit; font-size:.8rem; font-weight:650; }
.badge-editor-tabs svg { width:16px; height:16px; flex:none; }
.badge-editor-tabs [aria-selected="true"] { color:var(--brand); background:#fff; box-shadow:0 2px 8px rgba(23,38,72,.08); }
.badge-controls { gap:12px; }
.badge-studio .badge-canvas-column { top:18px; padding:18px; border-radius:18px; background:#fff; box-shadow:0 8px 30px rgba(23,38,72,.05); }
.badge-studio .badge-canvas-stage { min-height:440px; background-color:#f1f3f8; border-color:#e2e7ef; }
.badge-canvas-help { margin:0; color:var(--muted); font-size:.76rem; line-height:1.55; }
.badge-layer-list { display:grid; gap:6px; max-height:340px; overflow:auto; }
.badge-layer { width:100%; padding:11px 12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:1px solid var(--line); border-radius:10px; background:#fafbfe; cursor:pointer; color:var(--ink); font:inherit; font-size:.8rem; text-align:left; }
.badge-layer[aria-pressed="true"] { color:var(--brand); border-color:var(--brand); background:#f0f3ff; }
.badge-layer-actions { display:flex; flex-wrap:wrap; gap:6px; }
.badge-print-panel .badge-print-status { margin-top:9px; font-size:.78rem; font-weight:600; color:#76520b; }
.badge-studio .badge-print-panel { grid-template-columns:1fr; }
.badge-studio .bulk-badge-form { grid-template-columns:repeat(3,minmax(0,1fr)) auto; }
.badge-studio label.button { position:relative; }
.badge-file-input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.badge-studio label.button:focus-within,.badge-preset-picker input:focus-visible + span { outline:3px solid var(--brand); outline-offset:3px; }
.badge-studio button:focus-visible,.badge-studio canvas:focus-visible,.badge-studio a:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.badge-studio button:disabled { opacity:.5; cursor:default; }
.badge-studio[aria-busy="true"] canvas { cursor:wait; }

@media (max-width: 1180px) and (min-width: 1025px) {
    .badge-editor-fields { grid-template-columns:290px minmax(0,1fr); gap:14px; }
    .badge-canvas-stage { min-height:480px; padding:14px; }
    .badge-print-panel,.badge-print-panel .bulk-badge-form { grid-template-columns:1fr 1fr; }
}

/* Densitate vizuală: titlurile și agenda rămân clare fără a domina ecranul. */
.page-heading h1 { font-size: clamp(1.65rem,3vw,2.35rem); line-height: 1.08; }
.agenda-item time { font-size: .86rem; line-height: 1.3; white-space: nowrap; }
.agenda-item strong { font-size: .96rem; }

.topbar-credit-balance { display:flex; align-items:baseline; gap:5px; padding:6px 9px; color:var(--brand); border:1px solid #dbe2ff; border-radius:10px; background:#f5f7ff; font-size:.72rem; text-decoration:none; white-space:nowrap; }
.topbar-credit-balance strong { font-size:1rem; }
.credit-balance-card { display:grid; grid-template-columns:minmax(220px,.75fr) minmax(300px,1.25fr); gap:28px; background:linear-gradient(135deg,#172a63,#3659e3); color:#fff; }
.credit-balance-main { display:flex; flex-direction:column; justify-content:center; }
.credit-balance-main > span { font-weight:750; opacity:.82; }
.credit-balance-main > strong { margin:.05em 0; font-size:clamp(3rem,8vw,5.5rem); line-height:1; }
.credit-balance-main small { opacity:.82; }
.credit-expiry-list { padding:20px; color:var(--ink); border-radius:14px; background:rgba(255,255,255,.96); }
.credit-expiry-list > div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid var(--line); }
.credit-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.credit-product-card { display:flex; min-height:390px; flex-direction:column; gap:18px; padding:25px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.credit-product-card > div:first-child { flex:1; }
.credit-product-card h3 { margin:14px 0 7px; font-size:1.28rem; }
.credit-product-card p { color:var(--muted); }
.credit-count-badge { display:inline-flex; padding:6px 10px; color:var(--brand); border-radius:999px; background:#eef2ff; font-size:.8rem; font-weight:850; }
.credit-order-history { margin-top:52px; }
.checkout-layout { display:grid; gap:22px; align-items:start; }
.checkout-main { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr); gap:22px; align-items:start; }
.checkout-main > .card { margin-bottom:0; }
.checkout-summary { position:static; width:100%; }
.checkout-summary dl { display:grid; gap:10px; margin:22px 0; }
.checkout-summary dl div { display:flex; justify-content:space-between; gap:14px; }
.checkout-summary .checkout-total { padding-top:13px; border-top:1px solid var(--line); font-size:1.08rem; }
.checkout-summary .button { width:100%; }
.checkout-credit-count { display:flex; align-items:baseline; gap:8px; color:var(--brand); }
.checkout-credit-count strong { font-size:2.6rem; line-height:1; }
.payment-choice-grid { display:grid; gap:12px; }
.payment-choice { display:flex; gap:12px; padding:17px; border:1px solid var(--line); border-radius:14px; cursor:pointer; }
.payment-choice:has(input:checked) { border-color:var(--brand); background:#f6f8ff; box-shadow:0 0 0 3px rgba(54,89,227,.1); }
.payment-choice > span,.payment-choice strong,.payment-choice small { display:block; }
.payment-choice small { margin-top:3px; color:var(--muted); }
.bank-transfer-details { display:grid !important; gap:7px; min-width:0; margin-top:14px; padding:13px 14px; border:1px solid #e3e8f5; border-radius:10px; background:#fff; font-size:.84rem; }
.bank-detail-row { display:grid; grid-template-columns:86px minmax(0,1fr); gap:10px; align-items:start; }
.bank-detail-row b { color:var(--muted); font-weight:650; }
.bank-detail-row span { min-width:0; overflow-wrap:anywhere; color:var(--ink); font-variant-numeric:tabular-nums; }
.bank-detail-note { display:block; margin-top:3px; padding-top:10px; color:var(--muted); border-top:1px solid var(--line); line-height:1.45; }
.admin-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }

@media (max-width: 1024px) {
    .badge-page-heading,.badge-studio { display:none; }
    .badge-mobile-notice { display:block; }
    .checkout-grid,.payment-admin-grid,.credential-grid,.email-template-grid { grid-template-columns: 1fr; }
    .checkout-panel,.settings-subcard { padding: 14px; }
    .admin-commerce-nav { margin-top: -4px; }
    .admin-commerce-nav a { padding: 9px 12px; font-size: .8rem; }
    .package-product-card { min-height: 0; }
    .order-submit-row,.package-inventory-row,.admin-order-row,.package-assign-form,.admin-order-actions,.admin-order-actions form:first-child { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .bank-details,.admin-package-row { grid-template-columns: 1fr; }
    .admin-package-description { grid-column: auto; }
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .installer-shell { width: min(100% - 22px, 920px); padding-top: 24px; }
    .check-grid, .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .card { margin-bottom: 14px; padding: 19px; border-radius: 13px; }
    .metric-grid { grid-template-columns: 1fr; }
    .event-card-grid, .two-column-layout { grid-template-columns: 1fr; }
    .settings-grid,.account-settings-grid { grid-template-columns: 1fr; }
    .toolbar-form { grid-template-columns: 1fr; }
    .form-section { grid-template-columns: 1fr; gap: 10px; }
    .slug-form { grid-template-columns: 1fr; }
    .event-hero-main { display: grid; }
    .event-hero-actions { width:100%; }
    .event-title-line { flex-wrap: wrap; }
    .agenda-item { grid-template-columns: minmax(125px,auto) minmax(0,1fr) auto; gap:10px; }
    .page-heading { display: grid; gap: 16px; margin-bottom: 20px; }
    .page-heading .action-group { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .page-heading .action-group .button { min-width: 0; padding-inline: 10px; font-size: .88rem; }
    .topbar { position: sticky; min-height: 62px; }
    .topbar-inner { grid-template-columns: 42px 1fr 42px; width: calc(100% - 20px); min-height: 62px; gap: 8px; }
    .topbar .brand-link { grid-column: 2; justify-self: center; }
    .topbar .brand-link small { display: none; }
    .topbar .brand-mark.small { width: 31px; height: 31px; }
    .brand-logo { max-width: min(180px,52vw); height: var(--app-logo-height-mobile,31px); }
    .topnav, .account-menu { display: none; }
    .credit-balance-card,.admin-product-grid { grid-template-columns:1fr; }
    .credit-product-grid { grid-template-columns:1fr; }
    .credit-product-card { min-height:0; }
    .checkout-summary { position:static; }
    .mobile-menu-button { display: grid; grid-column: 1; grid-row: 1; width: 42px; height: 42px; place-items: center; padding: 0; color: var(--ink); border: 0; border-radius: 11px; background: #f2f4f8; cursor: pointer; }
    .mobile-menu-button svg { width: 24px; height: 24px; }
    .app-shell { width: min(100% - 24px,1180px); padding: 24px 0 30px; }
    .event-tabs { display: none; }
    .sticky-actions { bottom: calc(82px + env(safe-area-inset-bottom)); width: 100%; }
    .sticky-actions .button { flex: 1; padding-inline: 10px; }
    .date-time-picker { grid-template-columns: minmax(125px,1fr) 68px auto 68px; }
    .participant-filters, .mapping-grid, .category-layout, .category-form, .qr-detail-layout { grid-template-columns: 1fr; }
    .custom-field-row { grid-template-columns: minmax(0,1fr) 86px; }
    .custom-field-row .inline-toggle,.custom-field-row .inline-actions { grid-column: 1 / -1; }
    .custom-field-row .inline-actions { justify-content: space-between; padding-top: 3px; }
    .participant-list-card { padding: 0; }
    .participant-table thead { display: none; }
    .participant-table, .participant-table tbody, .participant-table tr, .participant-table td { display: block; width: 100%; }
    .participant-table tr { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 12px 12px 11px 46px; border-top: 1px solid var(--line); }
    .participant-table td { min-height: 0; padding: 2px 0; border: 0; }
    .participant-table td::before { color: var(--muted); content: attr(data-label); display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
    .participant-table .check-cell { position: absolute; top: 16px; left: 14px; width: 24px; }
    .participant-table .check-cell::before, .participant-table .row-actions::before { display: none; }
    .participant-table .participant-name-cell { grid-column: 1 / -1; padding-right: 2px; }
    .participant-table .participant-name-cell::before, .participant-table .participant-contact-cell::before, .participant-table .participant-category-cell::before, .participant-table .participant-access-cell::before { display: none; }
    .participant-table .participant-name-cell strong { font-size: 1rem; line-height: 1.25; }
    .participant-table .participant-contact-cell { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: .84rem; }
    .participant-table .participant-category-cell { grid-column: 1; display: flex; align-items: center; }
    .participant-table .participant-access-cell { grid-column: 2; grid-row: 3; display: flex; align-items: flex-end; flex-direction: column; gap: 2px; text-align: right; }
    .participant-table .participant-access-cell small { font-size: .7rem; }
    .participant-table .participant-source-cell { display: none; }
    .mobile-qr-warning { display: block !important; }
    .row-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 7px; padding-top: 6px !important; border-top: 1px solid #edf0f4; margin-top: 5px; }
    .icon-action { width: 36px; height: 36px; }
    .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; min-height: calc(70px + env(safe-area-inset-bottom)); padding: 6px 7px env(safe-area-inset-bottom); border-top: 1px solid rgba(211,217,229,.95); background: rgba(255,255,255,.96); box-shadow: 0 -10px 30px rgba(21,34,59,.1); backdrop-filter: blur(18px); }
    .mobile-bottom-nav.is-global-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .mobile-bottom-nav.is-event-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .mobile-bottom-nav a { position: relative; display: flex; min-width: 0; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 1px; color: #71798a; border-radius: 12px; font-size: 9px; font-weight: 750; line-height: 1.05; text-align: center; text-decoration: none; }
    .mobile-bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-bottom-nav a.is-active { color: var(--brand); background: #f0f3ff; }
    .mobile-bottom-nav.is-global-nav a { font-size: 10px; }
    .mobile-bottom-nav .mobile-primary-action { color: var(--brand); }
    .mobile-bottom-nav .mobile-primary-action svg { width: 25px; height: 25px; }
    .mobile-bottom-nav .mobile-scan-action { align-self: end; min-height: 66px; margin-top: -17px; color: #fff; border: 4px solid #fff; border-radius: 19px 19px 12px 12px; background: linear-gradient(145deg,var(--brand),#654bd7); box-shadow: 0 9px 22px rgba(54,89,227,.34); }
    .mobile-bottom-nav .mobile-scan-action.is-active { color: #fff; background: linear-gradient(145deg,var(--brand-dark),#4d36bd); }
    .mobile-bottom-nav .mobile-scan-action svg { width: 26px; height: 26px; stroke-width: 2.1; }
    .mobile-drawer-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(13,22,41,.48); backdrop-filter: blur(2px); }
    .mobile-drawer-overlay:not([hidden]) { display: block; }
    .mobile-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; display: flex; width: min(86vw,340px); flex-direction: column; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; background: #fff; box-shadow:none; transform: translateX(-105%); transition: transform .22s ease,box-shadow .22s ease; }
    .mobile-drawer.is-open { box-shadow:22px 0 60px rgba(15,26,48,.22); transform: translateX(0); }
    .mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 18px; border-bottom: 1px solid var(--line); }
    .drawer-close { width: 38px; height: 38px; color: var(--muted); border: 0; border-radius: 10px; background: #f2f4f8; cursor: pointer; font-size: 1.6rem; }
    .drawer-nav { display: grid; gap: 4px; padding: 14px 0; }
    .drawer-nav a { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 9px 11px; color: var(--ink); border-radius: 11px; font-size:.9rem; font-weight:500; text-decoration: none; }
    .drawer-nav a:hover, .drawer-nav a:focus { color: var(--brand); background: #f0f3ff; }
    .drawer-nav svg { flex: 0 0 22px; color: var(--brand); }
    .drawer-separator { margin: 9px 0 3px; padding: 9px 12px 4px; color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    .drawer-logout { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
    .drawer-logout .button { width: 100%; font-size:.9rem; font-weight:550; }
    body.drawer-open { overflow: hidden; }
    .qr-print-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .qr-print-card { min-height: 250px; padding: 12px; }
    .operator-shell { width: min(100% - 20px,1100px); padding-top: 14px; }
    .operator-header { align-items: center; }
    .scanner-panel { padding: 10px; }
    .scanner-camera, .scanner-camera video { min-height: min(58vh,480px); }
    .scan-result { position: static; min-height: 260px; }
    .scanner-controls { display: grid; grid-template-columns: 1fr; }
    .operator-link-form { grid-template-columns: 1fr; }
    .scan-point-form { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .bulk-badge-form { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .bulk-badge-form .field { min-width: 0; }
}

@media (max-width: 420px) {
    .date-time-picker { grid-template-columns: 1fr 1fr auto 1fr; }
    .date-time-picker input { grid-column: 1 / -1; }
    .mobile-bottom-nav.is-event-nav a { font-size: 10px; }
    .mobile-bottom-nav.is-event-nav svg { width: 22px; height: 22px; }
}

@media print {
    @page { size: A4 portrait; margin: 8mm; }
    body { padding: 0 !important; background: #fff !important; }
    .topbar, .mobile-bottom-nav, .mobile-drawer, .mobile-drawer-overlay, .qr-actions-card, .qr-print-toolbar, .alert, .back-link { display: none !important; }
    .app-shell { width: 100%; margin: 0; padding: 0; }
    .qr-detail-layout { display: block; }
    .printable-qr-single { width: 90mm; min-height: 110mm; margin: 0 auto; padding: 8mm; border: 1px solid #bbb; border-radius: 0; box-shadow: none; }
    .printable-qr-single .qr-svg { width: 65mm; margin: 5mm auto; }
    .qr-print-grid { display: grid; grid-template-columns: repeat(3,62mm); gap: 4mm; align-items: start; }
    .qr-print-card { width: 62mm; min-height: 82mm; padding: 4mm; border: 1px solid #bbb; border-radius: 0; box-shadow: none; page-break-inside: avoid; break-inside: avoid; }
    .qr-print-card .qr-person-name { font-size: 12pt; }
    .qr-print-card .qr-company { font-size: 8pt; }
    .qr-print-card .qr-svg { width: 48mm; margin: 3mm auto; }
    .qr-print-card .qr-event-title { font-size: 7pt; }
}

/* Desktop SaaS shell */
.desktop-sidebar { position:fixed; inset:0 auto 0 0; z-index:30; display:flex; width:260px; flex-direction:column; padding:18px 14px; border-right:1px solid var(--line); background:rgba(255,255,255,.97); box-shadow:10px 0 28px rgba(24,36,65,.04); transition:width .18s ease; }
.desktop-sidebar-head { display:flex; min-height:48px; align-items:center; justify-content:space-between; gap:8px; padding:0 4px 16px; border-bottom:1px solid var(--line); }
.desktop-sidebar .brand-link { min-width:0; overflow:hidden; }.desktop-sidebar .brand-logo { max-width:180px; }.desktop-sidebar .brand-link small { max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-collapse { display:grid; flex:0 0 32px; width:32px; height:32px; place-items:center; color:var(--muted); border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; font-size:1.35rem; }
.desktop-sidebar-nav { display:grid; gap:5px; padding:18px 0; }
.desktop-sidebar-nav a { display:flex; min-height:44px; align-items:center; gap:12px; padding:9px 11px; color:var(--muted); border-radius:11px; font-size:.9rem; font-weight:520; text-decoration:none; white-space:nowrap; }
.desktop-sidebar-nav a:hover,.desktop-sidebar-nav a.is-active { color:var(--brand); background:#eef2ff; }.desktop-sidebar-nav svg { flex:0 0 22px; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sidebar-credit-count { margin-left:auto; padding:2px 7px; border-radius:99px; color:var(--brand); background:#fff; font-size:.72rem; }
.desktop-sidebar-account { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; margin-top:auto; padding:14px 4px 0; border-top:1px solid var(--line); }.desktop-sidebar-account strong,.desktop-sidebar-account small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.desktop-sidebar-account small { color:var(--muted); font-size:.7rem; }.desktop-sidebar-account form { margin:0; }
.desktop-sidebar .link-button { font-size:.85rem; font-weight:520; }
.is-authenticated .topbar { display:none; }.is-authenticated .app-shell { width:auto; margin:0 0 0 260px; padding:40px 32px 80px; transition:margin-left .18s ease; }.is-authenticated .app-shell > * { width:min(1180px,100%); margin-right:auto; margin-left:auto; }
body.sidebar-collapsed .desktop-sidebar { width:82px; }body.sidebar-collapsed .desktop-sidebar .sidebar-label,body.sidebar-collapsed .desktop-sidebar .sidebar-credit-count,body.sidebar-collapsed .desktop-sidebar .brand-logo { display:none; }body.sidebar-collapsed .desktop-sidebar-head { justify-content:center; }body.sidebar-collapsed .desktop-sidebar-head .brand-link { display:none; }body.sidebar-collapsed .desktop-sidebar-nav a { justify-content:center; }body.sidebar-collapsed .desktop-sidebar-account { grid-template-columns:1fr; justify-items:center; }body.sidebar-collapsed .sidebar-collapse { transform:rotate(180deg); }body.sidebar-collapsed .app-shell { margin-left:82px; }
.settings-split-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.compact-settings-form { margin-top:16px; }.event-settings-section { scroll-margin-top:20px; }.operator-mobile-logout { display:none; text-align:center; }
.participant-summary-card { padding-block:24px; }.participant-summary-list { display:grid; gap:0; }.participant-summary-list > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; min-height:42px; padding:8px 0; border-top:1px solid var(--line); }.participant-summary-list > div:first-child { border-top:0; }.participant-summary-list strong { color:var(--ink); font-size:1.05rem; }.participant-summary-list small { color:var(--muted); font-size:.76rem; }.participant-export-list { display:flex; flex-wrap:wrap; gap:8px 18px; padding-top:14px; border-top:1px solid var(--line); font-size:.8rem; }.compact-text-action { padding:2px 0; color:var(--brand); border:0; background:transparent; font:inherit; font-size:.75rem; font-weight:750; cursor:pointer; }
.content-text-toolbar { margin-bottom:18px; }.content-text-toolbar .field { max-width:560px; }.content-text-form { display:grid; gap:18px; }.content-text-group[hidden],.content-text-item[hidden] { display:none !important; }.content-text-list { display:grid; gap:14px; }.content-text-item { display:grid; gap:9px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fbfcff; }.content-text-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }.content-text-meta > div { display:grid; gap:3px; }.content-text-meta code { color:var(--muted); font-size:.72rem; }.content-text-item > input,.content-text-item > textarea { width:100%; box-sizing:border-box; padding:11px 12px; color:var(--ink); border:1px solid #cbd3df; border-radius:10px; background:#fff; font:inherit; }.content-text-item > textarea { min-height:96px; resize:vertical; line-height:1.5; }.content-text-item > input:focus,.content-text-item > textarea:focus { border-color:var(--brand); outline:0; box-shadow:0 0 0 3px rgba(54,89,227,.1); }.content-text-variables { overflow-wrap:anywhere; color:var(--muted); }.content-text-default summary { color:var(--brand); cursor:pointer; font-size:.82rem; }.content-text-default pre { max-height:220px; overflow:auto; margin:8px 0 0; padding:12px; border-radius:9px; background:#f0f3f9; white-space:pre-wrap; font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }.content-text-reset { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.8rem; }

@media (max-width:1024px) {
    body { background:var(--canvas); }
    .desktop-sidebar { display:none; }.is-authenticated .topbar { display:block; }.topbar-inner { grid-template-columns:42px minmax(0,1fr) auto; }.is-authenticated .app-shell { width:min(100% - 24px,1180px); margin:0 auto; padding:24px 0 90px; }.is-authenticated .app-shell > * { width:100%; }
    .settings-split-grid { grid-template-columns:1fr; }.scanner-page-heading,.scanner-event-tabs { display:none !important; }.operator-mobile-logout { display:block; margin:10px auto 0; }.scanner-layout { margin-top:0; }.scanner-panel { margin-top:0; }
    .participant-page-heading { margin-bottom:10px; }.participant-summary-card { padding:14px; margin-bottom:12px; }.participant-summary-card .section-heading { margin-bottom:8px; }.participant-summary-card h2 { font-size:1rem; }.participant-summary-list > div { min-height:34px; padding:5px 0; font-size:.84rem; }.participant-export-list { gap:6px 12px; padding-top:10px; }
    .participant-list-card { margin-bottom:12px; }.participant-table tr { padding-top:9px; padding-bottom:8px; }.participant-table td[data-label="Categorie"] { grid-column:1 / -1; }.participant-table td[data-label="Activare"] { align-self:center; }.participant-table .participant-access-cell { align-items:flex-end; }.compact-text-action { font-size:.7rem; }
    .content-text-item { padding:13px; }.content-text-meta .status-badge { font-size:.65rem; }
}

@media (max-width:640px) {
    body { background:var(--canvas) !important; background-image:none !important; }
    .card { box-shadow:0 2px 10px rgba(24,36,65,.035); }
    .credit-order-history { margin-top:34px; }
    .checkout-main { grid-template-columns:1fr; }
    .bank-detail-row { grid-template-columns:72px minmax(0,1fr); }
    .mobile-drawer:not(.is-open) { box-shadow:none !important; }
    .participant-list-card { background:#fff; box-shadow:none; }
    .participant-page-heading { display:none !important; }
    .participant-filter-card-mobile { display:block; margin-bottom:12px; }
    .participant-filter-card-desktop { display:none; }
    .participant-export-list { display:none; }
    .participant-empty-state .centered-actions { display:none; }
    .participant-mobile-add { display:block; margin:4px 0 18px; }
    .participant-mobile-add .button { width:100%; }
    .filter-card { padding:10px; }
    .participant-filters-desktop { display:none; }
    .participant-search-mobile { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:7px; margin:0; }
    .participant-search-mobile input { width:100%; min-width:0; height:44px; padding:9px 12px; color:var(--ink); border:1px solid #cbd3df; border-radius:10px; background:#fbfcfe; font:inherit; font-size:.88rem; outline:0; }
    .participant-search-mobile input:focus { border-color:var(--brand); background:#fff; box-shadow:0 0 0 3px rgba(54,89,227,.11); }
    .participant-search-mobile button { display:grid; width:44px; height:44px; place-items:center; padding:0; color:#fff; border:0; border-radius:10px; background:var(--brand); cursor:pointer; }
    .participant-search-mobile button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
    .scanner-panel { padding:0; overflow:hidden; }
    .scanner-camera { width:100%; min-height:0; aspect-ratio:4 / 3; border-radius:0; }
    .scanner-camera video { min-height:0; }
    .scanner-panel .scanner-controls { padding:0 10px; }
    .scanner-panel .scanner-status { padding:0 10px 10px; }
    .participant-list-card .bulk-toolbar { display:none; }
    .participant-table tr { display:block; padding:0; border-top:1px solid var(--line); box-shadow:none; }
    .participant-table tr:first-child { border-top:0; }
    .participant-table .check-cell,
    .participant-table .participant-name-cell,
    .participant-table .participant-contact-cell,
    .participant-table td[data-label="Categorie"],
    .participant-table td[data-label="Activare"],
    .participant-table .participant-access-cell,
    .participant-table .row-actions { display:none !important; }
    .participant-table .participant-mobile-cell { display:block !important; width:100%; padding:0; border:0; }
    .participant-mobile-card { min-height:54px; background:#fff; }
    .participant-mobile-front { display:flex; width:100%; min-height:54px; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; color:var(--ink); border:0; background:#fff; font:inherit; text-align:left; cursor:pointer; }
    .participant-mobile-front:disabled { cursor:default; opacity:1; }
    .participant-mobile-front strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9rem; line-height:1.15; }
    .participant-mobile-front .status-badge { flex:0 0 auto; padding:4px 8px; font-size:.68rem; }
    .participant-mobile-actions { position:fixed; inset:0; z-index:80; display:flex; align-items:flex-end; justify-content:center; padding:16px 14px calc(16px + env(safe-area-inset-bottom)); background:rgba(13,22,41,.54); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease,visibility 0s linear .18s; }
    .participant-mobile-card.is-actions .participant-mobile-actions { opacity:1; visibility:visible; pointer-events:auto; transition-delay:0s; }
    .participant-mobile-action-panel { width:min(100%,460px); padding:16px; border:1px solid rgba(255,255,255,.72); border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(13,22,41,.28); transform:translateY(18px); transition:transform .2s ease; }
    .participant-mobile-card.is-actions .participant-mobile-action-panel { transform:translateY(0); }
    .participant-mobile-action-panel > header { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:13px; padding:0 2px 12px; border-bottom:1px solid var(--line); }
    .participant-mobile-action-panel > header div { display:grid; min-width:0; }
    .participant-mobile-action-panel > header small { color:var(--muted); font-size:.68rem; }
    .participant-mobile-action-panel > header strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:1rem; }
    .participant-actions-close { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; padding:0; color:var(--muted); border:0; border-radius:10px; background:#f1f3f7; font:inherit; font-size:1.4rem; cursor:pointer; }
    .participant-mobile-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
    .mobile-participant-action { display:flex !important; min-width:0; min-height:86px; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:8px 4px; color:var(--muted); border:1px solid var(--line); border-radius:12px; background:#fafbfe; font:inherit; font-size:.7rem; font-weight:600; line-height:1.15; text-align:center; text-decoration:none; cursor:pointer; }
    .mobile-participant-action:hover,
    .mobile-participant-action:focus-visible { color:var(--brand); background:#f2f5ff; }
    .mobile-participant-action.danger { color:var(--bad); }
    .mobile-participant-action svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
    body.participant-actions-open { overflow:hidden; }
}

/* Warm brand theme: isolated overrides keep component structure and behavior unchanged. */
.brand-mark { box-shadow:0 8px 24px rgba(242,106,33,.25); }
.field input:focus,.field textarea:focus,.field select:focus { box-shadow:0 0 0 4px rgba(242,106,33,.12); }
.button { box-shadow:0 7px 16px rgba(242,106,33,.18); }
.button:hover { box-shadow:0 10px 24px rgba(242,106,33,.24); }
.avatar { background:linear-gradient(135deg,var(--brand),#fb923c); }
.link-button:hover,
.empty-icon,
.event-tabs .is-active,
.settings-icon,
.scan-point-tabs a.is-active,
.badge-add-menu button:hover,
.badge-add-menu button:focus,
.mobile-bottom-nav a.is-active,
.drawer-nav a:hover,
.drawer-nav a:focus,
.desktop-sidebar-nav a:hover,
.desktop-sidebar-nav a.is-active,
.mobile-participant-action:focus-visible { background:var(--brand-soft); }
.button-secondary,
.event-card-duplicate:hover,
.event-card-duplicate:focus-visible,
.event-status-row button,
.scan-point-tabs a.is-active,
.icon-action,
.badge-preset-picker input:checked + span { border-color:var(--brand-border); background:var(--brand-surface); }
.icon-action:hover { border-color:#eda77d; background:var(--brand-soft); }
.payment-method-option:has(input:checked),
.badge-preset-picker input:checked + span,
.payment-choice:has(input:checked) { box-shadow:0 0 0 2px rgba(242,106,33,.12); }
.rich-editor:focus,
.content-text-item > input:focus,
.content-text-item > textarea:focus,
.participant-search-mobile input:focus { outline-color:rgba(242,106,33,.18); box-shadow:0 0 0 3px rgba(242,106,33,.11); }
.payment-loader { border-color:#f6ded0; border-top-color:var(--brand); }
.topbar-credit-balance { border-color:#f4d2be; background:var(--brand-surface); }
.credit-balance-card { background:linear-gradient(135deg,#7a3212,var(--brand)); }
.credit-count-badge { background:var(--brand-soft); }
.payment-choice:has(input:checked) { background:var(--brand-surface); }
.info-strip { background:var(--brand-soft); color:var(--muted); }
.content-text-item { background:#fffdfb; }
.content-text-default pre { background:#f7f2ef; }
.mobile-bottom-nav .mobile-scan-action { background:linear-gradient(145deg,var(--brand),#fb923c); box-shadow:0 9px 22px rgba(242,106,33,.34); }
.mobile-bottom-nav .mobile-scan-action.is-active { background:linear-gradient(145deg,var(--brand-dark),#c44a0d); }
.branding-fieldset { display:grid; gap:18px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.branding-fieldset h2,.branding-preview-card h3 { margin-bottom:0; }
.branding-preview-card h3 { margin-top:22px; font-size:.9rem; }
.favicon-preview { display:grid; width:92px; height:92px; place-items:center; margin-top:10px; border:1px solid var(--line); border-radius:16px; background:var(--brand-surface); }
.favicon-preview img { display:block; width:64px; height:64px; object-fit:contain; }
.muted-text { color:var(--muted); font-size:.84rem; }

.app-legal-footer { margin-left:0; color:#cbbdb5; background:#211815; transition:margin-left .18s ease; }
.is-authenticated .app-legal-footer { margin-left:260px; }
.app-legal-footer-inner { display:grid; grid-template-columns:minmax(230px,1fr) minmax(310px,1.25fr) auto; width:min(1180px,calc(100% - 64px)); margin:0 auto; padding:28px 0; align-items:center; gap:28px; }
.app-legal-company { display:grid; gap:3px; font-size:.72rem; line-height:1.5; }
.app-legal-company strong { color:#fff; font-size:.82rem; }
.app-legal-company a,.app-legal-links a { color:#e9ddd6; text-decoration:none; }
.app-legal-company a:hover,.app-legal-links a:hover { color:#fff; text-decoration:underline; text-underline-offset:3px; }
.app-legal-links { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:.72rem; }
.app-compliance-marks { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:14px; }
.app-compliance-marks a { display:flex; align-items:center; }
.app-netopia-mark { display:block; width:250px; max-width:100%; height:50px; flex-shrink:0; }
.app-netopia-mark img { display:block; width:100%; height:50px; object-fit:contain; }
.app-sal-mark { background:#fff; }
.app-sal-mark span { display:flex; width:250px; height:50px; align-items:center; justify-content:center; overflow:hidden; }
.app-sal-mark img { display:block; width:250px; height:50px; object-fit:fill; }
body.is-authenticated.sidebar-collapsed .app-legal-footer { margin-left:82px; }

@media (max-width:1280px) {
    .app-legal-footer-inner { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .app-compliance-marks { grid-column:1/-1; justify-content:flex-start; }
}

@media (max-width:1024px) {
    .is-authenticated .app-legal-footer,body.is-authenticated.sidebar-collapsed .app-legal-footer { margin-left:0; }
    .app-legal-footer-inner { grid-template-columns:1fr 1fr; width:min(100% - 32px,1180px); }
    .app-compliance-marks { grid-column:1/-1; justify-content:flex-start; }
}

@media (max-width:640px) {
    .app-legal-footer-inner { grid-template-columns:1fr; width:calc(100% - 28px); padding:25px 0 calc(92px + env(safe-area-inset-bottom)); gap:20px; }
    .app-compliance-marks { grid-column:auto; align-items:flex-start; flex-direction:column; }
    .app-sal-mark span { width:250px; height:50px; }
    .app-sal-mark img { width:250px; height:50px; }
}

@media (prefers-reduced-motion:reduce) {
    .participant-mobile-actions,.participant-mobile-action-panel { transition:none; }
}

@media print { .desktop-sidebar,.app-legal-footer { display:none !important; }.is-authenticated .app-shell { width:100%; margin:0; padding:0; } }
