
:root {
    --brand-navy: #0c2f66;
    --brand-navy-2: #123f84;
    --brand-gold: #d1a13a;
    --brand-gold-dark: #b68724;
    --brand-bg: #f7f8fb;
    --brand-surface: #ffffff;
    --brand-text: #14213d;
    --brand-muted: #60708a;
    --brand-border: #e5e9f2;
    --brand-success: #159a64;
    --brand-warning: #b7791f;
    --brand-danger: #cb3d4f;
    --brand-info: #2a6fd2;
    --shadow-soft: 0 18px 55px rgba(13, 35, 79, 0.08);
    --shadow-card: 0 10px 28px rgba(15, 38, 81, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--brand-text);
    background:
        radial-gradient(circle at top left, rgba(209,161,58,0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(18,63,132,0.14), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
    min-height: 100vh;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.container.wide { width: min(1260px, calc(100% - 32px)); }
.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.text-center { text-align: center; }
.muted { color: var(--brand-muted); }
.gold { color: var(--brand-gold-dark); }
.hidden { display: none !important; }

.topbar {
    background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}
.topbar .topbar-items,
.topbar .topbar-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(229, 233, 242, 0.9);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}
.brand img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(12,47,102,0.16);
    background: #fff;
}
.brand-title {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--brand-navy);
}
.brand-subtitle {
    font-size: 0.82rem;
    color: var(--brand-muted);
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(12,47,102,0.08);
    color: var(--brand-navy);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}
.nav-links,
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link {
    text-decoration: none;
    color: var(--brand-text);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    background: rgba(12,47,102,0.08);
    color: var(--brand-navy);
}
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(12,47,102,0.06);
    border-radius: 999px;
    color: var(--brand-navy);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #e0b04b 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(209,161,58,0.24);
}
.btn-primary:hover { box-shadow: 0 18px 32px rgba(209,161,58,0.28); }
.btn-secondary {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(12,47,102,0.22);
}
.btn-outline {
    background: #fff;
    color: var(--brand-navy);
    border: 1px solid rgba(12,47,102,0.16);
}
.btn-soft {
    background: rgba(12,47,102,0.06);
    color: var(--brand-navy);
}
.btn-danger { background: #d9485d; color: #fff; }
.btn-block { width: 100%; }
.btn.small { padding: 10px 16px; font-size: 0.94rem; }

.hero {
    padding: 84px 0 64px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}
.hero-content,
.hero-visual,
.hero-metrics,
.info-panel,
.feature-card,
.service-card,
.contact-card,
.form-card,
.auth-card,
.filters-card,
.job-card,
.detail-card,
.side-card,
.application-card,
.stats-card,
.faq-card,
.empty-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(229,233,242,0.92);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-xl);
}
.hero-content {
    padding: 42px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(12,47,102,0.06);
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.92rem;
}
.hero h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--brand-navy);
}
.hero p {
    color: var(--brand-muted);
    font-size: 1.06rem;
    margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { padding: 28px; }
.hero-visual-main {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    min-height: 100%;
    background: linear-gradient(135deg, rgba(12,47,102,0.96), rgba(18,63,132,0.84));
    color: #fff;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.hero-visual-main::after {
    content: '';
    position: absolute;
    inset: auto -60px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(209,161,58,0.22);
}
.hero-logo-box {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-logo-box img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.12);
    object-fit: cover;
    background: #fff;
}
.hero-list { display: grid; gap: 12px; }
.hero-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.hero-list i { color: #ffd271; margin-top: 4px; }
.hero-metrics {
    margin-top: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.metric {
    padding: 18px;
    border-radius: 18px;
    background: rgba(12,47,102,0.04);
    text-align: center;
}
.metric-value { font-size: 1.55rem; font-weight: 800; color: var(--brand-navy); }
.metric-label { font-size: 0.92rem; color: var(--brand-muted); }

.section-head {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.section-kicker {
    color: var(--brand-gold-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.84rem;
    margin-bottom: 10px;
}
.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    color: var(--brand-navy);
    line-height: 1.15;
}
.section-head p { color: var(--brand-muted); max-width: 680px; }

.cards-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.feature-card,
.service-card,
.contact-card,
.stats-card,
.faq-card,
.empty-card {
    padding: 26px;
}
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
    box-shadow: 0 14px 28px rgba(12,47,102,0.18);
}
.service-card ul,
.side-checklist,
.simple-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.service-card li,
.side-checklist li,
.simple-list li {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--brand-muted);
}
.service-card li i,
.side-checklist li i,
.simple-list li i { color: var(--brand-gold-dark); margin-top: 4px; }
.info-band {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
    color: #fff;
}
.info-band .section-head h2,
.info-band .section-head p,
.info-band .section-kicker { color: #fff; }
.info-band .feature-card,
.info-band .service-card,
.info-band .contact-card {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.14);
    box-shadow: none;
}
.info-band .service-card p,
.info-band .feature-card p,
.info-band .contact-card p,
.info-band .service-card li,
.info-band .feature-card li { color: rgba(255,255,255,0.84); }
.info-band .icon-box {
    background: linear-gradient(135deg, var(--brand-gold), #e7b752);
    box-shadow: none;
}

.filter-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.filters-card,
.job-card,
.detail-card,
.side-card,
.form-card,
.auth-card,
.application-card {
    padding: 28px;
}
.filters-card h3 { color: var(--brand-navy); margin-bottom: 18px; }
.form-stack,
.filters-stack,
.auth-stack { display: grid; gap: 18px; }
.form-group {
    display: grid;
    gap: 9px;
}
.form-group label {
    color: var(--brand-text);
    font-weight: 700;
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 13px 15px;
    background: #fff;
    color: var(--brand-text);
    outline: none;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(12,47,102,0.4);
    box-shadow: 0 0 0 4px rgba(12,47,102,0.08);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.textarea-lg { min-height: 140px; resize: vertical; }
.helper-text { font-size: 0.9rem; color: var(--brand-muted); }

.jobs-grid,
.applications-grid,
.stats-grid { display: grid; gap: 20px; }
.jobs-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.job-card { display: grid; gap: 18px; }
.job-card-media {
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #eef2fb);
    display: flex;
    align-items: center;
    justify-content: center;
}
.job-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.job-card h3 { color: var(--brand-navy); font-size: 1.32rem; line-height: 1.3; }
.meta-list,
.detail-list {
    display: grid;
    gap: 10px;
}
.meta-item,
.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-muted);
    font-size: 0.96rem;
}
.meta-item i,
.detail-item i { color: var(--brand-gold-dark); width: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(12,47,102,0.06);
    color: var(--brand-navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 24px;
    align-items: start;
}
.detail-card img.hero-image {
    width: min(100%, 760px);
    aspect-ratio: 4/5;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
    margin: 0 auto 22px;
    background: linear-gradient(180deg, #f8fafc, #eef2fb);
}
.detail-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.description-box {
    margin-top: 22px;
    padding: 18px;
    background: rgba(12,47,102,0.03);
    border-radius: 18px;
    color: var(--brand-muted);
}
.side-card.sticky { position: sticky; top: 108px; }
.price-box {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(12,47,102,0.05), rgba(209,161,58,0.10));
    margin-bottom: 16px;
}
.price-box strong { display: block; font-size: 2rem; color: var(--brand-navy); }
.inline-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(21,154,100,0.08);
    color: #145c42;
    font-size: 0.94rem;
}

.page-hero {
    padding: 56px 0 22px;
}
.page-hero-card {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(12,47,102,0.97), rgba(18,63,132,0.92));
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.page-hero-card h1 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 12px; }
.page-hero-card p { color: rgba(255,255,255,0.84); }

.auth-wrapper,
.form-wrapper { display: grid; grid-template-columns: 1fr 0.9fr; gap: 24px; align-items: stretch; }
.auth-panel,
.info-panel { padding: 30px; }
.auth-panel h1,
.form-card h1 { color: var(--brand-navy); font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 10px; }
.auth-panel p,
.form-card p { color: var(--brand-muted); margin-bottom: 24px; }
.auth-visual {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.auth-visual::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -80px;
    background: rgba(209,161,58,0.18);
    border-radius: 50%;
}
.auth-visual .brand-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.auth-visual .brand-mini img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.auth-visual p,
.auth-visual li { color: rgba(255,255,255,0.88); }
.auth-visual .icon-box { background: linear-gradient(135deg, var(--brand-gold), #e7b752); }
.error-box,
.success-box,
.notice-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    display: none;
}
.error-box { background: rgba(203,61,79,0.1); color: #9a2334; }
.success-box { background: rgba(21,154,100,0.1); color: #145c42; }
.notice-box { background: rgba(42,111,210,0.1); color: #1f4f98; display: block; }

.application-card { display: grid; gap: 18px; }
.application-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.application-main {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: start;
}
.application-thumb {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #eef2fb);
}
.application-meta { display: grid; gap: 12px; }
.application-meta h3 { color: var(--brand-navy); }
.application-id { color: var(--brand-muted); font-size: 0.92rem; }
.progress-wrap { display: grid; gap: 8px; }
.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(12,47,102,0.08);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-gold), #efc56b);
    border-radius: 999px;
}
.status-badge,
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}
.status-review { background: rgba(42,111,210,0.12); color: #2159aa; }
.status-approved { background: rgba(21,154,100,0.12); color: #12704b; }
.status-rejected { background: rgba(203,61,79,0.12); color: #9b2535; }
.status-pending { background: rgba(183,121,31,0.12); color: #8a5d18; }
.payment-unpaid { background: rgba(203,61,79,0.12); color: #9b2535; }
.payment-pending { background: rgba(183,121,31,0.12); color: #8a5d18; }
.payment-paid { background: rgba(21,154,100,0.12); color: #12704b; }
.payment-failed { background: rgba(203,61,79,0.12); color: #9b2535; }

.site-footer {
    margin-top: 40px;
    background: linear-gradient(135deg, #092247 0%, #103365 100%);
    color: #fff;
}
.footer-main {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
    gap: 24px;
    padding: 48px 0 28px;
}
.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #ffe6a3;
}
.footer-col p,
.footer-col li,
.footer-col a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { list-style: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0 24px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.72);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.socials { display: flex; gap: 10px; margin-top: 14px; }
.social-link {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12); color: #fff; text-decoration: none;
}

.loading-state,
.empty-card {
    text-align: center;
    padding: 50px 24px;
}
.loading-state i { font-size: 2rem; color: var(--brand-navy); margin-bottom: 12px; }
.loading-state p { color: var(--brand-muted); }

.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 18, 39, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 3000;
}
.payment-modal.active { display: flex; }
.payment-content {
    width: min(540px, 100%);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(2,10,24,0.34);
    padding: 30px;
    position: relative;
}
.payment-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    background: rgba(12,47,102,0.06);
    color: var(--brand-navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.payment-amount {
    font-size: 2rem;
    color: var(--brand-navy);
    font-weight: 800;
    margin-top: 6px;
}
.payment-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(12,47,102,0.04);
    margin-top: 14px;
    color: var(--brand-muted);
}

@media (max-width: 1024px) {
    .hero-grid,
    .filter-layout,
    .detail-layout,
    .auth-wrapper,
    .form-wrapper,
    .footer-main,
    .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .primary-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 10px);
        background: rgba(255,255,255,0.98);
        border: 1px solid rgba(229,233,242,0.92);
        box-shadow: var(--shadow-soft);
        border-radius: 24px;
        padding: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .primary-nav.open { display: flex; }
    .nav-links,
    .nav-actions { flex-direction: column; align-items: stretch; }
    .nav-link,
    .nav-user,
    .btn { justify-content: center; }
    .hero { padding-top: 56px; }
    .hero-content,
    .hero-visual,
    .filters-card,
    .job-card,
    .detail-card,
    .side-card,
    .form-card,
    .auth-card,
    .application-card,
    .feature-card,
    .service-card,
    .contact-card,
    .stats-card,
    .faq-card,
    .empty-card,
    .page-hero-card,
    .info-panel,
    .auth-panel,
    .auth-visual { padding: 22px; }
    .hero-metrics { grid-template-columns: 1fr; }
    .grid-2,
    .grid-3 { grid-template-columns: 1fr; }
    .application-main { grid-template-columns: 1fr; }
    .application-top { align-items: stretch; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 20px, 1180px); }
    .topbar .container { justify-content: center; }
    .brand img { width: 54px; height: 54px; }
    .brand-title { font-size: 1.1rem; }
    .hero h1 { font-size: 2rem; }
    .metric-value { font-size: 1.3rem; }
    .detail-title { flex-direction: column; }
    .payment-content { padding: 24px 20px; }
}
