/* ==========================================================================
   Eka Hospital Event — tema peserta (light / dark)
   Tema diatur lewat atribut data-theme="light|dark" di <html>.
   ========================================================================== */

:root,
[data-theme="light"] {
    --ek-bg: #F4F6F5;
    --ek-surface: #FFFFFF;
    --ek-field: #FAFBFB;
    --ek-tile: #F4F6F5;
    --ek-line: #E2E7E5;
    --ek-line2: #D5DDDA;
    --ek-ink: #1C2424;
    --ek-ink2: #3D4847;
    --ek-muted: #5B6766;
    --ek-primary: #B5172F;
    --ek-primary-hover: #9A1227;
    --ek-hero: #B5172F;
    --ek-link: #B5172F;
    --ek-sel: #FFF5F6;
    --ek-red-soft: #FBE7EA;
    --ek-red-soft-text: #8E1024;
    --ek-green: #5E9B2C;
    --ek-green-soft: #EAF3E2;
    --ek-green-text: #3F7A1A;
    --ek-green-text2: #2C5A12;
    --ek-warn-soft: #FFF4D6;
    --ek-warn-text: #7A4B00;
    --ek-dark-card: #1C2424;
    --ek-dark-card-line: #1C2424;
    --ek-dot-idle: #C4CDCA;
    --ek-shadow: 0 1px 2px rgba(28, 36, 36, 0.04);
    --ek-focus: rgba(181, 23, 47, 0.18);
    color-scheme: light;
}

[data-theme="dark"] {
    --ek-bg: #0E1413;
    --ek-surface: #172120;
    --ek-field: #1D2827;
    --ek-tile: #212D2B;
    --ek-line: #2A3735;
    --ek-line2: #3A4A47;
    --ek-ink: #EEF2F1;
    --ek-ink2: #C3CDCB;
    --ek-muted: #9AA8A6;
    --ek-primary: #C8283F;
    --ek-primary-hover: #D93A51;
    --ek-hero: #9E1428;
    --ek-link: #FF8B99;
    --ek-sel: #2A1519;
    --ek-red-soft: #3A1A1F;
    --ek-red-soft-text: #FFB3BD;
    --ek-green: #6FB23A;
    --ek-green-soft: #1C2E17;
    --ek-green-text: #A6D884;
    --ek-green-text2: #BDE3A3;
    --ek-warn-soft: #33290F;
    --ek-warn-text: #F2C25B;
    --ek-dark-card: #243231;
    --ek-dark-card-line: #33443F;
    --ek-dot-idle: #4A5B58;
    --ek-shadow: none;
    --ek-focus: rgba(255, 139, 153, 0.22);
    color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body { background: var(--ek-bg); }

body.ek-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ek-ink);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    transition: background-color .2s ease, color .2s ease;
}

.ek-body a { color: var(--ek-link); }
.ek-body a:hover { color: var(--ek-primary-hover); }

.ek-shell {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.ek-stack { display: flex; flex-direction: column; gap: 16px; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.ek-topbar {
    background: var(--ek-surface);
    border-bottom: 1px solid var(--ek-line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.ek-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px 12px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.ek-topbar-actions { display: flex; align-items: center; gap: 6px; }

/* Logo selalu di chip putih supaya terbaca di tema gelap */
.ek-logo-chip {
    background: #FFFFFF;
    border-radius: 9px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.ek-logo-chip img { height: 26px; width: auto; display: block; }
.ek-logo-chip.lg img { height: 30px; }

.ek-icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--ek-tile);
    color: var(--ek-ink2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease;
    flex: none;
}
.ek-icon-btn:hover { background: var(--ek-line); color: var(--ek-ink); }
.ek-icon-btn:focus-visible { outline: 3px solid var(--ek-focus); outline-offset: 2px; }

/* Ikon tema: bulan saat light, matahari saat dark */
.ek-theme-toggle .ek-ico-sun { display: none; }
[data-theme="dark"] .ek-theme-toggle .ek-ico-sun { display: inline; }
[data-theme="dark"] .ek-theme-toggle .ek-ico-moon { display: none; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.ek-card {
    background: var(--ek-surface);
    border: 1px solid var(--ek-line);
    border-radius: 22px;
    box-shadow: var(--ek-shadow);
    overflow: hidden;
}
.ek-card-pad { padding: 20px; }
.ek-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.ek-h2 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.1px; color: var(--ek-ink); }
.ek-sub { margin: 6px 0 0; font-size: .82rem; line-height: 1.5; color: var(--ek-muted); }
.ek-muted { color: var(--ek-muted); }

/* ── Hero (blok merah + motif tanda plus) ─────────────────────────────── */
.ek-hero {
    position: relative;
    overflow: hidden;
    background: var(--ek-hero);
    color: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
}
.ek-hero.flat { border-radius: 0; }
.ek-hero::before,
.ek-hero::after {
    content: '';
    position: absolute;
    background: #FFFFFF;
    opacity: .14;
    border-radius: 10px;
    pointer-events: none;
}
.ek-hero::before { width: 46px; height: 140px; right: 20px; top: -26px; }
.ek-hero::after  { width: 140px; height: 46px; right: -27px; top: 21px; }
.ek-hero > * { position: relative; z-index: 1; }
.ek-eyebrow {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .85;
}
.ek-hero-title { margin: 8px 0 0; font-size: 1.6rem; line-height: 1.18; font-weight: 800; letter-spacing: -.5px; max-width: 300px; }
.ek-hero-meta { font-size: .82rem; margin-top: 6px; opacity: .92; }
.ek-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ek-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(255,255,255,.16);
    padding: 7px 11px;
    border-radius: 999px;
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.ek-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.ek-badge-red   { background: var(--ek-red-soft);   color: var(--ek-red-soft-text); }
.ek-badge-green { background: var(--ek-green-soft); color: var(--ek-green-text2); }
.ek-badge-warn  { background: var(--ek-warn-soft);  color: var(--ek-warn-text); }
.ek-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.ek-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
    width: 100%;
}
.ek-btn:active:not(:disabled) { transform: scale(.98); }
.ek-btn:focus-visible { outline: 3px solid var(--ek-focus); outline-offset: 2px; }
.ek-btn:disabled { cursor: not-allowed; opacity: 1; }
.ek-btn-lg { min-height: 54px; font-size: 1rem; border-radius: 16px; }

.ek-btn-primary { background: var(--ek-primary); color: #FFFFFF !important; }
.ek-btn-primary:hover:not(:disabled) { background: var(--ek-primary-hover); }
.ek-btn-primary:disabled { background: var(--ek-tile); color: var(--ek-muted) !important; border-color: var(--ek-line); }

.ek-btn-outline { background: var(--ek-surface); color: var(--ek-ink) !important; border-color: var(--ek-line2); }
.ek-btn-outline:hover:not(:disabled) { background: var(--ek-tile); }

.ek-btn-light { background: #FFFFFF; color: #1C2424 !important; }
.ek-btn-light:hover { background: #EEF2F1; }

.ek-btn-success { background: var(--ek-green-soft); color: var(--ek-green-text2) !important; border-color: transparent; }

.ek-btn-choice { background: var(--ek-surface); color: var(--ek-ink2) !important; border-color: var(--ek-line2); font-weight: 600; }
.ek-btn-choice.is-active { background: var(--ek-sel); color: var(--ek-red-soft-text) !important; border: 2px solid var(--ek-primary); font-weight: 700; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.ek-field { display: flex; flex-direction: column; gap: 7px; }
.ek-label { font-size: .8rem; font-weight: 600; color: var(--ek-ink); margin: 0; }
.ek-req { color: var(--ek-link); }
.ek-input {
    height: 50px;
    width: 100%;
    border: 1.5px solid var(--ek-line2);
    border-radius: 14px;
    padding: 0 16px;
    font: inherit;
    font-size: .95rem;
    color: var(--ek-ink);
    background: var(--ek-field);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.ek-input { height: auto; min-height: 96px; padding: 12px 16px; line-height: 1.5; }
.ek-input::placeholder { color: var(--ek-muted); opacity: .8; }
.ek-input:focus { outline: none; border-color: var(--ek-primary); box-shadow: 0 0 0 4px var(--ek-focus); }
.ek-input.is-invalid { border-color: #D93A51; }
.ek-invalid { font-size: .78rem; color: var(--ek-link); }

.ek-input-wrap { position: relative; }
.ek-input-wrap .ek-input { padding-right: 52px; }
.ek-input-wrap .ek-input-btn {
    position: absolute; right: 3px; top: 3px;
    width: 44px; height: 44px;
    border: 0; background: transparent; color: var(--ek-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; border-radius: 12px;
}

.ek-input-group {
    display: flex;
    height: 50px;
    border: 1.5px solid var(--ek-line2);
    border-radius: 14px;
    background: var(--ek-field);
    overflow: hidden;
}
.ek-input-group:focus-within { border-color: var(--ek-primary); box-shadow: 0 0 0 4px var(--ek-focus); }
.ek-input-group .ek-addon {
    display: flex; align-items: center;
    padding: 0 12px 0 16px;
    font-size: .95rem; font-weight: 600; color: var(--ek-ink2);
    border-right: 1px solid var(--ek-line);
}
.ek-input-group input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: .95rem; color: var(--ek-ink); background: transparent; }
.ek-input-group input:focus { outline: none; }

.ek-check { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; line-height: 1.5; color: var(--ek-ink2); cursor: pointer; min-height: 24px; }
.ek-check input { width: 18px; height: 18px; accent-color: var(--ek-primary); margin: 1px 0 0; flex: none; }

/* Pilihan Offline / Online */
.ek-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ek-choice { position: relative; display: block; cursor: pointer; margin: 0; }
.ek-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ek-choice-body {
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px; min-height: 150px; height: 100%;
    border-radius: 18px;
    background: var(--ek-surface);
    border: 2px solid var(--ek-line);
    transition: border-color .15s ease, background-color .15s ease;
}
.ek-choice-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px; font-size: 1.25rem;
    background: var(--ek-tile); color: var(--ek-ink2);
}
.ek-choice-title { font-size: .95rem; font-weight: 800; color: var(--ek-ink); }
.ek-choice-desc { font-size: .78rem; line-height: 1.4; color: var(--ek-muted); }
.ek-choice-check {
    position: absolute; top: 12px; right: 12px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ek-primary); color: #FFFFFF;
    display: none; align-items: center; justify-content: center; font-size: .8rem;
}
.ek-choice input:checked + .ek-choice-body { background: var(--ek-sel); border-color: var(--ek-primary); }
.ek-choice input:checked + .ek-choice-body .ek-choice-icon { background: var(--ek-primary); color: #FFFFFF; }
.ek-choice input:checked + .ek-choice-body .ek-choice-check { display: flex; }
.ek-choice input:focus-visible + .ek-choice-body { box-shadow: 0 0 0 4px var(--ek-focus); }

/* ── Alerts / notes ───────────────────────────────────────────────────── */
.ek-note {
    display: flex; gap: 10px;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: .82rem; line-height: 1.5;
}
.ek-note i { flex: none; font-size: 1rem; margin-top: 1px; }
.ek-note-green { background: var(--ek-green-soft); color: var(--ek-green-text2); }
.ek-note-warn  { background: var(--ek-warn-soft);  color: var(--ek-warn-text); }
.ek-note-red   { background: var(--ek-red-soft);   color: var(--ek-red-soft-text); }
.ek-note ul { margin: 0; padding-left: 18px; }

/* ── Info rows (ikon + label/nilai) ───────────────────────────────────── */
.ek-info { display: flex; gap: 12px; align-items: flex-start; }
.ek-info-icon {
    width: 38px; height: 38px; flex: none; border-radius: 12px;
    background: var(--ek-red-soft); color: var(--ek-link);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.ek-info-label { font-size: .75rem; color: var(--ek-muted); }
.ek-info-value { font-size: .9rem; font-weight: 700; margin-top: 2px; line-height: 1.4; color: var(--ek-ink); word-break: break-word; }
.ek-info-extra { font-size: .8rem; color: var(--ek-muted); margin-top: 2px; line-height: 1.45; }

.ek-kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ek-line); font-size: .85rem; }
.ek-kv:last-child { border-bottom: 0; }
.ek-kv span:first-child { color: var(--ek-muted); }
.ek-kv span:last-child { font-weight: 700; text-align: right; word-break: break-word; }

/* ── Quick actions ────────────────────────────────────────────────────── */
.ek-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ek-quick-btn {
    border: 1px solid var(--ek-line);
    background: var(--ek-surface);
    color: var(--ek-ink);
    border-radius: 18px;
    padding: 14px 4px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font: inherit; cursor: pointer; text-decoration: none;
    transition: background-color .15s ease;
}
.ek-quick-btn:hover:not(:disabled) { background: var(--ek-tile); color: var(--ek-ink); }
.ek-quick-btn:disabled { cursor: not-allowed; opacity: .55; }
.ek-quick-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
    background: var(--ek-green-soft); color: var(--ek-green-text);
}
.ek-quick-icon.primary { background: var(--ek-primary); color: #FFFFFF; }
.ek-quick-label { font-size: .72rem; font-weight: 700; line-height: 1.25; text-align: center; }

/* ── E-Pass ───────────────────────────────────────────────────────────── */
.ek-pass-tear { height: 0; border-top: 2px dashed var(--ek-line); margin: 0 18px; }
.ek-pass-body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ek-qr-box {
    padding: 12px; border-radius: 16px;
    border: 1.5px solid var(--ek-line);
    background: #FFFFFF; /* QR selalu putih agar mudah dipindai */
    line-height: 0;
    cursor: zoom-in;
}
.ek-qr-box img, .ek-qr-box canvas { width: 176px !important; height: 176px !important; display: block; }
.ek-pass-id { font-size: 1rem; font-weight: 800; letter-spacing: 1px; margin-top: 2px; }
.ek-status-row {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--ek-tile);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .82rem;
}

/* ── Tiles (meja/kursi/kamar) ─────────────────────────────────────────── */
.ek-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ek-tile {
    background: var(--ek-tile);
    border-radius: 16px;
    padding: 14px;
    border: 0;
    text-align: left;
    font: inherit;
    color: var(--ek-ink);
    min-width: 0;
}
button.ek-tile { cursor: pointer; }
button.ek-tile:hover { background: var(--ek-line); }
.ek-tile-full { grid-column: 1 / -1; }
.ek-tile-label { font-size: .75rem; color: var(--ek-muted); display: flex; align-items: center; gap: 6px; }
.ek-tile-value { font-size: 1.5rem; font-weight: 800; margin-top: 2px; line-height: 1.15; word-break: break-word; }
.ek-tile-text { font-size: .92rem; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.ek-tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; }

/* ── Row item (luggage, help) ─────────────────────────────────────────── */
.ek-row { display: flex; align-items: center; gap: 14px; }
.ek-row-icon {
    width: 44px; height: 44px; flex: none; border-radius: 14px;
    background: var(--ek-tile); color: var(--ek-ink2);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.ek-row-icon.green { background: var(--ek-green-soft); color: var(--ek-green-text); }
.ek-row-body { flex: 1; min-width: 0; }
.ek-row-title { font-size: .92rem; font-weight: 800; }
.ek-row-desc { font-size: .8rem; color: var(--ek-muted); margin-top: 2px; }
a.ek-card.ek-row-link { text-decoration: none; color: var(--ek-ink); display: block; }
a.ek-card.ek-row-link:hover { background: var(--ek-tile); color: var(--ek-ink); }

.ek-tag {
    margin-left: auto;
    background: var(--ek-tile);
    color: var(--ek-ink);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 10px;
}

.ek-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ek-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ek-line); cursor: zoom-in; }

/* ── Timeline (rundown) ───────────────────────────────────────────────── */
.ek-tl { display: flex; flex-direction: column; }
.ek-tl-item { display: flex; gap: 14px; }
.ek-tl-time { width: 52px; flex: none; font-size: .8rem; font-weight: 700; color: var(--ek-ink2); padding-top: 1px; }
.ek-tl-time small { display: block; font-weight: 500; color: var(--ek-muted); font-size: .72rem; }
.ek-tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.ek-tl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; background: var(--ek-surface); border: 2.5px solid var(--ek-dot-idle); }
.ek-tl-item:first-child .ek-tl-dot { background: var(--ek-primary); border-color: var(--ek-primary); }
.ek-tl-line { width: 2px; flex: 1; background: var(--ek-line); margin-top: 4px; }
.ek-tl-item:last-child .ek-tl-line { background: transparent; }
.ek-tl-body { padding-bottom: 18px; min-width: 0; }
.ek-tl-title { font-size: .88rem; font-weight: 700; }
.ek-tl-desc { font-size: .78rem; color: var(--ek-muted); margin-top: 2px; line-height: 1.45; }

/* ── People (PIC) ─────────────────────────────────────────────────────── */
.ek-person { display: flex; align-items: center; gap: 12px; }
.ek-avatar {
    width: 42px; height: 42px; flex: none; border-radius: 50%;
    background: var(--ek-tile); color: var(--ek-ink2);
    font-size: .88rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ek-person-name { font-size: .88rem; font-weight: 700; }
.ek-person-sub { font-size: .78rem; color: var(--ek-muted); }
.ek-wa-btn { background: var(--ek-green-soft) !important; color: var(--ek-green-text) !important; }

/* ── Dark promo card (survey) ─────────────────────────────────────────── */
.ek-card-dark { background: var(--ek-dark-card); border-color: var(--ek-dark-card-line); color: #FFFFFF; }
.ek-card-dark .ek-h2 { color: #FFFFFF; }
.ek-card-dark .ek-sub { color: #C9D2D0; }

/* ── Survey ───────────────────────────────────────────────────────────── */
.ek-q-title { font-weight: 700; font-size: .88rem; margin-bottom: 10px; line-height: 1.45; }
.ek-rating { display: flex; gap: 8px; flex-wrap: wrap; }
.ek-rating-btn {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1.5px solid var(--ek-line2);
    background: var(--ek-surface); color: var(--ek-ink2);
    font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.ek-rating-btn.is-active { background: var(--ek-primary); border-color: var(--ek-primary); color: #FFFFFF; }

/* ── Zoom card ────────────────────────────────────────────────────────── */
.ek-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; max-width: 290px; }
.ek-countdown div { background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 0; text-align: center; }
.ek-countdown b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.ek-countdown span { font-size: .66rem; opacity: .9; }
.ek-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.18); padding: 8px 12px; border-radius: 999px; }
.ek-live .ek-dot { background: #FFFFFF; animation: ekPulse 1.4s ease-in-out infinite; }
@keyframes ekPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.ek-copy-list { border: 1px solid var(--ek-line); border-radius: 16px; }
.ek-copy-row { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; }
.ek-copy-row + .ek-copy-row { border-top: 1px solid var(--ek-line); }
.ek-copy-row .v { font-size: .98rem; font-weight: 800; letter-spacing: .5px; margin-top: 1px; word-break: break-all; }

.ek-steps { display: flex; flex-direction: column; gap: 10px; }
.ek-steps div { display: flex; gap: 10px; font-size: .82rem; line-height: 1.5; }
.ek-steps b { flex: none; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.ek-footer {
    margin-top: auto;
    padding: 28px 20px 30px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: .75rem; color: var(--ek-muted); text-align: center;
}

/* ── Bootstrap overrides supaya modal/toast ikut tema ─────────────────── */
.ek-body .modal-content { background: var(--ek-surface); color: var(--ek-ink); border: 1px solid var(--ek-line); border-radius: 20px; overflow: hidden; }
.ek-body .ek-modal-head { background: var(--ek-hero); color: #FFFFFF; border: 0; padding: 16px 20px; }
.ek-body .ek-modal-head .modal-title { font-weight: 800; font-size: 1rem; margin: 0; }
.ek-body .form-control { background: var(--ek-field); color: var(--ek-ink); border-color: var(--ek-line2); }
.ek-body hr { border-color: var(--ek-line); opacity: 1; }

.ek-pop { animation: ekPop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes ekPop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

@media (min-width: 992px) {
    .ek-shell, .ek-topbar-inner { max-width: 640px; }
}
@media (max-width: 360px) {
    .ek-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ek-shell { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tombol ikon berupa link tetap pakai warna ikon, bukan warna link */
.ek-body a.ek-icon-btn { color: var(--ek-ink2); }
.ek-body a.ek-icon-btn:hover { color: var(--ek-ink); }

/* ── Token tambahan (dipakai juga oleh panel admin) ───────────────────── */
:root, [data-theme="light"] {
    --ek-strong: #1C2424;        /* permukaan gelap pekat: header modal, tombol sekunder */
    --ek-strong-hover: #2E3A39;
    --ek-muted2: #7C8886;
    --ek-sidebar: #172120;
    --ek-row-hover: #F7F9F8;
}
[data-theme="dark"] {
    --ek-strong: #2A3735;
    --ek-strong-hover: #354442;
    --ek-muted2: #7F8E8C;
    --ek-sidebar: #111817;
    --ek-row-hover: #1B2524;
}
