/* Event Admin — design system */
:root {
    --p: #0e7490;
    --pd: #155e75;
    --pl: #ecfeff;
    --bg: #f2f5f8;
    --txt: #0f172a;
    --tm: #64748b;
    --cbg: #ffffff;
    --sb: #0b1420;
    --sb2: #123047;
    --st: #94a3b8;
    --bd: #e2e8f0;
    --gl: rgba(255, 255, 255, 0.9);
    --suc: #10b981;
    --dang: #ef4444;
    --warn: #f59e0b;
    --rad: 12px;
    --rad-lg: 16px;
    --sh: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
    --sh-hover: 0 10px 28px rgba(14, 116, 144, 0.14);
    --ring: 0 0 0 3px rgba(14, 116, 144, 0.18);
}

body.dark {
    --bg: #0a1018;
    --txt: #f1f5f9;
    --tm: #94a3b8;
    --cbg: #152033;
    --bd: #2a3a52;
    --gl: rgba(11, 20, 32, 0.92);
    --pl: rgba(14, 116, 144, 0.22);
    --sh: 0 4px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Sora', system-ui, sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.app {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 268px;
    background: linear-gradient(185deg, var(--sb) 0%, var(--sb2) 58%, #0d3d4a 100%);
    color: var(--st);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 28px rgba(11, 20, 32, 0.12);
}

.sidebar-brand {
    padding: 1.35rem 1.5rem 1.1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand::before {
    content: none;
}

.sidebar-brand span {
    background: linear-gradient(90deg, #67e8f9, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.5rem 0 1rem; }

.nav-section {
    padding: 1.1rem 1.25rem 0.4rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    font-weight: 700;
}

.nav-item {
    margin: 3px 12px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s ease;
    border-radius: 11px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.nav-item span:first-child {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(14, 116, 144, 0.42), rgba(15, 118, 110, 0.18));
    color: #fff;
    border-color: rgba(103, 232, 249, 0.28);
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.18);
}

.nav-item.active span:first-child {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item--external {
    opacity: 0.92;
}

.badge {
    background: linear-gradient(135deg, var(--dang), #f97316);
    color: #fff;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: auto;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.admin-video-preview {
    max-width: 720px;
}
.admin-video-preview.video-frame--embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1420;
}
.admin-video-preview.video-frame--embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.admin-video-preview.video-frame--file video {
    display: block;
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    background: #000;
}

.sidebar-footer .btn,
.sidebar-footer a.btn {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f8fafc !important;
    font-weight: 600;
    border-radius: 11px;
}

.sidebar-footer .btn:hover,
.sidebar-footer a.btn:hover {
    background: rgba(14, 116, 144, 0.45);
    border-color: #a5f3fc;
    transform: translateY(-1px);
}

/* Main layout */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 100% -20%, rgba(14, 116, 144, 0.07), transparent),
        radial-gradient(ellipse 55% 40% at 0% 100%, rgba(15, 118, 110, 0.05), transparent),
        var(--bg);
}

.header {
    height: 68px;
    border-bottom: 1px solid var(--bd);
    background: var(--gl);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    flex-shrink: 0;
    z-index: 90;
}

.header-user {
    font-size: 0.92rem;
}

.header-user small { color: var(--tm); }

.header-user strong { color: var(--txt); font-weight: 600; }

.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.header {
    gap: 12px;
    flex-wrap: wrap;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: 420px;
    margin: 0 auto;
}

.header-search-scope {
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--cbg);
    color: var(--txt);
    font: inherit;
    font-size: 0.82rem;
    padding: 8px 10px;
    max-width: 140px;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--cbg);
    color: var(--txt);
    font: inherit;
    font-size: 0.88rem;
    padding: 8px 12px;
}

.header-search-btn {
    flex-shrink: 0;
}

.header-preview-btn {
    font-weight: 700;
}

.header-context {
    font-weight: 600;
    color: var(--txt);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--bd);
}

.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.row-action-label {
    font-size: 0.78rem;
}

.guest-bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.guest-bulk-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.85rem;
    cursor: pointer;
}

.dash-checklist {
    margin-bottom: 1.5rem;
}

.dash-checklist h2,
.dash-activity h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.dash-checklist-list,
.dash-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.dash-checklist-item,
.dash-activity-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: var(--cbg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-checklist-item:hover,
.dash-activity-link:hover {
    border-color: var(--p);
    box-shadow: var(--sh);
}

.dash-checklist-go {
    margin-left: auto;
    color: var(--tm);
}

.dash-activity-item .dash-activity-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dash-activity-item strong {
    font-size: 0.92rem;
}

.dash-activity-item em {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--tm);
}

.sidebar-footer.mobile-hidden {
    display: none;
}

.header-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bd);
    background: var(--cbg);
    color: var(--txt);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.header-notif-btn:hover {
    border-color: var(--p);
    box-shadow: var(--sh);
}

.header-notif-btn.is-active {
    border-color: var(--p);
    background: var(--pl);
}

.header-notif-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.header-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--dang);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.mob-btn {
    display: none;
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    color: var(--txt);
    cursor: pointer;
}

.content {
    padding: 1.75rem 2rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.35s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--bd);
    flex-wrap: wrap;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(120px, 30%);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--p), transparent);
}

.page-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--txt);
}

.page-desc {
    margin: 0.4rem 0 0;
    color: var(--tm);
    font-size: 0.95rem;
    max-width: 560px;
    line-height: 1.55;
}

.hint, .page-desc a { color: var(--tm); }
.hint a, .page-desc a { color: var(--p); font-weight: 600; text-decoration: none; }
.hint a:hover, .page-desc a:hover { text-decoration: underline; }
.hint-inline { font-weight: 400; color: var(--tm); font-size: 0.85rem; }

.hint-box {
    background: linear-gradient(135deg, #ecfeff, #f0fdfa);
    color: #155e75;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(14, 116, 144, 0.15);
}

body.dark .hint-box {
    background: rgba(14, 116, 144, 0.12);
    color: #a5f3fc;
}

.test-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.test-feedback p {
    margin: 6px 0 0;
}

.test-feedback-time {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0.85;
}

.test-feedback.ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 4px solid #10b981;
}

.test-feedback.fail {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid #ef4444;
}

body.dark .test-feedback.ok {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}

body.dark .test-feedback.fail {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.preview-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: var(--cbg);
    color: var(--txt);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: var(--sh);
}

.preview-link:hover {
    border-color: var(--p);
    color: var(--p);
    box-shadow: var(--sh-hover);
    transform: translateY(-1px);
}

/* Cards */
.card {
    background: var(--cbg);
    border-radius: var(--rad-lg);
    box-shadow: var(--sh);
    border: 1px solid var(--bd);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.25s ease;
}

.card:hover { box-shadow: var(--sh-hover); }

.card-head {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--bd);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.06), transparent);
    letter-spacing: -0.01em;
}

.card-body { padding: 1.4rem; }

/* Buttons */
.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    transition: 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-p {
    background: linear-gradient(135deg, var(--p), var(--pd));
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.28);
}

.btn-p:hover {
    background: linear-gradient(135deg, var(--pd), #134e4a);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 116, 144, 0.32);
}

.btn-g {
    background: var(--cbg);
    border: 1px solid var(--bd);
    color: var(--txt);
}

.btn-g:hover {
    border-color: var(--p);
    color: var(--p);
    background: var(--pl);
}

.btn-d {
    background: rgba(239, 68, 68, 0.08);
    color: var(--dang);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-d:hover {
    background: var(--dang);
    color: #fff;
    border-color: var(--dang);
}

.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.8rem; border-radius: 8px; }

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--cbg);
    color: var(--txt);
    font-family: inherit;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
input[type="file"] { padding: 0.5rem; font-size: 0.85rem; }
input[type="checkbox"] { width: auto; margin: 0; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--p);
    box-shadow: var(--ring);
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--tm);
}

.form-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
    margin-bottom: 0;
    flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; margin: 0; }

.switch span {
    position: absolute;
    inset: 0;
    background: var(--bd);
    transition: 0.25s;
    border-radius: 999px;
}

.switch span:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.switch input:checked + span { background: linear-gradient(135deg, var(--suc), #059669); }
.switch input:checked + span:before { transform: translateX(22px); }

.setting-list { display: flex; flex-direction: column; }
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bd);
}

.setting-row:last-child { border-bottom: none; }
.setting-row .hint { margin: 4px 0 0; font-size: 0.85rem; }

/* Tables */
table, .dash-table {
    width: 100%;
    border-collapse: collapse;
}

th, .dash-table th {
    text-align: left;
    padding: 0.85rem 1.25rem;
    color: var(--tm);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--bd);
    font-weight: 700;
    background: rgba(14, 116, 144, 0.03);
}

td, .dash-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--bd);
    font-size: 0.9rem;
}

tr:hover td, .dash-table tr:hover td {
    background: rgba(14, 116, 144, 0.04);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 1.35rem;
    padding: 5px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--bd);
    flex-wrap: wrap;
}

.tab {
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--tm);
    border-radius: 9px;
    border: none;
    background: transparent;
    transition: 0.2s;
    opacity: 1;
}

.tab:hover { color: var(--p); background: var(--cbg); }

.tab.active {
    background: var(--cbg);
    color: var(--p);
    box-shadow: var(--sh);
}

.tab-c { display: none; animation: fadeIn 0.25s ease; }
.tab-c.active { display: block; }

/* Subnav, pills */
.style-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.style-subnav a {
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--bd);
    color: var(--tm);
    background: var(--cbg);
    transition: 0.2s;
}

.style-subnav a.active {
    background: linear-gradient(135deg, var(--p), #0f766e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.3);
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }

.filter-pill {
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--bd);
    color: var(--tm);
    background: var(--cbg);
    transition: 0.2s;
}

.filter-pill:hover { border-color: var(--p); color: var(--p); }
.filter-pill.active { background: var(--p); color: #fff; border-color: var(--p); }
.filter-pill .count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    margin-left: 6px;
}

.filter-pill.active .count { background: rgba(255, 255, 255, 0.25); }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--cbg);
    padding: 1rem 1.35rem;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--bd);
    border-left: 4px solid var(--suc);
    z-index: 300;
    animation: toastUp 0.35s ease;
    font-weight: 600;
    font-size: 0.92rem;
    max-width: 360px;
}

.toast-error { border-left-color: var(--dang); }

@keyframes toastUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Stats & grids */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 1.5rem;
}

.stat-card { background: var(--cbg); }
.stat-val { font-size: 2.25rem; font-weight: 800; color: var(--p); margin: 4px 0; }
.stat-label { color: var(--tm); font-size: 0.88rem; font-weight: 500; }

.gallery-stats, .tools-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 1.25rem;
}

.gallery-stat, .tools-stat-box {
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    box-shadow: var(--sh);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gallery-stat::before, .tools-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p), #22d3ee);
    opacity: 0.75;
}

.gallery-stat:hover, .tools-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-hover);
}

.gallery-stat strong, .tools-stat-box .val {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--p);
    line-height: 1.2;
}

.gallery-stat span, .tools-stat-box .lbl {
    display: block;
    font-size: 0.78rem;
    color: var(--tm);
    margin-top: 4px;
    font-weight: 500;
}

.gallery-stat.warn strong, .tools-stat-box.warn .val { color: var(--warn); }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.action-card {
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--bd);
    border-radius: 14px;
    background: var(--cbg);
    text-decoration: none;
    color: var(--txt);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    box-shadow: var(--sh);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--p);
    box-shadow: var(--sh-hover);
}

/* Preview pane */
.style-grid {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 440px);
    gap: 1.5rem;
    align-items: start;
}

.style-form-col {
    min-width: 0;
}

.preview-pane {
    position: sticky;
    top: 0;
    height: calc(100vh - 120px);
    border-radius: var(--rad-lg);
    overflow: hidden;
    box-shadow: var(--sh-hover);
    background: var(--cbg);
    border: 1px solid var(--bd);
}

.preview-chrome { background: linear-gradient(180deg, #1e293b, #0f172a); }
.preview-chrome-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; }
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }

.preview-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--bd);
    align-items: center;
}

.preview-device-btns { display: flex; gap: 4px; margin-left: auto; }

.preview-device-btns button {
    padding: 5px 10px;
    border: 1px solid var(--bd);
    background: var(--cbg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.72rem;
    color: var(--tm);
    font-family: inherit;
}

.preview-device-btns button.active {
    background: var(--p);
    color: #fff;
    border-color: var(--p);
}

.preview-iframe-wrap {
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
    padding: 16px;
    height: calc(100% - 96px);
    overflow: auto;
}

.preview-iframe-wrap iframe {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: none;
}

/* Tools, backup, themes */
.backup-hero {
    background: linear-gradient(135deg, var(--p) 0%, #0f766e 50%, #22d3ee 100%);
    color: #fff;
    border: none;
    border-radius: var(--rad-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 16px 40px rgba(14, 116, 144, 0.3);
}

.backup-hero .card-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.backup-hero h2 { margin: 0 0 6px; font-size: 1.35rem; }
.backup-hero p { margin: 0; opacity: 0.92; font-size: 0.95rem; }
.backup-hero .btn { background: #fff; color: var(--p); }

.tools-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 12px 14px;
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--sh);
}

.tools-jump a {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: var(--bg);
    transition: 0.2s;
}

.tools-jump a:hover { color: var(--p); border-color: var(--p); background: var(--pl); }

.tools-section { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.tools-section-title { font-size: 1.2rem; margin: 0 0 1rem; font-weight: 700; }

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.theme-card {
    border: 2px solid var(--bd);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s;
}

.theme-card:hover {
    border-color: var(--p);
    transform: translateY(-3px);
    box-shadow: var(--sh-hover);
}

.theme-preview { height: 72px; width: 100%; }
.theme-name {
    padding: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    background: var(--bg);
}

/* Gallery, masonry, drop zone */
.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--bd);
    box-shadow: var(--sh);
}

.masonry-item img { width: 100%; height: 100%; object-fit: cover; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.photo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--bd);
    background: var(--bg);
    box-shadow: var(--sh);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-hover);
}

.photo-card img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photo-card.pending-ring { box-shadow: 0 0 0 3px var(--warn); }

.drop-zone {
    border: 2px dashed var(--bd);
    padding: 2.5rem;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
    background: rgba(14, 116, 144, 0.03);
}

.drop-zone:hover {
    border-color: var(--p);
    background: var(--pl);
}

/* Notifications inbox */
.inbox-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}

.inbox-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 14px;
    text-align: center;
    min-height: 88px;
}

.inbox-stat--accent {
    border-color: rgba(14, 116, 144, 0.35);
    background: rgba(14, 116, 144, 0.08);
}

.inbox-stat--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.inbox-stat--link:hover {
    border-color: var(--p);
    background: var(--pl);
    transform: translateY(-1px);
}

.inbox-stat-val {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tx);
}

.inbox-stat--accent .inbox-stat-val { color: var(--p); }

.inbox-stat-lbl {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inbox-panel { margin: 0; overflow: hidden; }

.inbox-toolbar {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.inbox-toolbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inbox-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.inbox-inline-form { margin: 0; }

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: min(70vh, 720px);
    overflow-y: auto;
}

.inbox-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--tm);
}

.inbox-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.inbox-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--tx);
}

.inbox-empty p {
    margin: 0 auto;
    max-width: 42ch;
    line-height: 1.55;
}

.settings-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 6px;
}

.settings-status--on {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.settings-status--off {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

body.dark .settings-status--on {
    color: #fecaca;
}

body.dark .settings-status--off {
    color: #a7f3d0;
}

.settings-preview-box p:last-child {
    margin-bottom: 0;
}

.inbox-item--clickable {
    position: relative;
    cursor: pointer;
}

.inbox-item-hitarea {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.inbox-item--clickable:hover {
    background: rgba(16, 185, 129, 0.06);
}

.inbox-view-btn {
    white-space: nowrap;
}

@keyframes notif-glow {
    0%, 100% {
        box-shadow: inset 0 0 0 0 rgba(16, 185, 129, 0);
        background-color: transparent;
    }
    50% {
        box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.45);
        background-color: rgba(16, 185, 129, 0.14);
    }
}

.notif-highlight {
    animation: notif-glow 2.1s ease-in-out 3;
}

tr.notif-highlight td {
    background-color: rgba(16, 185, 129, 0.08);
}

@keyframes notif-photo-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 4px rgba(16, 185, 129, 0.55),
            0 10px 28px rgba(16, 185, 129, 0.28);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 0 7px rgba(16, 185, 129, 0.85),
            0 16px 36px rgba(16, 185, 129, 0.45);
    }
}

@keyframes notif-badge-pop {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 1; }
}

.photo-card.notif-highlight {
    z-index: 3;
    border-color: rgba(16, 185, 129, 0.7);
    animation: notif-photo-pulse 1.35s ease-in-out 5;
}

.photo-card.pending-ring.notif-highlight {
    box-shadow: none;
}

.notif-highlight-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.55);
    animation: notif-badge-pop 1.35s ease-in-out 5;
    pointer-events: none;
}

body.dark tr.notif-highlight td {
    background-color: rgba(16, 185, 129, 0.12);
}

body.dark .photo-card.notif-highlight {
    border-color: rgba(52, 211, 153, 0.8);
}

body.dark .notif-highlight-badge {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 3px 14px rgba(52, 211, 153, 0.5);
}

.inbox-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bd);
    transition: background 0.2s;
}

.inbox-item:last-child { border-bottom: none; }

.inbox-item.is-unread {
    background: rgba(14, 116, 144, 0.07);
    border-left: 3px solid var(--p);
    padding-left: calc(1.25rem - 3px);
}

.inbox-item.is-read {
    background: transparent;
    opacity: 0.88;
}

.inbox-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--bd);
}

.inbox-item-icon--rsvp { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
.inbox-item-icon--photos { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.inbox-item-icon--guestbook { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.inbox-item-icon--general { background: rgba(14, 116, 144, 0.1); border-color: rgba(14, 116, 144, 0.2); }

.inbox-item-body { min-width: 0; }

.inbox-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.inbox-item-type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p);
}

.inbox-item-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(14, 116, 144, 0.15);
    color: var(--p);
}

.inbox-item-badge--muted {
    background: rgba(100, 116, 139, 0.12);
    color: var(--tm);
}

.inbox-item-message {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--tx);
}

.inbox-item-message strong { color: var(--tx); font-weight: 800; }

.inbox-item-secondary {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--tm);
}

.inbox-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--tm);
}

.inbox-item-meta-sep { opacity: 0.5; }

.inbox-item-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    flex-shrink: 0;
}

.inbox-delete-btn { min-width: 38px; }

.tools-stat-link:hover .lbl { color: var(--p); }

@media (max-width: 640px) {
    .inbox-item {
        grid-template-columns: auto 1fr;
    }
    .inbox-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
    .inbox-toolbar-actions {
        margin-left: 0;
        width: 100%;
    }
}

/* Legacy notification rows (tools fallback) */
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 1.25rem;
    border-bottom: 1px solid var(--bd);
}

.notif-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 1.25rem;
    border-bottom: 1px solid var(--bd);
}

.notif-row.unread { background: rgba(14, 116, 144, 0.06); }
.notif-row.read { opacity: 0.7; }
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p);
    flex-shrink: 0;
    margin-top: 8px;
}

.notif-msg { font-weight: 600; margin-bottom: 4px; }

/* Flyer */
.flyer-export-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.flyer-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.flyer-export-bar .flyer-print-lang-label {
    margin: 0;
}

.flyer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 1.75rem;
    align-items: start;
}

.flyer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.flyer-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.flyer-style-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 10px 10px;
    border: 2px solid var(--bd);
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    background: var(--card);
}

.flyer-style-card:hover {
    border-color: rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.45);
    transform: translateY(-1px);
}

.flyer-style-card.is-selected {
    border-color: var(--flyer-accent, #0e7490);
    box-shadow: 0 0 0 3px rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.14);
}

.flyer-style-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.flyer-style-swatch {
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.flyer-style-swatch.classic {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--flyer-accent, #0e7490);
}

.flyer-style-swatch.minimal {
    background: linear-gradient(90deg, var(--flyer-accent, #0e7490) 0 4px, #fff 4px);
}

.flyer-style-swatch.festive {
    background: linear-gradient(180deg, #fff 40%, rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.12));
    border-top: 4px solid var(--flyer-accent, #0e7490);
}

.flyer-style-swatch.elegant {
    background: linear-gradient(165deg, #faf8f5, #fff);
    box-shadow: inset 0 0 0 1px rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.35);
    border-radius: 2px;
}

.flyer-style-swatch.dark {
    background: linear-gradient(165deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flyer-style-swatch.match_site {
    background: linear-gradient(135deg, var(--p) 50%, #10b981 50%);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.flyer-style-card--action {
    cursor: pointer;
    border: 1px dashed var(--bd);
    background: rgba(14, 116, 144, 0.03);
    font: inherit;
    text-align: left;
    width: 100%;
}

.flyer-style-card--action:hover {
    border-color: var(--p);
    background: rgba(14, 116, 144, 0.07);
}

.flyer-theme-actions {
    margin: 0 0 1rem;
}

.flyer-capture-ring-grad {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    z-index: 0;
}

.flyer-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.flyer-color-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.flyer-color-field input[type="color"] {
    width: 100%;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--card);
}

.flyer-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.flyer-url-row input[type="url"] {
    flex: 1;
    min-width: 0;
}

.flyer-font-grid,
.flyer-frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.flyer-font-opt,
.flyer-frame-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 0.78rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.flyer-font-opt:hover,
.flyer-frame-opt:hover {
    border-color: rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.45);
}

.flyer-font-opt.is-selected,
.flyer-frame-opt.is-selected {
    border-color: var(--flyer-accent, #0e7490);
    box-shadow: 0 0 0 3px rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.14);
}

.flyer-font-opt input,
.flyer-frame-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.flyer-font-preview {
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--text);
}

.flyer-font-preview.font-classic { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; }
.flyer-font-preview.font-modern { font-family: 'Outfit', system-ui, sans-serif; font-weight: 700; }
.flyer-font-preview.font-script { font-family: 'Great Vibes', cursive; font-size: 1.35rem; }
.flyer-font-preview.font-bold { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }

.flyer-frame-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    position: relative;
}

.flyer-frame-swatch.frame-ring {
    box-shadow: 0 0 0 3px var(--flyer-accent, #0e7490), inset 0 0 0 6px #fff;
}

.flyer-frame-swatch.frame-solid {
    box-shadow: inset 0 0 0 3px var(--flyer-accent, #0e7490);
}

.flyer-frame-swatch.frame-minimal {
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.flyer-frame-swatch.frame-none {
    box-shadow: none;
    border: 1px dashed #e2e8f0;
}

.flyer-style-desc {
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--tm);
    line-height: 1.35;
}

.flyer-accent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flyer-accent-row input[type="color"] {
    height: 44px;
    width: 72px;
    padding: 4px;
    border-radius: 10px;
    cursor: pointer;
}

.flyer-preview-wrap {
    position: sticky;
    top: 20px;
    background: linear-gradient(165deg, var(--bg) 0%, rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.06) 100%);
    border: 1px solid var(--bd);
    border-radius: var(--rad-lg);
    padding: 1.35rem;
}

.flyer-preview-label {
    font-weight: 600;
    color: var(--tm);
    margin: 0 0 14px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.flyer-preview-stage {
    padding: 1.25rem 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.08), transparent 55%),
        repeating-linear-gradient(
            -12deg,
            rgba(15, 23, 42, 0.015) 0,
            rgba(15, 23, 42, 0.015) 1px,
            transparent 1px,
            transparent 12px
        );
    border-radius: 14px;
}

.flyer-canvas {
    --flyer-accent: #0e7490;
    --flyer-accent-rgb: 14, 116, 144;
    --flyer-bg: #ffffff;
    --flyer-text: #0f172a;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    background: var(--flyer-bg);
    color: var(--flyer-text);
    text-align: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.flyer-canvas.font-classic .flyer-title { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; }
.flyer-canvas.font-modern { font-family: 'Inter', system-ui, sans-serif; }
.flyer-canvas.font-modern .flyer-title { font-family: 'Outfit', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.flyer-canvas.font-script { font-family: 'Lato', system-ui, sans-serif; }
.flyer-canvas.font-script .flyer-title { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: clamp(2rem, 6vw, 2.6rem); }
.flyer-canvas.font-bold { font-family: 'Source Sans 3', system-ui, sans-serif; }
.flyer-canvas.font-bold .flyer-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }

.flyer-canvas.use-site-fonts .flyer-title {
    font-family: var(--flyer-title-font, inherit) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
}

.flyer-canvas.use-site-fonts .flyer-eyebrow,
.flyer-canvas.use-site-fonts .flyer-subtitle {
    font-family: var(--flyer-body-font, inherit);
}

.flyer-canvas.use-site-fonts.font-bold .flyer-title {
    text-transform: none;
    letter-spacing: -0.01em;
}

.flyer-canvas.use-site-fonts.font-script .flyer-title {
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
}

#flyer-live,
#flyer-print-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.flyer-canvas-inner {
    position: relative;
    z-index: 1;
    padding: 2.4rem 2rem 2rem;
    text-align: center;
}

.flyer-canvas.classic {
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.35);
    outline: 3px double rgba(var(--flyer-accent-rgb), 0.55);
    outline-offset: -10px;
}

.flyer-canvas.classic .flyer-deco-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--flyer-accent);
    border-style: solid;
    opacity: 0.75;
    z-index: 2;
    pointer-events: none;
}

.flyer-canvas.classic .flyer-deco-corner.tl { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.flyer-canvas.classic .flyer-deco-corner.tr { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.flyer-canvas.classic .flyer-deco-corner.bl { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }
.flyer-canvas.classic .flyer-deco-corner.br { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }

.flyer-canvas.minimal {
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.flyer-canvas.minimal::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--flyer-accent), rgba(var(--flyer-accent-rgb), 0.35));
}

.flyer-canvas.minimal .flyer-canvas-inner {
    padding: 2.4rem 2rem 2rem;
}

.flyer-canvas.minimal .flyer-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--flyer-accent);
    margin: 14px auto 0;
    border-radius: 999px;
}

.flyer-canvas.festive {
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--flyer-accent-rgb), 0.14) 0 6px, transparent 7px),
        radial-gradient(circle at 88% 22%, rgba(236, 72, 153, 0.18) 0 5px, transparent 6px),
        radial-gradient(circle at 78% 82%, rgba(var(--flyer-accent-rgb), 0.12) 0 7px, transparent 8px),
        radial-gradient(circle at 20% 78%, rgba(251, 191, 36, 0.2) 0 4px, transparent 5px),
        linear-gradient(180deg, var(--flyer-bg) 0%, rgba(var(--flyer-accent-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.25);
}

.flyer-canvas.festive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(
        90deg,
        var(--flyer-accent),
        #ec4899 45%,
        #fbbf24 70%,
        var(--flyer-accent)
    );
    z-index: 2;
}

.flyer-canvas.elegant {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--flyer-accent-rgb), 0.06), transparent 55%),
        var(--flyer-bg);
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.28);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    border-radius: 8px;
}

.flyer-canvas.elegant .flyer-deco-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--flyer-accent);
    border-style: solid;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

.flyer-canvas.elegant .flyer-deco-corner.tl { top: 20px; left: 20px; border-width: 1px 0 0 1px; border-radius: 4px 0 0 0; }
.flyer-canvas.elegant .flyer-deco-corner.tr { top: 20px; right: 20px; border-width: 1px 1px 0 0; border-radius: 0 4px 0 0; }
.flyer-canvas.elegant .flyer-deco-corner.bl { bottom: 20px; left: 20px; border-width: 0 0 1px 1px; border-radius: 0 0 0 4px; }
.flyer-canvas.elegant .flyer-deco-corner.br { bottom: 20px; right: 20px; border-width: 0 1px 1px 0; border-radius: 0 0 4px 0; }

.flyer-canvas.elegant .flyer-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.flyer-canvas.dark {
    background: var(--flyer-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.flyer-canvas.dark .flyer-title,
.flyer-canvas.dark .flyer-body-text {
    color: var(--flyer-text);
}

.flyer-canvas.dark .flyer-body-text {
    color: var(--flyer-body-color, var(--flyer-text));
}

.flyer-canvas.dark .flyer-url-hint {
    color: rgba(255, 255, 255, 0.45);
}

.flyer-header {
    margin-bottom: 1.35rem;
}

.flyer-logo {
    margin-bottom: 1.1rem;
    line-height: 0;
}

.flyer-logo img {
    max-height: 88px;
    max-width: 240px;
    object-fit: contain;
}

.flyer-eyebrow {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--flyer-accent);
}

.flyer-title {
    font-size: clamp(1.45rem, 4.5vw, 1.85rem);
    font-weight: 700;
    margin: 0;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    color: var(--flyer-text);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.flyer-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.25rem auto 1.35rem;
}

.flyer-scan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--flyer-accent);
    background: rgba(var(--flyer-accent-rgb), 0.1);
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.22);
}

.flyer-scan-badge svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.flyer-qr-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--flyer-accent), rgba(var(--flyer-accent-rgb), 0.45));
    box-shadow: 0 14px 36px rgba(var(--flyer-accent-rgb), 0.22);
    line-height: 0;
    margin: 0 auto;
}

.flyer-qr-ring.frame-solid {
    background: var(--flyer-accent);
    box-shadow: 0 8px 24px rgba(var(--flyer-accent-rgb), 0.2);
}

.flyer-qr-ring.frame-minimal {
    background: transparent;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    padding: 2px;
}

.flyer-qr-ring.frame-none {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.flyer-qr-ring.frame-none .flyer-qr-inner {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.flyer-qr-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border-radius: 19px;
    line-height: 0;
}

.flyer-qr-ring canvas {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
    margin: 0;
    flex-shrink: 0;
}

.flyer-body-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--flyer-body-color, var(--flyer-text));
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

.flyer-body-text.body-size-sm { font-size: 0.88rem; line-height: 1.65; }
.flyer-body-text.body-size-md { font-size: 1.02rem; line-height: 1.7; }
.flyer-body-text.body-size-lg { font-size: 1.2rem; line-height: 1.75; }

.flyer-body-text.body-align-left { text-align: left; margin-left: 0; margin-right: auto; }
.flyer-body-text.body-align-center { text-align: center; margin-left: auto; margin-right: auto; }
.flyer-body-text.body-align-right { text-align: right; margin-left: auto; margin-right: 0; }

.flyer-body-text.body-weight-normal { font-weight: 400; }
.flyer-body-text.body-weight-medium { font-weight: 500; }
.flyer-body-text.body-weight-bold { font-weight: 700; }

.flyer-body-text.body-italic { font-style: italic; }

.flyer-body-text.body-font-classic { font-family: 'DM Sans', system-ui, sans-serif; }
.flyer-body-text.body-font-modern { font-family: 'Inter', system-ui, sans-serif; }
.flyer-body-text.body-font-script { font-family: 'Great Vibes', cursive; font-size: 1.35em; line-height: 1.5; }
.flyer-body-text.body-font-bold { font-family: 'Source Sans 3', system-ui, sans-serif; letter-spacing: 0.01em; }

.flyer-body-style-panel {
    margin: 16px 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.04);
}

.flyer-body-style-title {
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 0.92rem;
}

.flyer-body-style-sub {
    display: block;
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.flyer-body-style-sub:not(:first-of-type) {
    margin-top: 14px;
}

.flyer-chip-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.flyer-chip-row-wrap {
    flex-wrap: wrap;
}

.flyer-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
    background: var(--card);
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    user-select: none;
}

.flyer-chip:hover {
    border-color: rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.45);
}

.flyer-chip.is-selected {
    border-color: var(--flyer-accent, #0e7490);
    box-shadow: 0 0 0 3px rgba(var(--flyer-accent-rgb, 14, 116, 144), 0.14);
    font-weight: 600;
}

.flyer-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flyer-footer {
    margin-top: 1.5rem;
}

.flyer-divider {
    width: 64px;
    height: 1px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, rgba(var(--flyer-accent-rgb), 0.55), transparent);
}

.flyer-url-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    word-break: break-all;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.45;
}

#flyer-print-only .flyer-canvas,
.admin-print-flyer-root .flyer-canvas,
.print-preview-content .flyer-canvas {
    width: 210mm;
    max-width: 210mm;
    min-height: 297mm;
    height: 297mm;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#flyer-print-only {
    display: none;
}

.flyer-print-root[hidden] {
    display: none !important;
}

body.flyer-pdf-capturing #flyer-print-only {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 2147483645 !important;
    overflow: visible !important;
    background: #fff !important;
    transform: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.flyer-pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text, #0f172a);
    font-weight: 600;
    font-size: 1rem;
}

.flyer-pdf-overlay[hidden] {
    display: none !important;
}

.flyer-pdf-overlay p {
    margin: 0;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* PDF-export: pseudo-elementen vervangen door echte DOM-decoraties */
.flyer-canvas.flyer-capture-flat {
    position: relative;
    overflow: hidden;
}

.flyer-canvas.flyer-capture-flat::before,
.flyer-canvas.flyer-capture-flat::after {
    display: none !important;
    content: none !important;
}

.flyer-canvas.flyer-capture-flat.festive {
    background: var(--flyer-bg) !important;
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.25) !important;
}

.flyer-capture-festive-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    display: flex;
    z-index: 4;
    pointer-events: none;
}

.flyer-capture-festive-bar span {
    flex: 1;
    height: 100%;
}

.flyer-capture-festive-bar .festive-a { background: var(--flyer-accent); }
.flyer-capture-festive-bar .festive-b { background: #ec4899; }
.flyer-capture-festive-bar .festive-c { background: #fbbf24; }
.flyer-capture-festive-bar .festive-d { background: var(--flyer-accent); }

.flyer-capture-festive-wash {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: rgba(var(--flyer-accent-rgb), 0.06);
    z-index: 0;
    pointer-events: none;
}

.flyer-capture-confetti {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.flyer-capture-confetti.c1 {
    top: 18%;
    left: 12%;
    width: 12px;
    height: 12px;
    background: rgba(var(--flyer-accent-rgb), 0.35);
}

.flyer-capture-confetti.c2 {
    top: 22%;
    right: 12%;
    width: 10px;
    height: 10px;
    background: rgba(236, 72, 153, 0.45);
}

.flyer-capture-confetti.c3 {
    bottom: 18%;
    right: 22%;
    width: 14px;
    height: 14px;
    background: rgba(var(--flyer-accent-rgb), 0.3);
}

.flyer-capture-confetti.c4 {
    bottom: 22%;
    left: 20%;
    width: 8px;
    height: 8px;
    background: rgba(251, 191, 36, 0.55);
}

.flyer-capture-minimal-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--flyer-accent);
    z-index: 2;
    pointer-events: none;
}

.flyer-capture-title-rule {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--flyer-accent);
    margin: 14px auto 0;
    border-radius: 999px;
}

.flyer-capture-elegant-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38%;
    background: rgba(var(--flyer-accent-rgb), 0.07);
    z-index: 0;
    pointer-events: none;
}

.flyer-canvas.flyer-capture-flat.elegant {
    background: var(--flyer-bg) !important;
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.28) !important;
    border-radius: 8px !important;
}

.flyer-canvas.flyer-capture-flat.dark {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.flyer-canvas.flyer-capture-flat.classic {
    outline-offset: -8mm;
}

.flyer-canvas.flyer-capture-flat .flyer-qr-ring.frame-ring {
    background: var(--flyer-accent) !important;
    box-shadow: 0 8px 24px rgba(var(--flyer-accent-rgb), 0.2) !important;
}

.flyer-canvas.flyer-capture-flat .flyer-qr-ring.frame-ring:has(.flyer-capture-ring-grad) {
    background: transparent !important;
    box-shadow: 0 14px 36px rgba(var(--flyer-accent-rgb), 0.22) !important;
}

.flyer-canvas.flyer-capture-flat .flyer-qr-ring.frame-minimal {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.flyer-canvas.flyer-capture-flat .flyer-qr-ring.frame-none {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.flyer-canvas.flyer-capture-flat .flyer-divider {
    background: rgba(var(--flyer-accent-rgb), 0.4) !important;
}

.flyer-canvas.flyer-capture-flat .flyer-scan-badge {
    background: rgba(var(--flyer-accent-rgb), 0.12) !important;
    border: 1px solid rgba(var(--flyer-accent-rgb), 0.22) !important;
}

.flyer-canvas.flyer-capture-flat .flyer-canvas-inner {
    position: relative;
    z-index: 2;
}

.flyer-canvas.flyer-capture-flat .flyer-deco-corner {
    z-index: 3;
}

#flyer-print-only #flyer-print-inner,
.admin-print-flyer-root {
    width: 210mm;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

#flyer-print-only .flyer-canvas-inner,
.admin-print-flyer-root .flyer-canvas-inner,
.print-preview-content .flyer-canvas-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 14mm 16mm 12mm;
    box-sizing: border-box;
    min-height: 0;
    width: 100%;
}

#flyer-print-only .flyer-header,
.admin-print-flyer-root .flyer-header,
.print-preview-content .flyer-header {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 100%;
}

#flyer-print-only .flyer-logo img,
.admin-print-flyer-root .flyer-logo img,
.print-preview-content .flyer-logo img {
    max-height: 42mm;
    max-width: 130mm;
}

#flyer-print-only .flyer-eyebrow,
.admin-print-flyer-root .flyer-eyebrow,
.print-preview-content .flyer-eyebrow {
    font-size: 1rem;
    letter-spacing: 0.18em;
    margin-bottom: 4mm;
}

#flyer-print-only .flyer-title,
.admin-print-flyer-root .flyer-title,
.print-preview-content .flyer-title {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    line-height: 1.1;
}

#flyer-print-only .flyer-qr-block,
.admin-print-flyer-root .flyer-qr-block,
.print-preview-content .flyer-qr-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2mm 0;
    min-height: 0;
}

#flyer-print-only .flyer-scan-badge,
.admin-print-flyer-root .flyer-scan-badge,
.print-preview-content .flyer-scan-badge {
    font-size: 0.92rem;
    padding: 8px 18px;
    margin-bottom: 5mm;
}

#flyer-print-only .flyer-qr-ring,
.admin-print-flyer-root .flyer-qr-ring,
.print-preview-content .flyer-qr-ring {
    padding: 1.5mm;
    border-radius: 7mm;
}

#flyer-print-only .flyer-qr-inner,
.admin-print-flyer-root .flyer-qr-inner,
.print-preview-content .flyer-qr-inner {
    padding: 4mm;
    border-radius: 6mm;
}

#flyer-print-only .flyer-qr-ring canvas,
#flyer-print-only .flyer-qr-ring .flyer-qr-print-img,
#flyer-print-only .flyer-qr-ring .flyer-qr-print-canvas,
.admin-print-flyer-root .flyer-qr-ring canvas,
.admin-print-flyer-root .flyer-qr-ring .flyer-qr-print-canvas,
.print-preview-content .flyer-qr-ring canvas,
.print-preview-content .flyer-qr-ring .flyer-qr-print-canvas {
    width: 92mm !important;
    height: 92mm !important;
    max-width: 92mm;
    margin: 0;
    display: block;
    image-rendering: crisp-edges;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

#flyer-print-only .flyer-body-text,
.admin-print-flyer-root .flyer-body-text,
.print-preview-content .flyer-body-text {
    font-size: 1.3rem;
    line-height: 1.65;
    max-width: 175mm;
    flex-shrink: 0;
    width: 100%;
}

#flyer-print-only .flyer-footer,
.admin-print-flyer-root .flyer-footer,
.print-preview-content .flyer-footer {
    margin-top: 0;
    flex-shrink: 0;
    width: 100%;
}

#flyer-print-only .flyer-url-hint,
.admin-print-flyer-root .flyer-url-hint,
.print-preview-content .flyer-url-hint {
    font-size: 0.82rem;
    max-width: 175mm;
}

#flyer-print-only .flyer-canvas.classic .flyer-deco-corner,
.admin-print-flyer-root .flyer-canvas.classic .flyer-deco-corner,
.print-preview-content .flyer-canvas.classic .flyer-deco-corner {
    width: 36px;
    height: 36px;
}

#flyer-print-only .flyer-canvas.classic .flyer-deco-corner.tl,
.admin-print-flyer-root .flyer-canvas.classic .flyer-deco-corner.tl,
.print-preview-content .flyer-canvas.classic .flyer-deco-corner.tl { top: 14mm; left: 14mm; }
#flyer-print-only .flyer-canvas.classic .flyer-deco-corner.tr,
.admin-print-flyer-root .flyer-canvas.classic .flyer-deco-corner.tr,
.print-preview-content .flyer-canvas.classic .flyer-deco-corner.tr { top: 14mm; right: 14mm; }
#flyer-print-only .flyer-canvas.classic .flyer-deco-corner.bl,
.admin-print-flyer-root .flyer-canvas.classic .flyer-deco-corner.bl,
.print-preview-content .flyer-canvas.classic .flyer-deco-corner.bl { bottom: 14mm; left: 14mm; }
#flyer-print-only .flyer-canvas.classic .flyer-deco-corner.br,
.admin-print-flyer-root .flyer-canvas.classic .flyer-deco-corner.br,
.print-preview-content .flyer-canvas.classic .flyer-deco-corner.br { bottom: 14mm; right: 14mm; }

#flyer-print-only .flyer-canvas.classic,
.admin-print-flyer-root .flyer-canvas.classic,
.print-preview-content .flyer-canvas.classic {
    outline-offset: -8mm;
}

#flyer-print-only .flyer-canvas.elegant .flyer-deco-corner,
.admin-print-flyer-root .flyer-canvas.elegant .flyer-deco-corner,
.print-preview-content .flyer-canvas.elegant .flyer-deco-corner {
    width: 30px;
    height: 30px;
}

#flyer-print-only .flyer-canvas.festive::before,
.admin-print-flyer-root .flyer-canvas.festive::before,
.print-preview-content .flyer-canvas.festive::before {
    height: 5mm;
}

.flyer-print-page {
    width: 210mm;
    height: 297mm;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    padding: 0;
    box-sizing: border-box;
}

.print-preview-sheet.a4:has(.admin-print-flyer-root) .print-preview-content {
    padding: 0;
    min-height: 297mm;
}

.print-preview-sheet.a4:has(.admin-print-flyer-root) .print-preview-margin {
    display: none;
}

@media print {
    @page flyer-a4 {
        size: A4 portrait;
        margin: 0;
    }

    #flyer-print-only .flyer-canvas,
    .admin-print-flyer-root .flyer-canvas {
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.flyer-printing .flyer-print-page {
        page: flyer-a4;
        width: 210mm;
        height: 297mm;
    }

    body.flyer-printing .flyer-print-page:last-child {
        page-break-after: avoid;
        break-after: avoid;
    }
}

.admin-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.94);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-lightbox.open { display: flex; }
.admin-lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 12px; }
.admin-lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Login (standalone) */
.admin-login-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(14, 116, 144, 0.16), transparent 58%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(15, 118, 110, 0.08), transparent 50%),
        linear-gradient(165deg, #e8eef3 0%, var(--bg) 45%, #eef6f8 100%);
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.35rem 2.1rem;
    border-radius: 20px;
    box-shadow: 0 28px 56px rgba(11, 20, 32, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p), #22d3ee, var(--pd));
}

.admin-login-card .login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(145deg, var(--pl), #cffafe);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    border: 1px solid rgba(14, 116, 144, 0.12);
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.12);
    position: relative;
}

.admin-login-card .login-icon::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--p);
    border-radius: 6px;
    transform: rotate(12deg);
    box-shadow: 4px 4px 0 rgba(14, 116, 144, 0.25);
}

.admin-login-card h2 { margin: 0 0 6px; font-size: 1.5rem; letter-spacing: -0.02em; }
.admin-login-card .login-sub { color: var(--tm); margin-bottom: 1.5rem; font-size: 0.95rem; }

.login-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--dang);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: left;
}

.admin-login-card form { text-align: left; }
.admin-login-card .btn-p { width: 100%; margin-top: 0.5rem; padding: 0.85rem; }

/* Dashboard (kept for dashboard.php) */
.dash-hero {
    background: linear-gradient(135deg, #0e7490 0%, #0f766e 48%, #155e75 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 18px 40px rgba(14, 116, 144, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.dash-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,255,255,0.14), transparent 55%);
    pointer-events: none;
}

.dash-hero h1 { margin: 0; font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; }
.dash-hero .dash-greet { margin: 0.25rem 0 0; opacity: 0.92; font-size: 0.95rem; }
.dash-hero .dash-couple { font-weight: 600; }

.dash-hero-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 1rem 1.35rem;
    text-align: center;
    min-width: 120px;
}

.dash-hero-pill .num { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.dash-hero-pill .lbl { font-size: 0.78rem; opacity: 0.9; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

.dash-alerts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }

.dash-alert {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--bd);
    background: var(--cbg);
    transition: 0.2s;
    box-shadow: var(--sh);
}

.dash-alert:hover { border-color: var(--p); box-shadow: var(--sh-hover); transform: translateY(-2px); }
.dash-alert.warn { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.dash-alert.info { border-color: rgba(14, 116, 144, 0.35); background: rgba(14, 116, 144, 0.06); }
.dash-alert-icon { font-size: 1.5rem; flex-shrink: 0; }
.dash-alert strong { display: block; font-size: 0.92rem; }
.dash-alert span { font-size: 0.82rem; color: var(--tm); }

.dash-top { display: grid; grid-template-columns: 1fr 280px; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .dash-top { grid-template-columns: 1fr; } }

.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }

.dash-stat {
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 1.1rem 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh);
}

.dash-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--p);
}

.dash-stat.suc::before { background: var(--suc); }
.dash-stat.dang::before { background: var(--dang); }
.dash-stat.warn::before { background: var(--warn); }
.dash-stat .ico { font-size: 1.35rem; margin-bottom: 6px; }
.dash-stat .val { font-size: 1.85rem; font-weight: 800; line-height: 1.1; }
.dash-stat .lbl { font-size: 0.8rem; color: var(--tm); margin-top: 4px; font-weight: 500; }
.dash-stat .sub { font-size: 0.75rem; color: var(--tm); margin-top: 2px; }

.dash-chart-card {
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--sh);
}

.dash-chart-card h3 { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--tm); font-weight: 600; width: 100%; text-align: center; }
.dash-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.dash-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.dash-chart-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dash-chart-center .big { font-size: 1.75rem; font-weight: 800; color: var(--p); line-height: 1; }
.dash-chart-center .small { font-size: 0.72rem; color: var(--tm); text-transform: uppercase; letter-spacing: 0.05em; }

.dash-chart-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 0.82rem; }
.dash-chart-legend span { display: flex; align-items: center; gap: 6px; color: var(--tm); }
.dash-chart-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.dash-actions { margin-bottom: 1.5rem; }
.dash-actions h2 { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; color: var(--tm); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

.dash-action {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 14px;
    text-decoration: none;
    color: var(--txt);
    transition: 0.2s;
    box-shadow: var(--sh);
}

.dash-action:hover { border-color: var(--p); box-shadow: var(--sh-hover); transform: translateY(-3px); }
.dash-action .ico { font-size: 1.5rem; line-height: 1; }
.dash-action strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.dash-action em { font-style: normal; font-size: 0.78rem; color: var(--tm); }

.dash-panels { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1100px) { .dash-panels { grid-template-columns: 1fr 400px; align-items: start; } }

.dash-panel {
    background: var(--cbg);
    border: 1px solid var(--bd);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sh);
}

.dash-panel-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bd);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.04), transparent);
}

.dash-panel-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dash-panel-head .badge-count { background: var(--p); color: #fff; font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.dash-panel-head .badge-count.warn { background: var(--warn); }
.dash-panel-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-panel-tools input[type="text"] { width: 160px; padding: 6px 10px; margin: 0; font-size: 0.88rem; }

.dash-table-wrap { overflow-x: auto; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr.row-pending td { background: rgba(245, 158, 11, 0.06); }

.dash-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pl);
    color: var(--p);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-name-cell { display: flex; align-items: center; gap: 10px; }
.dash-msg-preview { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tm); }

.dash-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.dash-pill.ok { background: rgba(16, 185, 129, 0.15); color: var(--suc); }
.dash-pill.no { background: rgba(239, 68, 68, 0.12); color: var(--dang); }
.dash-pill.wait { background: rgba(245, 158, 11, 0.15); color: #b45309; }

.dash-empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--tm); }
.dash-empty .ico { font-size: 2.5rem; margin-bottom: 8px; opacity: 0.5; }

.dash-pagination {
    padding: 12px 1.25rem;
    border-top: 1px solid var(--bd);
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dash-form-panel {
    border: 1px solid var(--bd);
    border-radius: 16px;
    background: var(--cbg);
    overflow: hidden;
    margin-top: 1.25rem;
    box-shadow: var(--sh);
}

.dash-form-panel summary {
    padding: 1rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dash-form-panel summary::-webkit-details-marker { display: none; }
.dash-form-panel[open] summary { border-bottom: 1px solid var(--bd); background: rgba(14, 116, 144, 0.06); }
.dash-meta-icons { display: flex; gap: 6px; font-size: 1.1rem; }
.dash-row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* Gallery overlays */
.check-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.masonry-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-card:hover .masonry-actions,
.photo-card:focus-within .masonry-actions { opacity: 1; }

/* Sticky save bar (forms) */
.save-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.25rem;
}

/* Preview device sizes */
.preview-iframe-wrap.device-mobile iframe {
    width: 375px;
    max-width: 100%;
}

.preview-iframe-wrap.device-tablet iframe {
    width: 768px;
    max-width: 100%;
}

/* Sidebar backdrop (mobile menu) */
.sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    -webkit-tap-highlight-color: transparent;
}

.sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-backdrop,
    .sidebar {
        transition-duration: 0.01ms !important;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .style-grid { grid-template-columns: 1fr; }
    .flyer-layout { grid-template-columns: 1fr; }
    .flyer-preview-wrap { position: static; }
    .flyer-form-grid { grid-template-columns: 1fr; }
    .flyer-style-grid { grid-template-columns: 1fr; }

    .preview-pane {
        position: static;
        height: auto;
        order: -1;
        margin-bottom: 1.25rem;
    }

    .preview-iframe-wrap {
        height: auto;
        min-height: 280px;
        max-height: min(70vh, 640px);
    }

    .preview-iframe-wrap iframe {
        min-height: 260px;
        height: min(60vh, 560px);
    }
}

@media (max-width: 768px) {
    body.admin-nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(268px, 88vw);
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: none;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        overscroll-behavior: contain;
    }

    .sidebar.open {
        transform: translate3d(0, 0, 0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
    }

    .header {
        height: auto;
        min-height: 64px;
        padding: 0.75rem 1rem;
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
        gap: 10px;
    }
    .header-user {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-actions {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
    .header-actions .admin-lang-label {
        display: none;
    }
    .header-actions .header-logout-btn {
        background: var(--dang);
        color: #fff;
        border: 1px solid var(--dang);
        font-weight: 700;
        min-height: 40px;
        white-space: nowrap;
        box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
    }
    .header-actions .header-logout-btn:hover {
        background: #dc2626;
        border-color: #dc2626;
        color: #fff;
    }
    .content {
        padding: 1rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }

    .dash-form-panel { margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
    .dash-pagination { padding-bottom: 0.5rem; }
    .dash-hero { padding: 1.25rem 1rem; }
    .dash-hero h1 { font-size: 1.4rem; }
    .dash-panel-tools { width: 100%; }
    .dash-panel-tools form { flex: 1; min-width: 0; }
    .dash-panel-tools input[type="text"] { width: 100%; max-width: none; }
    .dash-table-wrap {
        margin: 0 -0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .dash-table { min-width: 520px; }
    .mob-btn { display: flex !important; align-items: center; justify-content: center; }
    .masonry { grid-template-columns: 1fr 1fr; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .page-header { flex-direction: column; }
    .page-header form { width: 100%; }
    .page-header form .btn { width: 100%; }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-head > div:last-child:not(:only-child) {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .form-grid { grid-template-columns: 1fr; }

    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .setting-row .switch { align-self: flex-end; }

    .preview-toolbar {
        gap: 8px;
    }

    .preview-toolbar > strong {
        width: 100%;
        font-size: 0.82rem !important;
    }

    .preview-device-btns {
        margin-left: 0;
        flex: 1;
        flex-wrap: wrap;
    }

    .preview-chrome-bar .preview-url { font-size: 0.65rem; }

    .tools-jump {
        position: static;
        gap: 6px;
        padding: 10px;
    }

    .tools-jump a { font-size: 0.78rem; padding: 5px 10px; }

    .save-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        margin: 0;
        padding: 12px 1rem calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--gl);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--bd);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    }

    .save-bar .btn-p,
    .save-bar .btn-g { flex: 1; min-width: 0; justify-content: center; }

    .content:has(.save-bar) {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        max-width: none;
    }

    body:has(.save-bar) .toast {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .masonry-actions { opacity: 1; }

    .content .card-body div[style*="grid-template-columns"],
    .content form div[style*="grid-template-columns"]:not(.stats-grid):not(.quick-actions):not(.gallery-stats):not(.theme-grid):not(.photo-grid):not(.masonry):not(.dash-stats):not(.dash-action-grid):not(.tools-stat-grid):not(.style-grid) {
        grid-template-columns: 1fr !important;
    }

    .sidebar-footer.mobile-hidden { display: block; }
}

@media (max-width: 768px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .header { padding: 0.65rem 0.85rem; gap: 8px; }
    .header-user { display: none; }
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }
    .header-actions { gap: 6px; }
    .grid-4 { grid-template-columns: 1fr; }
    .row-action-label { display: inline; }
    .header-actions .btn-sm:not(.header-logout-btn) { padding: 0.4rem 0.55rem; font-size: 0.8rem; }
    .header-actions .header-logout-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.84rem;
    }
    .page-title { font-size: 1.35rem; }
    .preview-links { gap: 6px; }
    .preview-link { font-size: 0.78rem; padding: 6px 12px; }
    .tabs { gap: 4px; padding: 4px; }
    .tab { padding: 8px 12px; font-size: 0.82rem; flex: 1 1 auto; text-align: center; min-width: 0; }
    .masonry { grid-template-columns: 1fr; }
    .gallery-stats, .tools-stat-grid { grid-template-columns: 1fr 1fr; }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .drop-zone { padding: 1.5rem 1rem; }
}

@media (max-width: 768px) and (min-width: 481px) {
    .content .card-body div[style*="repeat(4"],
    .content form div[style*="repeat(4"]:not(.style-grid) {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Details-pagina sectiebeheer */
.section-builder {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-builder-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--cbg);
    color: var(--txt);
}

.section-builder-row[data-enabled="0"] {
    opacity: 0.72;
    background: var(--bg);
}

.section-builder-main {
    flex: 1 1 200px;
    min-width: 0;
}

.section-builder-main strong {
    display: block;
    margin-bottom: 2px;
}

.section-builder-hint {
    display: block;
    font-size: 0.82rem;
    margin: 0;
}

.section-builder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.section-builder-add {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 1rem;
}

.section-builder-add select {
    flex: 1 1 220px;
    max-width: 360px;
    margin: 0;
}

.switch.switch-sm {
    transform: scale(0.88);
    transform-origin: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .section-builder-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.section-accordion {
    flex-direction: column;
    align-items: stretch;
}

.section-builder-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.section-expand-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--bd);
    border-radius: 8px;
    background: var(--cbg);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--txt);
}

.section-expand-btn:hover {
    background: var(--pl);
    border-color: var(--p);
}

.section-builder-body {
    width: 100%;
    margin-top: 12px;
    padding: 14px 14px 4px;
    border-top: 1px dashed var(--bd);
}

.section-editor-panel label {
    margin-top: 10px;
}

.section-editor-panel label:first-child {
    margin-top: 0;
}

.section-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.section-editor-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.weather-location-picker {
    max-width: 420px;
}

.weather-location-picker__field {
    position: relative;
}

.weather-location-picker__field input[type="search"] {
    width: 100%;
}

.weather-location-picker__list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: var(--cbg);
    box-shadow: var(--sh);
}

.weather-location-picker__option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--txt);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.weather-location-picker__option:hover,
.weather-location-picker__option:focus-visible {
    background: color-mix(in srgb, var(--tm) 12%, transparent);
    outline: none;
}

.weather-location-picker__option strong {
    font-weight: 650;
}

.weather-location-picker__option span {
    font-size: 0.85rem;
    color: var(--tm);
}

.weather-location-picker__status.is-resolved {
    color: var(--tm);
    font-weight: 600;
}

.locations-section-editor .locations-add-btn {
    margin-top: 10px;
}

.locations-editor-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-editor-card {
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: var(--cbg);
    color: var(--txt);
    padding: 14px;
    box-shadow: var(--sh);
}

.location-editor-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.location-editor-card-label {
    font-size: 0.95rem;
}

.location-editor-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.location-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    gap: 14px;
    align-items: start;
}

.location-editor-fields label:first-child {
    margin-top: 0;
}

.location-map-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
}

.location-editor-preview {
    position: sticky;
    top: 12px;
}

.location-preview-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm);
}

.location-site-preview {
    border: 1px dashed var(--bd);
    border-radius: 10px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.06), var(--cbg));
    color: var(--txt);
    text-align: center;
}

.location-preview-title {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--txt);
}

.location-preview-text {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--tm);
    text-align: left;
}

.location-preview-map {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--bd);
    text-align: left;
}

.location-preview-map-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--p);
}

.location-preview-map-query {
    font-size: 0.8rem;
    color: var(--tm);
    word-break: break-word;
}

.section-title-editor {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--bd);
}

.section-title-default-hint {
    margin: 4px 0 8px;
    font-size: 0.78rem;
}

.admin-richtext-hint {
    margin: 4px 0 8px;
    font-size: 0.78rem;
}

.admin-richtext {
    border: 1px solid var(--bd);
    border-radius: 10px;
    background: var(--cbg);
    color: var(--txt);
    overflow: hidden;
}

.admin-richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--bd);
    background: var(--bg);
}

.admin-richtext-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--bd);
    border-radius: 8px;
    background: var(--cbg);
    color: var(--txt);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.admin-richtext-btn:hover {
    border-color: var(--p);
    color: var(--p);
}

.admin-richtext-body {
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.6;
    font-size: 0.95rem;
    outline: none;
    color: var(--txt);
    background: var(--cbg);
}

.admin-richtext-body:empty::before {
    content: attr(data-placeholder);
    color: var(--tm);
}

.admin-richtext-body p {
    margin: 0 0 0.65em;
}

.admin-richtext-body p:last-child {
    margin-bottom: 0;
}

.admin-richtext-body ul,
.admin-richtext-body ol {
    margin: 0.5em 0;
    padding-left: 1.4em;
    text-align: left;
}

.admin-richtext-body a {
    color: var(--p);
}

.toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--bd);
    border-radius: 999px;
    background: var(--cbg);
    color: var(--txt);
    font-size: 0.85rem;
    margin: 0;
    cursor: pointer;
}

body.dark .section-builder-main strong,
body.dark .section-editor-panel label,
body.dark .location-editor-card-label {
    color: var(--txt);
}

body.dark .section-builder-hint,
body.dark .admin-richtext-hint,
body.dark .guest-lang-panel-hint {
    color: var(--tm);
}

.toggle-chip input {
    margin: 0;
}

.section-editor-bilingual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.section-editor-col label {
    margin-top: 0;
}

@media (max-width: 900px) {
    .section-editor-bilingual {
        grid-template-columns: 1fr;
    }
}

.section-en-link {
    margin: 10px 0 0;
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .section-editor-grid {
        grid-template-columns: 1fr;
    }

    .location-editor-grid {
        grid-template-columns: 1fr;
    }

    .location-editor-preview {
        position: static;
    }
}

/* Admin language switcher */
.admin-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--cbg, #fff);
    border: 1px solid var(--bd);
    font-size: 0.78rem;
}
.admin-lang-label {
    color: var(--tm);
    white-space: nowrap;
}
.admin-lang-switcher a {
    padding: 3px 8px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: var(--txt);
}
.admin-lang-switcher a.active {
    background: var(--p);
    color: #fff;
}
.admin-login-card .admin-lang-switcher {
    position: absolute;
    top: 12px;
    right: 12px;
}
.admin-login-card {
    position: relative;
}
.header-actions .admin-lang-switcher {
    margin-right: 4px;
}

/* Preview language toggle */
.preview-lang-btns {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: var(--bg-soft, #f4f6f8);
    border: 1px solid var(--bd);
}
.preview-lang-btns button {
    padding: 4px 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--txt);
}
.preview-lang-btns button.active {
    background: var(--p);
    color: #fff;
}

/* Translation completeness */
.translation-status {
    margin: 0.75rem 0 1rem;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--bd);
    background: var(--cbg, #fff);
}
.translation-status--complete {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.06);
}
.translation-status--incomplete {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.05);
}
.translation-status-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.translation-status-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
}
.translation-status-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-soft, #eef1f4);
    overflow: hidden;
}
.translation-status-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--p);
    transition: width 0.25s ease;
}
.translation-status--complete .translation-status-bar-fill {
    background: var(--suc, #22c55e);
}
.translation-status-missing {
    margin-top: 10px;
    font-size: 0.85rem;
}
.translation-status-missing summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--tm);
}
.translation-status-list {
    margin: 8px 0 0;
    padding-left: 1.2rem;
    color: var(--tm);
}
.translation-status-list a {
    color: inherit;
    text-decoration: none;
}
.translation-status-list a:hover .translation-status-field {
    color: var(--p);
    text-decoration: underline;
}
.translation-status-field {
    font-weight: 500;
    color: var(--txt);
}
.translation-fill-en {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bd);
}
.translation-fill-en-overwrite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.88rem;
    font-weight: normal;
}
.translation-fill-en-hint {
    margin: 0;
    flex: 1 1 180px;
}
.flyer-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.flyer-preview-lang {
    display: inline-flex;
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg-soft, #f4f6f8);
    border: 1px solid var(--bd);
}
.flyer-preview-lang-opt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.flyer-preview-lang-opt:has(input:checked) {
    background: var(--cbg, #fff);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.flyer-print-lang-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.mail-smtp-fields[hidden] {
    display: none !important;
}
.mail-smtp-fields {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: var(--bg-soft, #f4f6f8);
    border: 1px solid var(--bd);
}
    outline: 2px solid var(--p) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--p-rgb, 14, 116, 144), 0.15);
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}
.translation-status-ok {
    margin: 8px 0 0;
    color: var(--suc, #16a34a);
}

/* Guest content language (NL / EN editing mode) */
.guest-content-lang-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: var(--cbg, #fff);
    border: 1px solid var(--bd);
}
.guest-content-lang-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 0.9rem;
}
.guest-content-lang-status {
    color: var(--tm);
    font-weight: 500;
}
.guest-content-lang-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg-soft, #f4f6f8);
    border: 1px solid var(--bd);
}
.guest-content-lang-tab {
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--txt);
}
.guest-content-lang-tab.active {
    background: var(--p);
    color: #fff;
}
.guest-content-lang-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}
.guest-content-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.guest-content-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.guest-content-badge--nl {
    background: #e8f0fe;
    color: #1a56db;
}
.guest-content-badge--en {
    background: #fef3e8;
    color: #c45a11;
}
.guest-content-group-title {
    margin: 1.5rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bd);
    font-size: 0.95rem;
    font-weight: 600;
}
.guest-content-group-title:first-of-type {
    margin-top: 0.5rem;
    border-top: none;
    padding-top: 0;
}
.guest-lang-panel-hint {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
}
.guest-lang-neutral {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--bd);
}

/* Custom file upload (translated label) */
.admin-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.admin-file-upload-btn {
    position: relative;
    overflow: hidden;
    margin: 0;
    cursor: pointer;
}
.admin-file-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.admin-file-upload-name {
    font-size: 0.78rem;
    text-align: center;
    word-break: break-all;
    max-width: 100%;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    .no-print,
    .save-bar {
        display: none !important;
    }

    /* QR-flyer: printblok staat op body (buiten .app) */
    body.flyer-printing .app,
    body.flyer-printing .toast {
        display: none !important;
    }

    body.flyer-printing #flyer-print-only {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 210mm !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.flyer-printing #flyer-print-only * {
        visibility: visible !important;
    }

    body.flyer-printing #flyer-print-only .flyer-print-page + .flyer-print-page {
        page-break-before: always;
        break-before: page;
    }

    body.admin-printing .app,
    body.admin-printing .toast,
    body.admin-printing .demo-env-banner,
    body.admin-printing .print-preview-overlay {
        display: none !important;
    }

    body.admin-printing #admin-print-root {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10mm !important;
        background: #fff !important;
        color: #111 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.admin-printing #admin-print-root * {
        visibility: visible !important;
    }

    body.admin-printing .login-card-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

.admin-readonly-summary {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    background: var(--bg-soft, #f8fafc);
    border: 1px solid var(--bd);
    border-radius: var(--rad, 10px);
}

.admin-readonly-summary > div {
    display: grid;
    grid-template-columns: minmax(140px, 38%) 1fr;
    gap: 10px;
    align-items: start;
}

.admin-readonly-summary dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tm);
}

.admin-readonly-summary dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--tx, #0f172a);
    word-break: break-word;
}

.content-redirect-notice {
    margin: 1.25rem 0;
    padding: 14px 16px;
    border-radius: var(--rad, 10px);
    border: 1px dashed rgba(var(--p-rgb, 106, 142, 127), 0.35);
    background: rgba(var(--p-rgb, 106, 142, 127), 0.06);
}

.admin-quick-links {
    display: grid;
    gap: 10px;
}

.admin-quick-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--bd);
    border-radius: var(--rad, 10px);
    text-decoration: none;
    color: inherit;
    background: var(--bg-soft, #f8fafc);
    transition: border-color 0.15s, background 0.15s;
}

.admin-quick-link:hover {
    border-color: var(--p);
    background: #fff;
}

.admin-quick-link strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tx, #0f172a);
}

.admin-quick-link .hint {
    margin: 0;
}

.demo-env-banner {
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #fefce8;
    background: linear-gradient(90deg, #854d0e, #a16207);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-env-banner-creds {
    display: block;
    margin-top: 4px;
    opacity: 0.95;
}

.demo-credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.demo-credentials-grid code {
    font-size: 0.85rem;
}

/* ── UI polish: empty states, breadcrumbs, timeline, preview, animations ── */

.ui-empty {
    text-align: center;
    padding: 2.75rem 1.5rem;
    color: var(--tm);
}

.ui-empty-art {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
}

.ui-empty-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    animation: emptyFloat 3s ease-in-out infinite;
}

.ui-empty-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pl) 0%, transparent 70%);
    opacity: 0.7;
}

.ui-empty-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--txt);
    font-weight: 700;
}

.ui-empty-desc {
    margin: 0 auto 1rem;
    max-width: 38ch;
    line-height: 1.55;
    font-size: 0.92rem;
}

.ui-empty-action { margin-top: 0.25rem; }

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.admin-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--tm);
}

.admin-breadcrumbs a {
    color: var(--p);
    text-decoration: none;
    font-weight: 600;
}

.admin-breadcrumbs a:hover { text-decoration: underline; }

.admin-breadcrumbs-sep { opacity: 0.45; user-select: none; }

.admin-breadcrumbs-current { color: var(--txt); font-weight: 600; }

.sidebar-brand--custom {
    gap: 12px;
    align-items: center;
}

.sidebar-brand--custom::before { content: none !important; }

.sidebar-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.sidebar-brand-emoji {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(14, 116, 144, 0.28);
    border: 1px solid rgba(103, 232, 249, 0.25);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar-brand-text strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.sidebar-brand-text span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #67e8f9;
    font-weight: 700;
}

.admin-brand-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: var(--bg);
}

.admin-brand-logo-preview img {
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
}

.dash-hero-main { position: relative; z-index: 1; flex: 1; min-width: 200px; }

.dash-hero-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    max-width: 280px;
}

.dash-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 8px;
    backdrop-filter: blur(6px);
}

.dash-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 0.78rem;
    transition: background 0.2s;
}

a.dash-timeline-item:hover { background: rgba(255, 255, 255, 0.12); }

.dash-timeline-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.2; }

.dash-timeline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dash-timeline-text strong { font-weight: 700; line-height: 1.3; }

.dash-timeline-text em {
    font-style: normal;
    opacity: 0.82;
    line-height: 1.35;
    font-size: 0.72rem;
}

.dash-timeline-item.tone-warn { background: rgba(245, 158, 11, 0.15); }
.dash-timeline-item.tone-done { background: rgba(16, 185, 129, 0.15); }

.theme-toggle-btn { min-width: 42px; }

.tab-c.tab-c-enter {
    animation: tabFadeIn 0.28s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.toast.toast-enter { animation: toastUp 0.35s ease; }

.toast.toast-exit {
    animation: toastOut 0.35s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(12px); }
}

.photo-card.photo-approve-flash {
    animation: approveFlash 0.55s ease;
}

@keyframes approveFlash {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); transform: scale(1); }
}

.preview-skeleton {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--cbg);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.35s ease;
}

.preview-skeleton.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.preview-iframe-wrap { position: relative; }

.preview-skeleton-bar {
    height: 12px;
    width: 55%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bd) 25%, rgba(14, 116, 144, 0.08) 50%, var(--bd) 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.2s infinite;
}

.preview-skeleton-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.preview-skeleton-line {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bd) 25%, rgba(14, 116, 144, 0.08) 50%, var(--bd) 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.2s infinite;
}

.preview-skeleton-line.short { width: 70%; }

.preview-skeleton-block {
    flex: 1;
    min-height: 120px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--bd) 25%, rgba(14, 116, 144, 0.06) 50%, var(--bd) 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.2s infinite;
}

.photo-grid.is-loading::before {
    content: '';
    display: block;
    grid-column: 1 / -1;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--bd) 25%, rgba(14, 116, 144, 0.08) 50%, var(--bd) 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.2s infinite;
}

@keyframes skelShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.print-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: auto;
}

.print-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--cbg);
    border-radius: 12px;
    border: 1px solid var(--bd);
}

.print-preview-toolbar strong { flex: 1; min-width: 140px; }

.print-preview-stage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 0 2rem;
}

.print-preview-sheet.a4 {
    width: min(210mm, 100%);
    min-height: 297mm;
    background: #fff;
    color: #111;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.print-preview-margin {
    position: absolute;
    inset: 10mm;
    border: 1px dashed rgba(14, 116, 144, 0.35);
    pointer-events: none;
    border-radius: 2px;
}

.print-preview-content {
    padding: 10mm;
    min-height: 277mm;
    box-sizing: border-box;
    color: #111;
}

.print-preview-content .login-card-item,
.print-preview-content .flyer-canvas {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.print-a4-content {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dash-hero-side { max-width: none; width: 100%; }
    .dash-timeline { max-height: 200px; overflow-y: auto; }
}

@media print {
    .print-preview-overlay { display: none !important; }
}
