html, body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Design tokens ---------- */
:root {
    --brand: #4F46E5;
    --brand-2: #0EA5E9;
    --gold: #E2A81C;
    --radius-card: 18px;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 36px rgba(79, 70, 229, .16);
}

body { background: var(--mud-palette-background); }
.mud-main-content { background:
    radial-gradient(1000px 420px at 100% -80px, rgba(79, 70, 229, .08), transparent 60%),
    radial-gradient(800px 380px at -10% 0, rgba(14, 165, 233, .06), transparent 60%); }

/* ---------- App shell ---------- */
.app-bar { border-bottom: 1px solid var(--mud-palette-lines-default); backdrop-filter: saturate(1.4) blur(10px); }
.app-drawer { border-right: 1px solid var(--mud-palette-lines-default); }
.brand-text { font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800;
    box-shadow: 0 6px 14px rgba(79, 70, 229, .35);
}
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(79, 70, 229, .07); }
.user-chip-text { flex-direction: column; line-height: 1.15; }
.user-chip-name { font-size: .8rem; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-role { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); }

/* Drawer */
.nav-brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px 8px; }
.nav-brand-logo {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .35);
}
.nav-brand-name { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.nav-brand-sub { font-size: .72rem; color: var(--mud-palette-text-secondary); }
.nav-modern .mud-nav-link { border-radius: 12px; margin: 2px 0; font-weight: 500; transition: background .15s, color .15s; }
.nav-modern .mud-nav-link:hover { background: rgba(79, 70, 229, .07); }
.nav-modern .mud-nav-link.active { background: linear-gradient(135deg, rgba(79, 70, 229, .16), rgba(14, 165, 233, .12)); color: var(--mud-palette-primary); font-weight: 700; }
.nav-modern .mud-nav-link.active .mud-icon-root { color: var(--mud-palette-primary); }

/* Headings & surfaces */
.mud-typography-h4, .mud-typography-h5 { font-weight: 800; letter-spacing: -.025em; }
.mud-typography-h6 { font-weight: 700; letter-spacing: -.01em; }
.mud-paper.rounded-lg { border: 1px solid var(--mud-palette-lines-default); border-radius: var(--radius-card) !important; box-shadow: var(--shadow-soft); }
.mud-button-root { text-transform: none; font-weight: 600; letter-spacing: 0; border-radius: 12px; }
.mud-button-filled.mud-button-filled-primary { box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.mud-chip { font-weight: 600; }
.mud-table-head .mud-table-cell { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); font-weight: 700; background: rgba(79, 70, 229, .035); }
.mud-table-row:hover { background: rgba(79, 70, 229, .03); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 2px 12px; }

/* ---------- Dashboard ---------- */
.hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 28px 30px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
    background:
        radial-gradient(520px 220px at 95% -20%, rgba(246, 210, 107, .45), transparent 60%),
        radial-gradient(420px 260px at 0% 120%, rgba(14, 165, 233, .5), transparent 60%),
        linear-gradient(120deg, #312E81 0%, #4F46E5 55%, #6366F1 100%);
    box-shadow: 0 18px 40px rgba(79, 70, 229, .28);
}
.hero-eyebrow { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.hero-title { margin: 2px 0 6px; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-sub { opacity: .92; font-size: .95rem; }
.hero-role { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: .8rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .mud-button-filled { color: #312E81 !important; background: #fff !important; box-shadow: none; }
.hero-actions .mud-button-outlined { color: #fff !important; border-color: rgba(255, 255, 255, .6) !important; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-tile {
    position: relative; padding: 16px 18px; border-radius: var(--radius-card); overflow: hidden;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); box-shadow: var(--shadow-soft);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat-tile::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--tile, #4F46E5); opacity: .08; }
.stat-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--tile, #4F46E5); margin-bottom: 10px; }
.stat-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.stat-value-money { font-size: 1.35rem; padding-top: 6px; }
.stat-label { margin-top: 2px; font-size: .78rem; color: var(--mud-palette-text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-indigo { --tile: #4F46E5; } .stat-green { --tile: #16A34A; } .stat-blue { --tile: #0284C7; }
.stat-amber { --tile: #D97706; } .stat-slate { --tile: #64748B; } .stat-gold { --tile: #C99512; }
.occupancy-card { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }

.action-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 16px; height: 100%;
    border-radius: var(--radius-card); text-decoration: none; color: inherit;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); box-shadow: var(--shadow-soft);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(79, 70, 229, .35); }
.action-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ai-indigo { background: linear-gradient(135deg, #4F46E5, #6366F1); } .ai-blue { background: linear-gradient(135deg, #0284C7, #38BDF8); }
.ai-amber { background: linear-gradient(135deg, #D97706, #FBBF24); } .ai-green { background: linear-gradient(135deg, #15803D, #4ADE80); }
.ai-slate { background: linear-gradient(135deg, #475569, #94A3B8); } .ai-violet { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.action-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.action-title { font-weight: 700; }
.action-text { font-size: .82rem; color: var(--mud-palette-text-secondary); line-height: 1.35; }
.action-go { color: var(--mud-palette-text-secondary); transition: transform .15s; }
.action-card:hover .action-go { transform: translateX(3px); color: var(--mud-palette-primary); }

/* ---------- Forms ---------- */
.form-section-title {
    margin: 22px 0 10px; padding-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--mud-palette-primary); border-bottom: 1px dashed var(--mud-palette-lines-default);
}
.form-section-title:first-of-type { margin-top: 6px; }

/* Image picker (event form) */
.img-pick { padding: 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; background: rgba(79, 70, 229, .02); height: 100%; }
.img-pick-label { font-weight: 700; font-size: .9rem; }
.img-pick-hint { font-size: .75rem; color: var(--mud-palette-text-secondary); margin-top: 1px; }
.img-pick-preview {
    margin-top: 10px; height: 110px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: repeating-conic-gradient(rgba(148, 163, 184, .16) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
    border: 1px dashed var(--mud-palette-lines-default);
}
.img-pick-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.img-pick-empty, .img-pick-note { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .8rem; color: var(--mud-palette-text-secondary); text-align: center; padding: 8px; }
.img-pick-note small { font-size: .7rem; opacity: .8; }

/* ---------- Login page ---------- */
.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background: #0B1020;
}
.auth-bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; animation: blob-float 14s ease-in-out infinite alternate; }
.auth-bg-blob-2 { animation-delay: -6s; }
.auth-shell.has-bg .auth-bg-blob { display: none; }
@keyframes blob-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .auth-bg-blob { animation: none; } }
.auth-bg-blob-1 { width: 420px; height: 420px; background: #4F46E5; top: -120px; left: -120px; }
.auth-bg-blob-2 { width: 380px; height: 380px; background: #0EA5E9; bottom: -140px; right: -100px; }

/* Header image: edge to edge across the top */
.auth-hero { position: relative; width: 100%; line-height: 0; background: #0B1020; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); z-index: 1; }
.auth-hero img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; object-position: center; }
.auth-hero-plain { line-height: 1.2; padding: 34px 16px 70px; text-align: center; background: transparent; box-shadow: none; }
.auth-hero-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.auth-hero-logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #4F46E5, #0EA5E9); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.auth-event-title { margin-top: 14px; color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1.05rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }

.auth-main { position: relative; z-index: 2; width: 100%; max-width: 460px; margin: 0 auto; padding: 28px 16px 40px; flex: 1; }
.auth-main.overlap { margin-top: -56px; flex: none; }
.auth-main.overlap { padding-top: 0; }
.auth-shell:not(.has-bg) .auth-main { padding-bottom: 56px; }

.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login-head .login-logo { margin: 0; flex: none; }
.login-head .login-subtitle { margin: 2px 0 0; }
.login-back { display: block; text-align: center; margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: .9rem; text-decoration: none; }
.login-back:hover { color: #fff; text-decoration: underline; }

.login-card {
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 24px;
    padding: 36px 30px 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.login-foot { margin: 18px 0 0; text-align: center; font-size: .75rem; color: #94A3B8; }
.login-logo {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #4F46E5, #0EA5E9);
    color: #fff; font-weight: 700; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.login-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; color: #0F172A; }
.login-subtitle { margin: 0 0 4px; color: #64748B; font-size: .95rem; }

.field-label { display: block; font-size: .85rem; font-weight: 600; color: #334155; margin: 14px 0 6px; }
.field-input {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px;
    font-size: 1rem; /* 16px prevents iOS zoom on focus */
    font-family: inherit;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    background: #fff;
    color: #0F172A;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: #4F46E5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.field-error, .validation-message { color: #DC2626; font-size: .8rem; margin-top: 4px; display: block; }

.remember { display: flex; align-items: center; gap: 8px; margin: 16px 0 20px; font-size: .9rem; color: #475569; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: #4F46E5; }

.login-button {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem; font-weight: 600; font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    border: 0; border-radius: 12px;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}
.login-button:hover { box-shadow: 0 10px 24px rgba(79, 70, 229, .45); }
.login-button:active { transform: scale(.99); }

.login-error {
    background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA;
    border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 8px;
}

@media (max-width: 480px) {
    .login-card { padding: 28px 20px; border-radius: 16px; }
}

/* ---------- Blazor error bar ---------- */
#blazor-error-ui {
    background: #FEF3C7;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #111;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ---------- Slot grid ---------- */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 8px;
}
.slot-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--mud-palette-lines-default);
    user-select: none;
}
.slot-vacant { background: transparent; color: var(--mud-palette-text-secondary); }
.slot-detailspending { background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .5); color: #B45309; }
.slot-paymentpending { background: rgba(14, 165, 233, .16); border-color: rgba(14, 165, 233, .5); color: #0369A1; }
.slot-occupied { background: rgba(34, 197, 94, .18); border-color: rgba(34, 197, 94, .55); color: #15803D; }

.slot-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.slot-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.slot-dot { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--mud-palette-lines-default); display: inline-block; }

/* ---------- Slot tiles as links ---------- */
a.slot-tile { text-decoration: none; transition: transform .1s ease, box-shadow .15s ease; }
a.slot-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }

/* ---------- Slot detail ---------- */
.detail-item { padding: 2px 0; }
.detail-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-palette-text-secondary); margin-bottom: 2px; }
.detail-value { font-size: 1rem; font-weight: 500; word-break: break-word; }
.plot-badge {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: rgba(79, 70, 229, .12); color: var(--mud-palette-primary); font-size: .95rem;
}
.doc-photo {
    width: 100%; max-width: 220px; max-height: 260px; object-fit: cover; display: block;
    border-radius: 12px; border: 1px solid var(--mud-palette-lines-default);
}
.file-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px; border: 1px solid var(--mud-palette-primary);
    color: var(--mud-palette-primary); font-weight: 600; font-size: .875rem; cursor: pointer; overflow: hidden;
}
.file-btn:hover { background: rgba(79, 70, 229, .08); }
.file-btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- Payments ---------- */
.cancelled-text { text-decoration: line-through; opacity: .6; }
.file-btn-sm { padding: 4px 10px; font-size: .8rem; }

/* ---------- Printable receipt ---------- */
.receipt-sheet {
    position: relative; max-width: 720px; margin: 0 auto; padding: 32px;
    background: #fff; color: #111; border: 1px solid #CBD5E1; border-radius: 12px;
}
.receipt-head { text-align: center; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 16px; }
.receipt-title { font-size: 1.4rem; font-weight: 700; letter-spacing: .08em; }
.receipt-event { font-size: 1rem; margin-top: 2px; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.receipt-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table td { padding: 9px 6px; border-bottom: 1px solid #E5E7EB; vertical-align: top; }
.receipt-table td:first-child { width: 34%; color: #555; }
.receipt-amount { font-size: 1.3rem; font-weight: 700; }
.receipt-text { margin-top: 18px; padding: 10px 12px; border-left: 3px solid #CBD5E1; background: #F8FAFC; color: #475569; font-size: .82rem; line-height: 1.45; white-space: pre-line; }
.receipt-sign { display: flex; justify-content: space-between; margin-top: 56px; font-size: .85rem; }
.receipt-line { width: 200px; border-top: 1px solid #111; margin-bottom: 4px; }
.receipt-foot { margin-top: 24px; font-size: .72rem; color: #777; text-align: center; }
.receipt-cancelled-note { margin-top: 14px; padding: 8px 12px; border: 1px solid #FCA5A5; background: #FEF2F2; color: #B91C1C; border-radius: 8px; font-size: .85rem; }
.receipt-watermark {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 5rem; font-weight: 800; color: rgba(220, 38, 38, .18); transform: rotate(-24deg); pointer-events: none;
}
.text-right { text-align: right; }

@media (max-width: 600px) {
    .receipt-sheet { padding: 18px; }
    .receipt-sign { flex-direction: column; gap: 32px; }
    .receipt-watermark { font-size: 3rem; }
}

@media print {
    .mud-appbar, .mud-drawer, .no-print, #blazor-error-ui { display: none !important; }
    .mud-main-content { padding: 0 !important; margin: 0 !important; background: none !important; }
    .mud-container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    html, body { background: #fff !important; }
    .receipt-sheet { border: 0; box-shadow: none; max-width: 100%; padding: 0; }
}

/* ---------- Report bars ---------- */
.bar { height: 8px; min-width: 90px; border-radius: 6px; background: var(--mud-palette-lines-default); overflow: hidden; }
.bar-fill { height: 100%; background: var(--mud-palette-primary); border-radius: 6px; }
.stack { display: flex; height: 12px; min-width: 120px; border-radius: 6px; overflow: hidden; background: var(--mud-palette-lines-default); }
.stack > span { display: block; height: 100%; }
.seg-occupied { background: #22C55E; }
.seg-payment { background: #0EA5E9; }
.seg-details { background: #F59E0B; }

/* ---------- Shop ID card (150 x 106 mm) ---------- */
.idc-stage { display: flex; justify-content: center; padding: 8px 0 28px; }

.idc {
    --navy: #0B2559; --navy-2: #1B4A9C; --gold: #E2A81C; --gold-2: #F6D26B;
    --ink: #0F172A; --muted: #5B6678; --line: #D5DDEB;
    position: relative; display: flex; flex-direction: column;
    width: 150mm; height: 106mm; flex: none;
    background: #fff; color: var(--ink);
    border-radius: 4mm; overflow: hidden;
    border: .3mm solid #BFCBE2;
    box-shadow: 0 20px 44px rgba(11, 37, 89, .22), 0 2px 6px rgba(0, 0, 0, .1);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* header band */
.idc-header {
    position: relative; display: flex; align-items: center; gap: 3.2mm;
    height: 18mm; padding: 0 5mm; color: #fff; flex: none;
    background:
        radial-gradient(circle at 92% -30%, rgba(246, 210, 107, .35) 0, rgba(246, 210, 107, 0) 38%),
        radial-gradient(circle at 8% 130%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 40%),
        linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%);
    border-bottom: 1mm solid var(--gold);
}
.idc-emblem {
    flex: none; width: 11mm; height: 11mm; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 0 0 .6mm rgba(255, 255, 255, .35);
}
.idc-emblem svg { width: 6.6mm; height: 6.6mm; }
.idc-head-text { flex: 1; min-width: 0; }
.idc-title { font-size: 3.5mm; font-weight: 700; letter-spacing: .38mm; line-height: 1.15; }
.idc-event { margin-top: .6mm; font-size: 4.3mm; font-weight: 800; letter-spacing: .15mm; color: var(--gold-2); text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-no {
    flex: none; text-align: center; padding: 1.3mm 3mm 1.5mm;
    border-radius: 2mm; background: rgba(255, 255, 255, .13); border: .25mm solid rgba(255, 255, 255, .45);
}
.idc-no span { display: block; font-size: 2mm; letter-spacing: .3mm; opacity: .85; font-weight: 600; }
.idc-no b { display: block; font-size: 4mm; letter-spacing: .25mm; font-weight: 800; line-height: 1.2; }

/* body */
.idc-body {
    position: relative; display: flex; gap: 4.5mm; flex: 1; min-height: 0; padding: 3.2mm 5mm 1.5mm;
    background:
        linear-gradient(180deg, #F7F9FE 0%, #fff 70%);
}
.idc-body::before {   /* faint watermark */
    content: "ID"; position: absolute; right: 3mm; bottom: -9mm;
    font-size: 40mm; font-weight: 900; color: rgba(11, 37, 89, .035); letter-spacing: -1mm; pointer-events: none; line-height: 1;
}
.idc-photo-col { flex: none; width: 29mm; display: flex; flex-direction: column; align-items: center; gap: 1.6mm; }
.idc-photo {
    width: 29mm; height: 36mm; border-radius: 1.6mm; overflow: hidden; background: #E8EDF6;
    border: .7mm solid var(--navy); box-shadow: 0 0 0 .5mm var(--gold-2), 0 1.2mm 2mm rgba(11, 37, 89, .25);
}
.idc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc-photo-empty { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6mm; letter-spacing: .4mm; color: #8C98AE; font-weight: 700; }
.idc-valid { width: 100%; text-align: center; padding: .9mm 0 1mm; border-radius: 1.2mm; background: var(--navy); color: #fff; }
.idc-valid span { display: block; font-size: 1.8mm; letter-spacing: .3mm; opacity: .8; font-weight: 600; }
.idc-valid b { display: block; font-size: 2.6mm; font-weight: 700; color: var(--gold-2); line-height: 1.2; }

.idc-details { position: relative; flex: 1; min-width: 0; }
.idc-name { font-size: 5mm; font-weight: 800; color: var(--navy); line-height: 1.1; text-transform: uppercase; letter-spacing: .1mm; }
.idc-rel { margin-top: .7mm; font-size: 2.9mm; color: var(--muted); line-height: 1.2; }
.idc-rel b { color: var(--ink); font-weight: 700; text-transform: uppercase; }
.idc-grid {
    margin-top: 1.8mm; padding-top: 1.6mm; border-top: .25mm solid var(--line);
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm 3mm;
}
.idc-f { min-width: 0; }
.idc-span2 { grid-column: span 2; }
.idc-f label { display: block; font-size: 1.85mm; letter-spacing: .22mm; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.1; margin-bottom: .25mm; }
.idc-f span { display: block; font-size: 2.75mm; font-weight: 600; line-height: 1.22; word-break: break-word; }
.idc-mono { font-variant-numeric: tabular-nums; letter-spacing: .15mm; }

/* footer: signature / notes / QR */
.idc-footer {
    flex: none; display: flex; align-items: stretch; gap: 4mm; height: 25mm; padding: 2mm 5mm 2.2mm;
    background: #fff; border-top: .3mm solid var(--line);
}
.idc-sign { flex: none; width: 50mm; display: flex; flex-direction: column; }
.idc-sign-box { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: .8mm; border: .3mm dashed #8EA0C4; border-radius: 1.5mm; background: rgba(11, 37, 89, .015); }
.idc-sign-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.idc-sign-label { margin-top: .8mm; text-align: center; font-size: 2mm; font-weight: 700; letter-spacing: .12mm; color: var(--navy); text-transform: uppercase; }
.idc-notes { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.6mm; font-size: 2.6mm; font-weight: 600; }
.idc-notes label { display: block; font-size: 1.85mm; letter-spacing: .22mm; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.idc-terms { font-size: 2.1mm; font-weight: 500; color: var(--muted); line-height: 1.3; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.idc-qr { flex: none; width: 21mm; display: flex; flex-direction: column; align-items: center; }
.idc-qr-img { width: 20mm; height: 20mm; border: .3mm solid var(--line); border-radius: 1.2mm; overflow: hidden; background: #fff; }
.idc-qr-img svg { display: block; width: 100%; height: 100%; }
.idc-qr span { margin-top: .3mm; font-size: 1.9mm; font-weight: 700; letter-spacing: .2mm; text-transform: uppercase; color: var(--navy); }

@media (max-width: 640px) { .idc { zoom: .62; } .idc-stage { justify-content: flex-start; } }
@media (max-width: 400px) { .idc { zoom: .54; } }

@media print {
    @page { margin: 10mm; }
    .idc-stage { padding: 0; justify-content: flex-start; }
    .idc { zoom: 1 !important; box-shadow: none; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Public ID card verification page ---------- */
.verify-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); color: #0F172A; }
.verify-banner { padding: 22px 20px 18px; text-align: center; color: #fff; }
.verify-ok { background: linear-gradient(135deg, #15803D, #22C55E); }
.verify-warn { background: linear-gradient(135deg, #B45309, #F59E0B); }
.verify-bad { background: linear-gradient(135deg, #B91C1C, #EF4444); }
.verify-icon { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 700; }
.verify-status { font-size: 1.35rem; font-weight: 800; letter-spacing: .08em; }
.verify-body { padding: 18px 22px 22px; }
.verify-text { margin: 0 0 16px; font-size: .92rem; color: #475569; }
.verify-person { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.verify-photo { width: 84px; height: 104px; object-fit: cover; border-radius: 10px; border: 2px solid #0B2559; flex: none; }
.verify-name { font-size: 1.15rem; font-weight: 700; color: #0B2559; text-transform: uppercase; line-height: 1.2; }
.verify-sub { margin-top: 2px; font-size: .88rem; color: #64748B; }
.verify-chip { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #EEF2FF; color: #3730A3; font-size: .8rem; font-weight: 700; }
.verify-list { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: .88rem; }
.verify-list dt { color: #64748B; }
.verify-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.verify-mono { letter-spacing: .04em; }
.verify-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #E5E7EB; font-size: .75rem; color: #94A3B8; }

/* ---------- Report charts ---------- */
.chart-legend-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: .9rem; }
.chart-legend-row .slot-dot { flex: none; }

/* ======================================================================
   Landing page (public home) — everything is prefixed .lp-
   ====================================================================== */
.lp { --lp-ink: #0F172A; --lp-muted: #475569; --lp-line: #E2E8F0; --lp-primary: #4F46E5; --lp-sky: #0EA5E9;
      font-family: Inter, system-ui, sans-serif; color: var(--lp-ink); background: #fff; scroll-behavior: smooth; overflow-x: hidden; }
html { scroll-behavior: smooth; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { text-decoration: none; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: .95rem; transition: transform .12s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent; }
.lp-btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.lp-btn-primary { color: #fff; background: linear-gradient(135deg, #4F46E5, #6366F1); box-shadow: 0 8px 22px rgba(79, 70, 229, .35); }
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79, 70, 229, .45); }
.lp-btn-ghost { color: #E2E8F0; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.lp-btn-light { background: #fff; color: #3730A3; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.lp-btn-light:hover { transform: translateY(-1px); }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.lp-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #4F46E5, #0EA5E9); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(79, 70, 229, .45); }
.lp-links { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.lp-links a { color: #CBD5E1; font-size: .92rem; font-weight: 500; transition: color .15s; }
.lp-links a:hover { color: #fff; }

/* hero */
.lp-hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #1E1B4B 0%, #0B1020 60%); color: #fff; margin-top: -66px; padding: 150px 0 110px; overflow: hidden; }
.lp-hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; pointer-events: none; }
.lp-glow-1 { width: 480px; height: 480px; background: #4F46E5; top: -140px; left: -120px; }
.lp-glow-2 { width: 420px; height: 420px; background: #0EA5E9; bottom: -160px; right: 5%; opacity: .35; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); pointer-events: none; }
.lp-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #C7D2FE; background: rgba(99, 102, 241, .16); border: 1px solid rgba(165, 180, 252, .3); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.lp-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 20px 0 18px; }
.lp-grad { background: linear-gradient(90deg, #A5B4FC, #38BDF8 60%, #5EEAD4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 1.12rem; line-height: 1.65; color: #CBD5E1; max-width: 560px; margin: 0 0 30px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 28px 0 0; color: #94A3B8; font-size: .9rem; }
.lp-ticks li::before { content: "✓"; color: #34D399; font-weight: 700; margin-right: 8px; }

/* product mock */
.lp-mock { position: relative; background: #fff; color: var(--lp-ink); border-radius: 20px; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--lp-line); background: #F8FAFC; border-radius: 20px 20px 0 0; }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.lp-mock-bar span:nth-child(1) { background: #F87171; } .lp-mock-bar span:nth-child(2) { background: #FBBF24; } .lp-mock-bar span:nth-child(3) { background: #34D399; }
.lp-mock-bar em { margin-left: 10px; font-style: normal; font-size: .75rem; font-weight: 600; color: #64748B; }
.lp-mock-body { padding: 18px; }
.lp-mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.lp-mock-stats div { background: #F8FAFC; border: 1px solid var(--lp-line); border-radius: 12px; padding: 10px 12px; }
.lp-mock-stats b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.lp-mock-stats small { font-size: .68rem; color: #64748B; font-weight: 600; }
.c-green { color: #059669; } .c-amber { color: #D97706; } .c-slate { color: #64748B; }
.lp-slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.lp-slot { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: .62rem; font-weight: 700; }
.s-ok { background: #D1FAE5; color: #047857; } .s-pay { background: #DBEAFE; color: #1D4ED8; }
.s-det { background: #FEF3C7; color: #B45309; } .s-vac { background: #F1F5F9; color: #94A3B8; }
.lp-mock-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0; font-size: .68rem; color: #64748B; font-weight: 600; }
.lp-mock-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lp-mock-progress-top { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; margin-bottom: 6px; }
.lp-bar { height: 8px; border-radius: 99px; background: #E2E8F0; overflow: hidden; }
.lp-bar div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10B981, #34D399); }
.lp-float { position: absolute; background: #fff; color: var(--lp-ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(2, 6, 23, .4); display: flex; align-items: center; gap: 12px; animation: lp-bob 6s ease-in-out infinite; }
.lp-float b { display: block; font-size: .85rem; } .lp-float small { font-size: .7rem; color: #64748B; }
.lp-float-1 { left: -34px; bottom: -26px; }
.lp-float-1 .lp-float-ic { width: 32px; height: 32px; border-radius: 50%; background: #D1FAE5; color: #059669; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.lp-float-2 { right: -22px; top: -28px; flex-direction: column; align-items: flex-start; gap: 2px; animation-delay: -3s; }
.lp-float-2 b { font-size: 1rem; letter-spacing: .02em; color: #4338CA; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* strip */
.lp-strip { background: #0B1020; border-top: 1px solid rgba(255, 255, 255, .08); }
.lp-strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.lp-strip-in div { text-align: center; }
.lp-strip-in b { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.lp-strip-in span { font-size: .85rem; color: #94A3B8; }

/* sections */
.lp-section { padding: 96px 0; }
.lp-alt { background: #F6F7FD; }
.lp-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.lp-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-primary); margin-bottom: 12px; }
.lp-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.lp-head p { margin: 0; color: var(--lp-muted); font-size: 1.05rem; line-height: 1.65; }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-card { background: #fff; border: 1px solid var(--lp-line); border-radius: 20px; padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(15, 23, 42, .1); border-color: #C7D2FE; }
.lp-card h3 { margin: 18px 0 8px; font-size: 1.12rem; letter-spacing: -.01em; }
.lp-card p { margin: 0; color: var(--lp-muted); line-height: 1.65; font-size: .96rem; }
.lp-card code { background: #EEF2FF; color: #4338CA; padding: 1px 6px; border-radius: 6px; font-size: .85em; font-weight: 600; }
.lp-ic { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.lp-ic svg { width: 24px; height: 24px; }
.ic-indigo { background: #EEF2FF; color: #4F46E5; } .ic-violet { background: #F3E8FF; color: #9333EA; }
.ic-blue { background: #E0F2FE; color: #0284C7; } .ic-green { background: #DCFCE7; color: #16A34A; }
.ic-amber { background: #FEF3C7; color: #D97706; } .ic-slate { background: #E2E8F0; color: #334155; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.lp-steps li { background: #fff; border: 1px solid var(--lp-line); border-radius: 20px; padding: 28px 24px; }
.lp-num { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #4F46E5, #0EA5E9); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(79, 70, 229, .3); }
.lp-steps h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.lp-steps p { margin: 0; color: var(--lp-muted); line-height: 1.6; font-size: .93rem; }

.lp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-role { padding: 28px; border-radius: 20px; background: linear-gradient(160deg, #F8FAFF, #EEF2FF); border: 1px solid #E0E7FF; }
.lp-role h3 { margin: 0 0 8px; font-size: 1.15rem; color: #3730A3; }
.lp-role p { margin: 0; color: var(--lp-muted); line-height: 1.6; }

.lp-final { padding: 0 0 96px; }
.lp-final-box { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 68px 24px; border-radius: 28px; background: radial-gradient(800px 360px at 80% 0%, #6366F1, transparent 60%), linear-gradient(135deg, #312E81, #0B1020); }
.lp-final-box h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; margin: 0 0 10px; font-weight: 800; }
.lp-final-box p { margin: 0 0 28px; color: #C7D2FE; }

.lp-foot { border-top: 1px solid var(--lp-line); background: #fff; }
.lp-foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 24px; color: #64748B; font-size: .88rem; }
.lp-brand-sm { color: var(--lp-ink); font-size: 1.05rem; }

@media (max-width: 980px) {
    .lp-hero-in { grid-template-columns: 1fr; gap: 64px; }
    .lp-mock { transform: none; max-width: 560px; margin: 0 auto; width: 100%; }
    .lp-float-1 { left: -8px; } .lp-float-2 { right: -8px; }
    .lp-grid, .lp-roles { grid-template-columns: repeat(2, 1fr); }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lp-links { display: none; }
    .lp-hero { padding: 120px 0 80px; }
    .lp-section { padding: 68px 0; }
    .lp-grid, .lp-roles, .lp-steps { grid-template-columns: 1fr; }
    .lp-strip-in { grid-template-columns: repeat(2, 1fr); }
    .lp-btn-lg { width: 100%; }
    .lp-float { display: none; }
    .lp-mock-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-nav .lp-btn { padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } html { scroll-behavior: auto; } }

/* Area map */
.fair-map { width: 100%; background: #e9edf1; }
.fair-map .leaflet-container { font-family: inherit; }
.fair-label { background: rgba(255,255,255,.85); border: 0; box-shadow: none; font-weight: 600; font-size: 12px; padding: 1px 6px; }
.fair-zoomed-in .fair-label-market { display: none; }
.fair-label-slot { font-size: 11px; padding: 0 3px; background: rgba(255,255,255,.7); }
.fair-hide-labels .fair-label { display: none !important; }
.fair-map:fullscreen { height: 100vh !important; }
.fair-popup b { display: block; font-size: 14px; margin-bottom: 2px; }
.fair-popup a { margin-right: 10px; }
.fair-label { pointer-events: none; }
.fair-map { touch-action: none; }
.fair-map.fair-pseudo-fs { position: fixed !important; inset: 0; z-index: 1900; height: 100% !important; height: 100dvh !important; width: 100vw; border-radius: 0; }
html.fair-no-scroll, html.fair-no-scroll body { overflow: hidden; }
@media (max-height: 520px) { .fair-map { min-height: 300px; } }

/* Touch screens (phones / tablets): finger-sized controls, handles and popup links */
@media (pointer: coarse) {
    .fair-map .leaflet-bar a, .fair-map .leaflet-touch .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; font-size: 22px; }
    .fair-map .leaflet-control-zoom-in, .fair-map .leaflet-control-zoom-out { font-size: 26px; }
    .fair-map .leaflet-touch .leaflet-bar a:first-child, .fair-map .leaflet-touch .leaflet-bar a:last-child { width: 42px; height: 42px; line-height: 42px; }
    .fair-map .marker-icon { width: 26px !important; height: 26px !important; margin: -13px 0 0 -13px !important; border-width: 2px; }
    .fair-map .marker-icon-middle { width: 18px !important; height: 18px !important; margin: -9px 0 0 -9px !important; }
    .fair-label-slot { font-size: 12px; }
    .fair-popup a { display: inline-block; padding: 8px 6px; margin-right: 6px; font-weight: 600; }
    .fair-map .leaflet-popup-close-button { width: 36px; height: 36px; font-size: 24px; line-height: 36px; }
}

/* QR verify page: map of the one slot */
.verify-map { margin-top: 16px; }
.verify-map-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.verify-map svg { width: 100%; max-height: 260px; background: #f3f4f6; border-radius: 10px; }
.verify-map .vm-market { fill: rgba(79,70,229,.12); stroke: #4f46e5; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.verify-map .vm-slot { fill: rgba(225,29,72,.55); stroke: #e11d48; stroke-width: 2; vector-effect: non-scaling-stroke; }
.verify-map-size { font-size: 13px; margin-top: 6px; color: #4b5563; }

/* Printable map page (/map/print/...) */
.print-sheet { background: #fff; color: #111; margin: 0 auto; }
.print-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 2px solid #111; padding-bottom: 4px; margin-bottom: 6px; }
.print-head h1 { font-size: 18px; margin: 0; line-height: 1.2; }
.print-head small { font-size: 11px; color: #444; }
.print-map-box { width: 100%; background: #fff; border: 1px solid #bbb; }
.print-map-box svg { display: block; width: 100%; height: 100%; }
.print-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; margin-top: 6px; align-items: center; }
.print-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 4px; border: 1px solid rgba(0,0,0,.35); vertical-align: -1px; }
.print-foot { font-size: 10px; color: #555; margin-top: 4px; display: flex; justify-content: space-between; }
@media print {
    .mud-appbar, .mud-drawer, .mud-drawer-overlay, .mud-snackbar-provider, #blazor-error-ui, .no-print { display: none !important; }
    .mud-layout, .mud-main-content { padding: 0 !important; margin: 0 !important; }
    .mud-container { max-width: none !important; padding: 0 !important; margin: 0 !important; }
    html, body { background: #fff !important; }
    .print-sheet { box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; }
    .print-map-box { border-color: #888; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
