:root {
    --ink: #15243b;
    --paper: #f6f1e6;
    --stamp: #b9472b;
    --gold: #c8932c;
    --pass-green: #1d4d3e;
    --line: #d8cdb4;
    --card: #ffffff;
    --muted: #6c6557;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Myanmar', 'Space Grotesk', sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    padding-bottom: 86px;
}

.brand-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== Top passport-style header ===== */
.topbar {
    background: #274b3c;
    color: #f6f1e6;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    position: relative;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.topbar .wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge text"
        ".     flags";
    column-gap: 14px;
    row-gap: 6px;
    align-items: center;
    text-align: left;
}

.topbar .badge {
    grid-area: badge;
}

.topbar .text-block {
    grid-area: text;
    min-width: 0;
}

.lang-switch {
    grid-area: flags;
    justify-content: flex-start;
    margin-top: 0;
    align-self: auto;
}

.lang-flag {
    padding: 3px 9px 3px 6px;
    font-size: .64rem;
}

.lang-flag .flag-emoji {
    font-size: .82rem;
}

/* ===== Language switch (flags) ===== */
.lang-switch {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    align-self: flex-start;
    margin-top: 2px;
}

.lang-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(246, 241, 230, .1);
    border: 1px solid rgba(246, 241, 230, .3);
    border-radius: 30px;
    padding: 4px 9px 4px 6px;
    text-decoration: none;
    color: #d9e3dc;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.lang-flag:hover {
    background: rgba(246, 241, 230, .18);
    color: #f6f1e6;
}

.lang-flag:active {
    transform: scale(.95);
}

.lang-flag .flag-emoji {
    font-size: .95rem;
    line-height: 1;
}

.lang-flag.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #1c1204;
}

@media (max-width: 360px) {
    .lang-switch {
        gap: 4px;
    }

    .lang-flag {
        padding: 3px 7px 3px 5px;
        font-size: .62rem;
    }

    .lang-flag .flag-emoji {
        font-size: .85rem;
    }

    .lang-code {
        display: none;
    }
}

.topbar .badge {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    background: #f6f1e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.topbar .badge img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.topbar .text-block {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar .eyebrow {
    font-size: .9rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #f7faf8;
    font-family: 'Space Grotesk', sans-serif;
}

.topbar h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 5vw, 1.3rem);
    line-height: 1.3;
    margin: 3px 0 0;
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .topbar {
        padding: max(14px, env(safe-area-inset-top)) 14px 18px;
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

    .topbar .badge {
        width: 48px;
        height: 48px;
    }

    .topbar h1 {
        font-size: .98rem;
    }
}

.topbar .site-url {
    display: inline-block;
    margin-top: 4px;
    font-size: .72rem;
    letter-spacing: .02em;
    color: #a8c2b1;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
}

.topbar .site-url:hover,
.topbar .site-url:active {
    color: #f6f1e6;
    text-decoration: underline;
}

@media (max-width: 360px) {
    .topbar .site-url {
        font-size: .66rem;
    }
}








.app-id-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(246, 241, 230, .12);
    border: 1px solid rgba(246, 241, 230, .35);
    border-radius: 30px;
    padding: 5px 12px;
    font-size: .72rem;
    font-family: 'Space Grotesk', sans-serif;
}

.stamp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ===== Section visibility ===== */
/* .screen {
    display: none;
    animation: fadeIn .25s ease;
}

.screen.active {
    display: block;
} */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

/* ===== Cards ===== */
.card-doc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 8px;
}

/* ===== Job card ===== */
.job-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    position: relative;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.job-card:active {
    transform: scale(.985);
}

.job-card .country-flag {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #eef0e6;
    flex-shrink: 0;
}

.job-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.job-card .meta {
    font-size: .78rem;
    color: var(--muted);
}

.quota-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .68rem;
    font-weight: 600;
    background: #eef3ea;
    color: var(--pass-green);
    border-radius: 30px;
    padding: 3px 10px;
    white-space: nowrap;
}

.quota-pill.low {
    background: #fbe9e5;
    color: var(--stamp);
}

.salary-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}

/* ===== Status timeline ===== */
.status-rail {
    position: relative;
    padding-left: 28px;
}

.status-rail::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}

.status-step {
    position: relative;
    padding-bottom: 22px;
}

.status-step:last-child {
    padding-bottom: 0;
}

.status-step .dot {
    position: absolute;
    left: -28px;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    color: var(--muted);
    font-weight: 700;
}

.status-step.done .dot {
    background: var(--pass-green);
    border-color: var(--pass-green);
    color: #fff;
}

.status-step.current .dot {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.status-step h6 {
    margin: 0;
    font-weight: 700;
    font-size: .88rem;
}

.status-step p {
    margin: 2px 0 0;
    font-size: .78rem;
    color: var(--muted);
}

/* ===== Form elements ===== */
.form-label {
    font-weight: 600;
    font-size: .85rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: .65rem .85rem;
    font-family: 'Noto Sans Myanmar', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pass-green);
    box-shadow: 0 0 0 3px rgba(29, 77, 62, .12);
}

.upload-box {
    border: 1.5px dashed var(--line);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    background: #fcfaf4;
    font-size: .8rem;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .15s;
}

.upload-box.has-file {
    border-color: var(--pass-green);
    background: #eef3ea;
    color: var(--pass-green);
}

.upload-box svg {
    display: block;
    margin: 0 auto 6px;
}

.btn-stamp {
    background: var(--stamp);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 14px;
    padding: .8rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: .02em;
}

.btn-stamp:active {
    background: #9a3b22;
}

.btn-outline-pass {
    border: 1.5px solid var(--pass-green);
    color: var(--pass-green);
    border-radius: 14px;
    font-weight: 600;
    background: transparent;
}

/* ===== Bottom nav ===== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: .65rem;
    font-family: 'Space Grotesk', sans-serif;
    padding: 4px;
    text-decoration: none;
}

.nav-btn.active {
    color: var(--pass-green);
    font-weight: 700;
}

.nav-btn svg {
    width: 21px;
    height: 21px;
}

.back-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.progress-track {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.progress-track span {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
}

.progress-track span.on {
    background: var(--gold);
}

.toast-confirm {
    position: fixed;
    bottom: 100px;
    left: 16px;
    right: 16px;
    max-width: 448px;
    margin: 0 auto;
    background: var(--ink);
    color: #f6f1e6;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: .85rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    z-index: 60;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

hr.div {
    border-top: 1px dashed var(--line);
    margin: 14px 0;
}

/* Country Filter */
.country-row-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 12px 4px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.country-row-container::-webkit-scrollbar {
    display: none;
}

.country-row-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #334155;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}

.country-row-item:hover {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

.country-row-item:active {
    transform: scale(0.96);
}

/* နှိပ်ထားတဲ့ (Active) country */
.country-row-item.active {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.country-row-item.active .country-title {
    color: #ffffff;
}

.country-row-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.country-row-item.active img {
    border-color: rgba(255, 255, 255, 0.5);
}

.country-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}