:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --admin-navy: #10233f;
    --admin-navy-light: #1b365d;
    --admin-blue: #287ceb;
    --admin-text: #10233f;
    --admin-muted: #667891;
    --admin-border: #dbe7f2;
    --admin-bg: #f5f9fd;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--admin-text); background: var(--admin-bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .45rem; font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 1.15rem; letter-spacing: -.015em; }

.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 16rem; flex-direction: column; padding: 1.5rem 1rem; background: var(--admin-navy); color: #fff; }
.admin-brand { display: grid; grid-template-columns: auto 1fr; gap: 0 .65rem; align-items: center; padding: .2rem .45rem 1.7rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.admin-brand > img { display: block; grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; border-radius: .65rem; object-fit: contain; }
.admin-brand strong { font-size: 1rem; }
.admin-brand small { color: #8190aa; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-nav { display: grid; gap: .35rem; margin-top: 1.2rem; }
.admin-nav p { margin: 1rem .65rem .3rem; color: #65748f; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav a { display: flex; gap: .75rem; align-items: center; padding: .72rem .75rem; border-radius: .55rem; color: #aeb9cc; font-size: .84rem; font-weight: 700; }
.admin-nav a svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.admin-nav a:hover, .admin-nav a.active { background: var(--admin-navy-light); color: #fff; }
.admin-nav a.active svg { color: #77a0ff; }
.admin-user { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: center; margin-top: auto; padding: 1rem .45rem 0; border-top: 1px solid rgb(255 255 255 / .1); }
.admin-user > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #2f4468; font-size: .72rem; font-weight: 800; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { font-size: .75rem; }
.admin-user small { margin-top: .15rem; color: #71809a; font-size: .63rem; }
.admin-user form { grid-column: 1 / -1; }
.admin-user button { width: 100%; border: 0; padding: .45rem; background: transparent; color: #8e9bb1; font-size: .72rem; text-align: left; }
.admin-user button:hover { color: #fff; }

.admin-shell { display: flex; min-height: 100vh; margin-left: 16rem; flex-direction: column; }
.admin-topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 2rem; border-bottom: 1px solid var(--admin-border); background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); }
.admin-topbar div span, .admin-topbar div small { display: block; }
.admin-topbar div span { font-size: .82rem; font-weight: 800; }
.admin-topbar div small { margin-top: .15rem; color: var(--admin-muted); font-size: .68rem; }
.environment-pill { padding: .38rem .65rem; border-radius: 2rem; background: #edf2ff; color: #345dcc; font-size: .68rem; font-weight: 800; }
.sidebar-toggle { display: none; border: 0; background: transparent; color: var(--admin-text); font-size: 1.2rem; }
.admin-content { width: min(100% - 3rem, 90rem); flex: 1 0 auto; margin-inline: auto; padding-block: 2.3rem 4rem; }
.admin-alert { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid #9edcbf; border-radius: .55rem; background: #eaf8f1; color: #176441; font-size: .82rem; font-weight: 700; }
.qr-trend-card { margin-bottom: 1.4rem; padding: 1.2rem; }.qr-trend-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .55rem; margin-top: 1rem; }.qr-trend-list div { display: grid; gap: .2rem; padding: .7rem; border-radius: .45rem; background: #f5f7fb; }.qr-trend-list span { color: var(--admin-muted); font-size: .64rem; }.qr-trend-list strong { font-size: .74rem; }

.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.admin-page-heading p:not(.admin-kicker) { margin-bottom: 0; color: var(--admin-muted); font-size: .9rem; }
.admin-kicker { margin-bottom: .35rem; color: var(--admin-blue); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid var(--admin-blue); border-radius: .5rem; padding: .7rem .9rem; background: var(--admin-blue); color: #fff; font-size: .78rem; font-weight: 800; }
.admin-button.secondary { border-color: #d4dae4; background: #fff; color: #334056; }
.record-count { color: var(--admin-muted); font-size: .78rem; font-weight: 700; }

.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.admin-metrics article { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem; border: 1px solid var(--admin-border); border-radius: .7rem; background: #fff; box-shadow: 0 3px 12px rgb(30 45 75 / .035); }
.admin-metrics article div { display: grid; }
.admin-metrics small { color: var(--admin-muted); font-size: .72rem; font-weight: 700; }
.admin-metrics strong { margin-block: .25rem .1rem; font-size: 1.75rem; line-height: 1; }
.admin-metrics article p { margin-bottom: 0; color: #9aa3b1; font-size: .64rem; }
.metric-icon { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border-radius: .55rem; font-size: .72rem; font-weight: 900; }
.metric-icon.blue { background: #edf2ff; color: #356df3; }
.metric-icon.violet { background: #f3efff; color: #7655d4; }
.metric-icon.amber { background: #fff4e3; color: #ba721b; }
.metric-icon.green { background: #e9f8f1; color: #21855d; }
.compact-metrics article { min-height: 6.5rem; align-items: center; }

.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); gap: 1rem; align-items: start; }
.admin-card { border: 1px solid var(--admin-border); border-radius: .7rem; background: #fff; box-shadow: 0 3px 12px rgb(30 45 75 / .035); }
.admin-card-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--admin-border); }
.admin-card-heading p { margin-bottom: .3rem; }
.admin-card-heading > a { color: var(--admin-blue); font-size: .72rem; font-weight: 800; }
.admin-card-heading > span { color: var(--admin-muted); font-size: .72rem; }
.admin-table-card { overflow: hidden; }
.admin-table-scroll { overflow-x: auto; }
.admin-table-scroll table { width: 100%; min-width: 46rem; border-collapse: collapse; }
.admin-table-scroll th { padding: .7rem 1rem; background: #fafbfc; color: #8993a3; font-size: .61rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.admin-table-scroll td { padding: .8rem 1rem; border-top: 1px solid #edf0f4; color: #465267; font-size: .75rem; vertical-align: middle; }
.admin-table-scroll tbody tr:hover { background: #fafcff; }
.admin-table-scroll td > strong { color: var(--admin-text); }
.dashboard-vendor-list { overflow: hidden; }
.dashboard-vendor-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.dashboard-vendor-table th { padding: .65rem .6rem; background: #fafbfc; color: #8993a3; font-size: .58rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.dashboard-vendor-table td { min-width: 0; padding: .72rem .6rem; border-top: 1px solid #edf0f4; color: #465267; font-size: .7rem; overflow-wrap: anywhere; vertical-align: middle; }
.dashboard-vendor-table th:nth-child(1) { width: 26%; }
.dashboard-vendor-table th:nth-child(2) { width: 23%; }
.dashboard-vendor-table th:nth-child(3) { width: 16%; }
.dashboard-vendor-table th:nth-child(4) { width: 9%; }
.dashboard-vendor-table th:nth-child(5) { width: 15%; }
.dashboard-vendor-table th:nth-child(6) { width: 11%; }
.dashboard-vendor-table tbody tr:hover { background: #fafcff; }
.dashboard-vendor-table .vendor-identity { min-width: 0; }
.dashboard-vendor-table .vendor-identity > span { width: 1.9rem; height: 1.9rem; }
.dashboard-vendor-table .vendor-identity > div { min-width: 0; }
.dashboard-vendor-table .vendor-identity strong, .dashboard-vendor-table .vendor-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-vendor-mobile-category { display: none; font-weight: inherit; }
.dashboard-vendor-table .admin-status { white-space: nowrap; }
.dashboard-vendor-action { text-align: right; }
.vendor-identity { display: flex; gap: .65rem; align-items: center; min-width: 10rem; }
.vendor-identity > span { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border-radius: .5rem; background: #edf2ff; color: var(--admin-blue); font-size: .66rem; font-weight: 900; }
.vendor-identity strong, .vendor-identity small, .cell-subtitle { display: block; }
.vendor-identity strong { color: var(--admin-text); }
.vendor-identity small, .cell-subtitle { margin-top: .15rem; color: #9099a8; font-size: .64rem; }
.row-link { color: var(--admin-blue); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.admin-status { display: inline-flex; border-radius: 2rem; padding: .28rem .5rem; font-size: .61rem; font-weight: 800; text-transform: capitalize; }
.status-approved, .status-confirmed, .status-completed { background: #e9f8f1; color: #1c7b54; }
.status-pending { background: #fff4e3; color: #a96514; }
.status-suspended, .status-cancelled { background: #fdecec; color: #b93a3a; }
.status-featured { background: #edf2ff; color: #345fd1; }
.admin-live-state{display:inline-flex;align-items:center;gap:.4rem;color:#9b3f4b;font-size:.7rem;font-weight:800}.admin-live-state i{width:.55rem;height:.55rem;border-radius:50%;background:#d65360}.admin-live-state.is-live{color:#197957}.admin-live-state.is-live i{background:#22ad70;box-shadow:0 0 0 4px rgb(34 173 112 / .13)}.review-checklist{display:grid;gap:.55rem;margin-top:1rem}.review-checklist-item{display:flex;align-items:center;gap:.65rem;border:1px solid #dfe7f0;border-radius:.7rem;padding:.65rem}.review-checklist-item>span{display:grid;width:1.7rem;height:1.7rem;place-items:center;border-radius:50%;background:#eef2f7;color:#718096;font-weight:900}.review-checklist-item.complete>span{background:#e1f7ec;color:#197957}.review-checklist-item strong,.review-checklist-item small{display:block}.review-checklist-item small{margin-top:.1rem;color:#77869b}.admin-field-error{color:#b73535;font-size:.72rem;font-weight:700}
.admin-empty { padding: 2rem !important; color: var(--admin-muted) !important; text-align: center; }

.activity-card { overflow: hidden; }
.admin-dashboard-grid .activity-card { width: 100%; }
.admin-dashboard-grid .activity-card .admin-card-heading { padding-inline: 1rem; }
.admin-dashboard-grid .activity-list { padding-inline: 1rem; }
.activity-list { padding: .15rem 1.2rem; }
.activity-list > div { display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding-block: .85rem; border-bottom: 1px solid #edf0f4; }
.activity-list > div:last-child { border-bottom: 0; }
.activity-dot { width: .55rem; height: .55rem; margin-top: .3rem; border-radius: 50%; }
.activity-dot.status-pending { background: #e49b3f; }
.activity-dot.status-confirmed { background: #356df3; }
.activity-dot.status-completed { background: #2b9a6b; }
.activity-dot.status-cancelled { background: #d55252; }
.activity-list strong { font-size: .76rem; }
.activity-list p { margin: .2rem 0; color: #637086; font-size: .68rem; line-height: 1.4; }
.activity-list a { color: var(--admin-blue); font-weight: 700; }
.activity-list small { color: #9aa3b1; font-size: .62rem; }
.admin-roadmap-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: center; margin-top: 1.4rem; padding: 1.4rem; border-radius: .7rem; background: var(--admin-navy); color: #fff; }
.admin-roadmap-panel > div > p:last-child { margin: .5rem 0 0; color: #9eabc0; font-size: .75rem; line-height: 1.55; }
.roadmap-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.roadmap-tags span { padding: .7rem; border: 1px solid rgb(255 255 255 / .12); border-radius: .5rem; color: #9eabc0; font-size: .65rem; }
.roadmap-tags b { display: block; margin-bottom: .2rem; color: #7fa6ff; }

.admin-filters { display: grid; grid-template-columns: minmax(16rem, 1fr) 12rem auto auto; gap: .75rem; align-items: end; margin-bottom: 1rem; padding: .9rem; border: 1px solid var(--admin-border); border-radius: .7rem; background: #fff; }
.admin-filters label { display: block; margin-bottom: .35rem; color: #5f6b7f; font-size: .66rem; font-weight: 800; }
.admin-filters input, .admin-filters select { width: 100%; border: 1px solid #d8dde6; border-radius: .45rem; padding: .62rem .7rem; background: #fff; color: var(--admin-text); font-size: .75rem; outline: none; }
.admin-filters input:focus, .admin-filters select:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 3px #e7edff; }
.admin-filters button { border: 0; border-radius: .45rem; padding: .67rem .85rem; background: var(--admin-blue); color: #fff; font-size: .73rem; font-weight: 800; }
.admin-filters > a { padding: .65rem .2rem; color: var(--admin-muted); font-size: .7rem; font-weight: 700; }
.admin-pagination { margin-top: 1rem; }
.admin-pagination nav > div:first-child { display: none; }
.admin-pagination nav > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-pagination nav p { margin: 0; color: var(--admin-muted); font-size: .72rem; }
.admin-pagination nav span, .admin-pagination nav a { font-size: .72rem; }

.admin-back { display: inline-block; margin-bottom: 1.1rem; color: var(--admin-blue); font-size: .72rem; font-weight: 800; }
.vendor-profile-heading { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.vendor-profile-logo { display: grid; width: 4.3rem; height: 4.3rem; place-items: center; border-radius: .8rem; background: var(--admin-navy); color: #fff; font-size: 1.15rem; font-weight: 900; }
.vendor-profile-heading h1 { margin: .35rem 0 .15rem; }
.vendor-profile-heading p { margin-bottom: 0; color: var(--admin-muted); font-size: .82rem; }
.heading-badges { display: flex; gap: .35rem; }
.vendor-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.4rem; align-items: start; }
.vendor-admin-main, .vendor-admin-side { display: grid; gap: 1.4rem; }
.detail-section { overflow: hidden; }
.detail-section > .admin-kicker, .detail-section > h2 { margin-inline: 1.2rem; }
.detail-section > .admin-kicker { margin-top: 1.2rem; }
.detail-section > h2 { margin-bottom: 1rem; }
.detail-list article { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-top: 1px solid var(--admin-border); }
.detail-list article:first-child { border-top: 0; }
.detail-list article p { margin: .3rem 0; color: var(--admin-muted); font-size: .72rem; }
.detail-list article small { color: #949dab; font-size: .64rem; }
.detail-list article > div:last-child { display: grid; min-width: 7rem; gap: .45rem; align-content: center; justify-items: end; }
.detail-list article b { font-size: .8rem; }
.admin-definition-list { margin: 0; padding: 0 1.2rem 1.2rem; }
.admin-definition-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding-block: .65rem; border-top: 1px solid var(--admin-border); }
.admin-definition-list dt { color: var(--admin-muted); font-size: .65rem; }
.admin-definition-list dd { margin: 0; overflow-wrap: anywhere; font-size: .72rem; font-weight: 700; text-align: right; }
.offer-admin-list { padding: 0 1.2rem .5rem; }
.offer-admin-list article { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding-block: .75rem; border-top: 1px solid var(--admin-border); }
.offer-admin-list article > strong { color: var(--admin-blue); font-size: .7rem; }
.offer-admin-list article b, .offer-admin-list article small { display: block; }
.offer-admin-list article b { font-size: .7rem; }
.offer-admin-list article small { margin-top: .15rem; color: var(--admin-muted); font-size: .62rem; }

@media (max-width: 1280px) {
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-dashboard-grid, .vendor-admin-grid { grid-template-columns: 1fr; }
    .admin-roadmap-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .dashboard-vendor-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .dashboard-vendor-card .admin-card-heading { margin-bottom: .75rem; border: 1px solid var(--admin-border); border-radius: .7rem; background: #fff; }
    .dashboard-vendor-list { overflow: visible; }
    .dashboard-vendor-table, .dashboard-vendor-table tbody { display: block; }
    .dashboard-vendor-table thead { display: none; }
    .dashboard-vendor-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .75rem; margin-bottom: .6rem; padding: .8rem; border: 1px solid var(--admin-border); border-radius: .7rem; background: #fff; box-shadow: 0 3px 12px rgb(30 45 75 / .035); }
    .dashboard-vendor-table td { display: grid; gap: .25rem; padding: 0; border: 0; }
    .dashboard-vendor-table td::before { content: attr(data-label); color: #8993a3; font-size: .58rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    .dashboard-vendor-table td:first-child { grid-column: 1; grid-row: 1 / 3; align-self: center; }
    .dashboard-vendor-table td:first-child::before, .dashboard-vendor-table .dashboard-vendor-action::before { display: none; }
    .dashboard-vendor-table .vendor-identity strong, .dashboard-vendor-table .vendor-identity small { overflow: visible; text-overflow: clip; white-space: normal; }
    .dashboard-vendor-mobile-category { display: inline; }
    .dashboard-vendor-table td:nth-child(2),
    .dashboard-vendor-table td:nth-child(3),
    .dashboard-vendor-table td:nth-child(4) { display: none; }
    .dashboard-vendor-table td:nth-child(5) { grid-column: 2; grid-row: 1; justify-items: end; }
    .dashboard-vendor-table td:nth-child(5)::before { display: none; }
    .dashboard-vendor-action { grid-column: 2; grid-row: 2; align-self: end; text-align: right; }
    .dashboard-vendor-action .row-link { display: inline-flex; min-height: 2rem; align-items: center; }
    .dashboard-vendor-empty { display: block !important; }
    .dashboard-vendor-empty td { display: block; }
    .activity-list > div { min-width: 0; }
    .activity-list > div > div { min-width: 0; }
    html[data-theme="midnight"] .dashboard-vendor-card .admin-card-heading,
    html[data-theme="midnight"] .dashboard-vendor-table tr { border-color: #26385c; background: #141f36; }
}

@media (max-width: 520px) {
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .admin-metrics article { min-height: 7.25rem; flex-direction: column; gap: .55rem; padding: .85rem; }
    .admin-metrics .metric-icon { width: 1.8rem; height: 1.8rem; }
    .admin-metrics strong { font-size: 1.45rem; }
    .admin-metrics article p { font-size: .61rem; line-height: 1.35; }
}

@media (max-width: 760px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-shell { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .admin-topbar { justify-content: flex-start; padding-inline: 1rem; }
    .environment-pill { margin-left: auto; }
    .admin-content { width: min(100% - 1.5rem, 90rem); padding-top: 1.5rem; }
    .admin-page-heading, .vendor-profile-heading { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
    .admin-page-heading { display: flex; }
    .vendor-profile-logo { width: 3.5rem; height: 3.5rem; }
    .admin-filters { grid-template-columns: 1fr; }
    .roadmap-tags { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .environment-pill { display: none; }
}

/* Dedicated administrator authentication */
.admin-login-body { display: flex; min-height: 100vh; flex-direction: column; background: #0d1728; color: #fff; }
.admin-login-body > main { flex: 1 0 auto; }
.admin-login-header { display: flex; align-items: center; justify-content: space-between; width: min(100% - 3rem, 82rem); margin-inline: auto; padding-block: 1.4rem; }
.admin-login-header > a:first-child { display: flex; gap: .65rem; align-items: center; }
.admin-login-header > a:first-child > img { display: block; width: 2.4rem; height: 2.4rem; border-radius: .6rem; object-fit: contain; }
.admin-login-header strong, .admin-login-header small { display: block; }
.admin-login-header strong { font-size: .9rem; }
.admin-login-header small { margin-top: .12rem; color: #7786a0; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-login-header > a:last-child { color: #9caac0; font-size: .72rem; font-weight: 800; }
.admin-login-shell { display: grid; grid-template-columns: 1fr 25rem; gap: 6rem; align-items: center; width: min(100% - 3rem, 72rem); min-height: calc(100vh - 84px); margin-inline: auto; padding-block: 3rem 5rem; }
.admin-login-message { max-width: 41rem; }
.admin-login-label { display: inline-flex; margin-bottom: 1.2rem; padding: .4rem .7rem; border: 1px solid #30415d; border-radius: 2rem; color: #7fa7ff; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-login-message h1 { max-width: 42rem; margin-bottom: 1.2rem; color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .98; }
.admin-login-message > p { max-width: 36rem; color: #98a8be; font-size: .95rem; line-height: 1.7; }
.admin-login-features { display: grid; gap: .85rem; margin-top: 2rem; }
.admin-login-features > div { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; }
.admin-login-features b { color: #57749e; font-size: .65rem; }
.admin-login-features strong, .admin-login-features small { display: block; }
.admin-login-features strong { font-size: .76rem; }
.admin-login-features small { margin-top: .18rem; color: #77879f; font-size: .68rem; }
.admin-login-card { display: grid; gap: 1rem; padding: 1.7rem; border: 1px solid #dfe4ec; border-radius: .9rem; background: #fff; color: var(--admin-text); box-shadow: 0 24px 70px rgb(0 0 0 / .3); }
.admin-lock { display: block; width: 3rem; height: 3rem; border-radius: .7rem; object-fit: contain; }
.admin-login-card .admin-kicker, .admin-login-card h2, .admin-login-card .admin-form-copy { margin: 0; }
.admin-login-card .admin-kicker { margin-top: .2rem; }
.admin-login-card h2 { font-size: 1.55rem; }
.admin-form-copy { color: var(--admin-muted); font-size: .75rem; }
.admin-login-field { display: grid; gap: .4rem; }
.admin-login-field label { color: #4f5c70; font-size: .7rem; font-weight: 800; }
.admin-login-field input { width: 100%; border: 1px solid #d3d9e3; border-radius: .5rem; padding: .7rem .75rem; background: #fff; color: var(--admin-text); outline: none; }
.admin-login-field input:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 3px #e7edff; }
.admin-login-field p { margin: 0; color: #c13737; font-size: .7rem; }
.admin-login-error { margin: 0; border-radius: .55rem; padding: .7rem .8rem; background: #fef2f2; color: #b91c1c; font-size: .78rem; font-weight: 750; line-height: 1.45; }
.admin-remember { display: flex; gap: .5rem; color: var(--admin-muted); font-size: .7rem; }
.admin-login-card > button { border: 0; border-radius: .5rem; padding: .75rem; background: var(--admin-blue); color: #fff; font-weight: 800; }
.admin-demo { display: grid; gap: .2rem; padding: .7rem; border-radius: .45rem; background: #f4f6f9; color: #667489; font-size: .66rem; }
.admin-demo strong { color: #364257; }
.admin-switch { color: var(--admin-blue); font-size: .7rem; font-weight: 800; text-align: center; }
.vendor-review-control { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; padding: 1.1rem; }
.vendor-review-control h2, .vendor-review-control p { margin-bottom: .2rem; }.vendor-review-control > div > p:last-child { color: var(--admin-muted); font-size: .72rem; }
.vendor-review-control form { display: grid; width: min(100%, 24rem); flex: 0 1 24rem; grid-template-columns: minmax(9rem, 1fr) auto; gap: .6rem; align-items: end; }.vendor-review-control label { display: none; }.vendor-review-control select { width: 100%; min-width: 0; border: 1px solid var(--admin-border); border-radius: .45rem; padding: .65rem; background: #fff; }.vendor-review-control form > .admin-button { min-width: 8.5rem; white-space: nowrap; }
.admin-vendor-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; white-space: nowrap; }.admin-vendor-row-actions .preview { color: #7b4bc1; }
.admin-form-card { max-width: 58rem; padding: 1.25rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.admin-form-grid label { display: grid; gap: .4rem; color: #4f5c70; font-size: .7rem; font-weight: 800; }
.admin-form-grid input, .admin-form-grid select { width: 100%; border: 1px solid #d3d9e3; border-radius: .5rem; padding: .72rem .75rem; background: #fff; color: var(--admin-text); outline: none; }
.admin-form-grid input:focus, .admin-form-grid select:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 3px #e7edff; }
.admin-form-errors { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid #efb5b5; border-radius: .5rem; background: #fff1f1; color: #963232; font-size: .72rem; }
.admin-form-errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.otp-login-stack { width: min(100%, 28rem); }
.otp-login-stack .otp-form-grid { display: grid; gap: 1rem; }
.otp-login-stack .admin-login-card { width: 100%; }
.otp-login-stack .admin-login-card > button { width: 100%; border: 0; border-radius: .5rem; padding: .75rem; background: var(--admin-blue); color: #fff; font-weight: 800; cursor: pointer; }
.otp-login-stack .captcha-question { display: inline-flex; width: fit-content; min-width: 8rem; align-items: center; justify-content: center; margin-bottom: .45rem; border: 1px dashed #9cb4e8; border-radius: .5rem; padding: .7rem .9rem; background: #edf2ff; color: #3155a4; font-size: 1rem; font-weight: 900; }
.otp-login-stack .otp-notice { border: 1px solid #b9deca; border-radius: .45rem; padding: .7rem; background: #eff9f4; color: #276447; font-size: .7rem; line-height: 1.5; }
.otp-login-stack .otp-password-link { margin: 1rem 0 0; text-align: center; }
.otp-login-stack .otp-password-link a { color: #9cb8ff; font-size: .72rem; font-weight: 800; }
.otp-login-stack .otp-verification-card { width: 100%; max-width: 28rem; padding: 1.5rem; text-align: center; }
.otp-login-stack .otp-verification-card form { display: grid; gap: .8rem; text-align: left; }
.otp-login-stack .otp-verification-icon { display: grid; width: 4rem; height: 4rem; margin: 0 auto .8rem; place-items: center; border-radius: 50%; background: #1d3159; color: #9cb8ff; font-size: 1.6rem; font-weight: 900; }
.otp-login-stack .otp-verification-email { margin: .2rem 0 .8rem; color: #fff; font-weight: 900; overflow-wrap: anywhere; }
.otp-login-stack .otp-code-field label { display: block; text-align: center; }
.otp-login-stack .otp-digit-group { display: grid; grid-template-columns: repeat(6, minmax(0, 2.8rem)); justify-content: center; gap: .4rem; }
.otp-login-stack .otp-digit-input { width: 100%; height: 3.1rem; border: 1.5px solid #344b78; border-radius: .55rem; outline: 0; background: #111d35; color: #fff; font: inherit; font-size: 1.15rem; font-weight: 900; text-align: center; }
.otp-login-stack .otp-digit-input:focus { border-color: #6ea0ff; box-shadow: 0 0 0 3px rgb(110 160 255 / .15); }
.otp-login-stack .otp-verification-actions { display: grid; gap: .6rem; margin-top: .7rem; }
.otp-login-stack .otp-verification-actions form { display: block; }
.otp-login-stack .otp-verification-actions button { width: 100%; }
.otp-login-stack .otp-change-email { border: 0; padding: .65rem; background: transparent; color: #9cb8ff; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.otp-login-stack .otp-expiry-note { margin-top: .8rem; text-align: center; }

@media (max-width: 850px) {
    .admin-login-shell { grid-template-columns: 1fr; gap: 2.5rem; }
    .admin-login-card { width: min(100%, 28rem); }
    .vendor-review-control { align-items: stretch; flex-direction: column; }
    .vendor-review-control form { width: 100%; flex-basis: auto; }
}

@media (max-width: 520px) {
    .admin-login-header { width: min(100% - 1.5rem, 82rem); }
    .admin-login-shell { width: min(100% - 1.5rem, 72rem); padding-top: 2rem; }
    .admin-login-message h1 { font-size: 2.7rem; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .vendor-review-control form { grid-template-columns: 1fr; align-items: stretch; }
}

/* Shared responsive foundations */
html { overflow-x: hidden; }
body { overflow-wrap: anywhere; }
img, svg, video, canvas { max-width: 100%; }
.admin-shell, .admin-content, .admin-dashboard-grid > *, .vendor-admin-grid > * { min-width: 0; }
.admin-sidebar-backdrop { display: none; }
.admin-table-scroll { overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
    .admin-sidebar { z-index: 50; width: min(86vw, 16rem); overflow-y: auto; box-shadow: 18px 0 45px rgb(0 0 0 / .28); }
    .admin-sidebar-backdrop { position: fixed; z-index: 45; inset: 0; border: 0; background: rgb(5 10 20 / .58); }
    .sidebar-open { overflow: hidden; }
    .sidebar-open .admin-sidebar-backdrop { display: block; }
    .admin-topbar { z-index: 35; min-width: 0; }
    .admin-topbar > div { min-width: 0; }
    .admin-topbar > div span, .admin-topbar > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sidebar-toggle { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; border-radius: .55rem; }
    .admin-card-heading { align-items: flex-start; flex-direction: column; }
    .admin-definition-list div { grid-template-columns: 1fr; gap: .25rem; }
    .admin-definition-list dd { text-align: left; }
    input, select, textarea { font-size: 16px; }
}

@media (max-width: 520px) {
    .admin-content { width: min(100% - 1rem, 90rem); padding-block: 1.2rem 3rem; }
    .admin-page-heading .admin-button { width: 100%; min-height: 2.75rem; }
    .admin-form-card { padding: 1rem; }
    .admin-form-card > .admin-button, .admin-form-card form > .admin-button { width: 100%; min-height: 2.75rem; }
    .vendor-profile-heading { gap: .7rem; }
    .vendor-review-control { padding: .9rem; }
    .vendor-review-control form, .vendor-review-control select, .vendor-review-control .admin-button { width: 100%; }
    .offer-admin-list article { grid-template-columns: 1fr; }
    .admin-vendor-row-actions { justify-content: flex-start; }
    .admin-login-header > a:last-child { font-size: 0; }
    .admin-login-header > a:last-child::after { content: 'Vendor'; font-size: .72rem; }
    .admin-login-card { padding: 1.2rem; }
    .admin-login-message h1 { font-size: clamp(2.15rem, 13vw, 2.7rem); }
}

/* UI Design Document: Fresh Blue and Midnight Premium display modes */
.admin-topbar-actions, .admin-login-actions { display: flex; align-items: center; gap: .7rem; }
.theme-toggle { display: inline-flex; min-height: 2.35rem; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--admin-border); border-radius: .6rem; padding: .5rem .7rem; background: #f5f9fd; color: var(--admin-blue); font-size: .68rem; font-weight: 850; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--admin-blue); }
.theme-switch { position: relative; display: inline-block; width: 2rem; height: 1.15rem; flex: 0 0 auto; border-radius: 2rem; background: #cbd8e6; transition: background .2s ease; }
.theme-switch i { position: absolute; top: .15rem; left: .15rem; width: .85rem; height: .85rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(16 35 63 / .25); transition: transform .2s ease; }
.theme-toggle[aria-pressed="true"] .theme-switch { background: #55b6ff; }
.theme-toggle[aria-pressed="true"] .theme-switch i { transform: translateX(.85rem); }

html[data-theme="midnight"] { color-scheme: dark; --admin-navy: #080f1e; --admin-navy-light: #141f36; --admin-blue: #55b6ff; --admin-text: #eef2fa; --admin-muted: #9fadc5; --admin-border: #26385c; --admin-bg: #0b1324; }
html[data-theme="midnight"] .admin-sidebar { background: #080f1e; }
html[data-theme="midnight"] .admin-topbar { border-color: #26385c; background: rgb(20 31 54 / .96); }
html[data-theme="midnight"] .theme-toggle { border-color: #26385c; background: #1b2945; color: #82cbff; }
html[data-theme="midnight"] .environment-pill { background: #142d47; color: #82cbff; }
html[data-theme="midnight"] .admin-card,
html[data-theme="midnight"] .admin-metrics article,
html[data-theme="midnight"] .admin-filters,
html[data-theme="midnight"] .admin-form-card,
html[data-theme="midnight"] .admin-login-card { border-color: #26385c; background: #141f36; box-shadow: 0 15px 40px rgb(0 0 0 / .18); }
html[data-theme="midnight"] .admin-card-heading,
html[data-theme="midnight"] .activity-list > div { border-color: #26385c; }
html[data-theme="midnight"] .admin-table-scroll th { background: #1b2945; color: #aab6ce; }
html[data-theme="midnight"] .admin-table-scroll td { border-color: #26385c; color: #d6deed; }
html[data-theme="midnight"] .admin-table-scroll tbody tr:hover { background: #17243d; }
html[data-theme="midnight"] .dashboard-vendor-table th { background: #1b2945; color: #aab6ce; }
html[data-theme="midnight"] .dashboard-vendor-table td { border-color: #26385c; color: #d6deed; }
html[data-theme="midnight"] .dashboard-vendor-table tbody tr:hover { background: #17243d; }
html[data-theme="midnight"] .admin-table-scroll td > strong,
html[data-theme="midnight"] .activity-list strong,
html[data-theme="midnight"] .admin-form-grid label { color: #eef2fa; }
html[data-theme="midnight"] .admin-filters input,
html[data-theme="midnight"] .admin-filters select,
html[data-theme="midnight"] .admin-form-grid input,
html[data-theme="midnight"] .admin-form-grid select { border-color: #26385c; background: #1b2945; color: #eef2fa; }
html[data-theme="midnight"] .admin-filters input:focus,
html[data-theme="midnight"] .admin-filters select:focus,
html[data-theme="midnight"] .admin-form-grid input:focus,
html[data-theme="midnight"] .admin-form-grid select:focus { border-color: #55b6ff; box-shadow: 0 0 0 3px rgb(85 182 255 / .18); }
html[data-theme="midnight"] .admin-button { border-color: #55b6ff; background: #55b6ff; color: #071525; }
html[data-theme="midnight"] .admin-button.secondary { border-color: #26385c; background: #1b2945; color: #eef2fa; }
html[data-theme="midnight"] .metric-icon.blue,
html[data-theme="midnight"] .metric-icon.amber { background: #142d47; color: #82cbff; }
html[data-theme="midnight"] .metric-icon.green { background: #123a39; color: #4fd1a5; }
html[data-theme="midnight"] .admin-login-body { background: #0b1324; }
html[data-theme="midnight"] .admin-login-card { color: #eef2fa; }

@media (max-width: 760px) {
    .admin-topbar-actions { margin-left: auto; }
    .admin-topbar-actions .theme-toggle [data-theme-label] { display: none; }
    .environment-pill { display: none; }
}

@media (max-width: 520px) {
    .admin-login-actions .theme-toggle [data-theme-label] { display: none; }
}

/* Document-aligned control-centre finishing layer */
.admin-card,
.admin-metrics article,
.admin-filters,
.admin-form-card { border-radius: .9rem; box-shadow: 0 8px 28px rgb(24 63 110 / .045); }
.admin-nav a.active { box-shadow: inset 3px 0 #55b6ff; }
.admin-button { border-radius: .65rem; }

html[data-theme="midnight"] .admin-form-errors { border-color: #743f52; background: #44253a; color: #ff9caa; }
html[data-theme="midnight"] .admin-login-error { background: #44253a; color: #ff9caa; }
html[data-theme="midnight"] .admin-demo,
html[data-theme="midnight"] .qr-trend-list div { background: #1b2945; color: #aab6ce; }
html[data-theme="midnight"] .admin-demo strong,
html[data-theme="midnight"] .admin-login-field label,
html[data-theme="midnight"] .admin-definition-list dd,
html[data-theme="midnight"] .detail-list article b,
html[data-theme="midnight"] .offer-admin-list article b { color: #eef2fa; }
html[data-theme="midnight"] .admin-login-field input,
html[data-theme="midnight"] .vendor-review-control select { border-color: #26385c; background: #1b2945; color: #eef2fa; }
html[data-theme="midnight"] .admin-definition-list div,
html[data-theme="midnight"] .detail-list article,
html[data-theme="midnight"] .offer-admin-list article { border-color: #26385c; }
html[data-theme="midnight"] .status-pending { background: #142d47; color: #82cbff; }
html[data-theme="midnight"] .status-approved,
html[data-theme="midnight"] .status-confirmed,
html[data-theme="midnight"] .status-completed { background: #123a39; color: #76dbb6; }
html[data-theme="midnight"] .status-suspended,
html[data-theme="midnight"] .status-cancelled { background: #44253a; color: #ff9caa; }
html[data-theme="midnight"] .status-featured { background: #142d47; color: #82cbff; }

/* Administrator customer, booking and category operations */
.admin-create-panel { margin-bottom: 1rem; overflow: hidden; }
.admin-create-panel > summary, .category-edit-panel > summary { cursor: pointer; color: var(--admin-blue); font-size: .76rem; font-weight: 850; list-style-position: inside; }
.admin-create-panel > summary { padding: 1rem 1.2rem; }
.admin-create-panel[open] > summary { border-bottom: 1px solid var(--admin-border); }
.category-form { max-width: none; margin: 0; padding: 1.1rem 1.2rem; }
.category-form textarea { width: 100%; resize: vertical; border: 1px solid #d3d9e3; border-radius: .5rem; padding: .72rem .75rem; background: #fff; color: var(--admin-text); outline: none; }
.category-form textarea:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 3px #e7edff; }
.category-description-field { grid-column: 1 / -1; }
.category-form .admin-button { width: fit-content; }
.admin-category-list { display: grid; gap: .85rem; }
.category-admin-card { overflow: hidden; }
.category-admin-summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 1.2rem; }
.category-admin-summary > div:first-child { display: flex; min-width: 0; gap: .8rem; align-items: center; }
.category-admin-summary > div:last-child { display: grid; flex: 0 0 auto; justify-items: end; gap: .2rem; }
.category-admin-summary h2, .category-admin-summary p { margin: 0; }
.category-admin-summary p { margin-top: .25rem; color: var(--admin-muted); font-size: .72rem; }
.category-admin-summary small { color: #91a0b5; font-size: .62rem; }
.category-admin-summary > div:last-child > strong { margin-top: .35rem; font-size: 1.1rem; }
.category-icon-key { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; border-radius: .65rem; background: #edf2ff; color: var(--admin-blue); font-size: .68rem; font-weight: 900; }
.category-edit-panel { border-top: 1px solid var(--admin-border); }
.category-edit-panel > summary { padding: .8rem 1.2rem; }
html[data-theme="midnight"] .category-form textarea { border-color: #26385c; background: #1b2945; color: #eef2fa; }
html[data-theme="midnight"] .category-icon-key { background: #142d47; color: #82cbff; }

@media (max-width: 700px) {
    .category-admin-summary { align-items: flex-start; flex-direction: column; }
    .category-admin-summary > div:last-child { justify-items: start; }
}

/* Shared workspace footer */
.workspace-footer { flex: 0 0 auto; border-top: 1px solid var(--admin-border); background: linear-gradient(145deg, #edf5fc, #e6f0fa); color: var(--admin-muted); }
.workspace-footer-inner { display: grid; width: min(100% - 3rem, 90rem); min-height: 5.25rem; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem 2rem; align-items: center; margin-inline: auto; padding-block: 1rem; }
.workspace-footer-brand { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; color: var(--admin-text); }
.workspace-footer-brand img { width: 2rem; height: 2rem; border-radius: .5rem; object-fit: contain; }
.workspace-footer-brand strong, .workspace-footer-brand small { display: block; }
.workspace-footer-brand strong { font-size: .76rem; }
.workspace-footer-brand small { margin-top: .12rem; color: var(--admin-muted); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
.workspace-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .65rem; }
.workspace-footer nav a { color: #526783; font-size: .68rem; font-weight: 750; }
.workspace-footer nav a:hover { color: var(--admin-blue); }
.workspace-footer nav a { border: 1px solid rgb(40 124 235 / .12); border-radius: 2rem; padding: .4rem .65rem; background: rgb(255 255 255 / .5); }
.workspace-footer p { margin: 0; color: #8190a5; font-size: .61rem; text-align: right; }
.admin-login-body > .workspace-footer { width: 100%; border-color: #26385c; background: #091322; }
.admin-login-body > .workspace-footer .workspace-footer-brand { color: #eef2fa; }
.admin-login-body > .workspace-footer nav a { color: #9eacc3; }
html[data-theme="midnight"] .workspace-footer { border-color: #26385c; background: #0b1425; }
html[data-theme="midnight"] .workspace-footer-brand { color: #eef2fa; }
html[data-theme="midnight"] .workspace-footer nav a { color: #9eacc3; }
html[data-theme="midnight"] .workspace-footer nav a { border-color: #26385c; background: #141f36; }
html[data-theme="midnight"] .workspace-footer p { border-color: #26385c; color: #7787a0; }

@media (max-width: 1000px) {
    .workspace-footer-inner { grid-template-columns: auto 1fr; }
    .workspace-footer nav { justify-content: flex-end; }
    .workspace-footer p { grid-column: 1 / -1; padding-top: .65rem; border-top: 1px solid var(--admin-border); text-align: left; }
}

@media (max-width: 700px) {
    input, select, textarea { font-size: 1rem; }
    .workspace-footer-inner { width: min(100% - 1.25rem, 90rem); grid-template-columns: 1fr; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
    .workspace-footer nav { justify-content: flex-start; }
    .workspace-footer nav a { display: inline-flex; min-height: 2rem; align-items: center; }
    .workspace-footer p { grid-column: auto; }
}
.admin-inline-actions{display:flex;flex-wrap:wrap;gap:.4rem}.admin-inline-actions button{border:1px solid var(--admin-border);border-radius:.4rem;padding:.45rem .55rem;background:#fff;color:var(--admin-blue);font-size:.65rem;font-weight:850;cursor:pointer}html[data-theme="midnight"] .admin-inline-actions button{border-color:#26385c;background:#1b2945;color:#82cbff}
