/* ============================================
   Dessert Plug — Order Page
   Brand: #AF4ED9 pink/purple, black, white
   ============================================ */

:root {
    --pink: #AF4ED9;
    --pink-light: #F3E4FB;
    --pink-glow: rgba(175, 78, 217, 0.15);
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-500: #737373;
    --gray-700: #404040;
    --gray-900: #171717;
    --success: #22C55E;
    --error: #EF4444;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.10);
    --max-width: 520px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ---- Header ---- */

.header {
    padding: 28px 20px;
    border-bottom: 3px solid var(--pink);
    background: var(--black);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.brand {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--white);
    letter-spacing: -0.01em;
    text-align: center;
}

.header-social {
    display: flex;
    gap: 14px;
}

.header-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.header-social-link svg {
    width: 24px;
    height: 24px;
}

.header-social-link:hover {
    background: var(--pink);
    transform: scale(1.1);
}

/* ---- Deal Banner ---- */

.deal-banner {
    background: var(--pink);
    color: var(--white);
    text-align: center;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deal-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 600;
}

.deal-text strong {
    font-weight: 700;
}

.deal-sub {
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---- Main ---- */

.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 12px;
}

/* ---- Product Grid ---- */

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 0 8px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--gray-300);
}

.product-card.has-items {
    border-color: var(--pink);
    box-shadow: 0 0 0 1px var(--pink), var(--shadow-card);
}

.product-card.premium {
    border-color: var(--pink);
}

.product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--pink);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
}

.product-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

.product-info {
    padding: 10px 10px 12px;
}

.product-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-price {
    font-size: 0.8rem;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ---- Quantity Stepper ---- */

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--black);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.qty-btn:active {
    opacity: 0.7;
}

.qty-btn:disabled {
    background: var(--gray-300);
    cursor: default;
}

.qty-btn:not(:disabled):hover {
    background: var(--gray-700);
}

.qty-value {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-900);
}

/* ---- Order Summary ---- */

.summary {
    margin: 12px 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.summary-inner {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.summary-header h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.summary-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.summary-lines {
    font-size: 0.85rem;
    color: var(--gray-700);
    min-height: 20px;
}

.summary-empty {
    color: var(--gray-500);
    font-style: italic;
    font-size: 0.82rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.summary-line.deal {
    color: var(--pink);
    font-weight: 600;
}

.summary-line.discount {
    color: var(--success);
    font-weight: 700;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px dashed var(--gray-200);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1.5px solid var(--gray-200);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
}

.summary-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* ---- Checkout ---- */

.checkout {
    padding: 20px 0 8px;
}

.checkout h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 14px;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

.field input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.field input.invalid {
    border-color: var(--error);
}

.form-error {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

/* ---- CTA Button ---- */

.btn-order {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    margin-top: 4px;
    -webkit-appearance: none;
    appearance: none;
    letter-spacing: 0.01em;
}

.btn-order:hover:not(:disabled) {
    opacity: 0.88;
}

.btn-order:active:not(:disabled) {
    transform: scale(0.985);
}

.btn-order:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-order.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ---- Confirmation ---- */

.confirmation {
    text-align: center;
    padding: 48px 16px;
}

.conf-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.conf-details {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.conf-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.conf-row span {
    color: var(--gray-500);
}

.conf-row strong {
    color: var(--black);
}

.conf-note {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 20px;
}

/* ---- Deal Nudge ---- */

.deal-nudge {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--black);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    text-align: center;
}

.deal-nudge.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.deal-nudge .nudge-highlight {
    color: var(--pink);
}

/* ---- Confetti ---- */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    background: var(--color);
    border-radius: 2px;
    animation: confettiFall 2.5s ease-in var(--delay) forwards;
}

.confetti-piece:nth-child(odd) {
    border-radius: 50%;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift)) rotate(var(--spin)) scale(0.5);
        opacity: 0;
    }
}

/* ---- Alternatives ---- */

.alternatives {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 12px 16px;
    text-align: center;
}

.alt-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.alt-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.alt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.alt-card:hover {
    border-color: var(--pink);
    box-shadow: 0 0 0 1px var(--pink), 0 4px 12px rgba(175, 78, 217, 0.1);
    transform: translateY(-2px);
}

.alt-uber-logo {
    width: 100px;
    height: auto;
    margin-bottom: 4px;
}

.alt-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.alt-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
}

.alt-address {
    font-size: 0.72rem;
    color: var(--gray-500);
    line-height: 1.3;
}

/* ---- Footer Banner ---- */

.site-footer {
    margin-top: 24px;
}

.footer-accent {
    height: 6px;
    background: var(--pink-light);
}

.footer-dark {
    background: var(--black);
    color: var(--white);
    padding: 32px 20px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 32px;
}

.footer-logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.footer-contact h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    line-height: 1.5;
}

.fc-icon {
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 4px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.social-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.social-circle:hover {
    background: var(--pink);
    transform: scale(1.08);
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.footer-whatsapp:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.footer-whatsapp svg {
    flex-shrink: 0;
}

/* ---- Responsive ---- */

@media (min-width: 640px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .main {
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-logo img {
        margin: 0 auto;
        width: 72px;
        height: 72px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-whatsapp {
        justify-content: center;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .products {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .main {
        max-width: 800px;
    }

    .brand {
        font-size: 2rem;
    }
}

/* ---- Admin page overrides (preserve existing admin styles) ---- */

body.admin-page {
    max-width: none;
    background: #faf8f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.admin-page header {
    text-align: center;
    padding: 24px 0;
    border-bottom: 2px solid #d4a574;
    margin-bottom: 24px;
}

body.admin-page header h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-size: 2rem;
    color: #6b3a2a;
}

body.admin-page .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

body.admin-page .filters { display: flex; gap: 8px; align-items: center; }
body.admin-page .filters select,
body.admin-page .filters button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}
body.admin-page .filters button { cursor: pointer; background: #6b3a2a; color: #fff; border: none; }
body.admin-page .filters button:hover { background: #8b5a3a; }

body.admin-page table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.85rem;
}

body.admin-page th,
body.admin-page td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #eee; }
body.admin-page th { background: #6b3a2a; color: #fff; font-weight: 500; }
body.admin-page tr:hover { background: #faf5f0; }

body.admin-page .badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
body.admin-page .badge-assigned { background: #d4edff; color: #1a5276; }
body.admin-page .badge-reassigned { background: #fdebd0; color: #935116; }
body.admin-page .badge-delivered { background: #d5f5e3; color: #1e8449; }
body.admin-page .badge-cancelled { background: #fadbd8; color: #922b21; }

body.admin-page .action-btn {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    margin: 2px;
}
body.admin-page .action-btn:hover { background: #f0f0f0; }
body.admin-page .action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
body.admin-page .action-btn.danger { color: #c0392b; border-color: #c0392b; }
body.admin-page .action-btn.success { color: #27ae60; border-color: #27ae60; }

body.admin-page .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    animation: fadeOut 3s forwards;
}
body.admin-page .toast-success { background: #27ae60; }
body.admin-page .toast-error { background: #c0392b; }

@keyframes fadeOut {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---- Admin Login ---- */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #6b3a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #6b3a2a;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 28px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0d6cf;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s ease;
    outline: none;
}

.login-input:focus {
    border-color: #6b3a2a;
}

.login-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    color: #c0392b;
    font-size: 0.85rem;
    font-weight: 500;
}

.login-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: #6b3a2a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background: #8b5a3a;
}

/* ---- Admin Tabs ---- */

.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0d6cf;
}

.tab-btn {
    padding: 10px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.tab-btn:hover {
    color: #6b3a2a;
}

.tab-btn.active {
    color: #6b3a2a;
    border-bottom-color: #6b3a2a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---- Drivers Tab ---- */

.drivers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.drivers-header h2 {
    font-size: 1.2rem;
    color: #6b3a2a;
}

.add-driver-btn {
    padding: 8px 16px;
    background: #6b3a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.add-driver-btn:hover {
    background: #8b5a3a;
}

.driver-form {
    background: #fff;
    border: 1px solid #e0d6cf;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.driver-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.field-hint {
    font-weight: 400;
    color: #999;
}

.form-field input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #333;
}

.form-field input:focus {
    outline: none;
    border-color: #6b3a2a;
}

.driver-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-end;
}

/* ---- Zone editing ---- */

.zone-cell .zone-display {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.zone-cell .zone-display:hover {
    background: #f0ebe6;
}

.zone-empty {
    color: #bbb;
    font-style: italic;
    font-size: 0.8rem;
}

.zone-edit {
    display: flex;
    gap: 4px;
    align-items: center;
}

.zone-input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: inherit;
    width: 160px;
}

.zone-input:focus {
    outline: none;
    border-color: #6b3a2a;
}

/* ---- Driver status badges ---- */

body.admin-page .badge-active { background: #d5f5e3; color: #1e8449; }
body.admin-page .badge-inactive { background: #fadbd8; color: #922b21; }

@media (max-width: 768px) {
    .driver-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        overflow-x: auto;
    }
}
