:root {
    --bg: #090806;
    --surface: rgba(20, 18, 13, .91);
    --surface-2: rgba(35, 30, 20, .94);
    --gold: #e3b33c;
    --gold-2: #ffdc72;
    --red: #e52b2b;
    --text: #fffaf0;
    --muted: #b9ad94;
    --line: rgba(227, 179, 60, .23);
    --success: #38c878;
    --warning: #f5a524;
    --danger: #ef5350;
    --info: #4aa3ff;
    --radius: 20px;
    --shadow: 0 22px 60px rgba(0, 0, 0, .42);
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden], .is-hidden { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.site-bg { position: fixed; inset: 0; z-index: -2; background: url('../../BACKGROUND ARM ZONK.png') center/cover no-repeat; }
.site-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(208, 149, 21, .08), transparent 42%), linear-gradient(90deg, rgba(4, 3, 2, .9), rgba(6, 5, 3, .69) 55%, rgba(2, 2, 2, .82)); }

.site-header, .site-footer { width: min(1180px, calc(100% - 32px)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 82px; padding: 14px 0; }
.site-footer { color: var(--muted); padding: 28px 0 36px; font-size: .82rem; border-top: 1px solid var(--line); }
.site-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: calc(100vh - 150px); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { color: #090806; background: linear-gradient(135deg, var(--gold-2), #9b6508); padding: 8px 10px; border-radius: 7px; font-weight: 1000; transform: skew(-8deg); box-shadow: 0 0 24px rgba(227,179,60,.2); }
.brand span:last-child { display: grid; line-height: .88; }
.brand b { font-size: .62rem; letter-spacing: .22em; }
.brand strong { color: var(--red); font-size: 1.35rem; font-style: italic; }

.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(440px, 1.06fr); gap: clamp(32px, 6vw, 90px); align-items: center; padding: 42px 0 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .19em; font-weight: 800; font-size: .72rem; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.hero-copy h1 { margin: 16px 0; font-size: clamp(2.45rem, 6vw, 5.3rem); line-height: .9; letter-spacing: -.07em; text-transform: uppercase; }
.hero-copy h1 span { color: var(--gold); display: block; }
.hero-copy p { color: #d1c7b3; line-height: 1.7; max-width: 570px; font-size: 1.02rem; }
.hero-points { display: grid; gap: 11px; margin-top: 30px; }
.hero-point { display: flex; gap: 11px; align-items: center; color: #e9dfca; font-size: .91rem; }
.hero-point::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #090806; background: var(--gold); font-weight: 900; }

.panel { background: linear-gradient(145deg, rgba(31,27,19,.95), rgba(12,11,8,.96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(18px); }
.panel-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.panel-head h2, .panel-head h3 { margin: 0 0 6px; letter-spacing: -.03em; }
.panel-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.panel-body { padding: 28px; }
.section-title { margin: 0 0 18px; font-size: 1.05rem; }
.stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1/-1; }
.field label { color: #e5dbc6; font-size: .79rem; font-weight: 750; letter-spacing: .03em; }
.required { color: var(--red); }
.input, .select, .textarea { width: 100%; color: var(--text); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 13px 14px; outline: none; transition: .2s; }
.select { color-scheme: light; }
select.select option, select.select optgroup { color: #111 !important; background-color: #fffaf0 !important; }
select.select option:checked { color: #111 !important; background-color: #e3b33c !important; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,179,60,.13); background: rgba(255,255,255,.075); }
.input::placeholder, .textarea::placeholder { color: #766d5c; }
.input-note { color: var(--muted); font-size: .72rem; }
.textarea { min-height: 92px; resize: vertical; }
.input-icon { position: relative; }
.input-icon > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 800; }
.input-icon .input { padding-left: 48px; }

.upload-box { border: 1px dashed rgba(227,179,60,.52); border-radius: 14px; padding: 16px; background: rgba(227,179,60,.045); display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.preview { width: 88px; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: #14120e; border: 1px solid var(--line); }
.upload-copy strong { display: block; font-size: .9rem; margin-bottom: 5px; }
.upload-copy p { color: var(--muted); font-size: .72rem; line-height: 1.5; margin: 0 0 10px; }
.file-input { max-width: 100%; color: var(--muted); font-size: .75rem; }
.file-input::file-selector-button { color: #100d07; background: var(--gold); border: 0; border-radius: 8px; padding: 8px 11px; margin-right: 8px; font-weight: 800; cursor: pointer; }
.progress-wrap { display: none; margin-top: 9px; }
.progress-wrap.active { display: block; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; margin-bottom: 5px; }
.progress { height: 7px; background: rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; }
.progress > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #9d690c, var(--gold-2)); transition: width .1s; }

.btn { border: 0; border-radius: 11px; padding: 12px 17px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; transition: transform .18s, filter .18s, background .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { color: #100d07; background: linear-gradient(135deg, var(--gold-2), #c48a12); box-shadow: 0 9px 24px rgba(227,179,60,.18); }
.btn-red { color: white; background: linear-gradient(135deg, #f04444, #a70c0c); }
.btn-success { color: white; background: #168a4b; }
.btn-info { color: white; background: #176db5; }
.btn-ghost { color: var(--gold-2); background: rgba(227,179,60,.08); border: 1px solid var(--line); }
.btn-muted { color: #ddd4c3; background: rgba(255,255,255,.08); }
.btn-sm { padding: 8px 11px; font-size: .74rem; border-radius: 8px; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.alert { border: 1px solid; border-radius: 12px; padding: 13px 15px; font-size: .82rem; line-height: 1.55; }
.alert-success { color: #bdf5d4; background: rgba(56,200,120,.09); border-color: rgba(56,200,120,.3); }
.alert-danger { color: #ffc8c7; background: rgba(239,83,80,.09); border-color: rgba(239,83,80,.3); }
.alert-warning { color: #ffe0a8; background: rgba(245,165,36,.09); border-color: rgba(245,165,36,.3); }
.alert-info { color: #c7e4ff; background: rgba(74,163,255,.08); border-color: rgba(74,163,255,.26); }

.portal-wrap { max-width: 940px; margin: 24px auto 64px; display: grid; gap: 20px; }
.success-hero { text-align: center; padding: 34px 24px; }
.success-icon { margin: 0 auto 14px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #07140d; background: var(--success); font-size: 1.6rem; font-weight: 1000; box-shadow: 0 0 0 9px rgba(56,200,120,.1); }
.success-hero h1 { margin: 0 0 9px; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.05em; }
.success-hero p { color: var(--muted); margin: 0 auto; max-width: 660px; line-height: 1.6; }
.portal-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.code-display { font-size: clamp(1.35rem, 4vw, 2.1rem); letter-spacing: .08em; color: var(--gold-2); font-weight: 950; font-variant-numeric: tabular-nums; word-break: break-word; }
.qr-shell { display: grid; place-items: center; background: white; padding: 12px; border-radius: 13px; width: fit-content; margin: 18px auto; }
.qr-shell img, .qr-shell canvas { display: block; }
.access-url { display: flex; gap: 8px; }
.access-url .input { font-size: .75rem; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid; border-radius: 999px; padding: 6px 10px; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.status-REGISTERED { color: #ffd48d; border-color: rgba(245,165,36,.4); background: rgba(245,165,36,.1); }
.status-PAYMENT_SUBMITTED { color: #a8d5ff; border-color: rgba(74,163,255,.4); background: rgba(74,163,255,.1); }
.status-APPROVED { color: #aef0ca; border-color: rgba(56,200,120,.4); background: rgba(56,200,120,.1); }
.status-REJECTED { color: #ffc0be; border-color: rgba(239,83,80,.4); background: rgba(239,83,80,.1); }
.status-DELETED { color: #d3cbc0; border-color: rgba(211,203,192,.3); background: rgba(211,203,192,.08); }
.data-list { display: grid; gap: 0; }
.data-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.data-row:last-child { border-bottom: 0; }
.data-row span:first-child { color: var(--muted); font-size: .79rem; }
.data-row strong { text-align: right; font-size: .85rem; }
.bank-list { display: grid; gap: 12px; }
.bank-card { position: relative; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(227,179,60,.09), rgba(255,255,255,.025)); padding: 17px; border-radius: 13px; }
.bank-card small { color: var(--muted); display: block; }
.bank-card strong { display: block; color: var(--gold-2); font-size: 1.24rem; letter-spacing: .04em; margin: 5px 0; }
.fee-box { display: flex; justify-content: space-between; align-items: center; padding: 18px; background: rgba(227,179,60,.1); border: 1px solid var(--line); border-radius: 13px; }
.fee-box span { color: var(--muted); font-size: .8rem; }
.fee-box strong { color: var(--gold-2); font-size: 1.45rem; }

.toast-container { position: fixed; top: 18px; right: 18px; z-index: 2000; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { background: #18150f; color: white; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 13px 15px; box-shadow: 0 15px 40px rgba(0,0,0,.45); font-size: .8rem; animation: toastIn .25s ease; }
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; padding-top: 24px; }
    .hero-copy { text-align: center; }
    .hero-copy p { margin-left: auto; margin-right: auto; }
    .hero-points { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
    .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-header, .site-footer, .site-main { width: min(100% - 20px, 1180px); }
    .site-header { min-height: 68px; }
    .site-header .btn { font-size: 0; padding: 9px; }
    .site-header .btn::after { content: "Admin"; font-size: .7rem; }
    .hero-grid { gap: 28px; padding: 20px 0 44px; }
    .hero-copy h1 { font-size: 3rem; }
    .panel-head, .panel-body { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .upload-box { grid-template-columns: 70px 1fr; padding: 12px; }
    .preview { width: 70px; }
    .access-url { display: grid; }
    .site-footer { flex-direction: column; gap: 4px; align-items: start; }
    .fee-box { align-items: start; flex-direction: column; gap: 7px; }
}
