.backend-page { background: #0b0b0b; color: var(--ink); }
.backend-header { background: #0b0b0b; }
.backend-home-link { margin-left: auto; }
.admin-link { margin-left: auto; }
.admin-link[hidden] { display: none; }
.backend-main { padding: 72px 0 110px; }
.backend-shell { width: min(100% - 52px, 1180px); margin-inline: auto; }
.backend-intro { max-width: 640px; margin: 0 0 45px; }
.backend-intro h1 { font-size: clamp(54px, 7vw, 92px); line-height: .9; letter-spacing: -.075em; margin: 14px 0 22px; }
.backend-intro h1 em, .backend-card h2 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; }
.backend-intro > p:last-child { color: #aaa098; max-width: 520px; font-size: 16px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr .88fr; gap: 18px; align-items: stretch; }
.backend-card { background: #151515; border: 1px solid #2c2a27; border-radius: 22px; padding: 30px; box-shadow: 0 24px 65px rgba(0, 0, 0, .32); }
.auth-card-accent { background: #1b1a18; border-color: #2c2a27; }
.pricing-card { background: #050505; color: #fff; border-color: #2c2a27; }
.card-kicker { color: #e77843; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 13px; }
.backend-card h2 { font-size: 31px; letter-spacing: -.055em; margin: 0 0 10px; }
.card-copy { color: #aaa098; font-size: 13px; margin: 0 0 24px; }
.pricing-card .card-copy { color: #b7caca; }
.backend-form { display: grid; gap: 13px; }
.backend-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; color: #aaa098; }
.backend-form input, .backend-form select { width: 100%; border: 1px solid #35322e; border-radius: 9px; background: #0f0f0f; padding: 12px 13px; font: inherit; font-size: 13px; color: var(--ink); outline: none; }
.backend-form input:focus, .backend-form select:focus { border-color: #e77843; box-shadow: 0 0 0 3px rgba(231, 120, 67, .13); }
.backend-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.backend-form .button { margin-top: 5px; }
.form-status { min-height: 18px; color: #3f7564; font-size: 12px; margin: 0; }
.form-status.is-error { color: #b24137; }
.price-line { display: flex; align-items: baseline; gap: 8px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.price-line strong { font-size: 41px; letter-spacing: -.07em; }
.price-line span { color: #b7caca; font-size: 12px; }
.price-line-secondary strong { font-size: 32px; color: #f4a170; }
.pricing-note { display: flex; gap: 9px; color: #d9e7e3; font-size: 12px; margin-top: 13px; }
.pricing-note span { color: #f4a170; font-weight: 900; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 27px; }
.dashboard-head h2 { font-size: 48px; letter-spacing: -.07em; margin: 10px 0 5px; }
.dashboard-head p:last-child { color: #aaa098; margin: 0; }
.dashboard-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #102330; color: #fff; border-radius: 15px; padding: 16px 20px; margin-bottom: 18px; font-size: 13px; }
.dashboard-banner > div { display: flex; align-items: center; gap: 13px; }
.plan-pill { background: #e77843; color: #fff; border-radius: 999px; padding: 5px 9px; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.dashboard-banner > span { color: #b7caca; font-size: 11px; }
.dashboard-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dashboard-panel { padding: 27px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.panel-heading h2 { margin: 0; font-size: 28px; }
.panel-index { font-size: 11px; color: #a0b1ad; font-weight: 800; }
.dashboard-list, .claims-list { display: grid; gap: 0; }
.dashboard-row, .claim-row { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #2c2a27; padding: 16px 0; }
.dashboard-row:first-child, .claim-row:first-child { border-top: 0; padding-top: 0; }
.dashboard-row strong { font-size: 14px; }
.dashboard-row strong span { color: #e77843; }
.dashboard-row small { display: block; color: #73838b; font-size: 11px; margin-top: 5px; }
.row-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.status-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-available, .status-accepted { background: #dceee6; color: #32705d; }
.status-archived, .status-rejected { background: #eef0ef; color: #7b898a; }
.status-pending { background: #fff0e6; color: #b45a2d; }
.link-button { border: 0; background: none; color: #e77843; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; padding: 0; }
.is-muted { opacity: .58; }
.claims-panel { margin-top: 18px; }
.claim-main { min-width: 0; }
.claim-main > div { display: flex; align-items: center; gap: 8px; }
.claim-main strong { font-size: 14px; }
.claim-main p { margin: 6px 0 3px; font-size: 12px; color: #415460; }
.claim-main small { color: #7a898e; font-size: 11px; }
.claim-actions { display: flex; align-items: end; flex-direction: column; gap: 9px; flex-shrink: 0; }
.claim-actions > strong { font-size: 12px; color: #536c74; }
.claim-actions > div { display: flex; gap: 7px; }
.commission-preview { display: block; color: #e77843 !important; font-size: 10px !important; white-space: nowrap; }
.mini-button { border: 0; border-radius: 999px; padding: 7px 10px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.mini-button-green { background: #dceee6; color: #32705d; }
.mini-button-muted { background: #eef0ef; color: #6b797b; }
.empty-dashboard { display: grid; gap: 5px; padding: 10px 0; color: #63737e; font-size: 12px; }
.empty-dashboard strong { color: #243944; }
.dashboard-status { margin-top: 15px; }
.backend-footer { padding-top: 20px; }
.backend-footer .footer-bottom { justify-content: space-between; }
.backend-footer .footer-bottom a { color: #f4a170; }

@media (max-width: 840px) {
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .pricing-card { grid-column: 1 / -1; }
  .dashboard-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .backend-main { padding: 50px 0 80px; }
  .backend-shell { width: min(100% - 38px, 1180px); }
  .backend-header { padding-inline: 19px; }
  .backend-home-link { padding: 11px 14px; font-size: 11px; }
  .admin-link { margin-left: auto; padding: 11px 14px; font-size: 11px; }
  .backend-intro h1 { font-size: 56px; }
  .auth-layout { grid-template-columns: 1fr; }
  .pricing-card { grid-column: auto; }
  .backend-card { padding: 24px; }
  .backend-form-row { grid-template-columns: 1fr; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .dashboard-head h2 { font-size: 40px; }
  .dashboard-banner { align-items: flex-start; flex-direction: column; }
  .dashboard-banner > div { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dashboard-row, .claim-row { align-items: flex-start; flex-direction: column; }
  .row-actions, .claim-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .backend-footer .footer-bottom { align-items: flex-start; }
}
