:root {
    --bg: #f4f7f3;
    --surface: #ffffff;
    --surface-soft: #f8faf8;
    --surface-strong: #eef5ef;
    --text: #17211b;
    --muted: #66736b;
    --border: #dce4dd;
    --border-strong: #c9d5cb;
    --brand: #176b43;
    --brand-dark: #0f4f31;
    --brand-soft: #e2f3e8;
    --brand-faint: #f1faf4;
    --blue: #2864c7;
    --blue-soft: #e9f1ff;
    --amber: #a85b05;
    --amber-soft: #fff3d6;
    --red: #b42b31;
    --red-soft: #fdebec;
    --slate-soft: #edf1ee;
    --shadow-sm: 0 2px 10px rgba(23, 33, 27, .05);
    --shadow-md: 0 14px 38px rgba(23, 33, 27, .09);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --sidebar-width: 252px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 4% 0%, rgba(23, 107, 67, .09), transparent 28rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
svg { display: block; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -70px;
    z-index: 200;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--brand-dark);
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    background: #123d29;
    color: #fff;
    overflow-y: auto;
    z-index: 50;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.sidebar-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.1); padding: 5px; }
.sidebar-brand-copy strong { display: block; font-size: 16px; line-height: 1.15; }
.sidebar-brand-copy span { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.64); }
.sidebar-label { padding: 14px 10px 8px; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.76);
    text-decoration: none;
    font-weight: 650;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.09); transform: translateX(2px); }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,.15); box-shadow: inset 3px 0 0 #7ed69d; }
.sidebar-link .nav-count { margin-left: auto; min-width: 24px; padding: 2px 7px; border-radius: 999px; text-align: center; font-size: 11px; background: rgba(255,255,255,.13); }
.sidebar-footer { margin-top: 24px; padding: 18px 10px 8px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.58); font-size: 12px; }

.app-main { min-width: 0; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(18px, 3vw, 34px);
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(220,228,221,.9);
    backdrop-filter: blur(14px);
}
.topbar-title { min-width: 0; }
.topbar-title h1 { margin: 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: -.025em; }
.topbar-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.mobile-menu-button { display: none; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 7px 11px 7px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 800; font-size: 12px; }
.user-chip-copy { line-height: 1.15; }
.user-chip-copy strong { display: block; font-size: 13px; }
.user-chip-copy span { color: var(--muted); font-size: 11px; }

.page { width: min(1480px, 100%); margin: 0 auto; padding: 24px clamp(18px, 3vw, 34px) 42px; }
.page-narrow { width: min(1180px, 100%); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-heading h2 { margin: 0; font-size: clamp(23px, 2.4vw, 32px); letter-spacing: -.03em; }
.page-heading p { max-width: 720px; margin: 6px 0 0; color: var(--muted); }
.page-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; }
.card-header h2, .card-header h3 { margin: 0; letter-spacing: -.02em; }
.card-header h2 { font-size: 20px; }
.card-header h3 { font-size: 17px; }
.card-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 0 22px 22px; }
.card-divider { height: 1px; margin: 0 22px; background: var(--border); }
.card-empty { padding: 42px 24px; text-align: center; }
.card-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 15px; color: var(--brand); background: var(--brand-soft); }
.card-empty h3 { margin: 0; font-size: 18px; }
.card-empty p { max-width: 440px; margin: 7px auto 18px; color: var(--muted); }
.card-highlight { border-color: rgba(23,107,67,.28); background: linear-gradient(135deg, var(--brand-faint), #fff 65%); }
.card-warning { border-color: rgba(168,91,5,.28); background: linear-gradient(135deg, #fff8e9, #fff 68%); }
.card-danger { border-color: rgba(180,43,49,.25); background: linear-gradient(135deg, #fff3f3, #fff 68%); }

.grid { display: grid; gap: 18px; }
.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)); }
.layout-split { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.65fr); gap: 20px; align-items: start; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
    position: relative;
    min-height: 124px;
    padding: 18px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.stat-card::after { content: ""; position: absolute; right: -18px; bottom: -24px; width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft); opacity: .7; }
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.stat-card .stat-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.stat-card strong { display: block; margin-top: 11px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.stat-card small { display: block; margin-top: 7px; color: var(--muted); }
.stat-card.warning .stat-icon, .stat-card.warning::after { color: var(--amber); background: var(--amber-soft); }
.stat-card.blue .stat-icon, .stat-card.blue::after { color: var(--blue); background: var(--blue-soft); }
.stat-card.danger .stat-icon, .stat-card.danger::after { color: var(--red); background: var(--red-soft); }

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    background: var(--brand);
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-dark); box-shadow: 0 8px 18px rgba(23,107,67,.17); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(40,100,199,.25); outline-offset: 2px; }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--text); background: var(--surface-soft); border-color: #aebdb1; box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--brand-dark); background: transparent; border-color: rgba(23,107,67,.22); }
.btn-ghost:hover { color: var(--brand-dark); background: var(--brand-faint); box-shadow: none; }
.btn-warning { color: #fff; background: var(--amber); }
.btn-warning:hover { background: #844600; }
.btn-danger { color: #fff; background: var(--red); }
.btn-danger:hover { background: #8e2026; }
.btn-sm { min-height: 34px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-button { width: 42px; min-width: 42px; padding: 0; }
.inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }

label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 13px; }
.field { min-width: 0; }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=file], select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #aebdb1; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,199,.11); outline: 0; }
input:disabled { color: var(--muted); background: var(--surface-soft); }
textarea { min-height: 96px; resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.checkbox-row label { margin: 0; font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.search-bar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .38fr) auto; gap: 10px; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input-wrap input { padding-left: 39px; }

.alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.alert strong { display: block; margin-bottom: 1px; }
.alert-success { color: var(--brand-dark); background: var(--brand-faint); border-color: rgba(23,107,67,.22); }
.alert-warning { color: #784204; background: #fff8e9; border-color: rgba(168,91,5,.24); }
.alert-info { color: #1f4f9c; background: #f1f6ff; border-color: rgba(40,100,199,.22); }
.alert-danger { color: #8e2026; background: #fff2f3; border-color: rgba(180,43,49,.22); }

.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: #17623c; background: #ddf4e5; }
.badge-warning { color: #874900; background: #ffefca; }
.badge-danger { color: #9b2329; background: #fde3e5; }
.badge-info { color: #245aa9; background: #e5efff; }
.badge-neutral { color: #59655e; background: #edf1ee; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 14px; color: var(--muted); background: var(--surface-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 850; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child { border-left: 1px solid var(--border); border-radius: 11px 0 0 11px; }
.data-table th:last-child { border-right: 1px solid var(--border); border-radius: 0 11px 11px 0; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: var(--surface-soft); }
.data-table tbody tr.selected { background: var(--brand-faint); }
.table-primary { display: block; color: var(--text); font-weight: 800; text-decoration: none; }
.table-primary:hover { color: var(--brand); }
.table-secondary { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.table-actions { text-align: right; }

.request-list { display: grid; gap: 9px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 3px; }
.request-list-item { display: block; padding: 14px; border: 1px solid var(--border); border-radius: 14px; color: inherit; background: var(--surface); text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.request-list-item:hover { border-color: var(--border-strong); background: var(--surface-soft); transform: translateX(2px); }
.request-list-item.active { border-color: rgba(23,107,67,.34); background: var(--brand-faint); box-shadow: inset 3px 0 0 var(--brand); }
.request-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.request-list-code { font-weight: 850; font-size: 13px; }
.request-list-store { margin-top: 7px; font-weight: 700; }
.request-list-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--muted); font-size: 12px; }

.section-nav { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; }
.section-nav a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface); font-weight: 750; font-size: 13px; text-decoration: none; }
.section-nav a:hover { color: var(--text); border-color: var(--border-strong); }
.section-nav a.active { color: var(--brand-dark); background: var(--brand-soft); border-color: rgba(23,107,67,.25); }

.detail-hero { padding: 22px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #123d29, #176b43); box-shadow: var(--shadow-md); }
.detail-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.detail-hero .eyebrow { color: rgba(255,255,255,.66); }
.detail-hero h2 { margin: 5px 0 2px; font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -.03em; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.72); }
.detail-hero .badge { background: rgba(255,255,255,.14); color: #fff; }
.detail-hero .badge::before { background: #8de1aa; }
.detail-hero-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.detail-hero-metric { padding: 12px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.08); }
.detail-hero-metric span { display: block; color: rgba(255,255,255,.6); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.detail-hero-metric strong { display: block; margin-top: 5px; overflow-wrap: anywhere; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.info-item { min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.info-item span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.info-item strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.code-value { display: inline-flex; max-width: 100%; padding: 4px 7px; border-radius: 7px; color: #334039; background: #edf2ee; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }

.progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin: 6px 0 2px; }
.progress-step { position: relative; display: grid; justify-items: center; gap: 7px; padding: 0 8px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 750; }
.progress-step::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.progress-step:first-child::before { left: 50%; }
.progress-step:last-child::before { right: 50%; }
.progress-dot { position: relative; z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid var(--border-strong); border-radius: 50%; color: var(--muted); background: var(--surface); }
.progress-step.done { color: var(--brand-dark); }
.progress-step.done::before { background: var(--brand); }
.progress-step.done .progress-dot { color: #fff; border-color: var(--brand); background: var(--brand); }
.progress-step.current { color: var(--brand-dark); }
.progress-step.current .progress-dot { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(23,107,67,.09); }

.next-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid rgba(23,107,67,.22); border-radius: var(--radius); background: var(--brand-faint); }
.next-action.warning { border-color: rgba(168,91,5,.25); background: #fff8e9; }
.next-action.success { border-color: rgba(23,107,67,.25); background: #edfaf1; }
.next-action-copy { display: flex; align-items: flex-start; gap: 12px; }
.next-action-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.next-action.warning .next-action-icon { color: var(--amber); background: var(--amber-soft); }
.next-action h3 { margin: 0; font-size: 17px; }
.next-action p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.payment-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.payment-option { position: relative; display: flex; flex-direction: column; min-height: 175px; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.payment-option.recommended { border-color: rgba(23,107,67,.35); background: var(--brand-faint); }
.payment-option-tag { position: absolute; top: 11px; right: 11px; padding: 3px 7px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 850; }
.payment-option-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.payment-option h3 { margin: 13px 0 3px; font-size: 16px; }
.payment-option p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.bank-details { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 13px; background: var(--surface-soft); }
.bank-row { display: flex; justify-content: space-between; gap: 18px; }
.bank-row span { color: var(--muted); }
.bank-row strong { text-align: right; overflow-wrap: anywhere; }

.upload-zone { display: block; padding: 26px 18px; border: 2px dashed var(--border-strong); border-radius: 16px; text-align: center; background: var(--surface-soft); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--brand); background: var(--brand-faint); }
.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-zone-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.upload-zone strong { display: block; }
.upload-zone span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.upload-file-name { margin-top: 9px !important; color: var(--brand-dark) !important; font-weight: 750; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(520px, .95fr); }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 5vw, 72px); color: #fff; background: linear-gradient(145deg, #0d3a25, #176b43 62%, #248157); overflow: hidden; }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-visual::before { width: 390px; height: 390px; right: -150px; top: -100px; }
.auth-visual::after { width: 470px; height: 470px; left: -220px; bottom: -250px; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.auth-brand img { width: 54px; height: 54px; object-fit: contain; padding: 5px; border-radius: 15px; background: rgba(255,255,255,.1); }
.auth-brand strong { display: block; font-size: 19px; }
.auth-brand span { color: rgba(255,255,255,.64); font-size: 12px; }
.auth-message { position: relative; z-index: 1; max-width: 640px; }
.auth-message .eyebrow { color: #9be2b3; }
.auth-message h1 { margin: 10px 0 14px; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.auth-message p { max-width: 580px; margin: 0; color: rgba(255,255,255,.72); font-size: 17px; }
.auth-benefits { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.auth-benefit { padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.auth-benefit svg { color: #9be2b3; }
.auth-benefit strong { display: block; margin-top: 10px; font-size: 13px; }
.auth-benefit span { display: block; margin-top: 3px; color: rgba(255,255,255,.59); font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: 28px; background: var(--bg); }
.auth-card { width: min(490px, 100%); padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); }
.auth-card h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.auth-card > p { margin: 7px 0 22px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; padding: 4px; margin-bottom: 22px; border-radius: 13px; background: var(--slate-soft); }
.auth-tab { min-height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.auth-tab.active { color: var(--text); background: #fff; box-shadow: var(--shadow-sm); }
.auth-pane[hidden] { display: none; }
.auth-footer { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }

.request-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.request-card { display: flex; flex-direction: column; min-height: 206px; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.request-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.request-card-top { display: flex; justify-content: space-between; gap: 8px; }
.request-card-code { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.request-card h3 { margin: 16px 0 3px; font-size: 18px; }
.request-card p { margin: 0; color: var(--muted); font-size: 13px; }
.request-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 12px; }
.request-card-footer strong { color: var(--brand); }

.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 11px; min-height: 64px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 29px; bottom: 0; width: 2px; background: var(--border); }
.timeline-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--slate-soft); }
.timeline-item.done .timeline-dot { color: #fff; background: var(--brand); }
.timeline-content strong { display: block; font-size: 13px; }
.timeline-content span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

details.disclosure { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
details.disclosure + details.disclosure { margin-top: 10px; }
details.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 800; list-style: none; }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after { content: "+"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); background: var(--slate-soft); }
details.disclosure[open] summary::after { content: "−"; }
details.disclosure .disclosure-body { padding: 0 16px 16px; }

.notification-list { display: grid; gap: 9px; }
.notification-item { padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.notification-item.unread { border-color: rgba(23,107,67,.27); background: var(--brand-faint); }
.notification-item.action { border-color: rgba(168,91,5,.28); background: #fff9ed; }
.notification-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.notification-head strong { font-size: 13px; }
.notification-item p { margin: 5px 0 8px; color: var(--muted); font-size: 12px; }
.notification-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }

.eyebrow { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: 12px; color: #fff; background: #17211b; box-shadow: var(--shadow-md); animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .request-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .detail-hero-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .auth-layout { grid-template-columns: minmax(0, .8fr) minmax(500px, 1.2fr); }
    .auth-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-103%); box-shadow: var(--shadow-md); transition: transform .2s ease; }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(9,24,15,.38); }
    .mobile-menu-button { display: inline-flex; }
    .topbar-title p { display: none; }
    .layout-split, .layout-sidebar { grid-template-columns: 1fr; }
    .request-list { max-height: 430px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-visual { min-height: 360px; padding: 30px; }
    .auth-message h1 { font-size: clamp(36px, 10vw, 58px); }
    .auth-benefits { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .auth-panel { padding: 24px 18px 36px; }
}

@media (max-width: 720px) {
    body { font-size: 14px; }
    .topbar { padding: 10px 14px; }
    .topbar-actions .user-chip-copy { display: none; }
    .page { padding: 18px 14px 30px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .card-pad { padding: 17px; }
    .card-header { padding: 17px 17px 13px; }
    .card-body { padding: 0 17px 17px; }
    .card-divider { margin: 0 17px; }
    .grid-2, .grid-3, .grid-4, .field-row, .info-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .stat-card { min-height: 110px; padding: 14px; }
    .stat-card strong { font-size: 25px; }
    .search-bar { grid-template-columns: 1fr; }
    .request-cards { grid-template-columns: 1fr; }
    .payment-options { grid-template-columns: 1fr; }
    .payment-option { min-height: 150px; }
    .detail-hero { padding: 18px; }
    .detail-hero-top, .next-action { align-items: flex-start; flex-direction: column; }
    .detail-hero-grid { grid-template-columns: 1fr 1fr; }
    .progress-step { padding: 0 2px; font-size: 10px; }
    .auth-visual { min-height: 330px; }
    .auth-benefits { display: none; }
    .auth-card { padding: 21px; }
    .data-table.mobile-cards thead { display: none; }
    .data-table.mobile-cards, .data-table.mobile-cards tbody, .data-table.mobile-cards tr, .data-table.mobile-cards td { display: block; width: 100%; }
    .data-table.mobile-cards tr { margin-bottom: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; }
    .data-table.mobile-cards td { padding: 5px 0; border: 0; }
    .data-table.mobile-cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
    .table-actions { text-align: left; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .detail-hero-grid { grid-template-columns: 1fr; }
    .topbar-actions .btn-label { display: none; }
    .bank-row { align-items: flex-start; flex-direction: column; gap: 2px; }
    .bank-row strong { text-align: left; }
}
.request-card-footer strong { display: inline-flex; align-items: center; gap: 4px; }
body.nav-open { overflow: hidden; }
