/* =====================================================
   NUSANTARA: public + member pages
   ===================================================== */

/* ---------- shared page anatomy ---------- */
.page-head {
    padding-block: clamp(2rem, 1.25rem + 3vw, 3.75rem);
    border-bottom: 2px dashed rgba(19, 32, 74, .3);
}

.page-head h1 { color: var(--navy); }

.page-head p {
    margin-top: .75rem;
    max-width: 62ch;
    color: var(--navy-ink-2);
    font-size: var(--t-lg);
    line-height: 1.5;
}

.page-head a { color: var(--navy); text-decoration-color: rgba(19, 32, 74, .45); font-weight: 600; }

.page-body { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }

.page-head + .section { padding-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }

.section-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

.section-head p {
    margin-top: .8rem;
    max-width: 62ch;
    color: var(--ink-2);
    font-size: var(--t-lg);
    line-height: 1.5;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.twill .section-head p { color: var(--navy-ink-2); }

.directory-note {
    margin-top: 1.75rem;
    font-size: var(--t-sm);
    color: var(--ink-3);
    max-width: 70ch;
}

.directory-note i { color: var(--navy-2); margin-right: .25rem; }

/* ---------- home: the jacket ---------- */
.home-hero {
    padding-block: clamp(2.25rem, 1.25rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
    overflow: hidden;
}

.home-hero-grid {
    display: grid;
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.home-title {
    container-type: inline-size;
    color: var(--navy);
    line-height: .8;
}

.home-title-word {
    display: block;
    font-weight: 900;
    font-size: clamp(4.25rem, 19vw, 15rem);
    font-size: 22.6cqi;
    letter-spacing: .005em;
    line-height: .8;
}

.home-title-sub {
    display: block;
    margin-top: .3em;
    font-weight: 800;
    font-size: clamp(1.4rem, .9rem + 2.4vw, 3.25rem);
    letter-spacing: .05em;
    line-height: 1;
}

.home-patches {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.count-patch {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: 100%;
    padding: 1rem 1rem 1.1rem;
    color: var(--navy);
    text-decoration: none;
    transition: transform .25s var(--ease-out), box-shadow .25s;
}

.count-patch b {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 1.3rem + 3vw, 4rem);
    line-height: .9;
}

.count-patch span {
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-2);
    line-height: 1.3;
}

@media (max-width: 39.99em) {
    .count-patch { padding: 1rem 1.15rem 1.1rem; }
    .count-patch span { letter-spacing: .03em; font-size: .75rem; }
}

.count-patch:hover {
    color: var(--navy);
    transform: translateY(-3px) rotate(-1.2deg);
    box-shadow: var(--shadow-lift);
}

/* the one authored moment: the patches are sewn on as the page arrives */
@media (prefers-reduced-motion: no-preference) {
    .home-patches li { animation: sew-on .9s var(--ease-out) both; }
    .home-patches li:nth-child(2) { animation-delay: .08s; }
    .home-patches li:nth-child(3) { animation-delay: .16s; }

    @keyframes sew-on {
        from { transform: translateY(-14px) rotate(-5deg) scale(1.04); }
    }
}

.nametag-search {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.4rem;
    border-radius: 28px;
}

.nametag-search::after { inset: 8px; border-radius: 21px; }

.nametag-field { position: relative; z-index: 1; }

.nametag-field label {
    display: block;
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: .2rem;
}

.nametag-field input,
.nametag-field select {
    border: 0;
    border-bottom: 2px solid var(--line-strong);
    border-radius: 0;
    padding-inline: .1rem 2rem;
    font-size: 1.125rem;
    background-color: transparent;
}

.nametag-field input:focus,
.nametag-field select:focus {
    border-bottom-color: var(--navy);
    box-shadow: 0 2px 0 0 var(--navy);
}

.nametag-search .btn { position: relative; z-index: 1; }

.home-activate {
    font-size: var(--t-lg);
    color: var(--navy-ink-2);
    line-height: 1.5;
}

.home-activate strong { color: var(--navy); }

.home-activate a {
    color: var(--navy);
    font-weight: 700;
    white-space: nowrap;
    text-decoration-color: var(--red);
}

@media (min-width: 48em) {
    .nametag-search {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
        align-items: end;
        gap: 1.5rem;
        padding: 1.4rem 1.6rem 1.6rem;
    }
}

@media (min-width: 64em) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr) 15.5rem;
        grid-template-areas:
            "title patches"
            "search search"
            "activate activate";
        column-gap: clamp(2rem, 3vw, 3.5rem);
    }

    .home-title { grid-area: title; align-self: center; }
    .home-patches { grid-area: patches; grid-template-columns: 1fr; align-self: center; }
    .nametag-search { grid-area: search; }
    .home-activate { grid-area: activate; }

    .count-patch { flex-direction: row; align-items: baseline; gap: .75rem; padding: 1.1rem 1.35rem 1.2rem; }
}

.notice-pendidikan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-top: 1.5rem;
    padding-right: 3.5rem;
}

.notice-pendidikan > span { flex: 1 1 20rem; }

.notice-close {
    position: absolute;
    top: .4rem;
    right: .4rem;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    z-index: 1;
}

.notice-close:hover { background: rgba(0, 0, 0, .06); }

/* ---------- home: join seam ---------- */
.join-section { background: var(--paper); }

.join-grid { display: grid; gap: 2.5rem; }

.join-intro p { margin-top: 1rem; color: var(--ink-2); font-size: var(--t-lg); max-width: 46ch; }
.join-intro .btn { margin-top: 1.75rem; }
.join-intro .join-manual { font-size: var(--t-sm); margin-top: 1.25rem; color: var(--ink-3); }

.join-seam {
    list-style: none;
    counter-reset: knot;
    position: relative;
    display: grid;
    gap: 2rem;
    padding-left: 4rem;
}

.join-seam li { position: relative; counter-increment: knot; }

/* the seam runs from each knot to the next, and stops at the last one */
.join-seam li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(-4rem + 1.4rem - 1.5px);
    top: 2.8rem;
    bottom: -2rem;
    border-left: 3px dashed rgba(19, 32, 74, .35);
}

.join-seam li::before {
    content: counter(knot);
    position: absolute;
    left: -4rem;
    top: -.15rem;
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    background-image: var(--twill);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px rgba(19, 32, 74, .3);
}

.join-seam h3 { font-size: var(--t-lg); }
.join-seam p { margin-top: .35rem; color: var(--ink-2); max-width: 52ch; }

@media (min-width: 64em) {
    .join-grid { grid-template-columns: 5fr 6fr; align-items: center; gap: 5rem; }
    .join-seam { gap: 2.5rem; }
    .join-seam li:not(:last-child)::after { bottom: -2.5rem; }
}

/* ---------- persebaran ---------- */
.persebaran {
    display: grid;
    gap: 1.25rem;
}

.persebaran-map-wrap { padding: .75rem; }

.persebaran-map {
    position: relative;
    z-index: 1;
    height: clamp(300px, 52vw, 500px);
    border-radius: 12px;
    overflow: hidden;
    background: #E9ECF2;
}

.persebaran-map-unavailable {
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--ink-2);
}

.persebaran-legend {
    position: relative;
    z-index: 1;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .9rem .6rem .4rem;
    font-size: var(--t-xs);
    color: var(--ink-2);
}

.legend-dot {
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: .15rem;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: 0 0 0 2px var(--yellow);
}

.persebaran-list { padding: 1.5rem 1.4rem 1.4rem; }

.persebaran-list h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .75rem;
}

.persebaran-list ol { list-style: none; position: relative; z-index: 1; }

.persebaran-list li a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .75rem;
    padding: .55rem .5rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
}

.persebaran-list li a:hover { background: var(--yellow-wash); }

.persebaran-name { font-weight: 600; font-size: var(--t-sm); }

.persebaran-count {
    font-weight: 800;
    font-size: var(--t-sm);
    font-variant-numeric: tabular-nums;
}

.persebaran-bar {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 3px;
    background: var(--ground);
    overflow: hidden;
}

.persebaran-bar > span {
    display: block;
    width: var(--w, 0%);
    height: 100%;
    border-radius: 3px;
    background: var(--navy);
}

.persebaran-list li a:hover .persebaran-bar > span { background: var(--red); }

.persebaran-meta {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    font-size: var(--t-xs);
    color: var(--ink-3);
}

.persebaran-list .btn { position: relative; z-index: 1; margin-top: 1rem; }

.leaflet-container { font-family: var(--font-body); }

.leaflet-tooltip {
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: #fff;
    font-size: var(--t-xs);
    padding: .4rem .65rem;
    box-shadow: 0 6px 16px -6px rgba(19, 32, 74, .6);
}

.leaflet-tooltip-top::before { border-top-color: var(--navy); }

@media (min-width: 64em) {
    .persebaran { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- benefit comparison ---------- */
.benefit-section { background: var(--paper); }

.benefit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--t-sm);
}

.benefit-table th,
.benefit-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.benefit-table tbody th { font-weight: 500; line-height: 1.45; }

.benefit-table td { text-align: center; }

.benefit-tier { vertical-align: bottom; }

.benefit-tier-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    text-transform: uppercase;
    line-height: 1;
}

.benefit-tier-price {
    display: block;
    margin-top: .3rem;
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--ink-2);
}

.benefit-tier-aktif {
    background-color: var(--yellow);
    background-image: var(--twill);
    border-radius: 14px 14px 0 0;
}

.benefit-tier-aktif .benefit-tier-price { color: var(--navy-ink-2); }

.benefit-aktif { background: var(--yellow-wash); }

.benefit-yes { color: var(--navy); font-size: 1.2rem; }
.benefit-no { color: var(--line-strong); }

.benefit-soon {
    display: inline-block;
    margin-left: .35rem;
    padding: .05rem .5rem;
    border: 1.5px dashed rgba(19, 32, 74, .45);
    border-radius: var(--radius-pill);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
    vertical-align: .1em;
    white-space: nowrap;
}

.benefit-note { margin-top: 1rem; font-size: var(--t-xs); color: var(--ink-3); }

.benefit-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

@media (min-width: 40em) {
    .benefit-table thead th:not(.benefit-tier) {
        font-size: var(--t-xs);
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--ink-3);
        vertical-align: bottom;
    }
    .benefit-table th.benefit-tier,
    .benefit-table td { width: 22%; }
    .benefit-table th.benefit-tier { text-align: center; padding-block: 1.2rem 1rem; }
}

@media (max-width: 39.99em) {
    .benefit-table,
    .benefit-table thead,
    .benefit-table tbody,
    .benefit-table tr { display: block; }

    .benefit-table thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
    .benefit-table thead th:first-child { display: none; }
    .benefit-table th.benefit-tier { border: 0; border-radius: 14px; text-align: left; padding: .9rem 1rem; }
    .benefit-table th.benefit-tier:not(.benefit-tier-aktif) { background: var(--ground); }

    .benefit-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
        padding: 1rem 0;
        border-bottom: 1px dashed var(--line-strong);
    }

    .benefit-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; }

    .benefit-table td {
        display: flex;
        align-items: center;
        gap: .45rem;
        padding: .45rem .7rem;
        border: 0;
        border-radius: var(--radius-sm);
        background: var(--ground);
        font-size: var(--t-xs);
        text-align: left;
    }

    .benefit-table td.benefit-aktif { background: var(--yellow-soft); }
    .benefit-table td::after { content: attr(data-tier); font-weight: 600; color: var(--ink-2); }
}

/* ---------- directory ---------- */
.directory-search { margin-top: 1.5rem; max-width: 56rem; }

.directory-query {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .4rem .4rem 1.1rem;
    background: var(--paper);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sewn);
}

.directory-query:focus-within { box-shadow: var(--shadow-sewn), 0 0 0 3px var(--navy); }

.directory-query input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding-inline: 0;
    background: transparent;
    font-size: 1.0625rem;
}

.directory-query input:focus { box-shadow: none; }

.directory-query .btn { flex: none; }

.filter-more { margin-top: .9rem; }

.filter-more > summary {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .5rem 1rem;
    border: 2px solid var(--navy);
    border-radius: var(--radius-pill);
    color: var(--navy);
    font-weight: 700;
    font-size: var(--t-sm);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more > summary:hover { background: rgba(19, 32, 74, .07); }
.filter-more[open] > summary { background: var(--navy); color: var(--yellow); }

.filter-count {
    padding: .05rem .5rem;
    border-radius: var(--radius-pill);
    background: var(--red);
    color: #fff;
    font-size: .75rem;
}

.filter-fields {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--paper);
    border-radius: var(--radius-patch);
    box-shadow: var(--shadow-sewn);
}

.filter-group label {
    display: block;
    margin-bottom: .35rem;
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }

@media (min-width: 40em) {
    .filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-actions { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
    .filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
    .filter-actions { grid-column: auto; }
}

/* ---------- alumni name tags ---------- */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
    gap: 1.25rem;
}

.alumni-card { padding: 1.5rem 1.35rem 1.35rem; }

.alumni-card > * { position: relative; z-index: 1; }

.alumni-header { display: flex; gap: 1rem; align-items: flex-start; }

.alumni-avatar {
    flex: none;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.7rem;
    box-shadow: 0 0 0 3px var(--yellow);
}

.alumni-avatar img { width: 100%; height: 100%; object-fit: cover; }

.alumni-heading { min-width: 0; flex: 1; }

.alumni-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.02;
    letter-spacing: .005em;
    overflow-wrap: anywhere;
}

.alumni-batch {
    display: block;
    margin-top: .3rem;
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.45;
}

.member-badge {
    position: absolute;
    top: -.7rem;
    right: 1.1rem;
    z-index: 2;
    padding: .3rem .7rem .25rem;
    border-radius: 7px;
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.1;
    outline: 1.5px dashed rgba(246, 199, 0, .65);
    outline-offset: -4px;
    box-shadow: 0 6px 12px -6px rgba(19, 32, 74, .7);
}

.alumni-card:has(.member-badge) .alumni-header { padding-top: .35rem; }

.alumni-details {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 2px dashed var(--line);
}

.alumni-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .6rem;
    font-size: var(--t-sm);
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.alumni-detail > i { flex: none; width: 1rem; color: var(--navy-2); text-align: center; }
.alumni-detail > span:first-of-type { flex: 1; min-width: 0; }

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .1em .55em;
    border-radius: var(--radius-pill);
    font-size: .6875rem;
    font-weight: 700;
    background: var(--ground);
    color: var(--ink-2);
}

.privacy-badge.public { background: var(--ok-soft); color: var(--ok); }

/* ---------- home close ---------- */
.home-close { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); border-top: 2px dashed rgba(19, 32, 74, .35); }

.home-close-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
}

.home-close h2 { max-width: 16ch; color: var(--navy); }

.home-close-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- forms pages (login, register, activation) ---------- */
main:has(> .form-container) {
    background:
        var(--twill) top / 100% 15rem no-repeat,
        linear-gradient(var(--yellow) 0 15rem, var(--ground) 15rem);
    padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}

.form-container {
    position: relative;
    width: calc(100% - 2 * var(--gutter));
    max-width: 32rem;
    margin: 0 auto clamp(2rem, 4vw, 4rem);
    padding: clamp(1.6rem, 1rem + 3vw, 2.75rem);
    background: var(--paper);
    border-radius: var(--radius-patch);
    box-shadow: var(--shadow-lift);
}

.form-container::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: var(--stitch);
    border-radius: 12px;
    pointer-events: none;
}

.form-container > * { position: relative; z-index: 1; }

.form-container-wide { max-width: 46rem; }

.form-container > h2 { margin-bottom: 1.5rem; }

.form-intro { color: var(--ink-2); margin-bottom: 1.5rem; }

.form-container form > p:not([class]),
.form-container > p:not([class]) { margin-bottom: 1.15rem; color: var(--ink-2); font-size: var(--t-sm); }

.form-aside { margin: -.35rem 0 1.25rem; text-align: right; font-size: var(--t-sm); }

.form-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--line);
    text-align: center;
    font-size: var(--t-sm);
    color: var(--ink-2);
}

.form-footer p + p { margin-top: .4rem; }

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.form-divider::before,
.form-divider::after { content: ""; flex: 1; border-top: 2px dashed var(--line-strong); }

.activation-box {
    padding: 1.4rem 1.3rem 1.5rem;
    border-radius: 14px;
    background-color: var(--yellow);
    background-image: var(--twill);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.activation-box h3 { font-size: var(--t-lg); color: var(--navy); }
.activation-box h3 i { margin-right: .2rem; }
.activation-box p { margin-top: .5rem; color: var(--navy-ink-2); font-size: var(--t-sm); }

.activation-form { display: grid; gap: .6rem; margin-top: 1rem; }
.activation-form input { border-color: transparent; }

@media (min-width: 40em) {
    .activation-form { grid-template-columns: minmax(0, 1fr) auto; }
}

.verified-education {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    background: var(--yellow-wash);
    border: 1.5px dashed rgba(19, 32, 74, .3);
}

.verified-education-title { font-weight: 700; margin-bottom: .5rem; }

.verified-education ul { list-style: none; display: grid; gap: .3rem; font-size: var(--t-sm); }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .15em .6em;
    border-radius: var(--radius-pill);
    background: var(--navy);
    color: var(--yellow);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.consent-label {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--ground);
    font-size: var(--t-sm);
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input { flex: none; margin-top: .2rem; }

.field-help-block { display: block; margin: -.5rem 0 1.25rem; }

/* ---------- member pages ---------- */
.premium-layout { display: grid; gap: 1.5rem; max-width: 60rem; }

.premium-status-card { padding: 2rem 1.5rem; text-align: center; }
.premium-status-card h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-top: .75rem; }
.premium-status-card p { margin-top: .6rem; color: var(--ink-2); }
.premium-status-icon { font-size: 2.75rem; color: var(--navy); }

.bank-details { display: grid; gap: .9rem; }

.bank-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.bank-header h3,
.contact-card > h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
}
.bank-header p { margin-top: .25rem; color: var(--ink-2); font-size: var(--t-sm); }

@media (min-width: 40em) {
    .bank-header { padding: 1.1rem 1.5rem; }
}

.bank-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.bank-field {
    flex: 1 1 13rem;
    min-width: 0;
    padding: .9rem 1rem;
    border-radius: var(--radius);
    background: var(--ground);
}

.bank-label {
    display: block;
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.bank-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: .2rem;
    font-weight: 700;
    font-size: var(--t-lg);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.bank-account,
.bank-amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; }

.proof-summary { display: grid; gap: .5rem; }

.contact-card { display: grid; gap: .75rem; padding: 1.25rem; }
.contact-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }

a.btn-whatsapp:not(.btn) {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 44px;
    padding: .65em 1.2em;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--t-sm);
    text-decoration: none;
}

.upload-card-head h3 { display: flex; align-items: center; gap: .6rem; }

/* the native input stays in place (focusable, `required` still validates) under its drop zone,
   so the browser's "choose a file" bubble points at the zone */
.form-group:has(> .drop-input) { position: relative; }

.drop-input {
    position: absolute;
    left: 50%;
    top: 4rem;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.drop-zone {
    display: block;
    padding: 2rem 1.25rem;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--ground);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.drop-zone > span { display: grid; gap: .3rem; justify-items: center; }
.drop-zone-icon { font-size: 2.2rem; color: var(--navy-2); margin-bottom: .25rem; }
.drop-zone:hover,
.drop-zone.is-dragover { border-color: var(--navy); background: var(--yellow-wash); }
.drop-zone.has-file { border-color: var(--ok); background: var(--ok-soft); }
.drop-zone.has-file .drop-zone-icon { color: var(--ok); }
.drop-input:focus-visible + .drop-zone { outline: 3px solid var(--navy); outline-offset: 2px; }
.selected-file-name { overflow-wrap: anywhere; }

.guest-upload-note { color: var(--ink-2); }

.member-status {
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
}

.member-state {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: var(--radius-pill);
    background: var(--ground);
    color: var(--ink-2);
    font-weight: 700;
    font-size: var(--t-sm);
}

.member-state.is-aktif { background: var(--navy); color: var(--yellow); }

.premium-chip {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .1em .55em;
    border-radius: var(--radius-pill);
    background: var(--yellow);
    color: var(--navy);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: .15em;
}

.workplace-box {
    margin-bottom: 1rem;
    padding: 1.1rem 1.1rem .2rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
}

.locked-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: 1.2rem;
    border-radius: var(--radius);
    background: var(--yellow-wash);
    border: 1.5px dashed rgba(19, 32, 74, .3);
    color: var(--ink-2);
}

.locked-feature > h3 { flex: 1 1 100%; font-size: var(--t-lg); }
.locked-feature > p { flex: 1 1 18rem; }

.education-list { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.25rem; }

.education-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: .85rem 1rem;
    border-radius: var(--radius);
    background: var(--ground);
    font-size: var(--t-sm);
}

.education-add { display: grid; gap: .75rem; }
.education-add .form-group { margin-bottom: 0; }

@media (min-width: 40em) {
    .education-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .education-add .education-add-submit { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
    .education-add { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
    .education-add .education-add-submit { grid-column: auto; }
}

.card-preview { max-width: 26rem; }

.form-submit { margin-top: 1.25rem; }

/* ---------- profile ---------- */
.profile-section { padding-block: 0 clamp(2rem, 4vw, 4rem); }

.profile-card {
    max-width: 48rem;
    margin: 0 auto;
    background: var(--paper);
    border-radius: 0 0 var(--radius-patch) var(--radius-patch);
    box-shadow: var(--shadow-sewn);
    overflow: hidden;
}

.profile-header {
    padding: 2.25rem 1.5rem 1.75rem;
    text-align: center;
    background-color: var(--yellow);
    background-image: var(--twill);
    border-bottom: 2px dashed rgba(19, 32, 74, .35);
}

.profile-header h2 { margin-top: 1rem; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }

.profile-handle { margin: .35rem 0 .75rem; color: var(--navy-ink-2); font-weight: 600; }

.profile-header .status-badge { background: var(--paper); color: var(--navy); border-color: transparent; }

.profile-avatar-container { position: relative; width: 112px; height: 112px; margin: 0 auto; }

.profile-avatar,
.profile-avatar-img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 5px var(--paper), 0 12px 24px -12px rgba(19, 32, 74, .6);
}

.profile-avatar {
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3.2rem;
}

.profile-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 44px;
    height: 44px;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--red);
    color: #fff;
}

.profile-avatar-edit:hover { background: var(--red-deep); }

.profile-body { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }

.profile-tabs {
    display: flex;
    gap: .35rem;
    margin-bottom: 1.75rem;
    padding: .3rem;
    border-radius: var(--radius-pill);
    background: var(--ground);
}

.profile-tab {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink-2);
    font-weight: 700;
}

.profile-tab.active { background: var(--navy); color: var(--yellow); }
.profile-tab:not(.active):hover { color: var(--navy); background: rgba(19, 32, 74, .07); }

.privacy-section,
.narasumber-section {
    padding: 1.2rem;
    border-radius: var(--radius);
    background: var(--ground);
}

.privacy-toggles { display: grid; gap: .5rem; }

/* custom toggles, radios and checkboxes: the native input stays focusable under the drawing */
.toggle-label,
.radio-label,
.checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 44px;
    cursor: pointer;
    font-size: var(--t-sm);
}

.toggle-label input,
.radio-label input,
.checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.toggle-switch {
    flex: none;
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
    transition: background-color .2s;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .25s var(--ease-out);
}

.toggle-label input:checked + .toggle-switch { background: var(--navy); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(20px); background: var(--yellow); }

.toggle-text i { width: 1.1em; color: var(--navy-2); }

.radio-group { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

.radio-custom,
.checkbox-custom {
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--line-strong);
    background: var(--paper);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.radio-custom { border-radius: 50%; }
.checkbox-custom { border-radius: 6px; }

.radio-label input:checked + .radio-custom { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--paper); background: var(--navy); }

.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--navy);
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23F6C700' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.toggle-label input:focus-visible + .toggle-switch,
.radio-label input:focus-visible + .radio-custom,
.checkbox-label input:focus-visible + .checkbox-custom { outline: 3px solid var(--navy); outline-offset: 2px; }

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: .1rem 1rem;
    margin-top: .5rem;
}

.narasumber-options { margin-top: 1rem; display: grid; gap: 1rem; }

/* picture modal */
.picture-preview-container { display: grid; place-items: center; margin-bottom: 1.25rem; }

.picture-preview,
.picture-preview-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px var(--yellow);
}

.picture-preview-placeholder {
    display: grid;
    place-items: center;
    background: var(--ground);
    color: var(--ink-3);
    font-size: 3rem;
}

.file-upload-wrapper { position: relative; }

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.file-upload-label {
    display: grid;
    justify-items: center;
    gap: .25rem;
    padding: 1.4rem 1rem;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--ground);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background-color .15s;
}

.file-upload-label i { font-size: 1.8rem; color: var(--navy-2); }
.file-upload-label span { font-weight: 700; }
.file-upload-label small { color: var(--ink-3); font-size: var(--t-xs); }
.file-upload-label:hover { border-color: var(--navy); background: var(--yellow-wash); }
.file-upload-wrapper input:focus-visible + .file-upload-label { outline: 3px solid var(--navy); outline-offset: 2px; }

.form-divider + .form-hint { margin: 0 0 1.25rem; font-size: var(--t-sm); }
