@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ── Proměnné ───────────────────────────────────────────────── */
:root {
    --primary:       #1a3054;
    --primary-lt:    #2a4a7f;
    --accent:        #189cd9;
    --accent-lt:     #e8f4fb;
    --bg:            #f0f4f8;
    --white:         #ffffff;
    --text:          #1a3054;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --shadow:        0 2px 12px rgba(26,48,84,.08);
    --shadow-md:     0 4px 24px rgba(26,48,84,.13);
}

* { font-family: 'Space Grotesk', system-ui, sans-serif; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    margin: 0;
}

/* ── Navigace ───────────────────────────────────────────────── */
.app-navbar {
    background: var(--primary);
    padding: 0 1.5rem;
    min-height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.app-navbar .logo-img {
    height: 34px;
    filter: brightness(0) invert(1);
}
.app-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.3);
}
.app-navbar .navbar-toggler-icon {
    filter: invert(1);
}
.app-navbar .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-weight: 600;
    font-size: .9rem;
    padding: .45rem .9rem !important;
    border-radius: 8px;
    transition: all .18s;
    white-space: nowrap;
}
.app-navbar .nav-link:hover  { color: #fff !important; background: rgba(255,255,255,.1); }
.app-navbar .nav-link.active { color: #fff !important; background: var(--accent); }
.app-navbar .user-badge {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    font-weight: 500;
    padding: .35rem .75rem;
}
.btn-logout {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: .35rem .9rem;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
}
.btn-logout:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* ── Layout ─────────────────────────────────────────────────── */
.page-container {
    padding: 2rem 1.75rem;
    max-width: 1440px;
    margin: 0 auto;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

/* ── Karty ──────────────────────────────────────────────────── */
.card-custom {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: none;
    overflow: hidden;
}
.card-custom-body { padding: 1.5rem; }

/* Stat karty */
.stat-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    height: 100%;
}
.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: .35rem;
}

/* ── Tlačítka ───────────────────────────────────────────────── */
.btn-app {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.4rem;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: all .18s;
    line-height: 1.4;
}
.btn-app:hover         { background: #1484ba; color: white; transform: translateY(-1px); }
.btn-app.btn-danger    { background: var(--danger); }
.btn-app.btn-danger:hover { background: #c53030; }
.btn-app.btn-success   { background: var(--success); }
.btn-app.btn-success:hover { background: #0d9668; }
.btn-app.btn-outline   { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-app.btn-outline:hover { background: var(--accent); color: white; }
.btn-app.btn-sm        { padding: .35rem .9rem; font-size: .82rem; }

/* ── Tabulky ────────────────────────────────────────────────── */
.table-wrap { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tbl {
    width: 100%;
    border-collapse: collapse;
}
.tbl th {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .9rem 1.1rem;
    white-space: nowrap;
}
.tbl td {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: white;
    vertical-align: middle;
    font-size: .95rem;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--accent-lt); }
.tbl .actions { white-space: nowrap; text-align: right; }

/* ── Formuláře (admin) ──────────────────────────────────────── */
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.form-label-app {
    font-weight: 700;
    font-size: .875rem;
    color: var(--text);
    margin-bottom: .4rem;
    display: block;
}
.form-control-app {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: .65rem 1rem;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
    background: white;
    color: var(--text);
}
.form-control-app:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(24,156,217,.15);
    outline: none;
}
.form-control-app option { font-family: 'Space Grotesk', sans-serif; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge-app {
    background: var(--accent-lt);
    color: var(--accent);
    padding: .2rem .65rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    display: inline-block;
}
.badge-app.green { background: #d1fae5; color: #065f46; }
.badge-app.red   { background: #fee2e2; color: #991b1b; }
.badge-app.gray  { background: var(--border); color: var(--muted); }

/* ── Modální okna ───────────────────────────────────────────── */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: var(--shadow-md);
}
.modal-header {
    background: var(--primary);
    color: white;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
    padding: 1.1rem 1.5rem;
}
.modal-title { font-weight: 700; font-size: 1.1rem; }
.btn-close   { filter: invert(1); opacity: .8; }
.modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; }

/* ── Flash / Alert ──────────────────────────────────────────── */
.alert-custom {
    border-radius: 10px;
    padding: .85rem 1.1rem;
    font-weight: 600;
    font-size: .92rem;
    border: none;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger);  }
.alert-info    { background: var(--accent-lt); color: #0c4a6e; border-left: 4px solid var(--accent); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* ── Login stránka ──────────────────────────────────────────── */
.login-page {
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.login-logo  { height: 48px; margin-bottom: 1.5rem; }
.login-title { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin: 0; }
.login-sub   { color: var(--muted); font-size: .92rem; margin: .3rem 0 1.75rem; }

/* ═══════════════════════════════════════════════════════════════
   UČITELSKÉ ROZHRANÍ  (iPad-first)
═══════════════════════════════════════════════════════════════ */
.teacher-page {
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.teacher-topbar {
    background: rgba(0,0,0,.25);
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.teacher-topbar .tlogo { height: 30px; filter: brightness(0) invert(1); }
.teacher-topbar .station-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}
.teacher-topbar .teacher-name { color: rgba(255,255,255,.65); font-size: .875rem; }
.teacher-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    overflow-y: auto;
}

/* Score formulář */
.score-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 1.75rem;
    width: 100%;
    max-width: 680px;
}
.score-card .field-label {
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .6rem;
    display: block;
}

/* Výběr třídy */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: .6rem;
}
.class-btn {
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.15);
    color: white;
    border-radius: 12px;
    padding: .8rem .4rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    min-height: 54px;
    width: 100%;
}
.class-btn:hover  { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }
.class-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* Mřížka čísel týmů */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: .5rem;
    min-height: 54px;
    align-content: start;
}
.team-grid-placeholder {
    grid-column: 1 / -1;
    color: rgba(255,255,255,.35);
    font-size: .88rem;
    font-weight: 500;
    padding: .5rem 0;
}
.team-btn {
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.12);
    color: white;
    border-radius: 10px;
    padding: .65rem .3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    min-height: 54px;
    width: 100%;
}
.team-btn:hover  { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.team-btn.active { background: var(--accent); border-color: var(--accent); }

/* Výběr bodů */
.points-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .5rem;
}
.pts-btn {
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.12);
    color: white;
    border-radius: 10px;
    padding: .65rem .3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    min-height: 54px;
    width: 100%;
}
.pts-btn:hover  { background: rgba(255,255,255,.18); }
.pts-btn.active { background: var(--accent); border-color: var(--accent); }
.pts-btn.perfect.active { background: var(--success); border-color: var(--success); }
.pts-btn.perfect { border-color: rgba(16,185,129,.4); }
.pts-btn.zero    { border-color: rgba(239,68,68,.4); }
.pts-btn.zero.active { background: var(--danger); border-color: var(--danger); }

/* Score info box */
.score-info-box {
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.5);
    border-radius: 10px;
    padding: .7rem 1rem;
    color: rgba(255,255,255,.9);
    font-size: .88rem;
    font-weight: 600;
    display: none;
    gap: .5rem;
    align-items: center;
}
.score-info-box.show { display: flex; }
.score-info-box.new  { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.5); }
.score-info-box.err  { background: rgba(239,68,68,.15);  border-color: rgba(239,68,68,.5);  }

/* Submit */
.score-submit {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    min-height: 62px;
    width: 100%;
    max-width: 380px;
}
.score-submit:hover    { background: #1484ba; transform: translateY(-2px); }
.score-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Potvrzení uložení */
.confirm-box {
    background: rgba(16,185,129,.15);
    border: 2px solid var(--success);
    border-radius: 18px;
    padding: 1.75rem;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 520px;
    animation: fadeInUp .35s ease;
}
.confirm-pts   { font-size: 4.5rem; font-weight: 800; color: var(--success); line-height: 1; }
.confirm-team  { font-size: 1.3rem; font-weight: 700; margin-top: .4rem; }
.confirm-sub   { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .25rem; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Záložky stanovišť (multi-station učitel) */
.station-tabs {
    background: rgba(0,0,0,.2);
    display: flex;
    gap: .4rem;
    padding: .55rem 1.25rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,.08);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.station-tabs::-webkit-scrollbar { display: none; }
.station-tab {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.65);
    border-radius: 8px;
    padding: .45rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}
.station-tab:hover  { background: rgba(255,255,255,.16); color: white; }
.station-tab.active { background: var(--accent); border-color: var(--accent); color: white; }

/* Výběr stanoviště */
.station-pick-btn {
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 1.4rem 2rem;
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 540px;
    transition: all .2s;
}
.station-pick-btn:hover {
    background: rgba(24,156,217,.2);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}
.station-pick-btn h3 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.station-pick-btn p  { color: rgba(255,255,255,.55); font-size: .9rem; margin: .2rem 0 0; }

/* ═══════════════════════════════════════════════════════════════
   QUICK-LOGIN (NFC superodkaz)
═══════════════════════════════════════════════════════════════ */
.ql-teacher-btn {
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 1.1rem 1.75rem;
    color: white;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ql-teacher-btn:hover {
    background: rgba(24,156,217,.2);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}
.ql-teacher-btn:active { transform: translateY(0); }
.ql-name  { font-size: 1.25rem; font-weight: 700; }
.ql-badge {
    background: rgba(24,156,217,.25);
    color: var(--accent);
    padding: .2rem .7rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Confirm — přepínač stanovišť */
.confirm-station-switch {
    width: 100%;
    max-width: 520px;
    margin-top: .85rem;
    text-align: center;
}
.confirm-station-switch-label {
    color: rgba(255,255,255,.38);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .5rem;
}
.confirm-station-switch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
}
.confirm-station-btn {
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.75);
    border-radius: 10px;
    padding: .55rem 1.1rem;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.confirm-station-btn:hover   { background: rgba(24,156,217,.25); border-color: var(--accent); color: white; }
.confirm-station-btn.current { background: var(--accent); border-color: var(--accent); color: white; }

/* ═══════════════════════════════════════════════════════════════
   VEŘEJNÁ STRÁNKA TÝMU (QR sken)
═══════════════════════════════════════════════════════════════ */
.team-pub-page {
    background: var(--primary);
    min-height: 100vh;
    padding: 1.5rem;
    color: white;
}
.team-pub-header {
    text-align: center;
    padding: 1rem 0 1.75rem;
}
.team-pub-header .tlogo { height: 38px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.team-pub-header h1 { font-size: 2rem; font-weight: 800; margin: 0; }
.team-pub-header .class-tag {
    background: rgba(24,156,217,.25);
    color: var(--accent);
    padding: .25rem .9rem;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 700;
    display: inline-block;
    margin-top: .4rem;
}

.total-score-box {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 1.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.total-pts     { font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.total-label   { color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.rank-badge    { background: rgba(255,215,0,.15); border: 1px solid rgba(255,215,0,.3); color: #ffd700; padding: .3rem .9rem; border-radius: 20px; font-size: .9rem; font-weight: 700; display: inline-block; margin-top: .5rem; }

.station-row {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: .6rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.station-row .s-name { font-weight: 700; font-size: .95rem; }
.station-row .s-pts  { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.progress-bar-bg { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; margin-top: .4rem; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .8s ease; }
.progress-bar-fill.full { background: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   TV DASHBOARD
═══════════════════════════════════════════════════════════════ */
.dash-page {
    background: var(--primary);
    min-height: 100vh;
    padding: 2rem 2.5rem;
    color: white;
    overflow: hidden;
}
.dash-logo   { height: 42px; filter: brightness(0) invert(1); }
.dash-title  { font-size: 2.2rem; font-weight: 800; margin: .4rem 0 0; }
.dash-event  { color: var(--accent); font-weight: 600; font-size: 1rem; }
.section-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: .5rem;
    margin-bottom: 1rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid rgba(24,156,217,.3);
}

.lb-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: .65rem;
    transition: transform .3s;
}
.lb-item.gold   { background: rgba(255,215,0,.1);  border-color: rgba(255,215,0,.35); }
.lb-item.silver { background: rgba(192,192,192,.09); border-color: rgba(192,192,192,.25); }
.lb-item.bronze { background: rgba(205,127,50,.09); border-color: rgba(205,127,50,.25); }

.lb-rank    { font-size: 1.6rem; font-weight: 800; color: var(--accent); width: 2.2rem; text-align: center; flex-shrink: 0; }
.gold   .lb-rank { color: #ffd700; }
.silver .lb-rank { color: #c0c0c0; }
.bronze .lb-rank { color: #cd7f32; }
.lb-info    { flex: 1; }
.lb-name    { font-weight: 700; font-size: 1rem; }
.lb-sub     { color: rgba(255,255,255,.5); font-size: .82rem; }
.lb-score   { font-size: 1.75rem; font-weight: 800; }
.lb-score-label { font-size: .7rem; color: rgba(255,255,255,.45); text-transform: uppercase; text-align: right; }

.class-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    margin-bottom: .4rem;
    border: 1px solid rgba(255,255,255,.07);
}
.class-row .cn { font-weight: 700; font-size: 1rem; }
.class-row .cp { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.class-pb { height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; margin-top: .3rem; overflow: hidden; }
.class-pb-fill { height: 100%; background: var(--accent); border-radius: 3px; }

.stat-pill {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: .9rem 1.25rem;
    text-align: center;
}
.stat-pill .sp-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-pill .sp-lbl { font-size: .75rem; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }

.refresh-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(255,255,255,.1);
    overflow: hidden;
}
.refresh-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: refreshProgress 30s linear infinite;
}
@keyframes refreshProgress { from { width: 0; } to { width: 100%; } }

/* ═══════════════════════════════════════════════════════════════
   TISK KARET
═══════════════════════════════════════════════════════════════ */
.print-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.print-card {
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    break-inside: avoid;
    background: white;
}
.print-card .pc-title { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.print-card .pc-event { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.print-card .pc-qr    { width: 160px; height: 160px; margin: 0 auto; }
.print-card .pc-hint  { font-size: .75rem; color: var(--muted); margin-top: .6rem; }
.print-card .pc-logo  { height: 24px; margin-top: .6rem; opacity: .5; }

@media print {
    body, .admin-nav-wrap { background: white !important; }
    .no-print  { display: none !important; }
    .print-card { border: 2px solid #1a3054 !important; }
    .print-grid { gap: .5rem; }
    @page { margin: 1cm; }
}

/* ── Responzivita ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .page-container { padding: 1rem; }
    .points-grid    { grid-template-columns: repeat(5, 1fr); }
    .print-grid     { grid-template-columns: 1fr; }
    .dash-title     { font-size: 1.4rem; }
}
