/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c1: #ffc72c;
    --c1h: #e6b327;
    --c1l: rgba(255,199,44,0.12);
    --c2: #2855ac;
    --c2l: #4a7fd4;
    --c2d: #1a3d7a;
    --c3: #000;
    --c4: #fff;
    --g50: #f8f9fa;
    --g100: #f1f3f5;
    --g200: #e9ecef;
    --g300: #dee2e6;
    --g400: #adb5bd;
    --g500: #868e96;
    --g600: #495057;
    --g800: #212529;
    --cr: #e53935;
    --cg: #43a047;
    --rmd: 0.75rem;
    --rlg: 0.875rem;
    --rxl: 1.25rem;
    --sh: 0 4px 24px rgba(0,0,0,0.06);
    --shl: 0 8px 40px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--g50);
    color: var(--g800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c2); }

/* ========== TOP BANNER ========== */
._tb {
    background: linear-gradient(90deg, var(--c1) 0%, #ffe082 100%);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c2);
    letter-spacing: 0.01em;
}
._tb span { opacity: 0.7; }

/* ========== HEADER ========== */
._hd {
    background: var(--c2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
._hi {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
._ll { display: flex; align-items: center; text-decoration: none; }
._lg { height: 32px; width: auto; }
._hr { display: flex; align-items: center; gap: 1rem; }
._ht { color: rgba(255,255,255,0.6); font-size: 0.8rem; display: none; }
._hp {
    display: none; align-items: center; gap: 0.375rem;
    color: var(--c1); font-size: 0.8rem; font-weight: 600; text-decoration: none;
}
._ha {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
._ha:hover { background: rgba(255,255,255,0.2); }
@media (min-width: 640px) {
    ._hi { height: 64px; }
    ._lg { height: 36px; }
    ._ht { display: inline; }
    ._hp { display: flex; }
}


/* ========== MAIN ========== */
._mn { flex: 1; display: flex; flex-direction: column; }

/* ========== HERO SECTION ========== */
._he {
    background: linear-gradient(135deg, var(--c2) 0%, var(--c2d) 60%, #0f2a5e 100%);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
._he::before {
    content: '';
    position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,199,44,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
._he::after {
    content: '';
    position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,199,44,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
._hei { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
._heb {
    display: inline-block; background: var(--c1l); color: var(--c1);
    font-size: 0.75rem; font-weight: 700; padding: 0.375rem 1rem; border-radius: 999px;
    margin-bottom: 1.25rem; letter-spacing: 0.03em; text-transform: uppercase;
}
._he h1 {
    font-size: 1.75rem; font-weight: 800; color: var(--c4);
    margin-bottom: 0.75rem; line-height: 1.3;
}
._he h1 em { font-style: normal; color: var(--c1); }
._he p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 2rem; }
._hbt {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--c1); color: var(--c2); font-weight: 700;
    font-size: 1rem; padding: 0.875rem 2rem; border-radius: var(--rlg);
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.25s; box-shadow: 0 4px 20px rgba(255,199,44,0.3);
}
._hbt:hover { background: var(--c1h); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,199,44,0.4); }
._hbt:active { transform: translateY(0); }
._hbt svg { transition: transform 0.2s; }
._hbt:hover svg { transform: translateX(3px); }
@media (min-width: 640px) {
    ._he { padding: 4rem 1rem; }
    ._he h1 { font-size: 2.25rem; }
}

/* ========== TRUST BADGES ========== */
._tr {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
    max-width: 640px; margin: -1.5rem auto 0; padding: 0 1rem;
    position: relative; z-index: 2;
}
@media (min-width: 640px) { ._tr { grid-template-columns: repeat(4, 1fr); margin-top: -2rem; } }
._ti {
    background: var(--c4); border-radius: var(--rmd);
    padding: 1rem; text-align: center; box-shadow: var(--sh);
    transition: transform 0.2s, box-shadow 0.2s;
}
._ti:hover { transform: translateY(-2px); box-shadow: var(--shl); }
._tic { font-size: 1.5rem; margin-bottom: 0.375rem; }
._tl { font-size: 0.7rem; font-weight: 600; color: var(--g600); line-height: 1.3; }

/* ========== PAGE CONTAINER ========== */
._pg {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 2rem 1rem 3rem;
}
@media (min-width: 640px) { ._pg { padding-top: 3rem; } }

/* ========== PROGRESS BAR ========== */
._pr { max-width: 440px; width: 100%; margin-bottom: 2rem; }
._pb {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; padding: 0 2rem;
}
._pb::before {
    content: ''; position: absolute; top: 50%; left: 2rem; right: 2rem;
    height: 3px; background: var(--g200); transform: translateY(-50%); z-index: 0;
}
._pf {
    position: absolute; top: 50%; left: 2rem; height: 3px;
    background: var(--cg); transform: translateY(-50%); z-index: 1;
    transition: width 0.4s ease;
}
._ps {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
._pd {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700; border: 3px solid var(--g200);
    background: var(--c4); transition: all 0.3s;
}
._pd.active { border-color: var(--c1); background: var(--c1); color: var(--c2); }
._pd.done { border-color: var(--cg); background: var(--cg); color: #fff; }
._pd.inactive { color: var(--g400); }
._pt { font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
._pt.active { color: var(--g800); }
._pt.done { color: var(--cg); }
._pt.inactive { color: var(--g400); }


/* ========== CARD ========== */
._cd {
    width: 100%; max-width: 440px; background: var(--c4);
    border-radius: var(--rxl); box-shadow: var(--sh); padding: 1.5rem;
}
@media (min-width: 640px) { ._cd { padding: 2rem; } }
._ct { font-size: 1.5rem; font-weight: 700; color: var(--g800); text-align: center; margin-bottom: 0.5rem; }
._cs { font-size: 0.875rem; color: var(--g500); text-align: center; margin-bottom: 2rem; }

/* ========== INFO CARD ========== */
._ic { max-width: 560px; }
._il {
    background: var(--g50); border-radius: var(--rmd); padding: 1rem;
    margin-bottom: 1rem;
}
._ilt { font-weight: 600; color: var(--g800); margin-bottom: 0.5rem; font-size: 0.85rem; }
._il ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; }
._il li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--g600); }
._ck { color: var(--c1); font-weight: 700; flex-shrink: 0; }

/* ========== FORM ========== */
._fm { display: flex; flex-direction: column; gap: 1.25rem; }
._fd { display: flex; flex-direction: column; }
._lb { font-size: 0.875rem; font-weight: 500; color: var(--g600); margin-bottom: 0.5rem; }
._iw { position: relative; }
._ii {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--g400); display: flex; pointer-events: none;
}
._ir {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    color: var(--g400); display: flex; pointer-events: none;
}
._in {
    width: 100%; height: 56px; padding: 0 1rem;
    border: 1px solid var(--g200); border-radius: var(--rlg);
    font-size: 1rem; background: var(--c4); color: var(--g800);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
    -webkit-appearance: none;
}
._in::placeholder { color: var(--g400); }
._in:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(255,199,44,0.15); }
._in._wi { padding-left: 3rem; }
._in.error { border-color: var(--cr); }
._in.error:focus { box-shadow: 0 0 0 3px rgba(229,57,53,0.1); }
._sl {
    width: 100%; height: 56px; padding: 0 1rem;
    border: 1px solid var(--g200); border-radius: var(--rlg);
    font-size: 1rem; background: var(--c4); color: var(--g800);
    transition: border-color 0.2s; outline: none;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center;
}
._sl:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(255,199,44,0.15); }
._sl.error { border-color: var(--cr); }
._er { font-size: 0.75rem; color: var(--cr); margin-top: 0.375rem; font-weight: 500; }
._rw { display: grid; gap: 1rem; }
._r2 { grid-template-columns: 1fr 1fr; }
._r3 { grid-template-columns: 1fr 1fr 1fr; }

/* ========== BUTTON ========== */
._bt {
    width: 100%; height: 56px; border: none; border-radius: var(--rlg);
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    text-decoration: none;
}
._bp {
    background: var(--c1); color: var(--c2);
    box-shadow: 0 2px 12px rgba(255,199,44,0.2);
}
._bp:hover { background: var(--c1h); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,199,44,0.3); }
._bp:active { transform: translateY(0); }
._bp:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
._bo { background: transparent; color: var(--c2); border: 2px solid var(--g200); }
._bo:hover { border-color: var(--c2); }

._hn { text-align: center; font-size: 0.75rem; color: var(--g400); margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.375rem; }

/* ========== ALERT ========== */
._al { padding: 1rem; border-radius: var(--rmd); font-size: 0.875rem; }
._ae { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
._as { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* ========== SUCCESS PAGE ========== */
._sc { text-align: center; }
._si {
    width: 80px; height: 80px; border-radius: 50%; background: #f0fdf4;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
._sii {
    width: 56px; height: 56px; border-radius: 50%; background: var(--cg);
    display: flex; align-items: center; justify-content: center;
}
._st { font-size: 1.5rem; font-weight: 700; color: var(--g800); margin-bottom: 0.75rem; }
._sx { font-size: 0.875rem; color: var(--g500); line-height: 1.6; margin-bottom: 2rem; }


/* ========== FOOTER ========== */
._ft { background: var(--c2d); margin-top: auto; }
._ftt {
    max-width: 1200px; margin: 0 auto; padding: 2.5rem 1rem 2rem;
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px) { ._ftt { grid-template-columns: 1fr 1fr 1fr; } }
._fc h4 { color: var(--c1); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
._fc a, ._fc p { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-decoration: none; display: block; margin-bottom: 0.5rem; line-height: 1.5; }
._fc a:hover { color: rgba(255,255,255,0.8); }
._fs { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
._fs a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
._fs a:hover { background: rgba(255,199,44,0.2); }
._fs svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.6); }
._fb {
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
@media (min-width: 640px) { ._fb { flex-direction: row; justify-content: space-between; } }
._fl { height: 24px; width: auto; opacity: 0.4; }
._fy { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* ========== ADMIN ========== */
._adl { display: flex; min-height: calc(100vh - 56px); }
._sb {
    width: 240px; background: var(--c2d); padding: 1.5rem 0;
    display: none; flex-direction: column;
}
._sb.open { display: flex; position: fixed; top: 56px; left: 0; bottom: 0; z-index: 90; }
@media (min-width: 768px) { ._sb { display: flex; } }
._sbl {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1.5rem; color: rgba(255,255,255,0.6);
    text-decoration: none; font-size: 0.875rem; transition: all 0.2s;
}
._sbl:hover { background: rgba(255,255,255,0.05); color: #fff; }
._sbl.active { background: rgba(255,199,44,0.1); color: var(--c1); border-left: 3px solid var(--c1); }
._sbl svg { flex-shrink: 0; }
._cn { flex: 1; padding: 1.5rem; overflow-x: auto; }
@media (min-width: 768px) { ._cn { padding: 2rem; } }
._hm {
    display: flex; background: none; border: none; color: #fff; cursor: pointer;
    padding: 0.5rem; margin-right: 0.5rem;
}
@media (min-width: 768px) { ._hm { display: none; } }

/* ========== TABLE ========== */
._tw { overflow-x: auto; border-radius: var(--rmd); background: #fff; box-shadow: var(--sh); }
._ta { width: 100%; min-width: 700px; border-collapse: collapse; }
._ta th {
    text-align: left; padding: 0.875rem 1rem; font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; color: var(--g500);
    background: var(--g50); border-bottom: 1px solid var(--g200);
}
._ta td {
    padding: 0.875rem 1rem; font-size: 0.875rem; color: var(--g600);
    border-bottom: 1px solid var(--g100);
}
._ta tr:hover td { background: var(--g50); }
._ta tr { cursor: pointer; }

/* ========== BADGES ========== */
._bg { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
._by { background: #fef9c3; color: #854d0e; }
._bgr { background: #dcfce7; color: #166534; }
._br { background: #fee2e2; color: #991b1b; }

/* ========== SUMMARY CARDS ========== */
._sg { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { ._sg { grid-template-columns: repeat(3, 1fr); } }
._scd { background: #fff; border-radius: var(--rmd); padding: 1.25rem; box-shadow: var(--sh); display: flex; align-items: center; gap: 0.75rem; }
._sci { font-size: 1.5rem; }
._slb { font-size: 0.875rem; color: var(--g500); }
._sv { font-size: 1.25rem; font-weight: 700; color: var(--c2); }

/* ========== BAR CHART ========== */
._bc { display: flex; flex-direction: column; gap: 0.75rem; }
._bro { display: flex; flex-direction: column; gap: 0.25rem; }
._bh { display: flex; justify-content: space-between; font-size: 0.875rem; }
._bl { color: var(--g600); font-weight: 500; }
._bv { color: var(--g500); }
._btr { width: 100%; height: 24px; background: var(--g100); border-radius: 999px; overflow: hidden; }
._bf { height: 100%; background: var(--c1); border-radius: 999px; transition: width 0.5s ease; min-width: 2%; }

/* ========== PAGINATION ========== */
._pn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
._pbt {
    padding: 0.5rem 0.875rem; border: 1px solid var(--g200); border-radius: var(--rmd);
    background: #fff; font-size: 0.875rem; cursor: pointer; text-decoration: none; color: var(--g600);
}
._pbt:hover { border-color: var(--c2); color: var(--c2); }
._pbt.active { background: var(--c2); color: #fff; border-color: var(--c2); }

/* ========== SPINNER ========== */
._sp {
    width: 20px; height: 20px; border: 3px solid currentColor; border-top-color: transparent;
    border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== DETAIL ========== */
._dg { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { ._dg { grid-template-columns: 1fr 1fr; } }
._dl { font-size: 0.75rem; color: var(--g500); text-transform: uppercase; font-weight: 600; margin-bottom: 0.25rem; }
._dv { font-size: 1rem; color: var(--g800); }

/* ========== OVERLAY ========== */
._ov { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 80; }
._ov.open { display: block; }
@media (min-width: 768px) { ._ov { display: none !important; } }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.5s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

._lp { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--g200); border-radius: var(--rmd); overflow: hidden; }
.faq-item[open] { border-color: var(--c1); }
.faq-q {
    padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 0.9rem;
    color: var(--g800); list-style: none; display: flex; align-items: center;
    justify-content: space-between; gap: 0.75rem; transition: background 0.2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--g400); flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] .faq-q { background: var(--c1l); color: var(--c2); }
.faq-item[open] .faq-q::after { content: '−'; color: var(--c2); }
.faq-q:hover { background: var(--g50); }
.faq-a { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--g600); line-height: 1.7; }

/* ========== LEGAL PAGES ========== */
.legal-content { text-align: left; font-size: 0.875rem; color: var(--g600); line-height: 1.8; }
.legal-content h3 { font-size: 1rem; font-weight: 600; color: var(--c2); margin: 1.5rem 0 0.5rem; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 0.75rem; }
.legal-content ul { margin: 0.5rem 0 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.legal-content li { color: var(--g600); }
