@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    /* Mapped variables to modern theme colors (Indigo & Slate) */
    --adm-orange: #4f46e5;       /* Primary Indigo */
    --adm-orange-dark: #4338ca;  /* Primary Indigo Dark */
    --adm-navy: #0f172a;         /* Sidebar Dark Background */
    --adm-text: #334155;         /* Main Text */
    --adm-muted: #64748b;        /* Muted Text */
    --adm-border: #e2e8f0;       /* Border Color */
    --adm-bg: #f8fafc;           /* App Background */
    --adm-soft: #f1f5f9;         /* Soft Background */
    --adm-green: #10b981;        /* Modern Green */
    --adm-red: #ef4444;          /* Modern Red */
    --adm-amber: #f59e0b;        /* Modern Amber */
    --adm-blue: #3b82f6;         /* Modern Blue */
    --adm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

html,
body {
    margin: 0;
}

.adm-shell,
.adm-login-page,
.adm-route-loading,
.adm-modal-backdrop,
.adm-toast {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.adm-shell *,
.adm-shell *::before,
.adm-shell *::after,
.adm-login-page *,
.adm-login-page *::before,
.adm-login-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   SHELL
========================================================= */

.adm-shell {
    min-height: 100vh;
    display: flex;
    background: var(--adm-bg);
    color: var(--adm-text);
}

.adm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: 260px; /* Slightly wider for modern look */
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b;
    background: var(--adm-navy);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.adm-brand {
    min-height: 70px; /* Matched topbar height */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: #fff;
    text-decoration: none;
}

.adm-brand-mark,
.adm-login-brand > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--adm-orange), #818cf8);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    font-style: normal;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.adm-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.adm-brand strong {
    font-size: 1.1rem;
    letter-spacing: -.01em;
}

.adm-brand small {
    margin-top: 1px;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.adm-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

.adm-nav-direct,
.adm-nav-group-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adm-nav-direct > i,
.adm-nav-group-button span > i {
    width: 20px;
    color: inherit;
    text-align: center;
    font-size: 1.1rem;
}

.adm-nav-direct:hover,
.adm-nav-group-button:hover {
    color: #ffffff;
    background: #1e293b;
}

.adm-nav-direct.active,
.adm-nav-group.active > .adm-nav-group-button {
    color: var(--adm-orange);
    background: rgba(79, 70, 229, 0.1);
}

.adm-nav-direct.active > i,
.adm-nav-group.active > .adm-nav-group-button span > i {
    color: var(--adm-orange);
}

.adm-nav-group {
    margin-top: 4px;
}

.adm-nav-group-button {
    justify-content: space-between;
}

.adm-nav-group-button span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-nav-group-button > i {
    font-size: 0.75rem;
    transition: transform .2s ease;
}

.adm-nav-group-button > i.rotate {
    transform: rotate(180deg);
}

.adm-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.adm-nav-submenu.open {
    max-height: 400px;
}

.adm-nav-submenu a {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    margin-left: 28px;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.adm-nav-submenu a::before {
    content: "";
    position: absolute;
    left: -12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.2s ease;
}

.adm-nav-submenu a:hover,
.adm-nav-submenu a.active {
    color: #ffffff;
}

.adm-nav-submenu a.active {
    font-weight: 600;
    color: var(--adm-orange);
}

.adm-nav-submenu a.active::before {
    background: var(--adm-orange);
    box-shadow: 0 0 6px var(--adm-orange);
}

.adm-sidebar-bottom {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.adm-sidebar-bottom a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.adm-sidebar-bottom a:hover {
    background: var(--adm-orange);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.adm-main {
    width: calc(100% - 260px);
    min-width: 0;
    margin-left: 260px;
}

.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid var(--adm-border);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.adm-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adm-topbar-left > div {
    display: flex;
    flex-direction: column;
}

.adm-topbar-left strong {
    color: var(--adm-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.adm-topbar-left span {
    margin-top: 2px;
    color: var(--adm-muted);
    font-size: 0.8rem;
}

.adm-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--adm-text);
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.adm-mobile-toggle:hover {
    background: var(--adm-bg);
}

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

.adm-topbar-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--adm-bg);
    color: var(--adm-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.adm-topbar-icon:hover {
    color: var(--adm-orange);
    background: rgba(79, 70, 229, 0.1);
}

.adm-profile-wrap {
    position: relative;
}

.adm-profile-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}

.adm-profile-button:hover {
    background: var(--adm-bg);
}

.adm-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--adm-orange);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.adm-profile-copy {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.adm-profile-copy strong {
    max-width: 140px;
    overflow: hidden;
    color: var(--adm-text);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.adm-profile-copy small {
    color: var(--adm-muted);
    font-size: 0.75rem;
}

.adm-profile-button > i {
    color: var(--adm-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.adm-profile-button > i.rotate {
    transform: rotate(180deg);
}

.adm-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    overflow: hidden;
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--adm-shadow);
}

.adm-profile-menu > div {
    padding: 16px;
    border-bottom: 1px solid var(--adm-border);
    background: #f8fafc;
}

.adm-profile-menu > div strong {
    display: block;
    overflow: hidden;
    color: var(--adm-text);
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.adm-profile-menu a,
.adm-profile-menu button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 0;
    background: #fff;
    color: var(--adm-text);
    font: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adm-profile-menu a:hover,
.adm-profile-menu button:hover {
    background: var(--adm-bg);
    color: var(--adm-orange);
}

.adm-profile-menu i {
    color: var(--adm-muted);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.adm-profile-menu a:hover i,
.adm-profile-menu button:hover i {
    color: var(--adm-orange);
}

.adm-content {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.adm-mobile-overlay {
    display: none;
}

/* =========================================================
   PAGE HEADER
========================================================= */

.adm-page-header {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--adm-shadow);
}

.adm-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--adm-orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.adm-page-header h1 {
    margin: 0;
    color: var(--adm-text);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.adm-page-header p {
    max-width: 750px;
    margin: 6px 0 0;
    color: var(--adm-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.adm-page-actions,
.adm-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================================
   BUTTONS / INPUTS
========================================================= */

.adm-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: #fff;
    color: var(--adm-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adm-btn:hover {
    background: #f1f5f9;
    color: var(--adm-text);
}

.adm-btn-primary {
    border-color: var(--adm-orange);
    background: var(--adm-orange);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.adm-btn-primary:hover {
    border-color: var(--adm-orange-dark);
    background: var(--adm-orange-dark);
    color: #fff;
    box-shadow: 0 6px 12px -2px rgba(79, 70, 229, 0.3);
}

.adm-btn-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--adm-red);
}

.adm-btn-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: var(--adm-green);
}

.adm-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.adm-input,
.adm-select,
.adm-textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--adm-text);
    font: inherit;
    font-size: 0.95rem;
    transition: all .2s ease;
}

.adm-input,
.adm-select {
    padding: 0 14px;
}

.adm-textarea {
    min-height: 100px;
    padding: 12px 14px;
    resize: vertical;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
    border-color: var(--adm-orange);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.adm-field {
    display: grid;
    gap: 6px;
}

.adm-field > span {
    color: var(--adm-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.adm-field > small,
.adm-form-help {
    color: var(--adm-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.adm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.adm-form-grid .full {
    grid-column: 1 / -1;
}

.adm-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--adm-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.adm-check input {
    accent-color: var(--adm-orange);
    width: 16px;
    height: 16px;
}

/* =========================================================
   CARDS / METRICS
========================================================= */

.adm-card {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--adm-shadow);
}

.adm-card-head {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
}

.adm-card-head h2 {
    margin: 0;
    color: var(--adm-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.adm-card-head p {
    margin: 4px 0 0;
    color: var(--adm-muted);
    font-size: 0.85rem;
}

.adm-card-body {
    padding: 20px;
}

.adm-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.adm-metric {
    --metric: var(--adm-orange);
    --metric-bg: rgba(79, 70, 229, 0.1);

    min-width: 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--adm-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adm-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.adm-metric > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--metric);
    background: var(--metric-bg);
    font-size: 1.25rem;
}

.adm-metric > div {
    min-width: 0;
}

.adm-metric small,
.adm-metric strong,
.adm-metric em {
    display: block;
}

.adm-metric small {
    color: var(--adm-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.adm-metric strong {
    margin-top: 4px;
    overflow: hidden;
    color: var(--adm-text);
    font-size: 1.5rem;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.adm-metric em {
    margin-top: 4px;
    overflow: hidden;
    color: var(--adm-muted);
    font-size: 0.75rem;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.adm-metric-blue { --metric: #3b82f6; --metric-bg: #eff6ff; }
.adm-metric-green { --metric: #10b981; --metric-bg: #ecfdf5; }
.adm-metric-red { --metric: #ef4444; --metric-bg: #fef2f2; }
.adm-metric-purple { --metric: #8b5cf6; --metric-bg: #f5f3ff; }
.adm-metric-amber { --metric: #f59e0b; --metric-bg: #fffbeb; }

/* =========================================================
   TOOLBAR
========================================================= */

.adm-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.adm-toolbar .grow {
    flex: 1 1 250px;
}

.adm-toolbar .adm-select {
    width: auto;
    min-width: 160px;
}

/* =========================================================
   TABLES
========================================================= */

.adm-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.adm-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.adm-table th {
    padding: 14px 20px;
    border-bottom: 1px solid var(--adm-border);
    background: #f8fafc;
    color: var(--adm-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.adm-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
    background: #fff;
    color: var(--adm-text);
    vertical-align: middle;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.adm-table tbody tr:nth-child(even) td {
    background: #fcfdfe;
}

.adm-table tbody tr:hover td {
    background: #f8fafc;
}

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

.adm-table strong {
    color: #1e293b;
    font-weight: 600;
}

.adm-table-sub {
    display: block;
    margin-top: 4px;
    color: var(--adm-muted);
    font-size: 0.8rem;
}

.adm-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-icon-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--adm-border);
    border-radius: 6px;
    background: #fff;
    color: var(--adm-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

.adm-product-cell,
.adm-person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: var(--adm-bg);
    color: var(--adm-muted);
}

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

/* =========================================================
   BADGES
========================================================= */

.adm-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.adm-badge-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: var(--adm-green);
}

.adm-badge-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: var(--adm-amber);
}

.adm-badge-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--adm-red);
}

.adm-badge-neutral {
    border-color: var(--adm-border);
    background: var(--adm-bg);
    color: var(--adm-muted);
}

/* =========================================================
   MODAL
========================================================= */

.adm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
}

.adm-modal {
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.adm-modal-small {
    max-width: 440px;
}

.adm-modal-large {
    max-width: 920px;
}

.adm-modal-xl {
    max-width: 1180px;
}

.adm-modal-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    border-bottom: 1px solid var(--adm-border);
}

.adm-modal-head h3 {
    margin: 0;
    color: var(--adm-text);
    font-size: 1.2rem;
    font-weight: 600;
}

.adm-modal-head button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--adm-bg);
    color: var(--adm-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.adm-modal-head button:hover {
    background: var(--adm-border);
    color: var(--adm-text);
}

.adm-modal-body {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 20px;
}

.adm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--adm-border);
    background: #f8fafc;
}

/* =========================================================
   LOADER / EMPTY / TOAST
========================================================= */

.adm-loader,
.adm-empty,
.adm-route-loading {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--adm-muted);
}

.adm-loader strong,
.adm-empty strong,
.adm-route-loading strong {
    color: var(--adm-text);
    font-size: 1rem;
    font-weight: 600;
}

.adm-empty > i {
    color: var(--adm-border);
    font-size: 32px;
}

.adm-empty > span {
    max-width: 400px;
    color: var(--adm-muted);
    font-size: 0.9rem;
    text-align: center;
}

.adm-spinner {
    width: 36px;
    height: 36px;
    display: inline-block;
    border: 3px solid #e0e7ff;
    border-top-color: var(--adm-orange);
    border-radius: 50%;
    animation: adm-spin .8s linear infinite;
}

.adm-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes adm-spin {
    to {
        transform: rotate(360deg);
    }
}

.adm-toast {
    position: fixed;
    z-index: 10050;
    right: 24px;
    bottom: 24px;
    max-width: 400px;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--adm-green);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.adm-toast.error {
    background: var(--adm-red);
}

.adm-toast.warning {
    background: var(--adm-amber);
}

/* =========================================================
   TABS / MINI LAYOUT
========================================================= */

.adm-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    border-radius: 8px;
    background: var(--adm-bg);
}

.adm-tabs button {
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--adm-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adm-tabs button.active {
    background: #fff;
    color: var(--adm-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.adm-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, .42fr);
    gap: 24px;
}

.adm-three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   CHARTS
========================================================= */

.adm-chart-scroll {
    overflow-x: auto;
}

.adm-chart {
    width: 100%;
    min-width: 620px;
    height: auto;
    display: block;
}

.adm-chart-grid {
    stroke: var(--adm-border);
    stroke-width: 1;
    stroke-dasharray: 4;
}

.adm-chart-axis {
    fill: var(--adm-muted);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
}

.adm-chart-sales {
    fill: none;
    stroke: var(--adm-orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.adm-chart-commission {
    fill: none;
    stroke: var(--adm-green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.adm-chart-area {
    fill: rgba(79, 70, 229, 0.1);
}

.adm-bars {
    display: grid;
    gap: 16px;
}

.adm-bar-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--adm-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.adm-bar-track {
    height: 8px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: var(--adm-bg);
}

.adm-bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--adm-orange);
}

/* =========================================================
   PRICE CONTROL
========================================================= */

.adm-price-builder {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.adm-price-summary {
    padding: 20px;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    background: #eef2ff;
}

.adm-price-summary h3 {
    margin: 0 0 12px;
    color: var(--adm-orange-dark);
    font-size: 1.1rem;
}

.adm-price-summary p {
    margin: 6px 0;
    color: #4338ca;
    font-size: 0.9rem;
    line-height: 1.5;
}

.adm-selected-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: var(--adm-bg);
    color: var(--adm-text);
    font-size: 0.95rem;
}

.adm-selected-strip strong {
    color: var(--adm-orange);
}

/* =========================================================
   LOGIN
========================================================= */

.adm-login-page {
    min-height: 100vh;
    color: var(--adm-text);
    background: radial-gradient(circle at 12% 10%, rgba(79, 70, 229, 0.1), transparent 30%), #f8fafc;
}

.adm-login-header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 80px);
    border-bottom: 1px solid var(--adm-border);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
}

.adm-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--adm-navy);
    text-decoration: none;
}

.adm-login-brand > div {
    display: flex;
    flex-direction: column;
}

.adm-login-brand strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.adm-login-brand small {
    color: var(--adm-muted);
    font-size: 0.75rem;
    letter-spacing: .1em;
    font-weight: 600;
}

.adm-login-header > a:last-child {
    color: var(--adm-muted);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.adm-login-main {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 80px;
    align-items: center;
    margin: 0 auto;
    padding: 60px 0;
}

.adm-login-copy > span {
    color: var(--adm-orange);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.adm-login-copy h1 {
    margin: 12px 0 16px;
    color: var(--adm-navy);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.adm-login-copy > p {
    max-width: 600px;
    color: var(--adm-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.adm-login-points {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.adm-login-points > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adm-login-points > div > i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--adm-orange);
    background: rgba(79, 70, 229, 0.1);
    font-size: 1.25rem;
}

.adm-login-points span {
    display: flex;
    flex-direction: column;
}

.adm-login-points strong {
    color: var(--adm-text);
    font-size: 1rem;
    font-weight: 600;
}

.adm-login-points small {
    margin-top: 4px;
    color: var(--adm-muted);
    font-size: 0.85rem;
}

.adm-login-card {
    padding: 40px;
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.1);
}

.adm-login-card-head > span {
    color: var(--adm-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.adm-login-card-head h2 {
    margin: 8px 0 8px;
    color: var(--adm-navy);
    font-size: 1.5rem;
    font-weight: 700;
}

.adm-login-card-head p {
    margin: 0 0 24px;
    color: var(--adm-muted);
    font-size: 0.95rem;
}

.adm-login-card form {
    display: grid;
    gap: 20px;
}

.adm-input-icon {
    position: relative;
}

.adm-input-icon > i:first-child {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--adm-muted);
    font-size: 1.1rem;
}

.adm-input-icon input {
    width: 100%;
    min-height: 48px;
    padding: 0 48px 0 44px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 1rem;
    color: var(--adm-text);
}

.adm-input-icon input:focus {
    border-color: var(--adm-orange);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.adm-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--adm-muted);
    cursor: pointer;
    font-size: 1rem;
}

.adm-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--adm-text);
    font-size: 0.9rem;
}

.adm-checkbox-row input {
    accent-color: var(--adm-orange);
    width: 16px;
    height: 16px;
}

.adm-login-submit {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--adm-orange);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.adm-login-submit:hover {
    background: var(--adm-orange-dark);
}

.adm-login-submit:disabled {
    opacity: .7;
}

.adm-alert-error {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: var(--adm-red);
    font-size: 0.95rem;
    font-weight: 500;
}

.adm-login-checking {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {
    .adm-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .adm-sidebar {
        transform: translateX(-102%);
        transition: transform .3s ease;
    }

    .adm-sidebar.open {
        transform: translateX(0);
    }

    .adm-main {
        width: 100%;
        margin-left: 0;
    }

    .adm-mobile-toggle {
        display: grid;
        place-items: center;
    }

    .adm-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        pointer-events: none;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: .3s ease;
    }

    .adm-mobile-overlay.open {
        pointer-events: auto;
        opacity: 1;
    }

    .adm-two-col,
    .adm-price-builder {
        grid-template-columns: 1fr;
    }

    .adm-login-main {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .adm-content {
        padding: 16px;
    }

    .adm-profile-copy {
        display: none;
    }

    .adm-profile-button {
        padding-right: 8px;
    }

    .adm-page-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .adm-page-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .adm-page-actions .adm-btn {
        flex: 1;
    }

    .adm-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .adm-metric {
        min-height: 90px;
        padding: 16px;
    }

    .adm-metric > span {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 1.1rem;
    }

    .adm-metric strong {
        font-size: 1.25rem;
    }

    .adm-form-grid {
        grid-template-columns: 1fr;
    }

    .adm-form-grid .full {
        grid-column: auto;
    }

    .adm-three-col {
        grid-template-columns: 1fr;
    }

    .adm-login-copy {
        display: none;
    }

    .adm-login-main {
        grid-template-columns: 1fr;
        width: min(440px, calc(100% - 32px));
    }

    .adm-login-card {
        padding: 32px;
    }

    .adm-login-header {
        padding: 0 20px;
    }

    .adm-toolbar .grow {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    .adm-topbar {
        min-height: 64px;
        padding: 0 16px;
    }

    .adm-topbar-left > div {
        display: none;
    }

    .adm-topbar-icon {
        width: 36px;
        height: 36px;
    }

    .adm-page-header h1 {
        font-size: 1.25rem;
    }

    .adm-metric {
        gap: 12px;
    }

    .adm-metric small {
        font-size: 0.75rem;
    }

    .adm-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .adm-card-body {
        padding: 16px;
    }

    .adm-table-wrap {
        overflow: visible;
        border: 0;
    }

    .adm-table {
        min-width: 0;
        display: block;
    }

    .adm-table thead {
        display: none;
    }

    .adm-table tbody {
        display: grid;
        gap: 16px;
    }

    .adm-table tr {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--adm-border);
        border-radius: 8px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .adm-table td,
    .adm-table tbody tr:nth-child(even) td,
    .adm-table tbody tr:hover td {
        min-height: 44px;
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--adm-border);
        background: #fff;
        font-size: 0.9rem;
    }

    .adm-table td:last-child {
        border-bottom: 0;
    }

    .adm-table td::before {
        content: attr(data-label);
        color: var(--adm-muted);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .adm-table-actions {
        flex-wrap: wrap;
    }

    .adm-modal-backdrop {
        padding: 12px;
    }

    .adm-modal {
        border-radius: 12px;
    }

    .adm-login-card-head h2 {
        font-size: 1.25rem;
    }
}