/* ============================================================
   PENDAFTARAN TRYOUT TKA — Design System
   Palette: navy blue + white dominant, green success accent
   ============================================================ */

:root {
    --navy: #0b2545;
    --navy-2: #13315c;
    --navy-3: #1d4e89;
    --navy-soft: #e8eef7;
    --green: #1b998b;
    --green-dark: #14776c;
    --green-soft: #e6f6f3;
    --amber: #f0a202;
    --red: #d64545;
    --soft: #f4f7fb;
    --white: #ffffff;
    --border: #e3eaf3;
    --muted: #64748b;
    --ink: #16233b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(11, 37, 69, .06);
    --shadow: 0 12px 34px rgba(11, 37, 69, .10);
    --shadow-lg: 0 24px 60px rgba(11, 37, 69, .18);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--soft);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; color: var(--navy); }

.text-navy { color: var(--navy) !important; }
.text-green { color: var(--green) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-soft { background: var(--soft) !important; }
.bg-green-soft { background: var(--green-soft) !important; }
.fw-800 { font-weight: 800 !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .6rem 1.15rem; transition: all .18s ease; }
.btn-navy { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-green { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-green:hover, .btn-green:focus { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-soft { background: var(--navy-soft); color: var(--navy); border: 1px solid transparent; }
.btn-soft:hover { background: #dbe6f5; color: var(--navy); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .38rem .8rem; font-size: .82rem; border-radius: 8px; }

/* ---------- Cards & surfaces ---------- */
.card-clean {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card-clean .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    color: var(--navy);
}
.card-clean .card-body { padding: 1.4rem; }
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .55rem; }
.section-title i { color: var(--green); }

/* ---------- Public navbar ---------- */
.public-nav {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1030;
}
.public-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-3));
    color: #fff; display: grid; place-items: center; font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(11, 37, 69, .28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.brand-text small { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.public-nav .nav-link { color: var(--navy); font-weight: 600; font-size: .92rem; padding: .5rem .9rem !important; border-radius: 8px; }
.public-nav .nav-link:hover, .public-nav .nav-link.active { background: var(--navy-soft); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: radial-gradient(1200px 600px at 85% -10%, #1d4e89 0%, transparent 55%),
                linear-gradient(135deg, #081a33 0%, var(--navy) 55%, #10305a 100%);
    color: #fff;
    border-radius: 0 0 34px 34px;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(27,153,139,.35), transparent 65%); }
.hero::after { width: 320px; height: 320px; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(29,78,137,.55), transparent 65%); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.1; }
.hero p.lead { color: #c9d7ea; font-size: 1.05rem; max-width: 620px; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(27, 153, 139, .18); border: 1px solid rgba(27,153,139,.45);
    color: #7fe3d6; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; padding: .4rem .85rem; border-radius: 999px;
}
.hero-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1rem 1.15rem; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: .76rem; color: #a9bdd8; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Feature cards ---------- */
.choice-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.7rem; height: 100%; position: relative; overflow: hidden;
    transition: all .22s ease;
}
.choice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d8ec; }
.choice-card .icon-tile {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.5rem; margin-bottom: 1rem;
}
.icon-navy { background: var(--navy-soft); color: var(--navy); }
.icon-green { background: var(--green-soft); color: var(--green-dark); }
.choice-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.choice-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.choice-card .arrow { position: absolute; right: 1.4rem; bottom: 1.4rem; color: var(--navy-3); font-size: 1.2rem; transition: transform .2s; }
.choice-card:hover .arrow { transform: translateX(4px); }

/* ---------- Steps ---------- */
.step-item { display: flex; gap: 1rem; }
.step-num {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700;
    box-shadow: 0 4px 12px rgba(11,37,69,.22);
}
.step-item h6 { margin: .15rem 0 .2rem; font-size: .98rem; }
.step-item p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
.form-label .req { color: var(--red); }
.form-control, .form-select {
    border: 1.5px solid var(--border); border-radius: 10px; padding: .62rem .85rem;
    font-size: .93rem; background: #fff; color: var(--ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--navy-3); box-shadow: 0 0 0 .2rem rgba(29,78,137,.12);
}
.form-text { font-size: .78rem; color: var(--muted); }
.input-group-text { background: var(--navy-soft); border: 1.5px solid var(--border); color: var(--navy); font-weight: 600; border-radius: 10px; }
.form-section { border-top: 1px dashed var(--border); padding-top: 1.4rem; margin-top: 1.4rem; }
.form-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.invalid-feedback { font-size: .8rem; }

/* ---------- Tables ---------- */
.table-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-card .table { margin: 0; }
.table thead th {
    background: #f7f9fd; color: var(--navy); font-size: .76rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--border);
    padding: .8rem 1rem; white-space: nowrap;
}
.table tbody td { padding: .8rem 1rem; font-size: .88rem; vertical-align: middle; border-color: #eef2f8; }
.table tbody tr:hover { background: #fafcff; }
.table-responsive { border-radius: var(--radius); }

/* ---------- Badges ---------- */
/* Badge lembut: `.badge.badge-soft` sengaja memakai dua kelas agar
   spesifisitasnya (0,2,0) selalu mengalahkan `.badge` bawaan Bootstrap
   (0,1,0) yang memberi teks putih — berapa pun urutan pemuatan CSS-nya.
   Tanpa ini, badge status tampil putih di atas latar putih (tidak terlihat). */
.badge.badge-soft {
    font-weight: 600; font-size: .74rem; padding: .38rem .62rem; border-radius: 7px;
    background: #eef1f6; color: #55637a; /* default agar badge tanpa modifier tetap terbaca */
}
.badge.badge-soft i { margin-right: .25rem; }

.badge.badge-soft.success, .badge.badge-soft.badge-success-soft { background: var(--green-soft); color: var(--green-dark); }
.badge.badge-soft.warning, .badge.badge-soft.badge-warning-soft { background: #fdf3dd; color: #9a6a00; }
.badge.badge-soft.danger, .badge.badge-soft.badge-danger-soft { background: #fdeaea; color: #a52a2a; }
.badge.badge-soft.info, .badge.badge-soft.badge-info-soft { background: #e6f0fb; color: #1d4e89; }
.badge.badge-soft.secondary, .badge.badge-soft.badge-secondary-soft { background: #eef1f6; color: #55637a; }
.badge.badge-soft.primary, .badge.badge-soft.navy { background: var(--navy-soft); color: var(--navy-3); }
.badge.badge-soft.green { background: var(--green-soft); color: var(--green-dark); }
.badge.badge-soft.amber { background: #fdf3dd; color: #9a6a00; }
.badge.badge-soft.red { background: #fdeaea; color: #a52a2a; }

/* ---------- Stat cards ---------- */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem; height: 100%; box-shadow: var(--shadow-sm); }
.stat-card .stat-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-card .stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat-card.accent-green { border-top: 3px solid var(--green); }
.stat-card.accent-navy { border-top: 3px solid var(--navy); }
.stat-card.accent-amber { border-top: 3px solid var(--amber); }
.stat-card.accent-red { border-top: 3px solid var(--red); }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; border: 0; font-size: .9rem; }
.alert-success { background: var(--green-soft); color: var(--green-dark); }
.alert-danger { background: #fdeaea; color: #a52a2a; }
.alert-warning { background: #fdf3dd; color: #8a5f00; }
.alert-info { background: #e6f0fb; color: #1d4e89; }
.alert-navy { background: var(--navy-soft); color: var(--navy); border: 1px solid #dbe6f5; }

/* ---------- Summary / result ---------- */
.result-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-3));
    color: #fff; border-radius: var(--radius); padding: 1.6rem;
}
.result-banner .reg-number { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: .04em; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; color: var(--ink); text-align: right; }
.bill-box { background: var(--navy-soft); border-radius: 12px; padding: 1rem 1.15rem; }
.bill-box .amount { font-size: 1.35rem; font-weight: 800; color: var(--navy); }

/* ---------- Footer ---------- */
.public-footer { background: var(--navy); color: #b9c8dd; padding: 2.6rem 0 1.4rem; margin-top: 3rem; }
.public-footer h6 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.public-footer a { color: #b9c8dd; font-size: .88rem; }
.public-footer a:hover { color: #fff; }
.public-footer .divider { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem; padding-top: 1.1rem; font-size: .8rem; }

/* ---------- Admin shell ---------- */
.admin-body { background: #f1f5fa; }
.admin-sidebar {
    position: fixed; inset: 0 auto 0 0; width: 264px; background: linear-gradient(180deg, #081a33, var(--navy) 60%, #0e2c52);
    color: #c4d2e5; padding: 1.1rem .85rem; overflow-y: auto; z-index: 1040;
}
.admin-sidebar .side-brand { display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: .9rem; }
.admin-sidebar .side-brand .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; box-shadow: none; }
.admin-sidebar .side-brand b { color: #fff; font-size: .9rem; line-height: 1.1; display: block; }
.admin-sidebar .side-brand small { color: #7fe3d6; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.side-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: #6d82a0; font-weight: 700; padding: .9rem .7rem .35rem; }
.admin-sidebar .nav-link {
    color: #b7c7dd; font-size: .855rem; font-weight: 500; padding: .55rem .7rem; border-radius: 9px;
    display: flex; align-items: center; gap: .65rem; margin-bottom: 2px;
}
.admin-sidebar .nav-link i { font-size: 1rem; width: 18px; text-align: center; opacity: .85; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-sidebar .nav-link.active { background: linear-gradient(90deg, rgba(27,153,139,.9), rgba(27,153,139,.55)); color: #fff; box-shadow: 0 4px 14px rgba(27,153,139,.3); }
.admin-sidebar .nav-link .badge { margin-left: auto; font-size: .66rem; }
.admin-main { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: .8rem 1.6rem; position: sticky; top: 0; z-index: 1020; }
.admin-content { padding: 1.6rem; flex: 1; }
.page-heading { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 0; }
.page-sub { color: var(--muted); font-size: .86rem; margin: .15rem 0 0; }
.avatar-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(8,26,51,.45); z-index: 1035; }
    .admin-content { padding: 1.1rem; }
}

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 80% 0%, #1d4e89 0%, transparent 55%), linear-gradient(135deg, #081a33, var(--navy) 60%, #10305a); padding: 1.5rem; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 2.2rem; }
.auth-card .brand-mark { width: 52px; height: 52px; font-size: 1.4rem; margin: 0 auto 1rem; }

/* ---------- Misc ---------- */
.upload-drop { border: 2px dashed #c7d6ea; border-radius: 12px; padding: 1.2rem; text-align: center; background: #fbfdff; transition: .2s; }
.upload-drop:hover { border-color: var(--navy-3); background: #f5f9ff; }
.progress-thin { height: 7px; border-radius: 999px; background: #e9eff7; }
.progress-thin .progress-bar { border-radius: 999px; }
.table-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.table-empty i { font-size: 2.2rem; color: #c3d1e4; display: block; margin-bottom: .6rem; }
.pagination { --bs-pagination-color: var(--navy); --bs-pagination-active-bg: var(--navy); --bs-pagination-active-border-color: var(--navy); --bs-pagination-border-radius: 9px; font-size: .85rem; }
.pagination .page-link { border-color: var(--border); margin: 0 2px; border-radius: 8px !important; }
.sticky-actions { position: sticky; top: 80px; }
.text-prewrap { white-space: pre-wrap; }
.mini-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.divider-y { border-left: 1px solid var(--border); }
@media (max-width: 767.98px) { .divider-y { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- Payment proof preview ---------- */
.proof-frame {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #f6f9fd;
    position: relative;
}
.proof-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}
.proof-frame-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    background: repeating-conic-gradient(#eef2f8 0% 25%, #f8fafd 0% 50%) 50% / 22px 22px;
}
.proof-frame-image a {
    display: block;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
}
.proof-frame-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(8,26,51,.14);
    background: #fff;
    cursor: zoom-in;
}
.proof-empty {
    border: 1px dashed #c7d6ea;
    border-radius: 12px;
    background: #fbfdff;
    padding: 2.2rem 1.2rem;
    text-align: center;
    color: var(--muted);
}
.proof-empty i {
    font-size: 2rem;
    color: #b9c8dc;
    display: block;
    margin-bottom: .55rem;
}
#proofPreviewModal .modal-body { background: #f3f7fc; }
#proofPreviewModal .proof-frame { background: #fff; }
#proofPreviewImageWrap { min-height: 60vh; }

/* ------------------------------------------------------------------
   Pembayaran QRIS
   ------------------------------------------------------------------ */
.qris-card .card-body { text-align: center; }

.qris-frame {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border, #e3eaf3);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(11, 37, 69, .08);
    max-width: 220px;
}

.qris-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qris-merchant {
    font-weight: 800;
    color: var(--navy, #0b2545);
    margin-top: .65rem;
    font-size: .95rem;
}

.qris-steps {
    text-align: left;
    font-size: .82rem;
    color: #5a6b85;
    margin: 1rem 0 .75rem;
    padding-left: 1.15rem;
    line-height: 1.55;
}

.qris-steps li { margin-bottom: .3rem; }

.qris-steps b { color: var(--navy, #0b2545); }

/* ------------------------------------------------------------------
   Card Grup WhatsApp Peserta
   Warna hijau khas WhatsApp, tetap mengikuti radius/shadow aplikasi.
   ------------------------------------------------------------------ */
.wa-group-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 58%);
    border: 1px solid #cdebd8;
    border-left: 5px solid #25d366;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.wa-group-card::after {
    content: "";
    position: absolute;
    top: -46px;
    right: -46px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(37, 211, 102, .08);
    pointer-events: none;
}

.wa-group-card__icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.75rem;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 18px rgba(18, 140, 126, .28);
}

.wa-group-card__body { position: relative; z-index: 1; min-width: 0; }

.wa-group-card__eyebrow {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #128c7e;
    margin-bottom: .2rem;
}

.wa-group-card__title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .015em;
    color: #0b3d2e;
    margin: 0 0 .4rem;
    line-height: 1.35;
}

.wa-group-card__desc {
    font-size: .88rem;
    line-height: 1.62;
    color: #4b5f57;
    margin: 0 0 .7rem;
}

.wa-group-card__note {
    display: inline-block;
    font-size: .8rem;
    line-height: 1.5;
    color: #0f6b5f;
    background: #e7f9ee;
    border-radius: 8px;
    padding: .45rem .7rem;
    margin: 0 0 .8rem;
}

.wa-group-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border: 1px solid #25d366;
    color: #fff;
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .03em;
    padding: .62rem 1.15rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, .28);
}

.wa-group-card__btn:hover,
.wa-group-card__btn:focus {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(37, 211, 102, .34);
}

@media (max-width: 575.98px) {
    .wa-group-card {
        flex-direction: column;
        gap: .8rem;
        padding: 1.1rem;
    }

    .wa-group-card__icon {
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
    }

    .wa-group-card__title { font-size: .96rem; }

    .wa-group-card__btn {
        width: 100%;
        padding: .7rem 1rem;
    }

    .wa-group-card__qr {
        align-self: center;
        margin-top: .15rem;
    }

    .wa-group-card__qr img {
        width: 150px;
        height: 150px;
    }
}
