.admin-login { text-align: center; }
.admin-login p { color: #666; line-height: 1.5; }
.admin-login .admin-access-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 28px; }
.admin-access-message { min-height: 20px; margin: 12px 0 0 !important; color: #16864f !important; font-size: 13px; font-weight: 800; }
.admin-access-message.error { color: #ca2532 !important; }

.live-orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 13px 14px; border: 1px solid #e9e9e9; background: #fafafa; border-radius: 8px; }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; }
.live-indicator i { width: 9px; height: 9px; border-radius: 50%; background: #20a866; box-shadow: 0 0 0 5px rgba(32,168,102,.12); animation: livePulse 1.6s ease infinite; }
.live-indicator b { min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: white; font-size: 11px; }
.live-orders-toolbar select, .live-order-actions select { border: 1px solid #ddd; border-radius: 6px; background: white; min-height: 38px; padding: 0 10px; color: #555; font-weight: 800; }

.admin-empty-orders { min-height: 220px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 7px; }
.admin-empty-orders span { font-size: 36px; }
.admin-empty-orders p { color: #888; margin: 0; }
.admin-spinner { width: 30px; height: 30px; border: 3px solid #eee; border-top-color: var(--primary); border-radius: 50%; display: inline-block; animation: adminSpin .7s linear infinite; margin-bottom: 8px; }

.live-order-card { padding: 0 !important; overflow: hidden; border-radius: 9px !important; }
.live-order-header { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; background: #fafafa; border-bottom: 1px solid #eee; }
.live-order-header > div { display: flex; align-items: center; gap: 9px; }
.live-order-header small { color: #888; }
.order-status-pill { padding: 5px 9px; border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; font-weight: 900; }
.status-payment { background: #fff6dc; color: #8a6500; }
.status-new { background: #fff0f1; color: #d51f2d; }
.status-accepted { background: #edf6ff; color: #1673b9; }
.status-preparing { background: #fff8df; color: #9b6a00; }
.status-ready { background: #f2efff; color: #7049c5; }
.status-delivery { background: #eaf8ff; color: #15749b; }
.status-completed { background: #e9f9f0; color: #16864f; }
.status-cancelled { background: #f1f1f1; color: #777; }
.live-order-customer { padding: 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.customer-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: white; font-weight: 900; }
.live-order-customer h4, .live-order-customer p { margin: 0; }
.live-order-customer p { color: #888; font-size: 12px; margin-top: 2px; }
.live-order-customer > b { color: var(--primary); font-size: 17px; }
.live-order-address { margin: 0 15px 12px; padding: 11px 12px; background: #f8f8f8; border-radius: 7px; display: flex; align-items: center; gap: 9px; }
.live-order-address p { margin: 0; flex: 1; color: #666; font-size: 13px; }
.admin-map-btn { border: 0; background: white; color: var(--primary); font-weight: 900; border-radius: 5px; padding: 7px 9px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.live-order-items { margin: 0 15px; border: 1px solid #eee; border-radius: 7px; overflow: hidden; }
.live-order-items > div { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #eee; }
.live-order-items > div:last-child { border-bottom: 0; }
.live-order-items span { color: var(--primary); font-weight: 900; }
.live-order-items p { margin: 0; }
.live-order-note { margin: 12px 15px 0; background: #fff9e9; border: 1px solid #f4e1ad; padding: 10px; border-radius: 6px; color: #6d571d; font-size: 13px; }
.live-order-actions { margin-top: 14px; padding: 12px 15px; border-top: 1px solid #eee; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.live-order-actions label { display: grid; gap: 5px; font-size: 11px; color: #777; font-weight: 900; }
.live-order-actions .danger-btn { border: 1px solid #f0c9cc; color: #c92633; border-radius: 6px; padding: 9px 12px; }

@keyframes livePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .7; } }
@keyframes adminSpin { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .live-orders-toolbar, .live-order-actions { align-items: stretch; flex-direction: column; }
  .live-order-customer { grid-template-columns: auto 1fr; }
  .live-order-customer > b { grid-column: 2; }
  .live-order-address { align-items: flex-start; flex-wrap: wrap; }
}

.live-order-payment { margin: 0 15px 12px; padding: 10px 12px; border: 1px solid #eee; border-radius: 7px; display: flex; align-items: center; gap: 9px; background: #fff; }
.live-order-payment > span { color: #888; font-size: 12px; font-weight: 800; }
.live-order-payment > strong { flex: 1; font-size: 13px; }
.live-order-payment > b { padding: 5px 8px; border-radius: 999px; font-size: 10px; text-transform: uppercase; }
.payment-approved { color: #16864f; background: #e9f9f0; }
.payment-pending { color: #8a6500; background: #fff6dc; }
.payment-rejected { color: #c92633; background: #fff0f1; }

.confirm-payment-btn { border: 0; background: #16864f; color: white; border-radius: 6px; padding: 10px 12px; font-weight: 900; }
.confirm-payment-btn:disabled { opacity: .55; }

.live-order-items p small {
  display: block;
  margin-top: 3px;
  color: #888;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
