/* ==========================================================================
   AURESS Admin Panel Stylesheet
   Matches AURESS Luxury Minimalist Design System + Dark Mode
   ========================================================================== */

:root {
    --adm-bg: #f4f3ef;
    --adm-surface: #ffffff;
    --adm-surface-2: #faf9f6;
    --adm-sidebar: #141424;
    --adm-sidebar-hover: rgba(201, 169, 110, 0.14);
    --adm-sidebar-text: #c8c8d8;
    --adm-border: #e6e3dc;
    --adm-border-strong: #d4cfc4;
    --adm-text: #1f2233;
    --adm-text-muted: #6e7285;
    --adm-primary: #1a1a2e;
    --adm-gold: #c9a96e;
    --adm-gold-dark: #b08f52;
    --adm-gold-soft: rgba(201, 169, 110, 0.14);
    --adm-success: #1f9d55;
    --adm-success-bg: rgba(31, 157, 85, 0.12);
    --adm-danger: #d64545;
    --adm-danger-bg: rgba(214, 69, 69, 0.12);
    --adm-warning: #d98218;
    --adm-warning-bg: rgba(217, 130, 24, 0.14);
    --adm-info: #2d7ff9;
    --adm-info-bg: rgba(45, 127, 249, 0.12);
    --adm-purple: #7c5dfa;
    --adm-purple-bg: rgba(124, 93, 250, 0.12);
    --adm-shadow-sm: 0 2px 10px rgba(20, 20, 36, 0.05);
    --adm-shadow-md: 0 10px 30px rgba(20, 20, 36, 0.09);
    --adm-shadow-lg: 0 22px 60px rgba(15, 15, 28, 0.18);
    --adm-radius: 12px;
    --adm-radius-sm: 8px;
    --adm-sidebar-w: 264px;
    --adm-topbar-h: 72px;
}

[data-theme="dark"] {
    --adm-bg: #0f101a;
    --adm-surface: #181928;
    --adm-surface-2: #202235;
    --adm-sidebar: #10111d;
    --adm-border: #2a2c42;
    --adm-border-strong: #393c58;
    --adm-text: #f0eee9;
    --adm-text-muted: #9da1b8;
    --adm-primary: #f0eee9;
    --adm-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
    --adm-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --adm-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
}

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

body.admin-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--adm-bg);
    color: var(--adm-text);
    line-height: 1.5;
    min-height: 100vh;
    padding-top: 0;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--adm-primary);
    font-weight: 600;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 0.92rem;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Auth Gate (Login Screen)
   -------------------------------------------------------------------------- */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 20%, rgba(201, 169, 110, 0.16), transparent 42%),
        radial-gradient(circle at 82% 80%, rgba(26, 26, 46, 0.18), transparent 48%),
        var(--adm-bg);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: 18px;
    padding: 40px 34px 34px;
    box-shadow: var(--adm-shadow-lg);
}

.auth-card__brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__monogram {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #1a1a2e;
    color: #c9a96e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    border: 1px solid rgba(201, 169, 110, 0.4);
}

.auth-card__title {
    font-size: 1.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.auth-card__subtitle {
    color: var(--adm-text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-error {
    background: var(--adm-danger-bg);
    color: var(--adm-danger);
    border: 1px solid rgba(214, 69, 69, 0.25);
    border-radius: var(--adm-radius-sm);
    padding: 10px 12px;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-wrap {
    position: relative;
}

.password-wrap .adm-input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--adm-text-muted);
    cursor: pointer;
    padding: 6px;
}

.password-toggle:hover {
    color: var(--adm-gold-dark);
}

.auth-card__footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--adm-text-muted);
}

.auth-card__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--adm-gold-dark);
    font-weight: 500;
}

.auth-card__back:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Admin Layout Shell
   -------------------------------------------------------------------------- */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--adm-sidebar-w);
    background: var(--adm-sidebar);
    color: var(--adm-sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.28s ease;
}

.admin-sidebar__header {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #c9a96e, #a88446);
    color: #141424;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.admin-brand__name {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.admin-brand__sub {
    display: block;
    font-size: 0.72rem;
    color: #c9a96e;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav__group {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.38);
    padding: 12px 12px 6px;
    font-weight: 600;
}

.admin-nav__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--adm-sidebar-text);
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav__item:hover {
    background: var(--adm-sidebar-hover);
    color: #ffffff;
}

.admin-nav__item.active {
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.22), rgba(201, 169, 110, 0.08));
    color: #f3dfb6;
    box-shadow: inset 3px 0 0 #c9a96e;
}

.admin-nav__left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-nav__left i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #c9a96e;
}

.admin-nav__badge {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    color: #e6e3dc;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-nav__badge--alert {
    background: #c9a96e;
    color: #141424;
}

.admin-sidebar__footer {
    padding: 14px 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.55);
    z-index: 990;
}

.sidebar-overlay.active {
    display: block;
}

/* Main Area */
.admin-main {
    flex: 1;
    margin-left: var(--adm-sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--adm-topbar-h);
    background: var(--adm-surface);
    border-bottom: 1px solid var(--adm-border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.topbar-title {
    font-size: 1.25rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-sub {
    font-size: 0.78rem;
    color: var(--adm-text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-search {
    position: relative;
    width: 270px;
}

.global-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--adm-text-muted);
    font-size: 0.85rem;
}

.global-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border-radius: 99px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    outline: none;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}

.global-search input:focus {
    border-color: var(--adm-gold);
}

.global-search__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    box-shadow: var(--adm-shadow-lg);
    max-height: 360px;
    overflow-y: auto;
    z-index: 950;
}

.gs-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--adm-border);
    cursor: pointer;
    font-size: 0.84rem;
}

.gs-item:last-child {
    border-bottom: none;
}

.gs-item:hover {
    background: var(--adm-surface-2);
}

.gs-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--adm-gold-soft);
    color: var(--adm-gold-dark);
    font-weight: 600;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--adm-gold);
    color: var(--adm-gold-dark);
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 99px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-user-pill__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #c9a96e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Content Container */
.admin-content {
    padding: 26px 28px 40px;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: admFade 0.2s ease;
}

@keyframes admFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Buttons, Inputs, Badges & Cards
   -------------------------------------------------------------------------- */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.adm-btn--sm {
    padding: 6px 11px;
    font-size: 0.8rem;
    border-radius: 7px;
}

.adm-btn--primary {
    background: #c9a96e;
    color: #141424;
    border-color: #c9a96e;
}

.adm-btn--primary:hover {
    background: #b99655;
    border-color: #b99655;
}

.adm-btn--dark {
    background: #1a1a2e;
    color: #ffffff;
}

[data-theme="dark"] .adm-btn--dark {
    background: #2c2e48;
}

.adm-btn--outline {
    background: var(--adm-surface);
    border-color: var(--adm-border-strong);
    color: var(--adm-text);
}

.adm-btn--outline:hover {
    border-color: var(--adm-gold);
    color: var(--adm-gold-dark);
}

.adm-btn--danger {
    background: var(--adm-danger-bg);
    color: var(--adm-danger);
    border-color: rgba(214, 69, 69, 0.25);
}

.adm-btn--danger:hover {
    background: var(--adm-danger);
    color: #ffffff;
}

.adm-btn--success {
    background: var(--adm-success-bg);
    color: var(--adm-success);
    border-color: rgba(31, 157, 85, 0.25);
}

.adm-btn--success:hover {
    background: var(--adm-success);
    color: #ffffff;
}

.adm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--adm-text-muted);
}

.adm-input,
.adm-select,
.adm-textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--adm-radius-sm);
    border: 1px solid var(--adm-border-strong);
    background: var(--adm-surface);
    color: var(--adm-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
    border-color: var(--adm-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.adm-textarea {
    resize: vertical;
    min-height: 82px;
}

.adm-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    user-select: none;
}

.adm-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c9a96e;
    cursor: pointer;
}

.adm-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow-sm);
}

.adm-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.adm-card__title {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-card__title i {
    color: var(--adm-gold);
}

.adm-card__body {
    padding: 18px 20px;
}

/* Status & Segment Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill--success { background: var(--adm-success-bg); color: var(--adm-success); }
.status-pill--danger  { background: var(--adm-danger-bg); color: var(--adm-danger); }
.status-pill--warning { background: var(--adm-warning-bg); color: var(--adm-warning); }
.status-pill--info    { background: var(--adm-info-bg); color: var(--adm-info); }
.status-pill--purple  { background: var(--adm-purple-bg); color: var(--adm-purple); }
.status-pill--gold    { background: var(--adm-gold-soft); color: var(--adm-gold-dark); }
.status-pill--muted   { background: var(--adm-surface-2); color: var(--adm-text-muted); border: 1px solid var(--adm-border); }

/* --------------------------------------------------------------------------
   Dashboard Grid & Charts
   -------------------------------------------------------------------------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.kpi-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 20px;
    box-shadow: var(--adm-shadow-sm);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.kpi-card__label {
    font-size: 0.8rem;
    color: var(--adm-text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.kpi-card__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--adm-primary);
    line-height: 1.15;
    margin-bottom: 6px;
}

.kpi-card__sub {
    font-size: 0.78rem;
    color: var(--adm-text-muted);
}

.kpi-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.kpi-card__icon--gold   { background: var(--adm-gold-soft); color: var(--adm-gold-dark); }
.kpi-card__icon--info   { background: var(--adm-info-bg); color: var(--adm-info); }
.kpi-card__icon--purple { background: var(--adm-purple-bg); color: var(--adm-purple); }
.kpi-card__icon--success{ background: var(--adm-success-bg); color: var(--adm-success); }

.dash-grid-2 {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.dash-grid-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

/* Revenue Bar Chart */
.bar-chart {
    height: 225px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 6px 4px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.bar-col__value {
    font-size: 0.7rem;
    color: var(--adm-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.bar-col__track {
    width: 100%;
    max-width: 42px;
    height: 145px;
    background: var(--adm-surface-2);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid var(--adm-border);
}

.bar-col__fill {
    width: 100%;
    background: linear-gradient(180deg, #c9a96e 0%, #9b7738 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease;
    min-height: 4px;
}

.bar-col__label {
    font-size: 0.74rem;
    color: var(--adm-text-muted);
    font-weight: 500;
}

/* Breakdown Progress Bars */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.breakdown-item__top {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.breakdown-bar {
    height: 9px;
    border-radius: 99px;
    background: var(--adm-surface-2);
    overflow: hidden;
    border: 1px solid var(--adm-border);
}

.breakdown-bar__fill {
    height: 100%;
    border-radius: 99px;
    background: #c9a96e;
}

.breakdown-bar__fill--navy {
    background: #2d7ff9;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
}

.mini-row--clickable {
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.mini-row--clickable:hover {
    border-color: var(--adm-gold);
}

.mini-row__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mini-row__thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    flex-shrink: 0;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--adm-gold-soft);
    color: var(--adm-gold-dark);
    font-weight: 700;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Toolbars, Filter Strips, Tables & Pagination
   -------------------------------------------------------------------------- */
.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.summary-chip {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    padding: 12px 14px;
}

.summary-chip__label {
    font-size: 0.76rem;
    color: var(--adm-text-muted);
    font-weight: 600;
}

.summary-chip__val {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2px;
    color: var(--adm-primary);
}

.tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tab-pill {
    padding: 7px 14px;
    border-radius: 99px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--adm-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-pill:hover {
    border-color: var(--adm-gold);
    color: var(--adm-text);
}

.tab-pill.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #c9a96e;
}

[data-theme="dark"] .tab-pill.active {
    background: #c9a96e;
    border-color: #c9a96e;
    color: #141424;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.toolbar__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.toolbar__filters .adm-input,
.toolbar__filters .adm-select {
    width: auto;
    min-width: 150px;
}

.toolbar__search {
    min-width: 230px !important;
    flex: 1;
    max-width: 320px;
}

.toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--adm-gold-soft);
    border: 1px solid rgba(201, 169, 110, 0.45);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.adm-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adm-text-muted);
    background: var(--adm-surface-2);
    border-bottom: 1px solid var(--adm-border);
    white-space: nowrap;
}

.adm-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--adm-border);
    vertical-align: middle;
}

.adm-table tbody tr:hover {
    background: var(--adm-surface-2);
}

.adm-table tbody tr:last-child td {
    border-bottom: none;
}

.prod-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 210px;
}

.prod-cell__img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    flex-shrink: 0;
}

.prod-cell__title {
    font-weight: 600;
    color: var(--adm-primary);
}

.prod-cell__sub {
    font-size: 0.77rem;
    color: var(--adm-text-muted);
}

.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-icon {
    width: 31px;
    height: 31px;
    border-radius: 7px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
    color: var(--adm-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.action-icon:hover {
    border-color: var(--adm-gold);
    color: var(--adm-gold-dark);
}

.action-icon--danger:hover {
    border-color: var(--adm-danger);
    color: var(--adm-danger);
    background: var(--adm-danger-bg);
}

.inline-status-select {
    padding: 5px 8px;
    border-radius: 7px;
    border: 1px solid var(--adm-border-strong);
    background: var(--adm-surface);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.adm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid var(--adm-border);
    flex-wrap: wrap;
    gap: 10px;
}

.adm-pagination__pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.83rem;
}

.page-btn.active {
    background: #c9a96e;
    border-color: #c9a96e;
    color: #141424;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Promo & Review Grids */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.promo-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 18px;
    box-shadow: var(--adm-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.promo-code-badge {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--adm-gold-soft);
    color: var(--adm-gold-dark);
    border: 1px dashed rgba(201, 169, 110, 0.65);
    letter-spacing: 0.06em;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.adm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 22, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adm-modal {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    box-shadow: var(--adm-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.adm-modal--sm {
    max-width: 460px;
}

.adm-modal--lg {
    max-width: 860px;
}

.adm-modal__header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.adm-modal__title {
    font-size: 1.2rem;
}

.adm-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adm-modal__body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adm-modal__footer {
    padding: 14px 22px;
    border-top: 1px solid var(--adm-border);
    background: var(--adm-surface-2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.image-preview-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
}

.image-preview-box img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--adm-border);
}

.preset-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.preset-thumb-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--adm-border);
    padding: 0;
    cursor: pointer;
    background: none;
}

.preset-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preset-thumb-btn:hover {
    border-color: var(--adm-gold);
}

/* Order Items Picker in Modal */
.order-line-row {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    gap: 8px;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 42px 20px;
    color: var(--adm-text-muted);
}

.empty-state i {
    font-size: 2.2rem;
    color: var(--adm-gold);
    margin-bottom: 10px;
}

/* Toast Notification */
.adm-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3000;
    padding: 12px 18px;
    border-radius: 10px;
    background: #1a1a2e;
    color: #ffffff;
    border-left: 4px solid #c9a96e;
    box-shadow: var(--adm-shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    animation: admFade 0.2s ease;
}

.adm-toast--error { border-left-color: #d64545; }
.adm-toast--warning { border-left-color: #d98218; }
.adm-toast--success { border-left-color: #1f9d55; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dash-grid-2,
    .dash-grid-equal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .sidebar-close,
    .sidebar-toggle {
        display: inline-flex;
    }
    .admin-main {
        margin-left: 0;
    }
    .global-search {
        display: none;
    }
}

@media (max-width: 640px) {
    .admin-topbar {
        padding: 0 16px;
    }
    .admin-content {
        padding: 18px 14px 30px;
    }
    .kpi-grid,
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .topbar-right .adm-btn span {
        display: none;
    }
}

/* Print Invoice Cleanliness */
@media print {
    .admin-sidebar,
    .admin-topbar,
    .admin-content,
    .adm-modal__close,
    .adm-modal__footer {
        display: none !important;
    }
    .adm-modal-backdrop {
        position: static;
        background: none;
        padding: 0;
    }
    .adm-modal {
        box-shadow: none;
        border: none;
        max-height: none;
    }
}
