/* =============================================
   DESIGN TOKENS — MarathaMarg Admin
   ============================================= */
:root {
    --primary: #C8410B;
    --primary-d: #9E3308;
    --primary-l: #F9EDE6;
    --primary-ll: #FDF6F2;
    --accent: #1A3A5C;
    --accent-l: #EAF0F7;
    --success: #2D7A4F;
    --success-l: #E6F4EC;
    --warning: #B8860B;
    --warning-l: #FFF8E1;
    --danger: #C0392B;
    --danger-l: #FDECEA;
    --info: #0F6B9B;
    --info-l: #E3F2FD;
    --bg: #F5F4F0;
    --bg2: #EEECEA;
    --sidebar: #131722;
    --sidebar-h: #1E2435;
    --sidebar-a: #C8410B;
    --card: #FFFFFF;
    --border: #E8E6DF;
    --border-d: #D4D0C8;
    --txt: #1A1E2E;
    --txt2: #4A4840;
    --txt3: #7A7870;
    --txt4: #A8A6A0;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
    --font-display: 'Crimson Text', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --sidebar-w: 256px;
    --header-h: 60px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--txt);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    /* font-family: var(--font-display); */
    line-height: 1.25;
    color: var(--txt);
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* =============================================
   LAYOUT
   ============================================= */
#app {
    display: flex;
    min-height: 100vh;
}

.login-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.admin-wrap {
    display: flex;
    width: 100%;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width .2s ease;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 2px;
}

.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-family: var(--font-display); */
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-logo .logo-text {
    /* font-family: var(--font-display); */
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar-logo .logo-text span {
    display: block;
    /* font-family: var(--font-body); */
    font-size: 10px;
    color: rgba(255, 255, 255, .45);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-section {
    padding: 12px 12px 4px;
}

.sidebar-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .3);
    padding: 0 8px;
    margin-bottom: 4px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    transition: all .15s;
    position: relative;
    user-select: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.nav-item.active {
    background: rgba(200, 65, 11, .18);
    color: #fff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .75;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-item .badge-count {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
}

.nav-sub {
    padding-left: 38px;
}

.nav-sub .nav-item {
    font-size: 13px;
    padding: 7px 10px;
}

.nav-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    transition: all .15s;
    user-select: none;
}

.nav-parent:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.nav-parent.open {
    color: #fff;
}

.nav-parent .chevron {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform .2s;
    opacity: .5;
}

.nav-parent.open .chevron {
    transform: rotate(180deg);
    opacity: .8;
}

.nav-collapsible {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}

.nav-collapsible.open {
    max-height: 380px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.admin-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.admin-info {
    flex: 1;
    min-width: 0;
}

.admin-info .name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-info .role {
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
}

.logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .4);
    padding: 4px;
    border-radius: 4px;
    transition: color .15s;
    margin-bottom: 15px;
}

.logout-btn:hover {
    color: var(--primary);
}

/* MAIN CONTENT */
.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--header-h);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    /* font-family: var(--font-display); */
    font-size: 19px;
    font-weight: 600;
}

.topbar-breadcrumb {
    font-size: 12px;
    color: var(--txt3);
}

.topbar-breadcrumb span {
    color: var(--txt);
    font-weight: 500;
}

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

.icon-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt3);
    transition: all .15s;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg);
    color: var(--txt);
}

.icon-btn .dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--card);
}

.page-content {
    padding: 10px 10px 45px;
    flex: 1;
}

/* =============================================
   COMPONENTS
   ============================================= */

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 10px 10px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    /* font-family: var(--font-display); */
}

.card-subtitle {
    font-size: 12px;
    color: var(--txt3);
    margin-top: 1px;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-card.blue::before {
    background: var(--accent);
}

.kpi-card.orange::before {
    background: var(--primary);
}

.kpi-card.green::before {
    background: var(--success);
}

.kpi-card.red::before {
    background: var(--danger);
}

.kpi-card.yellow::before {
    background: var(--warning);
}

.kpi-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--txt3);
    font-weight: 600;
}

.kpi-value {
    font-size: 30px;
    /* font-family: var(--font-display); */
    font-weight: 700;
    line-height: 1.2;
    margin: 6px 0 4px;
}

.kpi-meta {
    font-size: 12px;
    color: var(--txt3);
}

.kpi-meta .up {
    color: var(--success);
}

.kpi-meta .dn {
    color: var(--danger);
}

.kpi-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .08;
}

.kpi-icon svg {
    width: 56px;
    height: 56px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid #f5f4f0;
}

table th {
    background: var(--bg) !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    font-weight: 700 !important;
    color: var(--txt3) !important;
    padding: 10px 14px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--border) !important;
    white-space: nowrap !important;
    /* border-radius: 6px 6px 0px 0px; */
}

table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--txt);
    vertical-align: middle;
}

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

table tr:hover td {
    background: var(--bg);
}

.table-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt3);
}

/* Badges & Status Pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.pill.active,
.pill.approved,
.pill.published,
.pill.live {
    background: var(--success-l);
    color: var(--success);
}

.pill.inactive,
.pill.suspended,
.pill.hidden {
    background: var(--danger-l);
    color: var(--danger);
}

.pill.pending {
    background: var(--warning-l);
    color: var(--warning);
}

.pill.rejected {
    background: var(--danger-l);
    color: var(--danger);
}

.pill.flagged {
    background: var(--primary-l);
    color: var(--primary);
}

.pill.info {
    background: var(--info-l);
    color: var(--info);
}

.pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: all .15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-d);
}

.btn-outline {
    background: transparent;
    color: var(--txt);
    border: 1px solid var(--border-d);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ll);
}

.btn-ghost {
    background: transparent;
    color: var(--txt2);
    padding: 6px 10px;
}

.btn-ghost:hover {
    background: var(--bg);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #a02420;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11.5px;
    border-radius: 4px;
}

.btn-icon {
    padding: 6px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--txt2);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-d);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    background: var(--card);
    color: var(--txt);
    transition: border-color .15s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 65, 11, .1);
}

.form-control::placeholder {
    color: var(--txt4);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%237A7870' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

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

.input-with-icon .form-control {
    padding-left: 36px;
}

.input-with-icon .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt4);
}

/* Search & Filters bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search-box input {
    padding-left: 34px;
}

.search-box .s-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt4);
}

.filter-select {
    padding: 9px 32px 10px 12px;
    border: 1px solid var(--border-d);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--card);
    color: var(--txt);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%237A7870' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
}

.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 13px;
    cursor: pointer;
    color: var(--txt2);
    transition: all .15s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-info {
    font-size: 12.5px;
    color: var(--txt3);
    margin-left: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--txt3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab:hover {
    color: var(--txt);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab .tab-count {
    font-size: 11px;
    background: var(--bg2);
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
}

.tab.active .tab-count {
    background: var(--primary-l);
    color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    pointer-events: all;
}



.modal-md {
    background: var(--card);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    transform: translateY(20px);
    transition: transform .2s;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 17px;
    /* font-family: var(--font-display); */
    font-weight: 600;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--txt3);
    font-size: 20px;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: color .15s;
}

.close-btn:hover {
    color: var(--txt);
}

/* Section heading */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-size: 15px;
    /* font-family: var(--font-display); */
    font-weight: 700;
}

.section-subtitle {
    font-size: 11px;
    color: var(--txt3);
    margin-top: 2px;
}

/* Avatar */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--primary-l);
    color: var(--primary);
    font-size: 13px;
}

/* Stars */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: #D4A017;
    font-size: 14px;
}

.star.empty {
    color: var(--border-d);
}

/* Toggle */
.toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-d);
    border-radius: 20px;
    transition: .2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.toggle input:checked+.toggle-slider {
    background: var(--success);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(16px);
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    border-left: 4px solid;
    margin-bottom: 16px;
}

.alert-info {
    background: var(--info-l);
    /* border-color: var(--info); */
    color: #0a4f73;
}

.alert-warning {
    background: var(--warning-l);
    /* border-color: var(--warning); */
    color: #7a5c09;
}

.alert-danger {
    background: var(--danger-l);
    border-color: var(--danger);
    color: #8b2519;
}

.alert-success {
    background: var(--success-l);
    border-color: var(--success);
    color: #1a5a36;
}

/* Progress bar */
.progress {
    height: 6px;
    background: var(--bg2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--txt4);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 17px;
    /* font-family: var(--font-display); */
    color: var(--txt2);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13.5px;
    color: var(--txt3);
}

/* Mini chart placeholder */
.chart-placeholder {
    background: linear-gradient(135deg, var(--primary-ll) 0%, var(--accent-l) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt3);
    font-size: 13px;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-wrap {
    background: var(--bg);
}

.login-left {
    width: 45%;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 65, 11, .25) 0%, transparent 70%);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 58, 92, .4) 0%, transparent 70%);
}

.login-brand {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    /* font-family: var(--font-display); */
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.login-brand h1 {
    font-size: 34px;
    color: #fff;
    /* font-family: var(--font-display); */
    font-weight: 700;
    line-height: 1.1;
}

.login-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    margin-top: 10px;
}

.login-badge-showcase {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.badge-item {
    text-align: center;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 22px;
}

.badge-name {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .5);
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    font-size: 26px;
    /* font-family: var(--font-display); */
    font-weight: 700;
    margin-bottom: 4px;
}

.login-card .sub {
    font-size: 14px;
    color: var(--txt3);
    margin-bottom: 32px;
}

.login-card .form-control {
    padding: 11px 14px;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 8px;
    justify-content: center;
    letter-spacing: .02em;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 12.5px;
    margin-top: -10px;
    margin-bottom: 16px;
}

/* =============================================
   DASHBOARD
   ============================================= */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background .15s;
}

.activity-item:hover {
    background: var(--bg);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 13.5px;
    font-weight: 500;
}

.activity-meta {
    font-size: 12px;
    color: var(--txt3);
    margin-top: 2px;
}

.activity-time {
    font-size: 11.5px;
    color: var(--txt4);
    flex-shrink: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.quick-action:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(200, 65, 11, .12);
    transform: translateY(-2px);
}

.quick-action .qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
}

.quick-action .qa-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--txt2);
}

.quick-action .qa-count {
    font-size: 11px;
    color: var(--txt4);
    margin-top: 2px;
}

.chart-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.simple-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    padding-top: 10px;
}

.bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: var(--primary);
    opacity: .75;
    transition: opacity .2s;
    min-height: 4px;
}

.bar:hover {
    opacity: 1;
}

.bar-label {
    font-size: 10px;
    color: var(--txt4);
}

.bar-alt {
    background: var(--accent);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* =============================================
   SPECIFIC PAGE STYLES
   ============================================= */

/* User detail */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    /* font-family: var(--font-display); */
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 22px;
    /* font-family: var(--font-display); */
}

.profile-info .meta {
    font-size: 13px;
    color: var(--txt);
    margin-top: 4px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .val {
    font-size: 20px;
    font-weight: 700;
    /* font-family: var(--font-display); */
    color: var(--primary);
}

.profile-stat .lbl {
    font-size: 11px;
    color: var(--txt3);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.profile-actions {
    margin-bottom: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Business detail */
.biz-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

.biz-image-preview {
    width: 100%;
    /* height: 180px; */
    border-radius: var(--radius);
    object-fit: cover;
    /* background: var(--bg2); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.detail-field {
    margin-bottom: 14px;
}

.detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #030303 !important;

    font-weight: 600 !important;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 13px;
    color: var(--txt);
    font-weight: 500;
}

/* Masters page */
.master-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.master-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border-d);
    color: var(--txt3);
    cursor: pointer;
    transition: all .15s;
}

.master-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.master-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Report detail */
.report-detail-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.report-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.report-section:last-child {
    border-bottom: none;
}

.report-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--txt4);
    font-weight: 700;
    margin-bottom: 12px;
}

.reporter-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}



.big-chart {
    grid-column: 1 / -1;
}

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

.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--txt3);
    flex-shrink: 0;
}

.top-rank.gold {
    background: #FFF8DC;
    color: #B8860B;
}

.top-rank.silver {
    background: #F0F0F0;
    color: #808080;
}

.top-rank.bronze {
    background: #FFF0E6;
    color: #CD7F32;
}

.top-bar-wrap {
    flex: 1;
}

.top-bar-label {
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.top-bar-val {
    font-size: 11.5px;
    color: var(--txt3);
}

/* Settings */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--txt2);
    transition: all .15s;
}

.settings-nav-item:hover {
    background: var(--bg);
}

.settings-nav-item.active {
    background: var(--primary-l);
    color: var(--primary);
    font-weight: 600;
}

.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

/* RBAC */
.perm-matrix {
    overflow-x: auto;
}

.perm-table th {
    text-align: center;
    min-width: 80px;
}

.perm-table td {
    text-align: center;
}

.perm-check {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Notification panel */
.notif-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background .15s;
}

.notif-item:hover {
    background: var(--bg);
}

.notif-item.unread {
    background: var(--primary-ll);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notif-text {
    flex: 1;
}

.notif-title {
    font-size: 13.5px;
    font-weight: 500;
}

.notif-meta {
    font-size: 12px;
    color: var(--txt3);
    margin-top: 2px;
}

.notif-time {
    font-size: 11.5px;
    color: var(--txt4);
    white-space: nowrap;
}

/* Audit log */
.log-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.log-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
    margin-top: 2px;
}

.log-type.create {
    background: var(--success-l);
    color: var(--success);
}

.log-type.update {
    background: var(--info-l);
    color: var(--info);
}

.log-type.delete {
    background: var(--danger-l);
    color: var(--danger);
}

.log-type.login {
    background: var(--accent-l);
    color: var(--accent);
}

.log-type.approve {
    background: var(--success-l);
    color: var(--success);
}

.log-type.reject {
    background: var(--warning-l);
    color: var(--warning);
}

.log-content {
    flex: 1;
}

.log-action {
    font-size: 13.5px;
    font-weight: 500;
}

.log-meta {
    font-size: 12px;
    color: var(--txt3);
    margin-top: 3px;
    display: flex;
    gap: 12px;
}

/* Bulk upload */
.upload-zone {
    border: 2px dashed var(--border-d);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-ll);
}

.upload-zone .uz-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.upload-zone h3 {
    font-size: 16px;
    /* font-family: var(--font-display); */
    margin-bottom: 6px;
}

.upload-zone p {
    font-size: 13px;
    color: var(--txt3);
}

/* CMS Banner */
.banner-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-l), var(--accent-l));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.banner-info {
    padding: 12px;
}

.banner-info h4 {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-meta {
    font-size: 12px;
    color: var(--txt3);
}

.banner-actions {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 6px;
}

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

/* Hidden/show */
.hidden {
    display: none !important;
}

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

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

    .dashboard-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    /* .sidebar .logo-text,
    .sidebar .nav-item span,
    .sidebar .admin-info,
    .sidebar-section-label,
    .sidebar-footer .logout-btn {
        display: none;
    } */

    .login-left {
        display: none;
    }

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

    .settings-layout {
        grid-template-columns: 1fr;
    }

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

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .biz-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1050;
    }

    .sidebar.open {
        left: 0;
    }
}

.business-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-icon {
    width: 36px;
    height: 36px;
    background: #f1f1f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: #dcecff;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 500;
}

.badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.badge-count {
    font-size: 13px;
    color: var(--txt3);
}

.admin-category-upload-box {
    background-color: #cfcfc945;
    border: 1px dashed #090909e3;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.admin-upload-input {
    opacity: 0;
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.admin-upload-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-form-label {
    color: #413f3d;
    font-weight: 600;
}

.admin-upload-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.admin-upload-text {
    font-size: 14px;
    font-weight: 500;
    color: #ff7900;
    cursor: pointer;
}

.admin-form-label-upload {
    margin-bottom: 0.2rem;
    font-weight: 400;
    font-size: 0.85rem;
}

.primary-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.primary-checkbox-wrapper .form-check-input {
    margin-top: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.primary-checkbox-wrapper .form-check-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
}

.sector-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: #e8f3ff;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 500;
}

.mobile-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
}

.slot-card {
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: 0.2s ease;
}

.slot-card.locked {
    background: var(--bg2);
    border: 2px solid var(--border-d);
    cursor: not-allowed;
}

.slot-card.editable {
    background: var(--primary-ll);
    border: 2px solid var(--primary-l);
    cursor: pointer;
}

.slot-card.editable:hover {
    transform: translateY(-2px);
}

.slot-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.slot-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--txt);
}

.slot-card.locked .slot-label {
    color: var(--txt4);
}

.slot-meta {
    font-size: 10px;
    color: var(--txt4);
    margin-top: 2px;
}

.config-section {
    margin-bottom: 20px;
}

.section-heading {
    font-size: 12px;
    font-weight: 600;
    color: var(--txt3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.delete-btn {
    color: var(--danger);
}

.add-btn {
    margin-top: 4px;
}

.password-input-wrapper {
    position: relative;
}

.password-input {
    padding-right: 45px;
    height: 48px;
    border-radius: 4px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
}

.password-toggle-btn:hover {
    color: #212529;
}

.footer-text {
    font-size: 12px !important;
}

.icon-upload-btn {
    background: #f8f9fa;
    border: 1px solid #cfcfcf;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s ease;
}

.icon-upload-btn:hover {
    background: #ececec;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    /* border-bottom: 1px solid #eee; */
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #000000;
    word-break: break-word;
}

/* Container */
.biz-image-preview {
    width: 100%;
    min-width: 450px;
}

/* Swiper */
.business-swiper {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
}

/* Images */
.business-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Buttons */
.business-swiper .swiper-button-prev,
.business-swiper .swiper-button-next {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.business-swiper .swiper-button-prev::after,
.business-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Pagination */
.business-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}

.business-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-tag {
    padding: 6px 12px;
    border: 1px solid #f5a623;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }

    .profile-avatar-lg {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .profile-info h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .profile-info .meta {
        font-size: 12px;
    }

    .profile-stats {
        width: 100%;
        justify-content: space-around;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .profile-stat .val {
        font-size: 18px;
    }

    .profile-stat .lbl {
        font-size: 10px;
    }

    .profile-actions {
        margin-left: 0;
        margin-bottom: 0;
        width: 100%;
        align-items: stretch;
        gap: 10px;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .analytics-grid {
        gap: 2px !important;
    }

    .kpi-grid {
        margin-bottom: 10px !important;
    }

    .chart {
        margin-bottom: 10px !important;
    }

    .kpi-grid {
        gap: 10px;
    }

    .mobile-home-grid {
        grid-template-columns: 1fr;
    }

    .cms-pages {
        grid-template-columns: 1fr;
    }

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

    .admin-card {
        display: none;
    }

    .topbar-right {
        display: none;
    }

    .login-left {
        display: none;
    }
}

.kpi-grid {
    margin-bottom: 24px;
}

.chart {
    margin-bottom: 24px;
}

.cms-pages {
    display: "grid";
    grid-template-columns: 1fr 1fr;
    gap: "16px",
}

.dashboard-grid {
    display: "grid";
    grid-template-columns: 2fr 1fr;
    gap: "20px";
    margin-bottom: "24px",
}

.login-left {
    width: "45%";
    background: "#131722";
    display: "flex";
    flex-direction: "column";
    align-items: "center";
    justify-content: "center";
    padding: "60px 48px";
    position: "relative";
    overflow: "hidden";
}