.admin-main { max-width: 1080px; margin: auto; padding: 42px 18px 70px; }
.site-link { color: var(--navy); font-size: 13px; font-weight: 800; }
.login-card { max-width: 430px; padding: 38px; text-align: center; }
.lock-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: auto; border-radius: 17px; background: #edf4fb; font-size: 25px; }
.login-card h1 { margin: 17px 0 6px; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.login-card input { width: 100%; padding: 14px; text-align: center; letter-spacing: .15em; border: 1px solid #ccd2dd; border-radius: 12px; outline: none; }
.login-card input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,48,108,.12); }
.login-card small { display: block; margin-top: 22px; color: var(--muted); line-height: 1.5; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-heading h1 { margin: 2px 0; font-size: 38px; letter-spacing: -.04em; }
.admin-heading p:not(.eyebrow) { margin: 4px 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--pink); font-size: 11px; letter-spacing: .16em; font-weight: 900; }
.outline-button { padding: 9px 13px; border: 1px solid #ccd2dd; border-radius: 10px; color: var(--navy); background: rgba(255,255,255,.75); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 19px; }
.stats article { min-width: 0; position: relative; padding: 19px; border: 1px solid rgba(7,30,84,.08); border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: 0 7px 25px rgba(24,36,72,.07); }
.stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stats strong { display: block; margin-top: 5px; font-size: 26px; }
.stats .dot { position: absolute; top: 18px; right: 18px; }
.stats .revenue { color: white; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.stats .revenue span { color: rgba(255,255,255,.7); }
.summary-strip { margin: -5px 0 19px; padding: 13px 18px; display: flex; gap: 32px; border: 1px solid rgba(7,30,84,.08); border-radius: 14px; background: rgba(255,255,255,.68); }
.summary-strip div { display: flex; align-items: baseline; gap: 8px; }
.summary-strip span { color: var(--muted); font-size: 12px; }
.summary-strip strong { font-size: 16px; }
.admin-panel { padding: 20px; border: 1px solid rgba(7,30,84,.08); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.panel-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.toolbar-actions { display: flex; gap: 8px; }
.batch-button { padding: 9px 14px; border: 0; border-radius: 10px; color: white; background: var(--pink); font-weight: 800; }
.batch-composer { margin-bottom: 20px; padding: 20px; border: 2px solid rgba(212,48,108,.2); border-radius: 16px; background: #fff8fb; }
.batch-heading, .batch-selection, .batch-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.batch-heading h2 { margin: 3px 0 0; font-size: 20px; }
.batch-selection { margin: 17px 0 10px; padding: 12px 15px; border-radius: 12px; background: white; }
.batch-selection div { display: flex; flex-direction: column; }
.batch-selection div:last-child { text-align: right; }
.batch-selection span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.batch-selection strong { margin-top: 2px; font-size: 19px; }
.batch-numbers { min-height: 34px; display: flex; flex-wrap: wrap; gap: 6px; }
.batch-numbers span { min-width: 32px; height: 32px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--pink); font-size: 12px; font-weight: 900; }
.batch-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.batch-fields label { color: #384056; font-size: 12px; font-weight: 800; }
.batch-fields input, .orders-heading input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #ccd2dd; border-radius: 10px; outline: none; background: white; }
.batch-actions { justify-content: flex-start; margin-top: 14px; }
.batch-actions button { flex: 1; }
.admin-grid.batch-mode .admin-number.available { border: 2px dashed rgba(212,48,108,.45); }
.admin-grid.batch-mode .admin-number.batch-selected { color: white; border-color: var(--pink); background: var(--pink); box-shadow: 0 0 0 3px rgba(212,48,108,.16); }
.admin-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.admin-number { aspect-ratio: 1; padding: 0; position: relative; border: 1px solid #d9dde5; border-radius: 9px; color: var(--navy); background: white; font-weight: 900; transition: .15s; }
.admin-number:hover { transform: translateY(-2px); box-shadow: 0 6px 13px rgba(7,30,84,.13); }
.admin-number.reserved { border-color: #f1c55d; background: #fff4c8; }
.admin-number.paid { border-color: #63bc94; color: white; background: var(--green); }
.admin-number.paid::after { content: "✓"; position: absolute; top: 1px; right: 4px; font-size: 10px; }
.orders-section { margin-top: 26px; padding: 24px; border: 1px solid rgba(7,30,84,.08); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.orders-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.orders-heading h2 { margin: 3px 0 0; font-size: 25px; }
.orders-heading p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.orders-heading input { width: 260px; margin: 0; }
.orders-list { display: grid; gap: 9px; }
.order-card { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(170px, 1.5fr) 85px 105px auto; gap: 14px; align-items: center; padding: 14px 15px; border: 1px solid #e2e5eb; border-radius: 13px; background: white; }
.order-buyer strong, .order-numbers strong { display: block; }
.order-buyer span, .order-numbers span, .order-total span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.order-phone { color: #168b4d; font-weight: 800; text-decoration: none; }
.order-number-list { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-status { justify-self: start; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.order-status.paid { color: #087244; background: #dff5e9; }
.order-status.reserved { color: #765700; background: #fff0bd; }
.order-actions { display: flex; gap: 6px; justify-content: flex-end; }
.order-actions button { padding: 7px 9px; border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; }
.confirm-order { color: white; background: var(--green); }
.release-order { color: #9a2545; background: #fde7ed; }
.empty-orders { padding: 30px; text-align: center; color: var(--muted); }
dialog { width: min(440px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 20px; color: var(--navy); box-shadow: 0 25px 70px rgba(7,30,84,.27); }
dialog::backdrop { background: rgba(7,20,52,.56); backdrop-filter: blur(4px); }
#numberForm { position: relative; padding: 30px; }
#numberForm h2 { margin: 3px 0; font-size: 28px; }
.close-dialog { position: absolute; top: 12px; right: 14px; width: 35px; height: 35px; border: 0; border-radius: 50%; color: var(--muted); background: #f2f3f6; font-size: 24px; }
.current-status { margin: 4px 0 20px; color: var(--muted); }
#numberForm label { display: block; margin-top: 13px; color: #384056; font-size: 12px; font-weight: 800; }
#numberForm input { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #ccd2dd; border-radius: 10px; outline: none; }
.dialog-actions { display: grid; gap: 8px; margin-top: 22px; }
.status-button { padding: 13px; border: 0; border-radius: 11px; font-weight: 800; }
.paid-action { color: white; background: var(--green); }
.reserve-action { color: #725500; background: #ffe99d; }
.free-action { color: #555d6d; background: #eef0f3; }
@media (max-width: 760px) {
  .admin-main { padding: 24px 10px 100px; }
  .admin-body .topbar { height: 56px; padding: 0 12px; }
  .admin-body .site-link { font-size: 11px; }
  .admin-heading { align-items: flex-start; }
  .admin-heading h1 { font-size: 30px; }
  .admin-heading p:not(.eyebrow) { font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats article { padding: 15px; }
  .stats strong { font-size: 23px; }
  .summary-strip { gap: 14px; justify-content: space-between; }
  .summary-strip div { display: block; }
  .summary-strip strong { display: block; margin-top: 2px; }
  .admin-panel { padding: 12px; }
  .admin-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .admin-number { min-height: 52px; border-radius: 9px; font-size: 15px; touch-action: manipulation; }
  .panel-toolbar .legend { gap: 9px; }
  .panel-toolbar .legend span { font-size: 0; }
  .toolbar-actions { margin-left: auto; }
  .batch-button, .outline-button { min-height: 44px; }
  .batch-fields { grid-template-columns: 1fr; }
  .batch-composer { padding: 16px 12px 94px; }
  .batch-heading { align-items: flex-start; }
  .batch-heading h2 { font-size: 18px; }
  .batch-actions { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; padding: 9px; align-items: stretch; flex-direction: row; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 12px 38px rgba(7,30,84,.28); backdrop-filter: blur(14px); }
  .batch-actions .status-button { min-height: 50px; font-size: 12px; }
  .orders-section { padding: 15px; }
  .orders-heading { align-items: stretch; flex-direction: column; }
  .orders-heading input { width: 100%; }
  .order-card { grid-template-columns: 1fr auto; gap: 9px; }
  .order-numbers { grid-column: 1 / -1; grid-row: 2; }
  .order-total { grid-column: 1; grid-row: 3; }
  .order-status { grid-column: 2; grid-row: 1; }
  .order-actions { grid-column: 2; grid-row: 3; }
  .order-actions button { min-height: 44px; padding: 8px 11px; }
  dialog { margin-bottom: 0; border-radius: 22px 22px 0 0; }
  #numberForm { padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); }
  .status-button { min-height: 48px; }
}
