:root {
  --bg: #080a0d;
  --bg-soft: #0d1115;
  --panel: #11171c;
  --panel-2: #151d23;
  --text: #f2f6f7;
  --muted: #8d99a2;
  --line: rgba(255, 255, 255, .11);
  --cyan: #24d4df;
  --cyan-soft: rgba(36, 212, 223, .09);
  --red: #ef5465;
  --yellow: #f2c45b;
  --green: #3bdf9b;
  --container: 1240px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; }
body, button, input, select, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.panel-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); line-height: 1.55; }
.panel-container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); padding: 10px 14px; background: var(--cyan); color: #061216; font-weight: 850; }
.skip-link:focus { transform: translateY(0); }

.panel-header { min-height: 74px; border-bottom: 1px solid var(--line); background: rgba(8, 10, 13, .92); }
.panel-header-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 44px; }
.panel-brand img { display: block; width: 205px; height: auto; }
.panel-nav { display: flex; align-items: center; gap: 12px; }
.panel-nav a { padding: 10px 12px; color: #aeb8bf; font-size: .82rem; font-weight: 800; }
.panel-nav a:hover, .panel-nav a.is-active { color: #fff; }
.panel-nav a.is-active { border-bottom: 2px solid var(--cyan); }
.panel-nav .panel-nav-cta { border: 1px solid var(--line); }
.panel-user { display: flex; align-items: center; gap: 20px; }
.panel-user > span { display: grid; text-align: right; font-size: .79rem; font-weight: 750; }
.panel-user small { color: #6f7b83; font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.panel-user form { margin: 0; }
.panel-logout { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: #bdc5ca; cursor: pointer; font-size: .75rem; font-weight: 800; }
.panel-logout:hover { border-color: rgba(255,255,255,.3); color: #fff; }

.panel-main { flex: 1; padding: 60px 0 90px; background: radial-gradient(circle at 85% -10%, rgba(36, 212, 223, .075), transparent 28%), var(--bg); }
.panel-footer { border-top: 1px solid var(--line); color: #6f7a82; font-size: .7rem; }
.panel-footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.panel-footer strong { color: #b9c3c9; }

.panel-eyebrow { display: block; margin-bottom: 12px; color: var(--cyan); font: 850 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.panel-card, .auth-card { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; padding: 0 21px; border: 1px solid transparent; cursor: pointer; font-weight: 850; font-size: .83rem; letter-spacing: .025em; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.panel-button:hover { transform: translateY(-2px); }
.panel-button-primary { background: var(--cyan); border-color: var(--cyan); color: #061216; }
.panel-button-primary:hover { background: #58e4eb; border-color: #58e4eb; }
.panel-button-secondary { background: transparent; border-color: var(--line); color: #d8dfe3; }
.panel-button-small { min-height: 38px; padding-inline: 14px; font-size: .72rem; }
.panel-button-full { width: 100%; }

.alert { margin-bottom: 20px; padding: 14px 17px; border: 1px solid var(--line); border-left-width: 3px; background: var(--panel); font-size: .83rem; }
.alert-success { border-left-color: var(--green); }
.alert-warning { border-left-color: var(--yellow); }
.alert-error { border-left-color: var(--red); }
.alert-info { border-left-color: var(--cyan); }

.auth-layout { min-height: 660px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.auth-layout-login { grid-template-columns: 1fr 470px; }
.auth-intro h1 { margin: 0; max-width: 700px; font-family: Arial, Helvetica, sans-serif; font-size: clamp(3.2rem, 5.4vw, 5.5rem); font-weight: 900; line-height: .97; letter-spacing: -.045em; text-transform: uppercase; }
.auth-intro > p { max-width: 540px; margin: 28px 0 0; color: #9ca8af; font-size: 1rem; line-height: 1.8; }
.auth-intro ul { list-style: none; display: grid; gap: 12px; padding: 0; margin: 34px 0 0; }
.auth-intro li { color: #c4cdd2; font-size: .83rem; font-weight: 750; }
.auth-intro li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 11px; border: 1px solid rgba(36, 212, 223, .35); color: var(--cyan); font-size: .7rem; }
.auth-card { padding: 40px; }
.auth-card-wide { padding: 42px; }
.auth-card-heading { margin-bottom: 30px; }
.auth-card-heading h1, .auth-card-heading h2 { margin: 0; font-size: 2rem; line-height: 1.1; }
.auth-card-heading p { margin: 9px 0 0; color: var(--muted); font-size: .81rem; }
.auth-card-heading a, .auth-help a, .check-line a, .legal-copy a { color: var(--cyan); border-bottom: 1px solid rgba(36, 212, 223, .45); }
.auth-help { display: flex; justify-content: space-between; gap: 18px; margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); color: #829099; font-size: .75rem; }
.auth-single { width: min(100%, 500px); margin: 60px auto; }

.panel-form { display: grid; gap: 22px; }
.panel-fields { display: grid; gap: 17px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-span-2 { grid-column: span 2; }
.panel-field { display: grid; gap: 8px; min-width: 0; }
.panel-field > span, .panel-fieldset legend { color: #aeb8bf; font-size: .73rem; font-weight: 800; letter-spacing: .025em; }
.panel-field > span small { color: #68757e; font-weight: 650; }
.panel-field input, .panel-field textarea, .panel-field select { width: 100%; min-height: 49px; border: 1px solid #2b353d; border-radius: 0; outline: none; background: #0c1115; color: #f5f7f8; padding: 0 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.panel-field textarea { min-height: 118px; padding-block: 12px; resize: vertical; line-height: 1.55; }
.panel-field input:focus, .panel-field textarea:focus, .panel-field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36, 212, 223, .08); }
.panel-field input::placeholder, .panel-field textarea::placeholder { color: #4f5a62; }
.panel-field > small { color: #66737c; font-size: .67rem; }
.field-error { color: #ff7e8d !important; font-size: .7rem !important; }
.field-error-block { display: block; margin-top: 9px; }
.panel-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.panel-fieldset legend { margin-bottom: 9px; }
.account-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.account-switch label { cursor: pointer; }
.account-switch input { position: absolute; opacity: 0; pointer-events: none; }
.account-switch span { min-height: 48px; display: grid; place-items: center; padding: 8px 12px; border: 1px solid #2b353d; background: #0c1115; color: #8f9ba3; font-size: .76rem; font-weight: 800; }
.account-switch input:checked + span { border-color: var(--cyan); background: var(--cyan-soft); color: #e9fdff; box-shadow: inset 3px 0 0 var(--cyan); }
.account-switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.business-fields { display: none; }
.business-fields.is-visible { display: block; }
.check-line { display: flex; align-items: flex-start; gap: 10px; color: #8f9aa2; font-size: .74rem; cursor: pointer; }
.check-line input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--cyan); }

.dashboard-heading, .detail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.dashboard-heading h1, .detail-heading h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(2.65rem, 4.6vw, 4.6rem); font-weight: 900; line-height: .97; letter-spacing: -.04em; text-transform: uppercase; }
.dashboard-heading p, .detail-heading p { margin: 15px 0 0; color: var(--muted); font-size: .85rem; }
.price-pill { padding: 13px 17px; border: 1px solid rgba(36, 212, 223, .35); background: var(--cyan-soft); color: var(--cyan); font-weight: 850; font-size: .8rem; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { min-height: 142px; display: flex; flex-direction: column; justify-content: flex-end; padding: 23px; border: 1px solid var(--line); background: var(--panel); }
.stat-card > span { color: #78858d; font: 800 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { margin-top: 14px; color: var(--cyan); font-size: 2.15rem; line-height: 1; }
.stat-card strong.stat-text { font-size: 1.45rem; }
.stat-card small { margin-top: 8px; overflow: hidden; color: #68757d; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.orders-card { padding: 30px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-heading-row h2 { margin: 0; font-size: 1.45rem; }
.empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; border: 1px dashed #29343c; text-align: center; }
.empty-state-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(36,212,223,.35); color: var(--cyan); font: 800 .7rem/1 ui-monospace, monospace; }
.empty-state h3 { margin: 20px 0 0; }
.empty-state p { max-width: 500px; margin: 8px 0 22px; color: var(--muted); font-size: .8rem; }
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.orders-table th { padding: 13px 12px; border-bottom: 1px solid var(--line); color: #6f7c84; font: 800 .62rem/1 ui-monospace, monospace; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.orders-table td { padding: 18px 12px; border-bottom: 1px solid rgba(255,255,255,.075); color: #b6c0c6; font-size: .76rem; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table td strong, .orders-table td small { display: block; }
.orders-table td strong { color: #e7ecef; font-size: .8rem; }
.orders-table td small { margin-top: 4px; color: #67747c; font-size: .65rem; }
.table-link { color: var(--cyan); font-weight: 850; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: .64rem; font-weight: 850; white-space: nowrap; }
.status-badge-large { min-height: 40px; padding-inline: 14px; }
.status-new, .status-analysis { border-color: rgba(36,212,223,.35); color: var(--cyan); background: var(--cyan-soft); }
.status-payment { border-color: rgba(242,196,91,.35); color: var(--yellow); background: rgba(242,196,91,.07); }
.status-paid, .status-ready, .status-completed { border-color: rgba(59,223,155,.35); color: var(--green); background: rgba(59,223,155,.07); }
.status-cancelled { color: #9aa3a9; }

.order-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 22px; }
.order-form-main { display: grid; gap: 18px; }
.form-section { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 32px; }
.form-section-number { padding-top: 7px; color: var(--cyan); font: 850 .67rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.form-section-content { min-width: 0; }
.form-section-content h2 { margin: 0 0 25px; font-size: 1.45rem; }
.compact-fieldset { align-self: end; }
.service-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.service-check { position: relative; min-height: 94px; display: flex; align-items: center; padding: 14px; border: 1px solid #2b353d; background: #0c1115; cursor: pointer; }
.service-check:hover { border-color: #44515a; }
.service-check input { position: absolute; opacity: 0; pointer-events: none; }
.service-check > span { display: grid; gap: 4px; padding-left: 30px; }
.service-check > span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; border: 1px solid #53616a; transform: translateY(-50%); }
.service-check > span::after { content: "✓"; position: absolute; left: 18px; top: 50%; color: #061216; font-size: .75rem; font-weight: 900; transform: translateY(-52%) scale(0); }
.service-check input:checked + span::before { border-color: var(--cyan); background: var(--cyan); }
.service-check input:checked + span::after { transform: translateY(-52%) scale(1); }
.service-check:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.service-check strong { font-size: .79rem; }
.service-check small { color: #66737b; font-size: .64rem; line-height: 1.4; }
.file-drop { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 1px dashed #3d4a53; background: #0c1115; text-align: center; cursor: pointer; }
.file-drop:hover, .file-drop.is-dragging { border-color: var(--cyan); background: var(--cyan-soft); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid rgba(36,212,223,.4); color: var(--cyan); }
.file-drop strong { font-size: .83rem; }
.file-drop small { margin-top: 5px; color: #68757d; font-size: .66rem; }
.order-summary { position: sticky; top: 22px; padding: 28px; }
.summary-steps { list-style: none; display: grid; gap: 0; padding: 0; margin: 23px 0; }
.summary-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-steps li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(36,212,223,.3); color: var(--cyan); font: 800 .62rem/1 ui-monospace, monospace; }
.summary-steps strong, .summary-steps small { display: block; }
.summary-steps strong { font-size: .75rem; }
.summary-steps small { margin-top: 4px; color: #6c7981; font-size: .63rem; line-height: 1.45; }
.summary-price { padding: 17px; margin-bottom: 17px; border-left: 2px solid var(--cyan); background: rgba(255,255,255,.035); }
.summary-price span, .summary-price strong, .summary-price small { display: block; }
.summary-price span { color: #77848c; font-size: .65rem; }
.summary-price strong { margin-top: 2px; color: var(--cyan); font-size: 1.15rem; }
.summary-price small { margin-top: 5px; color: #637078; font-size: .62rem; }
.summary-safe { margin: 14px 0 0; color: #5f6c74; font-size: .61rem; line-height: 1.55; text-align: center; }

.back-link { display: block; margin-bottom: 28px; color: #89959d; font-size: .7rem; font-weight: 800; }
.back-link:hover { color: var(--cyan); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 22px; }
.detail-main, .detail-side { display: grid; gap: 18px; }
.detail-card, .payment-card, .timeline-card { padding: 30px; }
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.data-grid > div { min-height: 94px; padding: 18px; background: var(--panel); }
.data-grid dt { color: #68757d; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.data-grid dd { margin: 8px 0 0; color: #e2e8eb; font-size: .84rem; font-weight: 800; }
.customer-note { margin-top: 20px; padding: 18px; border-left: 2px solid #3c4850; background: #0d1216; }
.customer-note span { color: #68757d; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.customer-note p { margin: 8px 0 0; color: #aeb8be; font-size: .76rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span { padding: 9px 12px; border: 1px solid rgba(36,212,223,.3); background: var(--cyan-soft); color: var(--cyan); font-size: .68rem; font-weight: 850; }
.file-row, .locked-file, .waiting-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 16px; border: 1px solid var(--line); background: #0c1115; }
.file-row + .file-row, .file-row + .locked-file, .file-row + .waiting-file { margin-top: 9px; }
.file-kind { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #34414a; color: #9ba7ae; font: 850 .6rem/1 ui-monospace, monospace; }
.file-row-result .file-kind { border-color: rgba(36,212,223,.4); color: var(--cyan); }
.file-row strong, .file-row small, .locked-file strong, .locked-file small, .waiting-file strong, .waiting-file small { display: block; }
.file-row strong, .locked-file strong, .waiting-file strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.file-row small, .locked-file small, .waiting-file small { margin-top: 4px; color: #65727a; font-size: .63rem; }
.locked-file, .waiting-file { grid-template-columns: 42px 1fr; margin-top: 9px; color: #a6b0b6; }
.locked-file > span, .waiting-file > span { color: var(--cyan); text-align: center; }
.payment-card h2 { margin: 12px 0 12px; color: var(--cyan); font-size: 1.7rem; }
.payment-card p { color: #849098; font-size: .74rem; line-height: 1.65; }
.payment-success { color: var(--green) !important; font-weight: 800; }
.payment-wait { display: block; margin-top: 18px; padding: 11px; border: 1px solid rgba(242,196,91,.27); background: rgba(242,196,91,.06); color: var(--yellow); font-size: .68rem; font-weight: 800; text-align: center; }
.timeline-card h2 { margin: 0 0 20px; font-size: 1.3rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 0 0 20px; }
.timeline li > span { width: 8px; height: 8px; margin-top: 5px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 4px var(--cyan-soft); }
.timeline strong, .timeline small { display: block; }
.timeline strong { color: #b6c0c6; font-size: .69rem; line-height: 1.45; }
.timeline small { margin-top: 4px; color: #5d6971; font-size: .61rem; }

.legal-page { width: min(100%, 860px); margin-inline: auto; }
.legal-heading h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(2.65rem, 4.8vw, 4.7rem); font-weight: 900; line-height: .97; letter-spacing: -.04em; text-transform: uppercase; }
.legal-card { margin-top: 30px; padding: 38px; }
.legal-warning { padding: 15px; margin-bottom: 28px; border-left: 3px solid var(--yellow); background: rgba(242,196,91,.06); color: #d8c78f; font-size: .75rem; }
.legal-copy { color: #9ba6ad; font-size: .8rem; line-height: 1.8; }
.legal-copy h2 { margin: 28px 0 8px; color: #e6ebed; font-size: 1rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy ul { padding-left: 20px; }

.filter-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-nav a { padding: 8px 10px; border: 1px solid var(--line); color: #7e8a92; font-size: .65rem; font-weight: 800; }
.filter-nav a:hover, .filter-nav a.is-active { border-color: rgba(36,212,223,.4); background: var(--cyan-soft); color: var(--cyan); }
.admin-orders-table { min-width: 1050px; }
.admin-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 20px; }
.admin-order-info, .admin-actions { display: grid; gap: 18px; }
.admin-actions { position: sticky; top: 18px; }
.admin-action-card { padding: 25px; }
.admin-action-card h2 { margin: 0 0 20px; font-size: 1.15rem; }
.admin-action-card .panel-form { gap: 15px; }
.admin-hint { margin: 15px 0 0; color: #626f77; font-size: .62rem; line-height: 1.55; }
.admin-service-tags { margin-top: 20px; }
.admin-file-drop { min-height: 125px; padding: 18px; }
.panel-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

@media (max-width: 980px) {
  .panel-header-inner { grid-template-columns: auto 1fr; gap: 24px; }
  .panel-user { grid-column: 1 / -1; display: none; }
  .auth-layout, .auth-layout-login { grid-template-columns: 1fr; gap: 42px; }
  .auth-intro h1 { font-size: clamp(3rem, 8.5vw, 4.8rem); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-form-grid, .detail-grid { grid-template-columns: 1fr; }
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-actions { position: static; }
  .order-summary { position: static; }
}

@media (max-width: 680px) {
  .panel-container { width: min(calc(100% - 28px), var(--container)); }
  .panel-header-inner { display: flex; min-height: 66px; gap: 14px; }
  .panel-brand img { width: 158px; }
  .panel-nav { margin-left: auto; }
  .panel-nav a { padding: 7px 6px; font-size: .69rem; }
  .panel-nav a:first-child:not(:last-child) { display: none; }
  .panel-main { padding: 40px 0 65px; }
  .panel-footer-inner { flex-direction: column; justify-content: center; padding: 18px 0; text-align: center; }
  .auth-card, .auth-card-wide { padding: 25px 20px; }
  .auth-intro h1 { font-size: clamp(2.7rem, 13vw, 3.9rem); }
  .two-columns, .stats-grid, .service-check-grid, .data-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .dashboard-heading, .detail-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .panel-button { width: 100%; }
  .stat-card { min-height: 110px; }
  .orders-card, .detail-card, .payment-card, .timeline-card { padding: 22px 18px; }
  .form-section { grid-template-columns: 1fr; padding: 24px 18px; }
  .form-section-number { padding: 0 0 6px; }
  .file-row { grid-template-columns: auto minmax(0, 1fr); }
  .file-row .panel-button { grid-column: 1 / -1; width: 100%; }
  .legal-card { padding: 25px 20px; }
  .admin-list-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
