/* ============================================================================
   event-saas3.css — skin frontend "SaaS Brurce 3" untuk aplikasi Event GPIB
   Dibuat untuk replika dev event.brurce.my.id (29 Okt 2026).
   Hanya lapisan tampilan: TIDAK mengubah markup form, nama field, atau aksi.
   Dipakai oleh: resources/views/auth/index, participant/index, admin/app
   Palet & gaya mengikuti ~/saas-brurce3 (MDB UI Kit 6.2.0): primary #1266f1.
   ========================================================================== */

:root {
    --s3-primary: #1266f1;
    --s3-primary-hover: #0b5ed7;
    --s3-primary-dark: #0d47a1;
    --s3-primary-soft: #e8f0fe;
    --s3-primary-softer: #f5f8ff;
    --s3-ink: #23272f;
    --s3-muted: #6b7280;
    --s3-line: #edf0f4;
    --s3-bg: #fbfbfb;
    --s3-white: #ffffff;
    --s3-radius: 14px;
    --s3-radius-sm: 10px;
    --s3-shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
    --s3-shadow-sm: 0 2px 5px 0 rgba(0, 0, 0, .05), 0 2px 10px 0 rgba(0, 0, 0, .05);
    --s3-shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
    --s3-shadow-lg: 0 18px 50px rgba(13, 71, 161, .16);
    --s3-sidebar-w: 268px;
}

/* ---------------------------------------------------------------- 1. DASAR */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background-color: var(--s3-bg);
    color: var(--s3-ink);
    font-size: .95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -.01em;
    color: #1b1f27;
}

a {
    color: var(--s3-primary);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--s3-primary-hover);
    text-decoration: none;
}

hr {
    border-color: var(--s3-line);
    opacity: 1;
}

.text-muted {
    color: var(--s3-muted) !important;
}

/* ------------------------------------------------------------- 2. TOMBOL */
.btn {
    border-radius: var(--s3-radius-sm);
    font-weight: 500;
    letter-spacing: .01em;
    padding: .5rem 1.05rem;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    border-width: 1px;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .18);
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--s3-primary);
    border-color: var(--s3-primary);
    box-shadow: 0 4px 12px rgba(18, 102, 241, .24);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--s3-primary-hover) !important;
    border-color: var(--s3-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(18, 102, 241, .3);
}

.bg-primary,
.btn-primary.bg-primary {
    background-color: var(--s3-primary) !important;
}

.text-primary {
    color: var(--s3-primary) !important;
}

.border-primary {
    border-color: var(--s3-primary) !important;
}

.btn-outline-primary {
    color: var(--s3-primary);
    border-color: rgba(18, 102, 241, .45);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
    border-color: var(--s3-primary);
}

.btn-outline-success,
.btn-success {
    border-radius: var(--s3-radius-sm);
}

.btn-light {
    background-color: #f4f6fa;
    border-color: #e6eaf1;
    color: #374151;
}

.btn-light:hover {
    background-color: #e9eef6;
    color: var(--s3-primary-dark);
}

.btn-lg {
    padding: .75rem 1.4rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: .3rem .7rem;
    font-size: .8rem;
    border-radius: 8px;
}

.btn-dark {
    background: #263238;
    border-color: #263238;
}

/* -------------------------------------------------------------- 3. KARTU */
.card {
    border: 0;
    border-radius: var(--s3-radius);
    box-shadow: var(--s3-shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease;
    background-color: var(--s3-white);
}

.card:hover {
    box-shadow: var(--s3-shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--s3-line);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-top-left-radius: var(--s3-radius) !important;
    border-top-right-radius: var(--s3-radius) !important;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: .35rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--s3-line);
}

.shadow-sm {
    box-shadow: var(--s3-shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--s3-shadow-lg) !important;
}

.shadow,
.shadow-2 {
    box-shadow: var(--s3-shadow-md) !important;
}

/* --------------------------------------------------------------- 4. FORM */
.form-control,
.form-select,
.custom-select,
select.form-control {
    border-radius: var(--s3-radius-sm);
    border: 1px solid #e2e7ef;
    padding: .55rem .85rem;
    font-size: .925rem;
    color: var(--s3-ink);
    background-color: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control:focus,
.form-select:focus,
.custom-select:focus {
    border-color: var(--s3-primary);
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .12);
}

.form-control::placeholder {
    color: #9aa3b2;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--s3-radius-sm);
}

.form-floating > label {
    color: var(--s3-muted);
    font-size: .9rem;
}

.input-group-text {
    border-radius: var(--s3-radius-sm);
    background-color: #f4f6fa;
    border-color: #e2e7ef;
}

.form-check-input:checked {
    background-color: var(--s3-primary);
    border-color: var(--s3-primary);
}

.form-label {
    font-weight: 500;
    color: #46505f;
    font-size: .875rem;
}

/* Select2 (dipakai banyak halaman) */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: var(--s3-radius-sm) !important;
    border: 1px solid #e2e7ef !important;
    min-height: 42px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--s3-primary) !important;
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .12) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--s3-primary) !important;
}

/* -------------------------------------------------------------- 5. TABEL */
.table {
    margin-bottom: 0;
    color: var(--s3-ink);
}

.table > :not(:first-child) {
    border-top: 1px solid var(--s3-line);
}

.table thead th {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .06em;
    font-weight: 700;
    color: #4b5563;
    background-color: var(--s3-primary-softer);
    border-bottom: 1px solid var(--s3-line);
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody td {
    vertical-align: middle;
    border-color: var(--s3-line);
    font-size: .9rem;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: #f7faff;
}

.table-sm > :not(caption) > * > * {
    padding: .45rem .5rem;
}

.table-responsive {
    border-radius: var(--s3-radius);
}

/* DataTables */
.dataTables_wrapper {
    font-size: .9rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: .35rem 0;
}

.dataTables_filter input {
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    padding: 6px 12px;
    margin-left: .4rem;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--s3-primary);
    box-shadow: 0 0 0 .2rem rgba(18, 102, 241, .12);
}

.dt-buttons .btn,
.dt-buttons .dt-button {
    border-radius: 8px !important;
    border: 1px solid #e2e7ef !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: .8rem !important;
    padding: .3rem .7rem !important;
    margin-right: .35rem;
}

.dt-buttons .btn:hover,
.dt-buttons .dt-button:hover {
    background: var(--s3-primary-soft) !important;
    color: var(--s3-primary-dark) !important;
}

.page-link {
    border: 0;
    color: var(--s3-primary);
    border-radius: 8px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--s3-primary);
    border-color: var(--s3-primary);
}

/* ------------------------------------------------- 6. NAVBAR PESERTA (S3) */
.s3-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--s3-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    padding: .55rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.s3-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-right: 1rem;
}

.s3-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--s3-primary) 0%, var(--s3-primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 6px 14px rgba(18, 102, 241, .32);
    flex: 0 0 auto;
}

.s3-brand-text {
    line-height: 1.1;
}

.s3-brand-text .s3-brand-title {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: #1b1f27;
    letter-spacing: .01em;
}

.s3-brand-text .s3-brand-sub {
    display: block;
    font-size: .72rem;
    color: var(--s3-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.s3-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s3-nav-links {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}

.s3-nav-links .nav-link {
    color: #46505f;
    font-weight: 500;
    font-size: .875rem;
    border-radius: 9px;
    padding: .4rem .7rem !important;
}

.s3-nav-links .nav-link:hover,
.s3-nav-links .nav-link.active {
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
}

.s3-lang {
    border: 1px solid #e2e7ef;
    border-radius: 9px;
    background: #fff;
    color: #374151;
    font-size: .8rem;
    padding: .32rem .55rem;
    min-width: 92px;
}

.s3-avatar-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .35rem;
    border-radius: 999px;
    transition: background .18s ease;
}

.s3-avatar-link:hover {
    background: #f4f6fa;
}

.s3-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--s3-primary-soft);
}

.s3-avatar-name {
    font-size: .8rem;
    font-weight: 600;
    color: #1b1f27;
    line-height: 1;
}

.s3-avatar-role {
    font-size: .68rem;
    color: var(--s3-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Sidebar peserta (partial lama, di-restyle) */
.s3-sidebar-wrap .list-group-item {
    border: 0;
    border-radius: 10px !important;
    margin-bottom: .25rem;
    padding: .55rem .8rem;
    background: transparent;
    transition: background .18s ease, color .18s ease;
}

.s3-sidebar-wrap .list-group-item a {
    color: #3f4753;
    font-size: .885rem;
    font-weight: 500;
}

.s3-sidebar-wrap .list-group-item:hover {
    background: #f2f6ff;
}

.s3-sidebar-wrap .list-group-item:hover a {
    color: var(--s3-primary-dark);
}

.s3-sidebar-wrap .list-group-item.active {
    background: linear-gradient(135deg, var(--s3-primary) 0%, #1a74ff 100%) !important;
    box-shadow: 0 6px 16px rgba(18, 102, 241, .28);
}

.s3-sidebar-wrap .list-group-item.active a,
.s3-sidebar-wrap .list-group-item.active i {
    color: #fff !important;
}

.s3-sidebar-wrap .card {
    border-radius: var(--s3-radius);
}

/* --------------------------------------------------- 7. ADMIN (S3 shell) */
.s3-admin-body {
    background-color: #f6f8fb;
}

.s3-sidebar {
    background: var(--s3-white) !important;
    border-right: 1px solid var(--s3-line);
    box-shadow: none !important;
}

.s3-sidebar-head {
    background: linear-gradient(135deg, var(--s3-primary-dark) 0%, var(--s3-primary) 100%) !important;
    height: 118px !important;
    border-radius: 0 0 18px 0;
    margin-bottom: 1rem;
    box-shadow: 0 10px 26px rgba(13, 71, 161, .28);
    flex-direction: column;
    gap: .15rem;
}

.s3-sidebar-head h4 {
    font-size: .95rem !important;
    letter-spacing: .14em;
    margin-bottom: 0;
    color: #fff;
}

.s3-sidebar-head .s3-sidebar-sub {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.s3-sidebar small.text-muted {
    font-weight: 700;
    letter-spacing: .1em;
}

.s3-sidebar .nav-link {
    color: #3f4753;
    border-radius: 9px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.s3-sidebar .nav-link:hover {
    background: #f2f6ff;
    color: var(--s3-primary-dark) !important;
    transform: translateX(2px);
}

.s3-sidebar .nav-link.bg-primary {
    background: linear-gradient(135deg, var(--s3-primary) 0%, #1a74ff 100%) !important;
    box-shadow: 0 6px 16px rgba(18, 102, 241, .26);
}

.s3-admin-navbar {
    background: rgba(255, 255, 255, .95) !important;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--s3-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
    padding: .45rem 1rem;
    z-index: 1030;
}

.s3-admin-navbar .navbar-brand {
    font-weight: 700;
    color: #1b1f27;
    letter-spacing: .01em;
}

.s3-admin-content {
    padding: 1.25rem;
}

.s3-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.s3-page-title small {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: var(--s3-muted);
    letter-spacing: 0;
    margin-top: .15rem;
}

/* ------------------------------------------------------ 8. HALAMAN LOGIN */
.s3-auth-body {
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(18, 102, 241, .18), transparent 62%),
        radial-gradient(900px 480px at 100% 0%, rgba(13, 71, 161, .16), transparent 60%),
        linear-gradient(180deg, #f7f9ff 0%, #f2f5fb 55%, #eef2f9 100%);
    min-height: 100vh;
}

.s3-auth-topbar {
    display: flex;
    justify-content: flex-end;
    padding: .75rem 1rem;
}

.s3-auth-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2.5rem;
    min-height: calc(100vh - 64px);
}

.s3-auth-hero {
    padding: 1rem 2rem 1rem 0;
}

.s3-auth-logo {
    width: min(320px, 82%);
    display: block;
    margin-bottom: 1.5rem;
}

.s3-auth-hero h1 {
    font-size: 2.15rem;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.s3-auth-hero p {
    color: #546070;
    font-size: 1rem;
    max-width: 46ch;
    margin-bottom: 1.25rem;
}

.s3-auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.s3-auth-points li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .9rem;
    color: #3f4753;
}

.s3-auth-points i {
    color: var(--s3-primary);
    margin-top: .15rem;
}

.s3-auth-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(13, 71, 161, .13), 0 2px 6px rgba(16, 24, 40, .04);
    padding: 2rem 1.75rem;
    border: 1px solid rgba(18, 102, 241, .07);
}

.s3-auth-card h2 {
    font-size: 1.35rem;
    margin-bottom: .25rem;
}

.s3-auth-card .s3-auth-sub {
    color: var(--s3-muted);
    font-size: .875rem;
    margin-bottom: 1.35rem;
}

.s3-auth-footer {
    text-align: center;
    color: var(--s3-muted);
    font-size: .78rem;
    padding: 1rem 0 1.5rem;
}

/* Kartu lama di dalam form (signIn/signUp) dibikin "menyatu" dengan s3-auth-card */
.s3-auth-card .card {
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.s3-auth-card .card:hover {
    box-shadow: none !important;
    transform: none;
}

/* ------------------------------------------------------ 9. LAIN-LAIN */
.alert {
    border: 0;
    border-radius: 12px;
    font-size: .885rem;
    box-shadow: var(--s3-shadow-xs);
}

.alert-success {
    background: #e8f7ee;
    color: #17683a;
}

.alert-danger {
    background: #fdecec;
    color: #9b1c1c;
}

.alert-warning {
    background: #fff6e5;
    color: #8a5b00;
}

.alert-info {
    background: #e9f3ff;
    color: #114b8f;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .35em .75em;
}

.text-bg-light {
    background-color: #fff !important;
    color: var(--s3-primary-dark) !important;
    box-shadow: var(--s3-shadow-xs);
}

/* badge "aktif" di kartu pemilih event dashboard (Bootstrap 4 tidak punya .text-bg-*) */
.text-bg-success {
    background-color: #e6f7ee !important;
    color: #0b7a43 !important;
}

.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
}

.modal-header {
    border-bottom: 1px solid var(--s3-line);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--s3-line);
}

.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .14);
    padding: .4rem;
    font-size: .88rem;
}

.dropdown-item {
    border-radius: 9px;
    padding: .5rem .7rem;
}

.dropdown-item:hover {
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
}

.progress {
    border-radius: 999px;
    background-color: #eef1f6;
    height: .55rem;
}

.progress-bar {
    border-radius: 999px;
    background-color: var(--s3-primary);
}

.s3-footer {
    background: #0d1526;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
    padding: 1rem 0;
    margin-top: 2rem;
}

.s3-footer a {
    color: rgba(255, 255, 255, .78);
}

.s3-footer a:hover {
    color: #fff;
}

/* Scrollbar halus (Chromium/Edge/Safari) */
* {
    scrollbar-width: thin;
    scrollbar-color: #d3dae6 transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #d3dae6;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #b9c3d3;
    background-clip: content-box;
}

/* -------------------------------------------------------- 10. RESPONSIF */
@media (max-width: 991.98px) {
    .s3-auth-shell {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: .5rem;
        text-align: left;
    }

    .s3-auth-hero {
        padding: 0;
        order: 2;
        display: none;
    }

    .s3-auth-hero h1 {
        font-size: 1.5rem;
    }

    .s3-auth-points {
        display: none;
    }

    .s3-auth-card {
        order: 1;
        padding: 1.5rem 1.15rem;
        border-radius: 18px;
    }

    .s3-navbar .s3-brand-sub {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: .92rem;
    }

    .s3-auth-logo {
        width: 70%;
    }

    .s3-navbar {
        padding: .4rem 0;
    }

    .s3-brand-text .s3-brand-title {
        font-size: .85rem;
    }

    .s3-avatar-name,
    .s3-avatar-role {
        display: none;
    }

    .card-body {
        padding: 1rem;
    }

    .s3-admin-content {
        padding: .85rem;
    }

    .table thead th {
        font-size: .7rem;
    }
}

/* Cegah luapan horizontal dari tabel lebar di layar kecil */
@media (max-width: 767.98px) {
    .table-responsive,
    .dataTables_wrapper {
        overflow-x: auto;
    }
}

/* ------------------------------------------------- 11. PENYESUAIAN VIEW */
/* View auth memakai container + vh-100 sendiri; di dalam kartu SaaS3 dinetralkan */
.s3-auth-card .container,
.s3-auth-card .container-fluid {
    min-height: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

.s3-auth-card .vh-100 {
    min-height: 0 !important;
    height: auto !important;
}

.s3-auth-card .card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.s3-auth-card .card-title {
    font-size: 1.3rem;
    color: #1b1f27 !important;
}

/* Kerangka konten admin (BS4) */
.s3-admin-body .border-bottom {
    border-color: var(--s3-line) !important;
}

.s3-admin-body .bg-light {
    background-color: #f6f8fb !important;
}

/* ------------------------------------------------- 12. NAVBAR RINGKAS & MENU HP */
.s3-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: .75rem;
}

.s3-navbar .s3-lang {
    padding: .26rem .5rem;
    font-size: .78rem;
    height: auto;
    min-width: 84px;
}

.s3-navbar .btn-light {
    padding: .3rem .55rem;
}

/* ------------------------------------------------- 13. NAVBAR SEJAJAR */
/* Tanpa aturan ini brand dan menu menumpuk (header jadi ~100 px) */
.s3-navbar > .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    min-height: 56px;
}

.s3-navbar .s3-nav-links {
    margin-left: auto;
    flex-wrap: wrap;
}

.s3-navbar .navbar-brand {
    flex: 0 1 auto;
    min-width: 0;
}

.s3-navbar .s3-brand-text {
    min-width: 0;
}

.s3-navbar .s3-brand-title,
.s3-navbar .s3-brand-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .s3-navbar > .container-fluid {
        gap: .35rem .5rem;
    }

    .s3-navbar .s3-chip {
        display: none !important;
    }
}

/* --------------------------------------- 14. LOGIN: LOGO DI ATAS (HP) */
/* Pola pkanew: kartu di tengah, logo + judul di kepala kartu. Hero besar
   hanya untuk desktop; di HP diganti blok merek ringkas di dalam kartu. */
.s3-auth-brand {
    display: none;
}

@media (max-width: 991.98px) {
    .s3-auth-brand {
        display: block;
        text-align: center;
        margin: -.35rem 0 1.15rem;
    }

    .s3-auth-brand-logo {
        width: 88px;
        height: 88px;
        object-fit: contain;
        margin: 0 auto .55rem;
        display: block;
    }

    .s3-auth-brand-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--s3-primary-dark);
        line-height: 1.2;
    }

    .s3-auth-brand-sub {
        display: block;
        font-size: .76rem;
        color: var(--s3-muted);
        letter-spacing: .02em;
    }

    .s3-auth-card .card-title {
        font-size: 1.08rem;
        margin-bottom: .3rem !important;
    }

    .s3-auth-card p.text-muted {
        font-size: .82rem;
        margin-bottom: 1rem !important;
    }
}

/* ------------------------- 15. HEADER DALAM APLIKASI: AKUN + BAHASA */
.s3-admin-navbar {
    height: 70px;
    padding: 0;
    border-bottom: 1px solid #eef1f6;
}

.s3-admin-navbar > .container-fluid {
    display: flex;
    align-items: center;
    gap: .55rem;
    height: 100%;
    flex-wrap: nowrap;
}

.s3-admin-title {
    min-width: 0;
}

.s3-admin-title h5,
.s3-admin-title small {
    display: block;
    max-width: 46vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s3-admin-mobile-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.s3-mobile-page {
    font-weight: 700;
    font-size: .9rem;
    color: #1b1f27;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
}

.s3-admin-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.s3-lang-sm {
    min-width: 66px;
    height: auto;
    padding: .3rem 1.5rem .3rem .55rem;
    font-size: .78rem;
    line-height: 1.2;
}

.s3-user-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: none;
    border: 0;
    padding: .18rem .25rem .18rem .18rem;
    border-radius: 999px;
    transition: background .18s ease;
}

.s3-user-btn:hover,
.s3-user-btn:focus {
    background: #f2f5fb;
    outline: none;
}

.s3-user-name {
    text-align: right;
    line-height: 1.15;
}

.s3-user-role {
    display: block;
    font-size: .68rem;
    color: var(--s3-muted);
}

.s3-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--s3-primary) 0%, var(--s3-primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--s3-primary-soft);
    flex: 0 0 auto;
}

.s3-user-menu {
    border: 0;
    border-radius: 14px;
    padding: .4rem;
    min-width: 232px;
    margin-top: .5rem;
    right: 0;
    left: auto;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18) !important;
}

.s3-user-menu-head {
    padding: .5rem .75rem .35rem;
    line-height: 1.25;
}

.s3-user-menu-sub {
    font-size: .74rem;
    color: var(--s3-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s3-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    border-radius: 9px;
    padding: .5rem .75rem;
    font-size: .875rem;
}

.s3-user-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--s3-muted);
}

.s3-user-menu .dropdown-item.is-danger,
.s3-user-menu .dropdown-item.is-danger i {
    color: #dc2626;
}

.s3-user-menu .dropdown-item.is-danger {
    font-weight: 600;
}

.s3-user-menu .dropdown-item.is-danger:hover {
    background: #fef2f2;
}

.s3-user-menu .dropdown-divider {
    margin: .3rem .15rem;
}

@media (max-width: 767.98px) {
    .s3-admin-navbar {
        height: 58px;
    }

    .s3-admin-navbar .container-fluid {
        gap: .4rem;
    }

    .s3-admin-tools {
        gap: .35rem;
    }

    .s3-mobile-page {
        max-width: 38vw;
        font-size: .85rem;
    }

    .s3-navbar {
        padding: .35rem 0;
    }
}

/* --------------------------------------------- 15. DASHBOARD: RINGKASAN EVENT */
/* Dipakai resources/views/admin/dashboard/index.blade.php */
.s3-dash-label {
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a94a6;
    font-weight: 600;
}

.s3-dash-event {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2a44;
    line-height: 1.25;
}

.s3-stat .card-body {
    padding: 1rem 1.1rem;
}

.s3-stat-label {
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a94a6;
    font-weight: 600;
}

.s3-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1266f1;
    line-height: 1.2;
}

/* kartu status proses: verifikasi keuangan (hijau) & daftar ulang (toska) */
.s3-stat-value.is-ok {
    color: #0f9d58;
}

.s3-stat-value.is-info {
    color: #0b7285;
}

.s3-stat-sub {
    font-size: .78rem;
    color: #8a94a6;
}

.s3-progress {
    height: 6px;
    border-radius: 99px;
    background: #eef1f6;
}

.s3-progress .progress-bar {
    background: #1266f1;
    border-radius: 99px;
}

/* daftar panjang (ratusan jemaat): batasi tinggi supaya halaman tidak memanjang */
.s3-dash-list {
    max-height: 420px;
    overflow: auto;
}

.s3-dash-list table td {
    padding: .35rem .75rem;
    font-size: .85rem;
    border-color: #f1f3f7;
}

/* pemilih event: di HP harus ikut menyusut, jangan pakai min-width kaku */
.s3-dash-pilih {
    flex: 1 1 240px;
    max-width: 380px;
}

.s3-dash-pilih .form-select {
    width: 100%;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .s3-dash-pilih {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* =====================================================================
   16. SHELL ADMIN: RAIL (desktop) + LACI (HP)          [30 Okt 2026]
   ---------------------------------------------------------------------
   Satu tempat untuk tata letak menu admin. Sebelumnya aturan sidebar
   tersebar di §7, §11, §12 dan §15 (empat blok, dua breakpoint berbeda),
   dan lebarnya mengikuti kolom Bootstrap (col-md-2) sehingga menyusut
   sampai 126 px di layar 768 px.
     .s3-shell   : flex, berisi .s3-sidebar + .s3-main
     >= 992 px   : sidebar menetap 268 px; body.s3-rail -> 76 px (ikon saja)
     <  992 px   : sidebar jadi laci (body.s3-drawer), dibuka tombol burger
   ===================================================================== */
.s3-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.s3-shell > .s3-sidebar {
    position: sticky;
    top: 0;
    flex: 0 0 var(--s3-sidebar-w);
    width: var(--s3-sidebar-w);
    max-width: var(--s3-sidebar-w);
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    z-index: 1035;
    transition: flex-basis .22s ease, width .22s ease, max-width .22s ease;
    scrollbar-width: thin;
}

.s3-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    background: #f6f8fb;
}

.s3-backdrop {
    display: none;
}

/* Tombol burger: satu tombol untuk dua keadaan (rail di desktop, laci di HP) */
.s3-burger {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-right: .6rem;
    border: 1px solid var(--s3-line);
    border-radius: 10px;
    background: #fff;
    color: #3f4753;
    font-size: .95rem;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.s3-burger:hover {
    background: #f2f6ff;
    border-color: #cfd9ea;
    color: var(--s3-primary-dark);
}

.s3-burger:focus-visible {
    outline: 2px solid var(--s3-primary);
    outline-offset: 2px;
}

/* ---------- desktop: mode rail (sidebar dikecilkan) ---------- */
@media (min-width: 992px) {
    body.s3-rail .s3-shell > .s3-sidebar {
        flex-basis: 76px;
        width: 76px;
        max-width: 76px;
    }

    body.s3-rail .s3-sidebar-head {
        height: 76px !important;
        min-height: 76px;
        border-radius: 0 0 14px 0;
    }

    body.s3-rail .s3-sidebar-head h4 {
        display: none;
    }

    body.s3-rail .s3-sidebar-head .s3-sidebar-sub {
        font-size: .58rem;
        letter-spacing: .06em;
    }

    body.s3-rail .s3-sidebar > .px-3 {
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }

    body.s3-rail .s3-sidebar small.text-muted {
        display: none;
    }

    body.s3-rail .s3-sidebar .mb-4 {
        margin-bottom: .4rem !important;
    }

    body.s3-rail .s3-sidebar .nav-link {
        text-align: center;
        padding: .6rem 0 !important;
    }

    body.s3-rail .s3-sidebar .nav-link i {
        margin-right: 0 !important;
        width: auto !important;
        font-size: 1.05rem;
    }

    body.s3-rail .s3-sidebar .nav-link span {
        display: none;
    }
}

/* ---------- HP & tablet kecil: sidebar jadi laci geser ---------- */
@media (max-width: 991.98px) {
    .s3-shell > .s3-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
        flex: none;
        width: 288px;
        max-width: 86vw;
        transform: translateX(-102%);
        transition: transform .24s ease;
        border-right: 0;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
        z-index: 1060;
    }

    body.s3-drawer .s3-shell > .s3-sidebar {
        transform: translateX(0);
    }

    .s3-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 1050;
    }

    body.s3-drawer .s3-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.s3-drawer {
        overflow: hidden;
    }

    .s3-burger {
        width: 44px;
        height: 44px;
    }

    /* target sentuh ≥ 44 px untuk tiap item menu di laci */
    .s3-shell > .s3-sidebar .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .s3-admin-navbar {
        height: 58px;
    }

    .s3-admin-content {
        padding: .85rem !important;
    }
}

/* =====================================================================
   17. FILTER & LISTING: SERAGAM, TIDAK TERPOTONG        [1 Nov 2026]
   ---------------------------------------------------------------------
   Masalah yang diperbaiki (terukur di 360-1440 px):
   - tombol "Terapkan" di kolom sempit terpotong (col-md-1)      -> btn nowrap + lebar penuh di HP
   - input tanggal bawaan peramban menuntut > 170 px             -> satu baris penuh di HP
   - kotak pencarian DataTables 55-184 px & label "Show entries" -> kontrol ditumpuk, input 100%
   - tabel #tdata padding 15 px bikin lebar > layar (gulir samping) -> padding & huruf ringkas,
     teks membungkus, tombol tetap satu baris
   ===================================================================== */

/* ---- form filter (GET) ---- */
form[method="get"], form[method="GET"] { max-width: 100%; }
form[method="get"] .form-row > [class*="col"] { min-width: 0; }
form[method="get"] .form-control,
form[method="get"] .custom-select,
form[method="get"] .form-select { max-width: 100%; }
form[method="get"] label { white-space: normal; }
form[method="get"] .btn { white-space: nowrap; }

@media (max-width: 991.98px) {
    form[method="get"] .btn,
    form[method="get"] .btn-block { width: 100%; }
}

/* input tanggal: kontrol bawaan peramban butuh lebar sendiri */
@media (max-width: 767.98px) {
    form[method="get"] input[type="date"] { width: 100%; min-width: 0; }
}

/* ---- DataTables: kontrol filter ---- */
.dataTables_wrapper { width: 100%; max-width: 100%; overflow-x: auto; }
.dataTables_wrapper .dataTables_filter input { min-width: 190px; }
.dataTables_wrapper .dataTables_length select { min-width: 64px; padding: .2rem 1.4rem .2rem .5rem; }

@media (max-width: 991.98px) {
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%; text-align: left !important; margin-bottom: .5rem;
    }
    .dataTables_wrapper .dataTables_filter input { width: 100%; min-width: 0; margin-left: 0 !important; }
    .dataTables_wrapper .dataTables_filter label { display: block; width: 100%; margin: 0; white-space: normal; }
    .dataTables_wrapper .dataTables_length select { margin-left: 0 !important; }
    .dataTables_wrapper .dataTables_length label { display: block; width: 100%; margin: 0; white-space: normal; }
    .dataTables_wrapper .dataTables_length select { min-width: 72px; }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%; text-align: center !important; margin-top: .35rem;
    }
    .dt-buttons { display: flex; flex-wrap: wrap; gap: .35rem; }
    .dt-buttons .btn { margin: 0 !important; }
    .dataTables_wrapper .row > div { padding-left: 0; padding-right: 0; }
}

/* ---- tabel listing: ringkas & membungkus (tanpa gulir samping) ---- */
@media (max-width: 991.98px) {
    .table { font-size: .82rem; }
    .table th, .table td {
        padding: .45rem .5rem;
        white-space: normal;
        overflow-wrap: break-word;
    }
    #tdata thead th, #tdata tbody td { padding: .45rem .5rem; font-size: .78rem; }
    #tdata thead th { font-size: .7rem; letter-spacing: .2px; }
    .table td .btn, .table td a.btn, .table td .badge { white-space: nowrap; }
    /* DataTables: header & sel boleh membungkus, info/pagination boleh 2 baris */
    table.dataTable thead th, table.dataTable tbody td { white-space: normal; overflow-wrap: anywhere; }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_paginate { white-space: normal; }
    .table td .btn.btn-sm { padding: .2rem .45rem; font-size: .72rem; }
    .table-responsive, .s3-table-wrap { -webkit-overflow-scrolling: touch; }
}

/* select "Ganti event" (dashboard): di layar sempit label & select bertumpuk, teks tidak terpotong */
@media (max-width: 575.98px) {
    .s3-dash-pilih { flex-wrap: wrap; }
    .s3-dash-pilih label { flex: 1 1 100%; margin-bottom: .25rem !important; }
    .s3-dash-pilih .form-select { flex: 1 1 100%; width: 100%; }
}

/* tabel listing pada layar sedang (tablet/menengah): padding & huruf diringkas */
@media (max-width: 1199.98px) {
    #tdata thead th { padding: .6rem .55rem; font-size: .72rem; }
    #tdata tbody td { padding: .55rem .55rem; font-size: .82rem; }
    .table th, .table td { white-space: normal; overflow-wrap: break-word; }
}

/* Pagination & info DataTables: membungkus, tidak memaksa wadah melebar di HP */
@media (max-width: 991.98px) {
    .dataTables_wrapper .dataTables_paginate {
        display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem; padding-left: 0;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: .15rem .45rem !important; margin: 0 !important; font-size: .78rem;
    }
    .dataTables_wrapper .dataTables_info { font-size: .78rem; }
    /* baris filter per kolom (jika ada) disembunyikan di HP supaya tabel bisa dilipat Responsive */
    table.dataTable tr.filters { display: none; }
}

/* Tombol aksi dalam sel tabel (btn-group "Participant Detail / Edit / Delete") membungkus di HP,
   supaya kolom aksi tidak memaksa tabel melebar. */
@media (max-width: 991.98px) {
    .table .btn-group,
    table.dataTable .btn-group {
        display: flex; flex-wrap: wrap; gap: .25rem; width: 100%;
    }
    .table .btn-group > .btn,
    table.dataTable .btn-group > .btn {
        flex: 0 0 auto; margin: 0 !important; border-radius: .25rem !important; white-space: nowrap;
    }
    .table td .btn, .table td a.btn { padding: .25rem .45rem; font-size: .72rem; line-height: 1.2; }
    .table td form { display: inline-block; margin: 0; }
}

/* Layar sangat kecil (<=430 px): tabel lebih dipadatkan supaya tidak perlu digeser */
@media (max-width: 430px) {
    .table th, .table td { padding: .35rem .35rem; font-size: .75rem; }
    #tdata thead th, #tdata tbody td { padding: .35rem .35rem; font-size: .72rem; }
    .table td .btn, .table td a.btn { padding: .2rem .35rem; font-size: .68rem; }
    .table td .badge { font-size: .62rem; }
}

/* tfoot (baris judul ulang) disembunyikan di HP: ia menduplikasi header dan membuat tabel
   tetap lebar walau kolomnya sudah disembunyikan. */
@media (max-width: 991.98px) {
    .table tfoot, table tfoot { display: none; }
}


/* ============================ 16. LOGIN RINGKAS (MUAT DI HP) ============================
   2 Nov 2026 — atas permintaan bos: halaman login dibuat sederhana supaya seluruh isinya
   (termasuk tombol Daftar) terlihat di layar HP / WebView aplikasi TANPA menggulir.
   Perubahan hanya tampilan; markup form, nama field, aksi, dan rute TIDAK berubah. */

/* Kerangka jadi kolom flex: kartu di tengah, footer selalu di dasar layar,
   tidak ada lagi 13-50 px gulir yang dulu muncul karena footer 59 px. */
.s3-auth-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Kartu & kerangka sedikit lebih rapat; footer tidak lagi memakan 59 px */
.s3-auth-shell {
    flex: 1 1 auto;
    min-height: 0;
    padding: .75rem 1.25rem 1.25rem;
}

/* Baris atas kartu: merek (HP) di kiri + pemilih bahasa ringkas di kanan */
.s3-auth-topline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    margin-bottom: 1rem;
}

.s3-auth-brand {
    margin-right: auto;
}

/* Pemilih bahasa: dua tombol pil (ID / EN) — menggantikan dropdown lebar 92x31 px
   yang dulu menempati baris sendiri setinggi 55 px di atas kartu. */
.s3-lang-switch {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 2px;
    background: #f1f5fc;
    border: 1px solid #e2e7ef;
    border-radius: 999px;
    flex: 0 0 auto;
}

.s3-lang-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #5b6472;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.1;
    padding: .45rem .6rem;
    min-width: 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.s3-lang-btn:hover {
    color: var(--s3-primary);
}

.s3-lang-btn.is-active {
    background: #fff;
    color: var(--s3-primary);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.s3-lang-btn:focus-visible {
    outline: 2px solid rgba(18, 102, 241, .55);
    outline-offset: 1px;
}

.s3-auth-card {
    padding: 1.5rem 1.5rem 1.35rem;
}

.s3-auth-card .card-title {
    margin-bottom: .8rem !important;
}

/* Kolom isian: tinggi 60 px (target sentuh >= 44 px), jarak antar kolom dirapatkan.
   PENTING: form-select butuh ruang teks >= line-height (20 px). Bootstrap memberi
   padding-atas 26 px + padding-bawah 10 px, jadi tinggi < 58 px membuat tulisan
   pilihan Event terpotong (pernah terjadi di 52 px). 3.6rem+2px = 59,6 px -> ruang 21,6 px. */
.s3-auth-form .form-floating > .form-control,
.s3-auth-form .form-floating > .form-select {
    height: calc(3.6rem + 2px);
    min-height: calc(3.6rem + 2px);
    font-size: 1rem;
}

/* Select Event: label "Event" jangan menempel ke tulisan pilihan */
.s3-auth-form .form-floating > .form-select {
    padding-top: 1.75rem;
    padding-bottom: .5rem;
}

.s3-auth-form .form-floating.mb-3 {
    margin-bottom: .6rem !important;
}

.s3-auth-submit {
    height: 48px;
    border-radius: .6rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Blok bawah: tombol Daftar (tetap jelas & mudah ditekan) + tautan lupa password */
.s3-auth-alt {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--s3-line);
    display: grid;
    gap: .55rem;
    text-align: center;
}

.s3-btn-daftar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: .6rem;
    border: 1px solid rgba(18, 102, 241, .28);
    background: var(--s3-primary-soft);
    color: var(--s3-primary-dark);
    font-weight: 600;
    font-size: .95rem;
    transition: background .18s ease, border-color .18s ease;
}

.s3-btn-daftar:hover {
    background: #dbe8ff;
    border-color: rgba(18, 102, 241, .45);
    color: var(--s3-primary-dark);
}

.s3-auth-link {
    font-size: .82rem;
    color: var(--s3-muted);
}

.s3-auth-link:hover {
    color: var(--s3-primary);
}

/* Tablet (potret & lanskap) dan HP: SATU kolom, kartu dibatasi 460 px,
   dan footer menempel 14 px di bawah kartu — bukan didorong ke dasar layar.
   Sebelumnya footer memakai sisa ruang sehingga muncul lubang 120-150 px
   di aplikasi/HP (terlihat pada screenshot bos, 2 Nov 2026). */
@media (max-width: 1199.98px) {
    .s3-auth-hero {
        display: none;
    }

    .s3-auth-shell {
        grid-template-columns: 1fr;
        gap: 0;
        /* auto di atas + auto di bawah footer = blok ditengahkan; kalau isi lebih
           tinggi dari layar, margin auto jadi 0 sehingga isi tetap bisa digulir */
        flex: 0 0 auto;
        margin: auto 0 0;
        padding: .5rem 1.25rem 0;
    }

    .s3-auth-card {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        padding: 1.5rem 1.4rem 1.3rem;
        border-radius: 18px;
    }

    /* Merek jadi satu baris kecil di kiri (dulu logo 88 px bertumpuk di tengah, 136 px) */
    .s3-auth-brand {
        display: flex;
        align-items: center;
        gap: .55rem;
        margin: 0;
        text-align: left;
    }

    .s3-auth-brand-logo {
        width: 38px;
        height: 38px;
        margin: 0;
    }

    .s3-auth-brand-text {
        min-width: 0;
    }

    .s3-auth-brand-title {
        font-size: .95rem;
        line-height: 1.15;
    }

    .s3-auth-brand-sub {
        display: block;
        font-size: .68rem;
        line-height: 1.2;
        margin-top: .05rem;
    }

    .s3-auth-card .card-title {
        font-size: 1.05rem;
    }

    .s3-auth-footer {
        flex: 0 0 auto;
        margin: .85rem 0 auto;
        padding: 0 1rem .9rem;
        font-size: .74rem;
    }
}

@media (max-width: 991.98px) {
    .s3-auth-shell {
        padding: .35rem 1rem 0;
        min-height: 0;
        gap: 0;
    }

    .s3-auth-card {
        padding: 1.15rem 1.1rem 1.05rem;
        border-radius: 16px;
    }

    .s3-auth-footer {
        padding: 0 1rem .75rem;
    }
}

@media (max-width: 575.98px) {
    .s3-auth-card .card-body {
        padding: 0;
    }
}

/* Layar pendek (HP kecil / WebView yang masih menampilkan address bar): rapatkan lagi */
@media (max-width: 991.98px) and (max-height: 720px) {
    .s3-auth-brand-logo {
        width: 32px;
        height: 32px;
    }

    .s3-auth-brand-sub {
        display: none;
    }

    .s3-auth-topline {
        margin-bottom: .7rem;
    }

    .s3-auth-card {
        padding: 1rem .95rem .95rem;
    }

    .s3-auth-card .card-title {
        margin-bottom: .5rem !important;
    }

    .s3-auth-form .form-floating.mb-3 {
        margin-bottom: .45rem !important;
    }

    .s3-auth-submit {
        height: 44px;
    }

    .s3-auth-alt {
        margin-top: .8rem;
        padding-top: .7rem;
    }

    .s3-btn-daftar {
        height: 42px;
    }

    .s3-auth-footer {
        padding: .35rem 0 .5rem;
    }
}
