:root {
  --bg: #070a12;
  --bg-soft: #0c111d;
  --panel: rgba(16, 22, 36, 0.92);
  --panel-strong: #111827;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #98a3b8;
  --primary: #20d98b;
  --primary-rgb: 32, 217, 139;
  --primary-dark: #0bbd73;
  --danger: #ff6275;
  --warning: #f7c94c;
  --success: #28d997;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 20px;
  --site-background-image: none;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(7, 10, 18, 0.86), rgba(7, 10, 18, 0.96)), var(--site-background-image);
  background-size: cover;
  background-position: center;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 15% 10%, rgba(var(--primary-rgb), 0.12), transparent 34%), radial-gradient(circle at 85% 30%, rgba(67, 117, 255, 0.09), transparent 34%);
}
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 14px; background: var(--primary); color: #03130c; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 16px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.container.narrow { width: min(760px, calc(100% - 40px)); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 10, 18, 0.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: rgba(var(--primary-rgb), 0.12); border: 1px solid rgba(var(--primary-rgb), 0.24); overflow: hidden; }
.brand-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 1rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.desktop-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.desktop-nav a { padding: 9px 11px; border-radius: 10px; color: #b4bdce; font-size: .9rem; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.avatar-button, .menu-button, .icon-button { border: 0; color: var(--text); cursor: pointer; }
.avatar-button { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, var(--primary), #77efbd); color: #052017; font-weight: 900; }
.menu-button { display: none; width: 42px; height: 42px; padding: 11px; border-radius: 11px; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: currentColor; }
.account-menu { position: absolute; top: calc(100% - 3px); right: 0; width: 240px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 15px; background: #111724; box-shadow: var(--shadow); }
.account-summary { padding: 10px 11px 12px; display: grid; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.account-summary small { color: var(--muted); }
.account-menu a, .account-menu button { width: 100%; display: block; padding: 10px 11px; border: 0; border-radius: 9px; color: #c9d1df; background: transparent; text-align: left; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mobile-menu { border-top: 1px solid var(--line); background: #0b101b; }
.mobile-menu-inner { display: grid; padding-block: 12px 20px; }
.mobile-menu a { padding: 11px 0; color: #c8d0df; }
.mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { background: var(--primary); color: #04170f; box-shadow: 0 10px 30px rgba(var(--primary-rgb), .16); }
.button-primary:hover { filter: brightness(1.1); }
.button-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .035); color: var(--text); }
.button-danger { border-color: rgba(255, 98, 117, .35); background: rgba(255, 98, 117, .13); color: #ff8c9a; }
.button-small { min-height: 36px; padding: 7px 11px; border-radius: 9px; font-size: .82rem; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.text-button { border: 0; padding: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.danger-text { color: #ff7d8d; }
.text-link { color: #75e9b5; font-weight: 750; }

.hero { padding: 92px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); align-items: center; gap: 72px; }
.hero-copy { max-width: 710px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--primary); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .page-heading h1, .dashboard-header h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 650px; margin-bottom: 30px; color: #abb5c7; font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual, .hero-photo { min-height: 390px; border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(145deg, rgba(20, 29, 46, .96), rgba(10, 15, 26, .94)); box-shadow: var(--shadow); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.hero-visual { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.balance-preview { display: grid; padding: 28px; border-radius: 21px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.balance-preview small, .balance-preview span { color: var(--muted); }
.balance-preview strong { margin: 8px 0; font-size: 3rem; letter-spacing: -.05em; }
.visual-line { height: 72px; margin: 22px 0; border-bottom: 3px solid var(--primary); border-radius: 50%; transform: skewY(-6deg); opacity: .75; }
.mini-row { display: flex; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.mini-row b { color: var(--primary); }

.section { padding: 72px 0; }
.section-soft { border-block: 1px solid var(--line); background: rgba(9, 14, 24, .66); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 210px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 20, 33, .82); }
.feature-icon { margin-bottom: 28px; color: var(--primary); font-size: .8rem; font-weight: 900; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.14rem; }
.feature-card p { margin-bottom: 0; color: var(--muted); }

.auth-section { padding: 80px 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 480px; gap: 70px; align-items: center; }
.simple-auth { min-height: 600px; }
.auth-intro h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.055em; line-height: 1; }
.auth-intro p { max-width: 480px; color: var(--muted); font-size: 1.08rem; }
.auth-card, .panel, .legal-card, .status-page { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 55px rgba(0, 0, 0, .2); }
.auth-card { padding: 32px; }
.auth-switch { margin-top: 18px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 800; }

.form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { color: #d7deea; font-size: .88rem; font-weight: 750; }
.field label span { color: var(--muted); font-weight: 500; }
.input, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; color: var(--text); background: rgba(5, 9, 16, .65); transition: border .15s, box-shadow .15s; }
.input { height: 46px; padding: 0 13px; }
.input-large { height: 58px; font-size: 1.25rem; font-weight: 800; }
.textarea { min-height: 112px; padding: 12px 13px; resize: vertical; }
.input:focus, .textarea:focus { border-color: rgba(var(--primary-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1); }
.input:disabled { opacity: .72; }
.form-error { padding: 11px 13px; border: 1px solid rgba(255, 98, 117, .35); border-radius: 10px; color: #ff9aa6; background: rgba(255, 98, 117, .09); }
.muted { color: var(--muted); }
.block { display: block; margin-top: 3px; }

.page-heading { margin-bottom: 30px; }
.page-heading h1 { margin-bottom: 12px; font-size: clamp(2.25rem, 5vw, 4rem); }
.page-heading p { max-width: 680px; color: var(--muted); }
.status-page { padding: 54px 34px; text-align: center; }
.status-page h1 { margin: 18px 0 12px; font-size: clamp(2rem, 5vw, 3.4rem); }
.status-page p { max-width: 560px; margin: 0 auto 24px; color: #bcc5d4; }
.status-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: rgba(247, 201, 76, .13); font-size: 2rem; }
.pending-page { border-color: rgba(247, 201, 76, .28); }
.submitted-files { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.submitted-files a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--primary); }
.notice { margin-bottom: 20px; padding: 14px 16px; display: flex; gap: 12px; border-radius: 12px; }
.warning-notice { border: 1px solid rgba(247, 201, 76, .3); background: rgba(247, 201, 76, .1); color: #f7dc83; }
.danger-notice { border: 1px solid rgba(255, 98, 117, .3); background: rgba(255, 98, 117, .1); color: #ff9da9; }

.panel-body { padding: 27px; }
.panel-header { min-height: 72px; padding: 19px 23px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3 { margin-bottom: 2px; }
.panel-header p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.inner-header { padding: 0 0 22px; margin-bottom: 22px; border: 0; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.upload-box { min-height: 235px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed rgba(var(--primary-rgb), .4); border-radius: 16px; background: rgba(var(--primary-rgb), .035); text-align: center; cursor: pointer; }
.upload-box:hover { background: rgba(var(--primary-rgb), .07); }
.upload-box input, .compact-upload input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: #c7cfdb; background: rgba(255, 255, 255, .025); cursor: pointer; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: 0 0 auto; }
.consent-row span { font-size: .88rem; }
.upload-box small, .compact-upload small { color: var(--muted); }
.upload-box em, .compact-upload em { margin-top: 8px; color: var(--primary); font-style: normal; font-weight: 800; word-break: break-word; }
.upload-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #061a11; background: var(--primary); font-weight: 900; }
.compact-upload { min-height: 82px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; cursor: pointer; }
.compact-upload span { display: grid; font-weight: 750; }
.compact-upload:hover { border-color: rgba(var(--primary-rgb), .5); }
.instruction-box { margin-bottom: 18px; padding: 19px 21px; border: 1px solid rgba(var(--primary-rgb), .2); border-radius: 14px; background: rgba(var(--primary-rgb), .055); color: #c8d5cf; }

.dashboard-section { padding: 52px 0 76px; }
.dashboard-header { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.dashboard-header h1 { margin-bottom: 8px; font-size: clamp(2.15rem, 5vw, 4rem); }
.dashboard-header p { margin-bottom: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }
.stat-card { min-height: 142px; padding: 22px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 17px; background: rgba(14, 20, 33, .88); }
.stat-card small, .stat-card em { color: var(--muted); font-style: normal; }
.stat-card strong { margin: 8px 0 2px; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.main-balance { border-color: rgba(var(--primary-rgb), .24); background: linear-gradient(145deg, rgba(var(--primary-rgb), .13), rgba(14, 20, 33, .92)); }
.login-stat { font-size: 1.35rem !important; word-break: break-all; }
.action-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.action-card { min-height: 126px; padding: 22px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(14, 20, 33, .88); }
.action-card:hover { border-color: rgba(var(--primary-rgb), .35); transform: translateY(-2px); }
.action-card div { flex: 1; }
.action-card h3 { margin-bottom: 4px; }
.action-card p { margin-bottom: 0; color: var(--muted); }
.action-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #051b12; background: var(--primary); font-size: 1.5rem; font-weight: 900; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 17px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { color: var(--muted); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.table td { font-size: .89rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.note-row td { padding-top: 0; color: var(--muted); white-space: normal; }
.status-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.status-badge.success { color: #75edbc; background: rgba(40, 217, 151, .12); }
.status-badge.warning { color: #f6d770; background: rgba(247, 201, 76, .13); }
.status-badge.danger { color: #ff8d9b; background: rgba(255, 98, 117, .13); }
.role-badge { color: var(--muted); font-size: .78rem; }
.action-group { display: flex; align-items: center; gap: 7px; }
.icon-button { min-width: 40px; height: 34px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .065); font-size: .73rem; }
.icon-button.danger { color: #ff8998; background: rgba(255, 98, 117, .1); }
.empty-state { padding: 42px 24px; text-align: center; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { color: var(--muted); }

.ledger-list { padding: 7px 18px; }
.ledger-item { padding: 14px 0; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.ledger-item:last-child { border-bottom: 0; }
.ledger-sign { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .055); font-weight: 900; }
.ledger-item div { display: grid; }
.ledger-item small { color: var(--muted); }
.ledger-amount { text-align: right; }
.positive { color: #58e7ab; }
.negative { color: #ff7c8d; }

.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.settings-grid .panel { display: grid; gap: 16px; }
.settings-grid .button-danger { margin-top: 8px; }

.admin-stack { display: grid; gap: 18px; }
.admin-cards { padding: 16px; display: grid; gap: 13px; }
.admin-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .022); }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.admin-card-head div { display: grid; }
.admin-card-head small { color: var(--muted); }
.admin-card p { color: #bec7d6; }
.admin-note { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .045); }
.verification-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.verification-images a { position: relative; height: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #080c14; }
.verification-images img { width: 100%; height: 100%; object-fit: contain; }
.verification-images span { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; border-radius: 7px; background: rgba(0, 0, 0, .72); font-size: .73rem; font-weight: 800; }
.review-controls { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 9px; }
.ticket-list { padding: 16px; display: grid; gap: 12px; }
.ticket { padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border: 1px solid var(--line); border-radius: 13px; }
.ticket div { display: grid; }
.ticket small { color: var(--muted); }
.ticket p { grid-column: 1 / -1; margin: 0; color: #c4cbd8; }
.ticket .button { justify-self: start; }

.admin-instructions-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.admin-instructions-form .textarea { min-height: 130px; }
.owner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.owner-editor { padding: 24px; }
.owner-group { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.owner-group legend { padding: 0 8px; color: var(--primary); font-weight: 900; }
.owner-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.owner-fields .field:has(.textarea) { grid-column: 1 / -1; }
.owner-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.asset-list { display: grid; gap: 12px; }
.asset-form { padding: 13px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; }
.asset-form div { display: grid; }
.asset-form small { color: var(--muted); }
.asset-form input { width: 100%; color: var(--muted); font-size: .78rem; }
.asset-preview { width: 100%; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 9px; background: #080c14; }
.color-input { min-height: 46px; padding: 5px; cursor: pointer; }
.simple-list { margin: 0; padding-left: 20px; color: #cad1dd; }
.audit-panel { margin-top: 18px; }
.audit-list { max-height: 520px; overflow: auto; }
.audit-row { min-height: 48px; padding: 10px 18px; display: grid; grid-template-columns: 150px 170px minmax(180px, 1fr) 170px; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.audit-row span, .audit-row small { color: var(--muted); }
.audit-row code { color: #8cebc0; }

.legal-card { padding: 34px; }
.legal-card h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal-card p { color: #b8c1d0; }
.temporary-password { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(var(--primary-rgb), .28); border-radius: 12px; background: rgba(var(--primary-rgb), .07); }
.temporary-password code { color: #9af1c9; font-size: 1.05rem; word-break: break-all; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(6, 9, 15, .82); }
.footer-simple { padding: 35px 0 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.footer-simple p { margin: 5px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 18px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding: 16px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(40, 217, 151, .1); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(1, 3, 7, .78); backdrop-filter: blur(7px); }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 29px; border: 1px solid var(--line-strong); border-radius: 18px; background: #101622; box-shadow: var(--shadow); }
.modal-wide { width: min(860px, 100%); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .055); cursor: pointer; }
.modal h2 { padding-right: 35px; }
.modal > div > p { color: var(--muted); }
.toast-region { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 9px; }
.toast { max-width: 360px; padding: 12px 15px; border: 1px solid rgba(40, 217, 151, .25); border-radius: 11px; background: #13221d; box-shadow: var(--shadow); }
.toast.error { border-color: rgba(255, 98, 117, .3); background: #2a171c; }
.loading { min-height: 55vh; display: grid; place-items: center; }
.spinner { width: 38px; height: 38px; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid, .auth-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual, .hero-photo { max-width: 620px; }
  .dashboard-grid, .owner-layout { grid-template-columns: 1fr; }
  .owner-side { position: static; grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container, .container.narrow { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand-copy small { display: none; }
  .header-actions > .button { display: none; }
  .hero { padding: 62px 0 52px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-visual, .hero-photo, .hero-photo img { min-height: 310px; }
  .section { padding: 50px 0; }
  .grid-3, .stats-grid, .action-cards, .settings-grid, .upload-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .dashboard-header h1 { font-size: 2.7rem; }
  .review-controls { grid-template-columns: 1fr; }
  .admin-instructions-form { grid-template-columns: 1fr; }
  .verification-images { grid-template-columns: 1fr; }
  .verification-images a { height: 250px; }
  .owner-side { grid-template-columns: 1fr; }
  .owner-fields { grid-template-columns: 1fr; }
  .owner-fields .field:has(.textarea) { grid-column: auto; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; padding-block: 13px; }
  .footer-simple, .footer-bottom { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .compact-upload { align-items: flex-start; flex-direction: column; }
  .ticket { grid-template-columns: 1fr; }
  .ticket p { grid-column: auto; }
}

/* Launch update: light theme, badges, upload progress, search and sessions */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fa;
  --bg-soft: #e9eef5;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #111827;
  --muted: #667085;
  --shadow: 0 24px 60px rgba(25, 35, 55, 0.14);
}
:root[data-theme="light"] body::before {
  background-image: linear-gradient(rgba(243, 246, 250, 0.88), rgba(243, 246, 250, 0.97)), var(--site-background-image);
}
:root[data-theme="light"] .site-header,
:root[data-theme="light"] .site-footer { background: rgba(248, 250, 252, 0.9); }
:root[data-theme="light"] .input,
:root[data-theme="light"] .textarea,
:root[data-theme="light"] .select,
:root[data-theme="light"] .upload-box,
:root[data-theme="light"] .compact-upload,
:root[data-theme="light"] .instruction-box,
:root[data-theme="light"] .modal { background: #ffffff; color: var(--text); }
:root[data-theme="light"] .admin-card,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .action-card { background: rgba(255, 255, 255, 0.82); }
:root[data-theme="light"] .admin-card p,
:root[data-theme="light"] .legal-card p,
:root[data-theme="light"] .ticket p { color: #485467; }
:root[data-theme="light"] .verification-images a,
:root[data-theme="light"] .asset-preview { background: #eef2f7; }

.utility-button {
  position: relative;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 850;
}
.utility-button:hover { background: rgba(255, 255, 255, 0.09); }
.notification-button { font-size: 1rem; }
.nav-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: .65rem;
  font-weight: 900;
  line-height: 1;
}
.notification-badge { position: absolute; top: -5px; right: -5px; margin: 0; }

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.counter-card {
  min-height: 118px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.counter-card small { color: var(--muted); font-weight: 800; }
.counter-card strong { font-size: 2.1rem; line-height: 1; }
.counter-card span { color: var(--muted); font-size: .78rem; }
.counter-card:hover { border-color: rgba(var(--primary-rgb), .35); transform: translateY(-1px); }
.secondary-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }

.panel-toolbar {
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.search-form { display: flex; gap: 9px; flex: 1; }
.search-form .input { min-width: 0; }
.pagination {
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.pagination span { color: var(--muted); font-size: .82rem; }
.pagination-buttons { display: flex; gap: 8px; }

.upload-preview {
  width: 100%;
  height: 145px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  font-size: .78rem;
}
.upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.upload-progress { margin-top: 12px; display: grid; gap: 7px; }
.upload-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.upload-progress-bar { width: 0%; height: 100%; border-radius: inherit; background: var(--primary); transition: width .18s linear; }
.upload-progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }

.notification-list, .session-list { display: grid; gap: 10px; padding: 16px; }
.notification-item, .session-item {
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}
.notification-item.unread { border-color: rgba(var(--primary-rgb), .32); background: rgba(var(--primary-rgb), .055); }
.notification-item p, .session-item p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.notification-item small, .session-item small { color: var(--muted); }
.session-meta { display: grid; gap: 3px; }
.session-current { color: var(--primary); font-size: .75rem; font-weight: 850; }

.owner-user-section { margin-top: 18px; }
.permission-lock { padding: 12px 14px; border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .82rem; }
.inline-setting { display: flex; align-items: flex-start; gap: 10px; }
.inline-setting input { margin-top: 4px; }

@media (max-width: 900px) {
  .counter-grid, .secondary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-actions { gap: 6px; }
  .utility-button { min-width: 34px; height: 34px; padding: 0 7px; }
  .counter-grid, .secondary-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .counter-card { min-height: 100px; padding: 14px; }
  .counter-card strong { font-size: 1.7rem; }
  .panel-toolbar, .search-form { align-items: stretch; flex-direction: column; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .notification-item, .session-item { grid-template-columns: 1fr; }
  .notification-item p, .session-item p { grid-column: auto; }
}
