:root {
    --unq-ink: #241d52;
    --unq-muted: #77748f;
    --unq-primary: #5147c9;
    --unq-primary-soft: #eeedff;
    --unq-page: #f5f5ff;
    --unq-border: #ecebf5;
    --unq-green: #12855c;
}

body {
    background: var(--unq-page);
    color: var(--unq-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--unq-border);
    display: flex;
    gap: 1.5rem;
    height: 76px;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand-lockup {
    align-items: center;
    color: var(--unq-ink);
    display: flex;
    flex: 0 0 235px;
    font-size: 1.2rem;
    font-weight: 750;
    gap: .65rem;
    text-decoration: none;
}

.brand-lockup img {
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.top-search {
    background: #f5f5fc;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--unq-muted);
    max-width: 570px;
}

.top-search:focus {
    background: #fff;
    border-color: #d7d4fb;
    box-shadow: 0 0 0 .2rem rgba(81, 71, 201, .08);
}

.top-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #565273;
    display: inline-flex;
    font-size: 1.2rem;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 40px;
}

.notification-dot {
    background: #ed5555;
    border: 2px solid #fff;
    border-radius: 50%;
    height: 11px;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 11px;
}

.admin-user {
    align-items: center;
    display: flex;
    gap: .7rem;
    line-height: 1.25;
}

.admin-avatar {
    align-items: center;
    background: var(--unq-primary-soft);
    border-radius: 50%;
    color: var(--unq-primary);
    display: inline-flex;
    font-size: .85rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}

.admin-sidebar {
    background: rgba(255, 255, 255, .83);
    border-right: 1px solid var(--unq-border);
    padding: 1.25rem .85rem;
}

.sidebar-label {
    color: #a09db3;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 1rem .85rem .6rem;
    text-transform: uppercase;
}

.sidebar-link {
    align-items: center;
    border-radius: .7rem;
    color: #57546e;
    display: flex;
    font-size: .92rem;
    gap: .75rem;
    margin: .12rem 0;
    padding: .72rem .85rem;
    text-decoration: none;
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 1.25rem;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: var(--unq-primary-soft);
    color: var(--unq-primary);
}

.sidebar-link.disabled {
    color: #aaa8b8;
    cursor: default;
}

.admin-main {
    margin: 0 auto;
    max-width: 1600px;
    padding: 2rem clamp(1.25rem, 3vw, 3rem) 3rem;
    width: 100%;
}

.eyebrow {
    color: #85819f;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.page-title {
    color: var(--unq-ink);
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.page-subtitle,
.muted-copy {
    color: var(--unq-muted);
}

.surface-card {
    background: #fff;
    border: 1px solid var(--unq-border);
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(43, 36, 94, .035);
}

.stat-card {
    min-height: 142px;
    padding: 1.25rem;
}

.stat-icon {
    align-items: center;
    background: var(--unq-primary-soft);
    border-radius: .8rem;
    color: var(--unq-primary);
    display: inline-flex;
    font-size: 1.3rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.stat-icon.green {
    background: #e4f6ef;
    color: #159469;
}

.stat-icon.orange {
    background: #fff1df;
    color: #e18b18;
}

.stat-label {
    color: var(--unq-muted);
    font-size: .85rem;
    font-weight: 600;
}

.stat-value {
    color: var(--unq-ink);
    font-size: 1.75rem;
    font-weight: 750;
    line-height: 1.15;
}

.section-card {
    padding: 1.35rem;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.section-heading h2 {
    color: var(--unq-ink);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0;
}

.status-pill {
    background: #e4f6ef;
    border-radius: 999px;
    color: var(--unq-green);
    display: inline-flex;
    font-size: .76rem;
    font-weight: 700;
    padding: .35rem .7rem;
}

.btn-brand {
    --bs-btn-bg: var(--unq-primary);
    --bs-btn-border-color: var(--unq-primary);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #4036ae;
    --bs-btn-hover-border-color: #4036ae;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #382f9b;
    --bs-btn-active-border-color: #382f9b;
    --bs-btn-border-radius: .7rem;
    font-weight: 650;
}

.table-clean > :not(caption) > * > * {
    border-bottom-color: var(--unq-border);
    padding: .85rem .65rem;
}

.table-clean thead th {
    color: #8d8aa1;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-card {
    max-width: 560px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
}

.form-label {
    color: #4c4866;
    font-size: .88rem;
    font-weight: 650;
}

.form-control {
    border-color: #e5e3ef;
    border-radius: .7rem;
    min-height: 46px;
}

.form-control:focus {
    border-color: #aaa4ef;
    box-shadow: 0 0 0 .2rem rgba(81, 71, 201, .11);
}

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 78px minmax(0, 1fr); }
    .admin-sidebar { padding-inline: .55rem; }
    .sidebar-link { justify-content: center; padding-inline: .5rem; }
    .sidebar-link span, .sidebar-label { display: none; }
    .sidebar-link i { text-align: center; }
    .brand-lockup { flex-basis: 60px; }
    .brand-lockup span { display: none; }
}

@media (max-width: 600px) {
    .admin-topbar { height: 64px; padding-inline: .85rem; }
    .admin-shell { display: block; min-height: calc(100vh - 64px); }
    .admin-sidebar { border-bottom: 1px solid var(--unq-border); border-right: 0; padding: .45rem; }
    .admin-sidebar nav { display: flex; overflow-x: auto; }
    .sidebar-link { flex: 0 0 auto; }
    .admin-main { padding: 1.35rem .9rem 2rem; }
    .top-search, .top-actions .icon-button { display: none; }
}
