:root {
    --ocs-shell: #0f172a;
    --ocs-surface: rgba(255, 255, 255, 0.82);
    --ocs-border: rgba(148, 163, 184, 0.22);
    --ocs-panel-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --admin-sidebar-width: 250px;
    --admin-sidebar-mobile-width: min(280px, calc(100vw - 48px));
    --admin-sidebar-handle-size: 42px;
    --admin-sidebar-edge-offset: 12px;
    --admin-sidebar-motion-duration: 240ms;
}

[x-cloak] {
    display: none !important;
}

.admin-body {
    overflow-x: hidden;
}

.admin-body.admin-sidebar-scroll-lock {
    overflow: hidden;
}

body[data-theme='dark'] {
    background: #020617;
    color: #e2e8f0;
}

body[data-theme='dark'] .admin-main {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 25rem),
        linear-gradient(180deg, #020617, #0f172a);
}

body[data-theme='dark'] .admin-topbar h2,
body[data-theme='dark'] .admin-card-value,
body[data-theme='dark'] .admin-panel-title,
body[data-theme='dark'] .admin-kv strong {
    color: #f8fafc;
}

body[data-theme='dark'] .admin-card,
body[data-theme='dark'] .admin-panel,
body[data-theme='dark'] .admin-kv {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: none;
}

body[data-theme='dark'] .admin-card-label,
body[data-theme='dark'] .admin-card-note,
body[data-theme='dark'] .admin-panel-label,
body[data-theme='dark'] .admin-kv span,
body[data-theme='dark'] table,
body[data-theme='dark'] .admin-check {
    color: #cbd5e1;
}

body[data-theme='dark'] .admin-user-trigger,
body[data-theme='dark'] .admin-sidebar-toggle,
body[data-theme='dark'] .admin-theme-toggle,
body[data-theme='dark'] .admin-user-dropdown {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
}

body[data-theme='dark'] .admin-user-trigger:hover,
body[data-theme='dark'] .admin-user-trigger[aria-expanded='true'],
body[data-theme='dark'] .admin-sidebar-toggle:hover,
body[data-theme='dark'] .admin-theme-toggle:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(30, 41, 59, 0.98);
}

body[data-theme='dark'] .admin-user-email {
    color: #94a3b8;
}

body[data-theme='dark'] .admin-user-logout-form {
    border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme='dark'] .admin-user-logout {
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

body[data-theme='dark'] .admin-user-logout:hover {
    background: rgba(127, 29, 29, 0.36);
}

.admin-shell {
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    align-items: start;
    min-width: 0;
    transition: grid-template-columns var(--admin-sidebar-motion-duration) ease;
}

.admin-shell.is-sidebar-closed,
html.admin-sidebar-precollapsed .admin-shell {
    grid-template-columns: 0 minmax(0, 1fr);
}

.admin-sidebar {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 18rem),
        linear-gradient(180deg, #020617 0%, #111827 100%);
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: transform var(--admin-sidebar-motion-duration) ease, opacity 180ms ease;
}

.admin-shell.is-sidebar-closed .admin-sidebar,
html.admin-sidebar-precollapsed .admin-sidebar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--admin-sidebar-motion-duration) ease, opacity 180ms ease, visibility 0s linear var(--admin-sidebar-motion-duration);
}

html[dir='rtl'] .admin-shell.is-sidebar-closed .admin-sidebar,
html[dir='rtl'].admin-sidebar-precollapsed .admin-sidebar {
    transform: translateX(100%);
}

html[dir='ltr'] .admin-shell.is-sidebar-closed .admin-sidebar,
html[dir='ltr'].admin-sidebar-precollapsed .admin-sidebar {
    transform: translateX(-100%);
}

.admin-main {
    min-width: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 24rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.admin-topbar {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.5rem 2rem;
    padding-inline-start: calc(2rem + var(--admin-sidebar-handle-size) + 0.75rem);
    backdrop-filter: blur(16px);
}

.admin-sidebar-overlay {
    display: none;
}

.admin-topbar-actions {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.admin-user-menu {
    position: relative;
    min-width: 0;
}

.admin-sidebar-toggle {
    position: fixed;
    inset-block-start: 1.5rem;
    inset-inline-start: var(--admin-sidebar-width);
    z-index: 120;
    width: var(--admin-sidebar-handle-size);
    height: var(--admin-sidebar-handle-size);
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    background: #fff;
    color: #334155;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: inset-inline-start var(--admin-sidebar-motion-duration) ease, border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-shell.is-sidebar-closed > .admin-sidebar-toggle,
html.admin-sidebar-precollapsed .admin-shell > .admin-sidebar-toggle {
    inset-inline-start: var(--admin-sidebar-edge-offset);
}

.admin-sidebar-toggle:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-1px);
}

.admin-sidebar-toggle:focus {
    outline: none;
}

.admin-sidebar-toggle__lines {
    width: 18px;
    display: grid;
    gap: 4px;
}

.admin-sidebar-toggle__lines > span {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 200ms ease, opacity 160ms ease;
}

.admin-sidebar-toggle[aria-expanded='true'] .admin-sidebar-toggle__lines > span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.admin-sidebar-toggle[aria-expanded='true'] .admin-sidebar-toggle__lines > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.admin-sidebar-toggle[aria-expanded='true'] .admin-sidebar-toggle__lines > span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.admin-user-trigger {
    min-height: 42px;
    max-width: 290px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 4px 10px 4px 5px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

html[dir='rtl'] .admin-user-trigger {
    padding: 4px 5px 4px 10px;
}

.admin-user-trigger:hover,
.admin-user-trigger[aria-expanded='true'] {
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #0ea5e9);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.22);
}

.admin-user-trigger-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
    transition: transform 160ms ease;
}

.admin-user-trigger[aria-expanded='true'] .admin-user-chevron {
    transform: rotate(180deg);
}

.admin-user-dropdown {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 0.65rem);
    z-index: 1000;
    width: min(280px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #dbe3ed;
    border-radius: 1rem;
    background: #fff;
    color: #334155;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.admin-user-details {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.admin-user-details strong {
    overflow-wrap: anywhere;
    font-size: 0.925rem;
    color: inherit;
}

.admin-user-email {
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-logout-form {
    padding: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.admin-user-logout {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease;
}

.admin-user-logout:hover {
    background: #ffe4e6;
    color: #9f1239;
}

.admin-user-logout svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.admin-theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-theme-toggle:hover {
    border-color: #94a3b8;
    background: #334155;
    transform: translateY(-1px);
}

.admin-theme-toggle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.admin-user-trigger:focus-visible,
.admin-user-logout:focus-visible,
.admin-sidebar-toggle:focus-visible,
.admin-theme-toggle:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.42);
    outline-offset: 3px;
}

.admin-nav-item {
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 1rem;
    padding: 0.7rem 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
    overflow-wrap: break-word;
    transition: 180ms ease;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav-item:focus-visible,
.admin-nav-group__toggle:focus-visible,
.admin-nav-subitem:focus-visible,
.admin-sidebar:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.55);
    outline-offset: -2px;
}

.admin-nav-group,
.admin-nav-group__row,
.admin-nav-submenu {
    min-width: 0;
}

.admin-nav-group__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: stretch;
    gap: 0.2rem;
    border-radius: 1rem;
    transition: background 180ms ease;
}

.admin-nav-group__row.is-active {
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav-item--group {
    width: 100%;
    gap: 0.65rem;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: start;
}

button.admin-nav-item--group {
    cursor: pointer;
}

.admin-nav-group__row .admin-nav-item--group:hover,
.admin-nav-group__row .admin-nav-item--group.is-active {
    background: transparent;
}

.admin-nav-item__icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.admin-nav-group__toggle {
    min-width: 42px;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.85rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.admin-nav-group__toggle:hover,
.admin-nav-group__toggle.is-open {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav-group__toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transform: rotate(0deg);
    transition: transform 200ms ease;
}

.admin-nav-group__toggle.is-open svg {
    transform: rotate(180deg);
}

.admin-nav-submenu {
    display: grid;
    gap: 0.2rem;
    margin-block-start: 0.35rem;
    margin-inline-start: 0.85rem;
    padding-inline-start: 0.65rem;
    border-inline-start: 1px solid rgba(34, 211, 238, 0.28);
}

.admin-nav-subitem {
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    border-inline-start: 3px solid transparent;
    border-radius: 0.8rem;
    padding-block: 0.55rem;
    padding-inline: 0.7rem 0.55rem;
    color: #aebdd0;
    font-size: 0.8125rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.admin-nav-subitem:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.admin-nav-subitem.is-active {
    border-inline-start-color: #22d3ee;
    background: rgba(34, 211, 238, 0.12);
    color: #ecfeff;
}

.admin-card,
.admin-panel {
    border: 1px solid var(--ocs-border);
    border-radius: 1.75rem;
    background: var(--ocs-surface);
    box-shadow: var(--ocs-panel-shadow);
}

.admin-card {
    padding: 1.5rem;
}

.admin-card-label,
.admin-panel-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-card-value {
    margin-top: 0.85rem;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-card-note {
    margin-top: 0.5rem;
    color: #64748b;
}

.admin-panel {
    padding: 1.5rem;
}

.admin-panel-title {
    margin-top: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-category-chart-frame {
    position: relative;
    height: 320px;
    margin-top: 1.5rem;
}

.admin-category-chart-state {
    min-height: 320px;
    margin-top: 1.5rem;
    display: grid;
    place-items: center;
    padding: 2rem;
    border: 1px dashed rgba(14, 165, 233, 0.38);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.1), transparent 14rem),
        rgba(248, 250, 252, 0.72);
    text-align: center;
}

.admin-category-chart-state__content {
    max-width: 28rem;
}

.admin-category-chart-state__message {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.admin-category-chart-state__category {
    margin-top: 0.75rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-category-chart-state__value {
    display: block;
    margin-top: 1rem;
    color: #0284c7;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.admin-category-chart-state__caption {
    margin: 0.6rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

body[data-theme='dark'] .admin-category-chart-state {
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(15, 23, 42, 0.52);
}

body[data-theme='dark'] .admin-category-chart-state__message,
body[data-theme='dark'] .admin-category-chart-state__caption {
    color: #cbd5e1;
}

body[data-theme='dark'] .admin-category-chart-state__category,
body[data-theme='dark'] .admin-category-chart-state__value {
    color: #f8fafc;
}

.admin-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.55);
}

.admin-kv span {
    color: #64748b;
}

.admin-kv strong {
    color: #0f172a;
}

.admin-check {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.95rem 1rem;
}

/* Premium dashboard content */
.admin-dashboard {
    --dashboard-bg: #f6f9fd;
    --dashboard-surface: rgba(255, 255, 255, 0.96);
    --dashboard-border: rgba(148, 163, 184, 0.2);
    --dashboard-text: #0f172a;
    --dashboard-muted: #64748b;
    --dashboard-blue: #1687f8;
    --dashboard-cyan: #06b6d4;
    --dashboard-green: #10b981;
    --dashboard-purple: #7c6cf6;
    --dashboard-orange: #f59e0b;
    --dashboard-red: #ef4444;
    min-width: 0;
    display: grid;
    gap: 1.15rem;
    color: var(--dashboard-text);
}

.admin-dashboard *,
.admin-dashboard *::before,
.admin-dashboard *::after {
    box-sizing: border-box;
}

.admin-dashboard__top {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
    align-items: stretch;
    gap: 1rem;
}

.admin-dashboard__top > * {
    min-width: 0;
}

.admin-dashboard__hero {
    position: relative;
    min-height: 276px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.1), transparent 18rem),
        linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.94));
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.055);
    padding: 1.65rem 1.8rem;
    isolation: isolate;
}

.admin-dashboard__hero::after {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(44%, 480px);
    background: linear-gradient(120deg, transparent, rgba(22, 135, 248, 0.075));
    content: '';
    pointer-events: none;
    z-index: -1;
}

.admin-dashboard__hero-pattern {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 5%;
    width: min(42%, 420px);
    opacity: 0.34;
    background-image: radial-gradient(circle, rgba(22, 135, 248, 0.48) 1px, transparent 1.5px);
    background-size: 9px 9px;
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
    pointer-events: none;
    z-index: -1;
}

.admin-dashboard__hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: start;
}

.admin-dashboard__eyebrow,
.admin-dashboard-panel__eyebrow {
    margin: 0;
    color: #6b7b97;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.admin-dashboard__hero h3 {
    margin: 0.42rem 0 0;
    color: var(--dashboard-text);
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.admin-dashboard__hero-copy > p:last-child {
    max-width: 680px;
    margin: 0.55rem 0 0;
    color: var(--dashboard-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.admin-dashboard__hero-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    color: var(--dashboard-purple);
}

.admin-dashboard__hero-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.admin-dashboard__stats {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-stat {
    --stat-accent: var(--dashboard-blue);
    --stat-soft: rgba(22, 135, 248, 0.1);
    position: relative;
    min-width: 0;
    min-height: 148px;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 20px;
    background: var(--dashboard-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    padding: 1.2rem 1.25rem 1.25rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-dashboard-stat:hover {
    border-color: color-mix(in srgb, var(--stat-accent) 34%, transparent);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.075);
    transform: translateY(-2px);
}

.admin-dashboard-stat.is-teal {
    --stat-accent: var(--dashboard-green);
    --stat-soft: rgba(16, 185, 129, 0.1);
}

.admin-dashboard-stat.is-purple {
    --stat-accent: var(--dashboard-purple);
    --stat-soft: rgba(124, 108, 246, 0.1);
}

.admin-dashboard-stat.is-orange {
    --stat-accent: var(--dashboard-orange);
    --stat-soft: rgba(245, 158, 11, 0.12);
}

.admin-dashboard-stat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-dashboard-stat__header p {
    margin: 0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.45;
}

.admin-dashboard-stat__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--stat-soft);
    color: var(--stat-accent);
}

.admin-dashboard-stat__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.admin-dashboard-stat > strong {
    display: block;
    margin-top: 0.15rem;
    color: var(--dashboard-text);
    font-size: clamp(1.8rem, 2.35vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1;
}

.admin-dashboard-stat__note {
    margin: 0.65rem 0 0;
    color: var(--dashboard-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.admin-dashboard-stat__accent {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 1.25rem;
    width: 58px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--stat-accent);
}

.admin-dashboard__order-load,
.admin-dashboard__bottom,
.admin-dashboard-panel {
    min-width: 0;
}

.admin-dashboard__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr);
    align-items: stretch;
    gap: 1rem;
}

.admin-dashboard-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 22px;
    background: var(--dashboard-surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.052);
    padding: 1.25rem;
}

.admin-dashboard-panel__header {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-dashboard-panel__header > div {
    min-width: 0;
}

.admin-dashboard-panel__header h3,
.admin-order-load__header h3 {
    margin: 0.32rem 0 0;
    color: var(--dashboard-text);
    font-size: clamp(1.02rem, 1.45vw, 1.3rem);
    font-weight: 820;
    line-height: 1.4;
}

.admin-dashboard-card-action {
    flex: 0 0 auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid rgba(22, 135, 248, 0.2);
    border-radius: 10px;
    background: rgba(239, 248, 255, 0.82);
    padding: 0.35rem 0.6rem;
    color: #0874df;
    font-size: 0.67rem;
    font-weight: 780;
    white-space: nowrap;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.admin-dashboard-card-action:hover {
    border-color: rgba(22, 135, 248, 0.38);
    background: rgba(219, 238, 255, 0.9);
    color: #075fb9;
}

.admin-dashboard-card-action:focus-visible {
    outline: 3px solid rgba(22, 135, 248, 0.25);
    outline-offset: 2px;
}

.admin-dashboard-card-action svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

html[dir='ltr'] .admin-dashboard-card-action svg {
    transform: rotate(180deg);
}

.admin-dashboard-orders {
    min-height: 276px;
    justify-content: space-between;
    background:
        radial-gradient(circle at 50% 42%, rgba(22, 135, 248, 0.075), transparent 8rem),
        var(--dashboard-surface);
}

.admin-dashboard-orders__header {
    align-items: center;
}

.admin-dashboard-orders__total {
    position: relative;
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.1rem;
    margin: 0.65rem auto;
    border: 1px solid rgba(22, 135, 248, 0.14);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.9));
    box-shadow: 0 12px 30px rgba(22, 135, 248, 0.1), inset 0 0 0 7px rgba(22, 135, 248, 0.045);
    text-align: center;
}

.admin-dashboard-orders__total::after {
    position: absolute;
    inset: -5px;
    border: 1px dashed rgba(124, 108, 246, 0.22);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.admin-dashboard-orders__total span {
    color: var(--dashboard-muted);
    font-size: 0.65rem;
    font-weight: 720;
}

.admin-dashboard-orders__total strong {
    color: var(--dashboard-text);
    font-size: 1.65rem;
    font-weight: 860;
    letter-spacing: -0.04em;
    line-height: 1;
}

.admin-dashboard-orders__statuses {
    display: grid;
    gap: 0.38rem;
}

.admin-dashboard-orders__status {
    --order-status-color: var(--dashboard-blue);
    min-width: 0;
    min-height: 34px;
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--order-status-color) 13%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--order-status-color) 5%, white);
    padding: 0.38rem 0.55rem;
}

.admin-dashboard-orders__status.is-progress {
    --order-status-color: var(--dashboard-orange);
}

.admin-dashboard-orders__status.is-cancelled {
    --order-status-color: var(--dashboard-red);
}

.admin-dashboard-orders__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--order-status-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--order-status-color) 12%, transparent);
}

.admin-dashboard-orders__status > span:not(.admin-dashboard-orders__status-dot) {
    min-width: 0;
    overflow: hidden;
    color: #52637e;
    font-size: 0.69rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-orders__status strong {
    color: var(--order-status-color);
    font-size: 0.76rem;
    font-weight: 850;
}

.admin-dashboard-panel__count {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.25rem 0.65rem;
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 750;
    white-space: nowrap;
}

.admin-dashboard-panel__link {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.72);
    padding: 0.55rem 0.8rem;
    color: #52637e;
    font-size: 0.75rem;
    font-weight: 750;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.admin-dashboard-panel__link:hover {
    border-color: rgba(22, 135, 248, 0.38);
    background: rgba(239, 248, 255, 0.9);
    color: #0874df;
}

.admin-dashboard-panel__link:focus-visible,
.admin-dashboard-table-wrap:focus-visible {
    outline: 3px solid rgba(22, 135, 248, 0.25);
    outline-offset: 2px;
}

.admin-dashboard-panel__link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

html[dir='ltr'] .admin-dashboard-panel__link svg {
    transform: rotate(180deg);
}

.admin-dashboard-table-wrap {
    min-width: 0;
    max-width: 100%;
    margin: 1rem 0 1.1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #bfdbfe #f1f5f9;
    scrollbar-width: thin;
}

.admin-dashboard-table {
    width: 100%;
    min-width: 610px;
    border-collapse: collapse;
    color: var(--dashboard-muted);
    font-size: 0.75rem;
    text-align: start;
}

.admin-dashboard-table th,
.admin-dashboard-table td {
    padding: 0.78rem 0.65rem;
    text-align: start;
    vertical-align: middle;
}

.admin-dashboard-table thead {
    border-bottom: 1px solid var(--dashboard-border);
    color: #71809a;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-dashboard-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.admin-dashboard-table tbody tr:last-child {
    border-bottom: 0;
}

.admin-dashboard-table tbody tr:hover {
    background: rgba(239, 248, 255, 0.52);
}

.admin-dashboard-table td:first-child strong,
.admin-dashboard-table td:first-child span {
    display: block;
}

.admin-dashboard-table td:first-child strong {
    max-width: 190px;
    overflow: hidden;
    color: var(--dashboard-text);
    font-size: 0.78rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-table td:first-child span {
    margin-top: 0.22rem;
    color: #94a3b8;
    font-size: 0.64rem;
}

.admin-dashboard-table__empty {
    padding-block: 2.5rem !important;
    color: var(--dashboard-muted);
    text-align: center !important;
}

.admin-dashboard-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 780;
    white-space: nowrap;
}

.admin-dashboard-status.is-available {
    background: rgba(16, 185, 129, 0.11);
    color: #047857;
}

.admin-dashboard-status.is-unavailable {
    background: rgba(245, 158, 11, 0.13);
    color: #b45309;
}

.admin-dashboard-chart-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(125px, 0.95fr) minmax(120px, 1fr);
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0 1rem;
}

.admin-dashboard-chart-frame {
    position: relative;
    min-width: 0;
    height: 190px;
}

.admin-dashboard-chart-legend {
    min-width: 0;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-color: #bfdbfe transparent;
    scrollbar-width: thin;
}

.admin-dashboard-chart-legend__item {
    min-width: 0;
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    padding: 0.48rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.admin-dashboard-chart-legend__swatch {
    width: 9px;
    height: 9px;
    margin-top: 0.26rem;
    border-radius: 50%;
    background: var(--dashboard-chart-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dashboard-chart-color) 12%, transparent);
}

.admin-dashboard-chart-legend__item strong,
.admin-dashboard-chart-legend__item span {
    display: block;
}

.admin-dashboard-chart-legend__item strong {
    overflow: hidden;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-chart-legend__item div > span {
    margin-top: 0.16rem;
    color: #8290a7;
    font-size: 0.63rem;
    line-height: 1.45;
}

.admin-dashboard-chart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.6rem;
    border-radius: 11px;
    background: rgba(239, 248, 255, 0.8);
    padding: 0.6rem 0.7rem;
}

.admin-dashboard-chart-total span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-dashboard-chart-total strong {
    color: var(--dashboard-text);
    font-size: 0.84rem;
    font-weight: 820;
}

.admin-dashboard-chart-empty {
    min-height: 270px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.8rem;
    margin: 1rem 0;
    border: 1px dashed rgba(22, 135, 248, 0.28);
    border-radius: 16px;
    background: rgba(246, 249, 253, 0.76);
    padding: 1.5rem;
    color: var(--dashboard-muted);
    text-align: center;
}

.admin-dashboard-chart-empty > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(22, 135, 248, 0.1);
    color: var(--dashboard-blue);
}

.admin-dashboard-chart-empty svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.admin-dashboard-chart-empty p {
    max-width: 260px;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.65;
}

.admin-dashboard-panel--governorates {
    min-height: 430px;
}

.admin-dashboard-governorates__subtitle {
    margin: 0.6rem 0 0;
    color: var(--dashboard-muted);
    font-size: 0.69rem;
    line-height: 1.65;
}

.admin-dashboard-governorates {
    display: grid;
    gap: 0.58rem;
    margin-top: 1rem;
}

.admin-dashboard-governorate {
    --governorate-color: var(--dashboard-blue);
    --governorate-progress: 0%;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--governorate-color) 14%, transparent);
    border-radius: 13px;
    background: color-mix(in srgb, var(--governorate-color) 4%, white);
    padding: 0.68rem 0.72rem;
}

.admin-dashboard-governorate__heading,
.admin-dashboard-governorate__meta,
.admin-dashboard-governorate__sales,
.admin-dashboard-governorate__sales > div {
    min-width: 0;
    display: flex;
    align-items: center;
}

.admin-dashboard-governorate__heading {
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-dashboard-governorate__heading strong {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 810;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-governorate__heading span {
    flex: 0 0 auto;
    color: var(--governorate-color);
    font-size: 0.67rem;
    font-weight: 820;
}

.admin-dashboard-governorate__track {
    height: 7px;
    overflow: hidden;
    margin-top: 0.48rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--governorate-color) 12%, #eef2f7);
}

.admin-dashboard-governorate__track > span {
    width: var(--governorate-progress);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--governorate-color) 72%, white), var(--governorate-color));
    box-shadow: 0 0 12px color-mix(in srgb, var(--governorate-color) 24%, transparent);
}

html[dir='rtl'] .admin-dashboard-governorate__track > span {
    margin-inline-start: auto;
}

.admin-dashboard-governorate__meta {
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.5rem;
    color: #71809a;
    font-size: 0.62rem;
    font-weight: 680;
}

.admin-dashboard-governorate__sales {
    justify-content: flex-end;
    gap: 0.35rem;
}

.admin-dashboard-governorate__sales > div {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
}

.admin-dashboard-governorate__sales strong {
    border-radius: 7px;
    background: color-mix(in srgb, var(--governorate-color) 9%, white);
    padding: 0.15rem 0.3rem;
    color: #334155;
    font-size: 0.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-dashboard-governorates__empty {
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.75rem;
    border: 1px dashed rgba(22, 135, 248, 0.26);
    border-radius: 16px;
    background: rgba(246, 249, 253, 0.76);
    padding: 1.3rem;
    color: var(--dashboard-muted);
    text-align: center;
}

.admin-dashboard-governorates__empty > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(22, 135, 248, 0.1);
    color: var(--dashboard-blue);
}

.admin-dashboard-governorates__empty svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.admin-dashboard-governorates__empty p {
    max-width: 270px;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.65;
}

.admin-dashboard-settings {
    display: grid;
    gap: 0.5rem;
    margin: 1.1rem 0;
}

.admin-dashboard-setting {
    min-width: 0;
    min-height: 43px;
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.45rem 0.55rem;
}

.admin-dashboard-setting__icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f1f5f9;
    color: #62718a;
}

.admin-dashboard-setting__icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.admin-dashboard-setting > span:not(.admin-dashboard-setting__icon) {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.69rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-setting strong {
    color: #334155;
    font-size: 0.7rem;
    font-weight: 820;
    white-space: nowrap;
}

body[data-theme='dark'] .admin-dashboard {
    --dashboard-surface: rgba(15, 23, 42, 0.88);
    --dashboard-border: rgba(148, 163, 184, 0.17);
    --dashboard-text: #f8fafc;
    --dashboard-muted: #a8b5c8;
}

body[data-theme='dark'] .admin-dashboard__hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.11), transparent 18rem),
        linear-gradient(115deg, rgba(15, 23, 42, 0.94), rgba(17, 32, 55, 0.94));
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.2);
}

body[data-theme='dark'] .admin-dashboard__hero-icon,
body[data-theme='dark'] .admin-dashboard-setting {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(30, 41, 59, 0.76);
}

body[data-theme='dark'] .admin-dashboard-stat,
body[data-theme='dark'] .admin-dashboard-panel {
    background: var(--dashboard-surface);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
}

body[data-theme='dark'] .admin-dashboard-orders {
    background:
        radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.09), transparent 8rem),
        var(--dashboard-surface);
}

body[data-theme='dark'] .admin-dashboard-orders__total {
    border-color: rgba(56, 189, 248, 0.18);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 32, 54, 0.94));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24), inset 0 0 0 7px rgba(56, 189, 248, 0.045);
}

body[data-theme='dark'] .admin-dashboard-card-action {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(14, 165, 233, 0.1);
    color: #7dd3fc;
}

body[data-theme='dark'] .admin-dashboard-card-action:hover {
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(14, 165, 233, 0.16);
    color: #bae6fd;
}

body[data-theme='dark'] .admin-dashboard-orders__status,
body[data-theme='dark'] .admin-dashboard-governorate {
    border-color: color-mix(in srgb, var(--order-status-color, var(--governorate-color)) 21%, transparent);
    background: color-mix(in srgb, var(--order-status-color, var(--governorate-color)) 8%, #0f172a);
}

body[data-theme='dark'] .admin-dashboard-orders__status > span:not(.admin-dashboard-orders__status-dot),
body[data-theme='dark'] .admin-dashboard-governorates__subtitle,
body[data-theme='dark'] .admin-dashboard-governorate__meta {
    color: #a8b5c8;
}

body[data-theme='dark'] .admin-dashboard-governorate__heading strong,
body[data-theme='dark'] .admin-dashboard-governorate__sales strong {
    color: #e2e8f0;
}

body[data-theme='dark'] .admin-dashboard-governorate__sales strong {
    background: color-mix(in srgb, var(--governorate-color) 12%, #1e293b);
}

body[data-theme='dark'] .admin-dashboard-governorate__track {
    background: color-mix(in srgb, var(--governorate-color) 14%, #1e293b);
}

body[data-theme='dark'] .admin-dashboard-governorates__empty {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(30, 41, 59, 0.48);
}

body[data-theme='dark'] .admin-dashboard-stat__header p,
body[data-theme='dark'] .admin-dashboard-panel__eyebrow,
body[data-theme='dark'] .admin-dashboard__eyebrow,
body[data-theme='dark'] .admin-dashboard-setting > span:not(.admin-dashboard-setting__icon),
body[data-theme='dark'] .admin-dashboard-chart-total span {
    color: #a8b5c8;
}

body[data-theme='dark'] .admin-dashboard-panel__count,
body[data-theme='dark'] .admin-dashboard-panel__link,
body[data-theme='dark'] .admin-dashboard-chart-total,
body[data-theme='dark'] .admin-dashboard-chart-empty,
body[data-theme='dark'] .admin-dashboard-governorates__empty {
    border-color: rgba(148, 163, 184, 0.17);
    background: rgba(30, 41, 59, 0.62);
    color: #b7c4d7;
}

body[data-theme='dark'] .admin-dashboard-panel__link:hover {
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
}

body[data-theme='dark'] .admin-dashboard-table thead,
body[data-theme='dark'] .admin-dashboard-table {
    color: #a8b5c8;
}

body[data-theme='dark'] .admin-dashboard-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.065);
}

body[data-theme='dark'] .admin-dashboard-chart-legend__item strong,
body[data-theme='dark'] .admin-dashboard-setting strong {
    color: #e2e8f0;
}

body[data-theme='dark'] .admin-dashboard-chart-legend__item div > span {
    color: #94a3b8;
}

body[data-theme='dark'] .admin-dashboard-setting__icon {
    background: rgba(51, 65, 85, 0.9);
    color: #b7c4d7;
}

body[data-theme='dark'] .admin-dashboard-status.is-available {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

body[data-theme='dark'] .admin-dashboard-status.is-unavailable {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

@media (max-width: 1180px) {
    .admin-dashboard__bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-panel--recent {
        grid-column: auto;
    }
}

@media (max-width: 1100px) {
    .admin-dashboard__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .admin-dashboard__bottom {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .admin-dashboard {
        gap: 0.9rem;
    }

    .admin-dashboard__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-dashboard__hero {
        min-height: 0;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .admin-dashboard__hero-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .admin-dashboard__hero-pattern {
        inset-inline-end: 0;
        width: 62%;
    }

    .admin-dashboard__stats,
    .admin-dashboard__bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-dashboard-panel--recent {
        grid-column: auto;
    }

    .admin-dashboard-stat {
        min-height: 138px;
    }

    .admin-dashboard-orders {
        min-height: 0;
    }

    .admin-dashboard-chart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-dashboard-chart-frame {
        height: 210px;
    }

    .admin-dashboard-chart-legend {
        max-height: 190px;
    }
}

@media (max-width: 430px) {
    .admin-dashboard__hero {
        gap: 0.75rem;
        padding: 1.1rem;
    }

    .admin-dashboard__hero h3 {
        font-size: 1.45rem;
    }

    .admin-dashboard__hero-copy > p:last-child {
        font-size: 0.78rem;
    }

    .admin-dashboard__hero-icon {
        width: 40px;
        height: 40px;
    }

    .admin-dashboard-panel,
    .admin-dashboard-stat {
        border-radius: 18px;
        padding: 1rem;
    }

    .admin-dashboard-panel__header {
        align-items: center;
    }

    .admin-dashboard-governorate__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-dashboard-governorate__sales {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 1100px) {
    .admin-shell,
    .admin-shell.is-sidebar-closed,
    html.admin-sidebar-precollapsed .admin-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        z-index: 100;
        width: var(--admin-sidebar-mobile-width);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
        transition: transform var(--admin-sidebar-motion-duration) ease, opacity 180ms ease, visibility 0s linear var(--admin-sidebar-motion-duration);
    }

    html[dir='rtl'] .admin-sidebar {
        transform: translateX(100%);
    }

    html[dir='ltr'] .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-shell.is-sidebar-open .admin-sidebar {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform var(--admin-sidebar-motion-duration) ease, opacity 180ms ease;
    }

    .admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: block;
        background: rgba(2, 6, 23, 0.56);
        backdrop-filter: blur(2px);
    }

    .admin-body.admin-sidebar-scroll-lock .admin-topbar {
        z-index: auto;
    }

    .admin-sidebar-toggle {
        inset-inline-start: var(--admin-sidebar-mobile-width);
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        padding-inline-start: calc(1rem + var(--admin-sidebar-handle-size) + 0.5rem);
        padding-inline-end: 1rem;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-user-trigger-name {
        max-width: min(42vw, 180px);
    }

    .admin-user-dropdown {
        width: min(280px, calc(100vw - 4rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-shell,
    .admin-sidebar,
    .admin-sidebar-toggle,
    .admin-sidebar-toggle__lines > span,
    .admin-nav-group__row,
    .admin-nav-group__toggle,
    .admin-nav-group__toggle svg,
    .admin-nav-subitem,
    .admin-nav-submenu {
        transition-duration: 0.01ms !important;
    }
}

.storefront-shell {
    position: relative;
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
    background:
        radial-gradient(circle at top right, rgba(43, 103, 142, 0.18), transparent 24rem),
        radial-gradient(circle at bottom left, rgba(203, 108, 47, 0.18), transparent 28rem),
        linear-gradient(160deg, #fff8ed 0%, #f0f4f7 55%, #fdf7ef 100%);
    color: #13212f;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.storefront-shell a {
    text-decoration: none;
}

.storefront-backdrop {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(19, 33, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 33, 47, 0.03) 1px, transparent 1px);
    background-size: 3rem 3rem;
    pointer-events: none;
}

.storefront-header,
.catalog-intro,
.product-detail-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.storefront-header {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
}

.brand-panel,
.context-panel,
.product-card,
.product-detail-card,
.empty-state {
    border: 1px solid rgba(19, 33, 47, 0.12);
    border-radius: 1.5rem;
    background: rgba(255, 250, 242, 0.85);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(19, 33, 47, 0.08);
}

.brand-panel,
.context-panel,
.product-detail-card {
    padding: 1.75rem;
}

.brand-panel h1,
.catalog-intro h2,
.detail-copy h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.eyebrow,
.section-label {
    color: #2b678e;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lead,
.section-note,
.detail-description,
.product-copy p {
    color: rgba(19, 33, 47, 0.72);
    line-height: 1.8;
}

.context-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.context-block span,
.stats-grid span,
.product-meta span,
.price-block span,
.detail-meta span {
    display: block;
    margin-bottom: 0.3rem;
    color: rgba(19, 33, 47, 0.56);
    font-size: 0.85rem;
}

.locale-switcher,
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.locale-switcher a,
.category-tabs a,
.product-link,
.catalog-search button,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: 180ms ease;
}

.locale-switcher a,
.category-tabs a,
.back-link {
    padding: 0.65rem 1rem;
    border: 1px solid rgba(19, 33, 47, 0.1);
    color: #13212f;
    background: rgba(255, 255, 255, 0.65);
}

.locale-switcher a.is-active,
.category-tabs a.is-active {
    background: #13212f;
    color: white;
    border-color: #13212f;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.stats-grid div,
.product-meta div,
.detail-meta div {
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.catalog-intro {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: end;
}

.catalog-search {
    display: grid;
    gap: 0.85rem;
}

.catalog-search input {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(19, 33, 47, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.catalog-search button,
.product-link {
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border: none;
    color: white;
    background: linear-gradient(135deg, #cb6c2f, #d89044);
    font-weight: 600;
    cursor: pointer;
}

.category-tabs,
.product-grid,
.pagination-wrap,
.back-link {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    display: grid;
    gap: 1.1rem;
    padding: 1.3rem;
}

.product-card-top,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-category {
    font-size: 0.83rem;
    font-weight: 700;
    color: #2b678e;
}

.product-status {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-status.in_stock {
    background: rgba(25, 135, 84, 0.14);
    color: #1c6b48;
}

.product-status.out_of_stock {
    background: rgba(203, 108, 47, 0.12);
    color: #9b4e21;
}

.product-copy h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.product-meta,
.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.price-block strong,
.detail-meta strong,
.stats-grid strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 2.5rem;
    text-align: center;
}

.product-detail-card {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    align-items: start;
}

.back-link {
    width: fit-content;
}

@media (max-width: 960px) {
    .storefront-header,
    .catalog-intro,
    .product-detail-card,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .storefront-shell {
        padding-inline: 0.8rem;
    }

    .product-meta,
    .detail-meta,
    .product-card-top,
    .product-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: start;
    }
}
