/* ==========================================================================
   Inaaga Admin Shell — Taxido-style dark sidebar + orange accent
   ========================================================================== */

:root {
    --sidebar-width: 260px;
    --header-height: 56px;
    --footer-height: 42px;
    --inaaga-primary: #D4AF37;
    --inaaga-primary-hover: #B8962E;
    --sidebar-bg: #121212;
    --sidebar-text: #a0a0a0;
    --sidebar-active-bg: #D4AF37;
    --sidebar-active-text: #1a1a1a;
    --sidebar-section-color: #666;
    --header-bg: #f8f8f8;
    --body-bg: #f5f5f5;
    --card-bg: #ffffff;
    --card-border: #eaeaea;
    --text-primary: #222;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    --green-growth: #28a745;
    --red-danger: #dc3545;
    --orange-accent: #FF9800;
    --icon-orange-bg: rgba(255, 152, 0, 0.15);
    --icon-gray-bg: #f0f0f0;
}

* { box-sizing: border-box; }

body.admin-body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    font-size: 14px;
}

/* ---- Page wrapper ---- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Top header bar ---- */
.admin-header {
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header__quicklinks {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff8e1;
    border: 1px solid #ffcc80;
    color: #e65100;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.admin-header__right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-header__icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-header__icon-btn:hover {
    background: #eaeaea;
}

.admin-header__lang {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-header__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 0.15rem 0.35rem;
    transition: background 0.15s;
}

.admin-header__user:hover {
    background: #eaeaea;
}

.admin-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--inaaga-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-header__user-info {
    line-height: 1.2;
}

.admin-header__user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-header__user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.admin-header__year-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ---- Body wrapper ---- */
.page-body-wrapper {
    display: flex;
    flex: 1;
}

/* ---- Sidebar ---- */
.page-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    flex-shrink: 0;
    transition: margin 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

.page-sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

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

.page-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.sidebar-top {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #222;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.sidebar-logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--inaaga-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-search {
    padding: 0.75rem 1rem;
}

.sidebar-search__input {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    color: #ccc;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s;
}

.sidebar-search__input:focus {
    border-color: #555;
}

.sidebar-search__input::placeholder {
    color: #666;
}

.sidebar-search-wrap {
    position: relative;
}

.sidebar-search-wrap i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 0.85rem;
    pointer-events: none;
}

/* ---- Sidebar menu ---- */
.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar-menu a .sidebar-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: #555;
    transition: transform 0.2s;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.sidebar-menu li.active > a {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    margin-right: 0.75rem;
}

.sidebar-menu li.active > a i:first-child {
    color: var(--sidebar-active-text);
}

.sidebar-menu li.active > a .sidebar-chevron {
    color: var(--sidebar-active-text);
}

.sidebar-menu li.disabled a {
    opacity: 0.35;
    pointer-events: none;
}

.sidebar-section {
    padding: 1rem 1.25rem 0.35rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-section-color);
    font-weight: 600;
}

/* Sidebar submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.sidebar-submenu.open {
    max-height: 500px;
}

.sidebar-submenu a {
    padding-left: 2.75rem;
    font-size: 0.82rem;
    color: #888;
}

.sidebar-submenu a:hover {
    color: #ccc;
}

.sidebar-submenu li.active a {
    color: var(--sidebar-active-text);
    font-weight: 600;
    background: transparent;
}

.sidebar-menu-badge {
    margin-left: auto;
    background: var(--inaaga-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

/* ---- Main content ---- */
.page-body {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
    min-width: 0;
}

.container-fluid {
    max-width: 1440px;
}

/* ---- Dashboard greeting ---- */
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-greeting {
    margin-bottom: 0;
}

.dashboard-greeting h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-greeting p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-sort label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dashboard-sort__select,
.dashboard-sort__date {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    background: #fff;
}

.dashboard-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
    color: var(--text-primary);
}

/* ---- Metric / stat cards ---- */
.row-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.row-cards--kpi {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .row-cards--kpi { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .row-cards--kpi { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .row-cards--kpi { grid-template-columns: 1fr; }
}

.row-cards--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid var(--card-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card--link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-card--link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.stat-card__body {
    flex: 1;
}

.stat-card__value {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-card h3 {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card__trend {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-card__trend--up { color: var(--green-growth); }
.stat-card__trend--down { color: var(--red-danger); }

.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.stat-card__icon--orange { background: var(--icon-orange-bg); color: var(--orange-accent); }
.stat-card__icon--gray { background: var(--icon-gray-bg); color: #6c757d; }
.stat-card__icon--green { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.stat-card__icon--blue { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.stat-card__icon--primary { background: var(--icon-orange-bg); color: var(--orange-accent); }
.stat-card__icon--live { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.stat-card__icon--warning { background: rgba(255, 193, 7, 0.15); color: #d39e00; }
.stat-card__icon--tertiary { background: var(--icon-gray-bg); color: #6c757d; }
.stat-card__icon--success { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.stat-card__icon--info { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.stat-card__icon--light { background: #f5f5f5; color: #555; }

/* ---- Content box ---- */
.contentbox {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.contentbox__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contentbox__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.contentbox__header a {
    font-size: 0.85rem;
    color: var(--inaaga-primary);
    text-decoration: none;
}

.contentbox__header a:hover {
    text-decoration: underline;
}

/* ---- Dashboard grid ---- */
.dashboard-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid--status { grid-template-columns: 1.4fr 1fr; }
}

/* ---- Tables ---- */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fafafa;
}

.data-table tr:hover td {
    background: #fafafa;
}

.data-table .row-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--inaaga-primary);
}

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

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

.toggle-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 20px;
    transition: 0.2s;
}

.toggle-switch__slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-switch__slider {
    background: var(--inaaga-primary);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
    transform: translateX(18px);
}

/* Action icon buttons */
.action-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.action-icon-btn:hover {
    background: #f5f5f5;
}

.action-icon-btn--danger {
    color: var(--red-danger);
}

.action-icon-btn--danger:hover {
    background: #fff5f5;
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.badge--success { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.badge--gold { background: rgba(255, 152, 0, 0.15); color: #e65100; }
.badge--warning { background: rgba(255, 193, 7, 0.15); color: #d39e00; }
.badge--danger { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.badge--info { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.badge--muted { background: rgba(108, 117, 125, 0.12); color: #6c757d; }

/* ---- Status grid / tiles ---- */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}

.status-tile {
    display: block;
    padding: 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.status-tile:hover { border-color: var(--inaaga-primary); }
.status-tile__label { display: block; font-size: 0.8rem; color: var(--text-muted); }
.status-tile__count { display: block; font-size: 1.35rem; margin: 0.25rem 0; }
.status-tile__link { font-size: 0.75rem; color: var(--inaaga-primary); }

.status-grid--rides {
    margin: 1rem 0 1.25rem;
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
    .status-grid--rides { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .status-grid--rides { grid-template-columns: repeat(2, 1fr); }
}

.status-tile__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--icon-orange-bg);
    color: var(--inaaga-primary);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.dashboard-grid--charts {
    margin-top: 0.5rem;
}

.contentbox--chart-wide {
    margin-top: 1rem;
}

.chart-donut-wrap {
    position: relative;
    max-width: 280px;
    margin: 0 auto 1rem;
}

.chart-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.chart-donut-center span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-donut-center strong {
    font-size: 1.35rem;
    font-weight: 700;
}

.chart-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
}

.chart-legend__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.dashboard-tabs__btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
}

.dashboard-tabs__btn.is-active {
    background: rgba(212, 175, 55, 0.15);
    color: #8a6d12;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-cell__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--icon-orange-bg);
    color: var(--inaaga-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-cell__name {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
}

.user-cell__email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-cell-link {
    text-decoration: none;
    color: inherit;
}

.badge-id {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #fff8e1;
    color: #8a6d12;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
}

.badge-id:hover {
    background: #ffecb3;
}

.rating-stars {
    color: #f0ad4e;
    font-size: 0.9rem;
}

.rating-stars .ri-star-line {
    color: #ddd;
}

.data-table--dashboard td {
    vertical-align: middle;
}

.verification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.verification-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.verification-list__item a {
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.hidden {
    display: none !important;
}

/* ---- Chart bars ---- */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 160px;
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.chart-bars__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.chart-bars__bar {
    width: 100%;
    max-width: 24px;
    background: var(--inaaga-primary);
    border-radius: 4px 4px 0 0;
    margin-top: auto;
}

.chart-bars__label {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.chart-bars__caption {
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
}

/* ---- Rank list ---- */
.rank-list { list-style: none; margin: 0; padding: 0; }

.rank-list__item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.rank-list__item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.rank-list__item a:hover { color: var(--inaaga-primary); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

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

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

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: var(--text-primary);
}

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

.btn-outline-orange {
    background: #fff;
    border: 1px solid var(--inaaga-primary);
    color: var(--inaaga-primary);
}

.btn-outline-orange:hover {
    background: var(--inaaga-primary);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-block { width: 100%; padding: 0.75rem; }

.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ---- Filter pills / tabs ---- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-secondary);
}

.filter-pill--active {
    color: var(--inaaga-primary);
    font-weight: 600;
    background: transparent;
    border-bottom: 2px solid var(--inaaga-primary);
}

.filter-pill__count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.filter-pill__sep {
    color: #ddd;
    margin: 0 0.15rem;
}

/* ---- List toolbar ---- */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1rem;
}

.list-toolbar__search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 0.65rem;
    background: #fff;
}

.list-toolbar__search input {
    border: none;
    flex: 1;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    outline: none;
}

.list-toolbar__dates input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
}

/* ---- Page header ---- */
.admin-page-header { margin-bottom: 1.25rem; }
.admin-page-header__title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.admin-page-header__subtitle { margin: 0.35rem 0 0; color: var(--text-muted); font-size: 0.875rem; }

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

.admin-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.admin-breadcrumbs a { color: var(--inaaga-primary); text-decoration: none; }

/* ---- Links & text helpers ---- */
.link-primary { color: var(--inaaga-primary); font-weight: 500; text-decoration: none; }
.link-primary:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--green-growth); }
.text-danger { color: var(--red-danger); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.font-medium { font-weight: 500; }
.d-inline { display: inline; }
.mb-3 { margin-bottom: 0.75rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.rounded { border-radius: 6px; }
.border { border: 1px solid #ddd; }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* ---- Pagination ---- */
.pagination-wrap { margin-top: 1rem; }

/* ---- Detail page helpers ---- */
.detail-grid { display: grid; gap: 1rem; }
@media (min-width: 992px) { .detail-grid { grid-template-columns: 1fr 1fr; } }

.detail-list { margin: 0.75rem 0 0; }
.detail-list > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f0f0f0;
}

.detail-list dt { color: var(--text-muted); font-weight: 500; }
.detail-list dd { margin: 0; }
.detail-subtitle { font-size: 0.85rem; margin: 1rem 0 0.5rem; }
.detail-lines { margin: 0; padding-left: 1.25rem; font-size: 0.85rem; }

/* ---- Driver document review ---- */
.document-review-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1rem;
    align-items: start;
}

.document-review-preview,
.document-review-card {
    margin: 0;
}

.document-review-preview__header,
.document-review-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-review-preview__eyebrow {
    margin: 0 0 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-review-preview h2,
.document-review-card h3 {
    margin: 0;
    color: var(--text-primary);
}

.document-review-preview h2 {
    font-size: 1.2rem;
}

.document-review-card h3 {
    font-size: 1rem;
}

.document-review-preview__frame {
    display: grid;
    place-items: center;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid #ece4d3;
    border-radius: 10px;
    background:
        linear-gradient(45deg, rgba(190, 146, 61, 0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(190, 146, 61, 0.06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(190, 146, 61, 0.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(190, 146, 61, 0.06) 75%),
        #fbfaf7;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.document-review-preview__frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 760px;
    object-fit: contain;
}

.document-review-preview__pdf {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 0;
    background: #fff;
}

.document-review-preview__empty {
    display: grid;
    place-items: center;
    gap: 0.4rem;
    max-width: 320px;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
}

.document-review-preview__empty i {
    color: var(--inaaga-primary);
    font-size: 2.5rem;
}

.document-review-preview__empty strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.document-review-sidebar {
    display: grid;
    gap: 1rem;
}

.document-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.document-review-actions form {
    margin: 0;
}

.document-review-reject-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.5rem;
    align-items: end;
    width: 100%;
}

.document-review-reject-form label {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.document-review-meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.document-review-meta > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.document-review-meta > div:last-child {
    border-bottom: 0;
}

.document-review-meta dt {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.document-review-meta dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.document-review-meta__note {
    grid-template-columns: 1fr !important;
}

.document-review-muted {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 1100px) {
    .document-review-page {
        grid-template-columns: 1fr;
    }

    .document-review-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .document-review-preview__header,
    .document-review-card__header {
        display: grid;
    }

    .document-review-preview__frame {
        min-height: 360px;
    }

    .document-review-preview__pdf {
        min-height: 520px;
    }

    .document-review-sidebar {
        grid-template-columns: 1fr;
    }

    .document-review-reject-form,
    .document-review-meta > div {
        grid-template-columns: 1fr;
    }
}

/* ---- Driver profile documents tab ---- */
.driver-documents-panel {
    display: grid;
    gap: 1rem;
}

.driver-documents-vehicle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin: 0;
}

.driver-documents-vehicle__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--inaaga-primary);
    background: rgba(212, 175, 55, 0.12);
}

.driver-documents-vehicle__icon i {
    font-size: 1.45rem;
}

.driver-documents-vehicle__body h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.driver-documents-vehicle__body p:last-child {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.driver-documents-vehicle__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.driver-documents-eyebrow {
    margin: 0 0 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.driver-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.driver-document-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin: 0;
}

.driver-document-card__preview {
    display: grid;
    place-items: center;
    width: 96px;
    min-height: 120px;
    overflow: hidden;
    border: 1px solid #ece4d3;
    border-radius: 10px;
    color: var(--inaaga-primary);
    background: #fbfaf7;
}

.driver-document-card__preview img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.driver-document-card__preview i {
    font-size: 2rem;
}

.driver-document-card__body {
    min-width: 0;
}

.driver-document-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.driver-document-card__header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.driver-document-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.9rem 0 0;
}

.driver-document-card__meta div {
    padding: 0.65rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fcfcfc;
}

.driver-document-card__meta dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.driver-document-card__meta dd {
    margin: 0.2rem 0 0;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.driver-document-card__reason {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.65rem;
    border-left: 3px solid var(--red-danger);
    border-radius: 6px;
    color: var(--red-danger);
    background: rgba(220, 53, 69, 0.08);
    font-size: 0.82rem;
}

.driver-document-card__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.driver-document-card__actions form {
    margin: 0;
}

.driver-document-card__reject {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.driver-document-empty {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 220px;
    color: var(--text-muted);
    text-align: center;
}

.driver-document-empty i {
    color: var(--inaaga-primary);
    font-size: 2.5rem;
}

.driver-document-empty strong {
    color: var(--text-primary);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .driver-documents-vehicle {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .driver-documents-vehicle__status {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .driver-documents-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .driver-document-grid {
        grid-template-columns: 1fr;
    }

    .driver-document-card {
        grid-template-columns: 1fr;
    }

    .driver-document-card__preview {
        width: 100%;
        min-height: 180px;
    }

    .driver-document-card__meta,
    .driver-document-card__reject {
        grid-template-columns: 1fr;
    }
}

/* ---- Driver profile vehicle tab ---- */
.driver-vehicle-review {
    display: grid;
    gap: 1rem;
}

.driver-vehicle-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin: 0;
}

.driver-vehicle-hero__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    color: var(--inaaga-primary);
    background: rgba(212, 175, 55, 0.12);
}

.driver-vehicle-hero__icon i {
    font-size: 1.8rem;
}

.driver-vehicle-hero__body h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.driver-vehicle-hero__body p {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.driver-vehicle-hero__status {
    display: flex;
    justify-content: flex-end;
}

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

.driver-vehicle-review__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1rem;
    align-items: start;
}

.driver-vehicle-card {
    margin: 0;
}

.driver-vehicle-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.driver-vehicle-card__header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.driver-vehicle-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.driver-vehicle-meta > div {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fcfcfc;
}

.driver-vehicle-meta dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.driver-vehicle-meta dd {
    margin: 0.25rem 0 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.driver-vehicle-reason {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-left: 3px solid var(--red-danger);
    border-radius: 6px;
    color: var(--red-danger);
    background: rgba(220, 53, 69, 0.08);
    font-size: 0.84rem;
}

.driver-vehicle-actions {
    display: grid;
    gap: 0.75rem;
}

.driver-vehicle-actions form {
    margin: 0;
}

.driver-vehicle-reject-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.5rem;
    align-items: end;
}

.driver-vehicle-reject-form label {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.driver-vehicle-empty {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 260px;
    color: var(--text-muted);
    text-align: center;
}

.driver-vehicle-empty i {
    color: var(--inaaga-primary);
    font-size: 2.75rem;
}

.driver-vehicle-empty strong {
    color: var(--text-primary);
    font-size: 1rem;
}

@media (max-width: 1000px) {
    .driver-vehicle-review__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .driver-vehicle-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .driver-vehicle-hero__status {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .driver-vehicle-specs,
    .driver-vehicle-meta,
    .driver-vehicle-reject-form {
        grid-template-columns: 1fr;
    }
}

/* ---- Driver profile main tab ---- */
.driver-profile-page {
    display: grid;
    gap: 1rem;
}

.driver-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
}

.driver-profile-hero__photo {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.22);
    border-radius: 24px;
    background: var(--inaaga-primary);
    color: #1a1a1a;
    font-size: 2.25rem;
    font-weight: 900;
}

.driver-profile-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-profile-hero__body h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.45rem;
}

.driver-profile-hero__body p {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.driver-profile-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.driver-profile-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    color: var(--text-muted);
    background: #f4f4f4;
    font-size: 0.75rem;
    font-weight: 700;
}

.driver-profile-status-chip i {
    font-size: 0.58rem;
}

.driver-profile-status-chip.is-online {
    color: var(--green-growth);
    background: rgba(40, 167, 69, 0.12);
}

.driver-profile-status-chip.is-ride {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
}

.driver-profile-hero__score {
    display: grid;
    gap: 0.15rem;
    min-width: 112px;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fcfcfc;
    text-align: center;
}

.driver-profile-hero__score span,
.driver-profile-hero__score small {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.driver-profile-hero__score strong {
    color: var(--text-primary);
    font-size: 1.65rem;
    line-height: 1;
}

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

.driver-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.driver-profile-card {
    margin: 0;
}

.driver-profile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.driver-profile-card__header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.driver-profile-service-form {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.driver-profile-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.driver-profile-service-item {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fcfcfc;
}

.driver-profile-muted {
    margin: 0.8rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.driver-profile-readiness {
    display: grid;
    gap: 0.65rem;
}

.driver-profile-readiness > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fcfcfc;
    color: var(--text-muted);
}

.driver-profile-readiness i {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.driver-profile-readiness span {
    color: var(--text-primary);
    font-weight: 700;
}

.driver-profile-readiness strong {
    font-size: 0.82rem;
}

.driver-profile-readiness > div.is-complete {
    border-color: #abecc4;
    background: #f1fdf6;
}

.driver-profile-readiness > div.is-complete i,
.driver-profile-readiness > div.is-complete strong {
    color: var(--green-growth);
}

.driver-profile-map-card {
    grid-column: 1 / -1;
}

.driver-profile-map {
    overflow: hidden;
    height: 360px;
    border: 1px solid #ece4d3;
    border-radius: 12px;
    background: #fbfaf7;
}

.driver-profile-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.driver-profile-location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.driver-profile-map-empty {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 260px;
    border: 1px dashed #e6ddc9;
    border-radius: 12px;
    color: var(--text-muted);
    background: #fbfaf7;
    text-align: center;
}

.driver-profile-map-empty i {
    color: var(--inaaga-primary);
    font-size: 2.5rem;
}

.driver-profile-map-empty strong {
    color: var(--text-primary);
}

@media (max-width: 1000px) {
    .driver-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .driver-profile-hero {
        grid-template-columns: 1fr;
    }

    .driver-profile-hero__photo {
        width: 84px;
        height: 84px;
    }

    .driver-profile-hero__score {
        text-align: left;
    }

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

    .driver-profile-map {
        height: 300px;
    }
}

/* ---- Tabs ---- */
.detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.25rem;
}

.detail-tabs__item {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px 8px 0 0;
}

.detail-tabs__item--active {
    color: var(--inaaga-primary);
    font-weight: 600;
    background: #fff;
    border: 1px solid #eaeaea;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}

.detail-tabs__badge {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

/* ---- Chat page ---- */
.chat-page {
    margin: 0;
}

.chat-page__layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) 1fr;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - 4rem);
    padding: 0;
    overflow: hidden;
}

.chat-sidebar {
    border-right: 1px solid var(--card-border);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-sidebar__title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.chat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.chat-tabs__btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.chat-tabs__btn.is-active {
    color: #8a6d12;
    border-bottom-color: var(--inaaga-primary);
}

.chat-search {
    position: relative;
    margin-bottom: 1rem;
}

.chat-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chat-search__input {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    font-size: 0.85rem;
    background: #f7f7f7;
    outline: none;
}

.chat-search__input:focus {
    border-color: var(--inaaga-primary);
    background: #fff;
}

.chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.chat-list__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.12s;
}

.chat-list__item:hover {
    background: #fafafa;
}

.chat-list__item.is-active {
    background: rgba(212, 175, 55, 0.12);
}

.chat-list__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--icon-orange-bg);
    color: var(--inaaga-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-list__body {
    min-width: 0;
    flex: 1;
}

.chat-list__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.chat-list__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-list__time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.chat-list__meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.chat-list__role {
    text-transform: capitalize;
    font-weight: 600;
    color: #8a6d12;
}

.chat-list__preview {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list__empty {
    padding: 2rem 0.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.chat-sidebar__pagination {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fafafa;
}

.chat-panel__header {
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0 10px 0 0;
}

.chat-panel__header-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.chat-panel__avatars {
    display: flex;
}

.chat-panel__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--icon-orange-bg);
    color: var(--inaaga-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #fff;
}

.chat-panel__avatar--driver {
    margin-left: -10px;
    background: #e8f4ff;
    color: #0d6efd;
}

.chat-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.chat-panel__sep {
    color: var(--text-muted);
    font-weight: 400;
}

.chat-panel__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-panel__note {
    margin: 0;
    font-size: 0.75rem;
}

.chat-panel__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.75rem;
    padding: 2rem;
}

.chat-panel__empty i {
    font-size: 3rem;
    opacity: 0.35;
}

.chat-thread {
    max-height: 520px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-thread--panel {
    flex: 1;
    max-height: none;
    padding: 1.25rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.chat-bubble--staff { align-self: flex-end; background: var(--icon-orange-bg); }
.chat-bubble--user { align-self: flex-start; background: #fff; border: 1px solid #eee; }
.chat-bubble__meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.25rem; }

/* ---- Driver map (list + live map) ---- */
.driver-map-page {
    padding: 0;
    overflow: hidden;
}

.driver-map-page__layout {
    display: flex;
    min-height: calc(100vh - var(--admin-header-height, 64px) - 48px);
}

.driver-map-panel--list {
    width: min(100%, 380px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--card-border, #e5e7eb);
    background: #fff;
    max-height: calc(100vh - var(--admin-header-height, 64px) - 48px);
}

.driver-map-panel--map {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #e9ecef;
}

.driver-map-panel__head {
    padding: 1rem 1rem 0.5rem;
}

.driver-map-panel__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.driver-map-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem 0.75rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #f8fafc;
}

.driver-map-search__input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
}

.driver-map-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding: 0 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.driver-map-tabs__btn {
    border: none;
    background: transparent;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.driver-map-tabs__btn.is-active {
    color: #92700c;
    border-bottom-color: var(--inaaga-primary, #d4af37);
}

.driver-map-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
}

.driver-map-list__empty {
    margin: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.driver-map-list__empty.hidden {
    display: none;
}

.driver-map-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.65rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.driver-map-card.is-selected {
    border-color: var(--inaaga-primary, #d4af37);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.driver-map-card__main {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem;
}

.driver-map-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

.driver-map-card__body {
    flex: 1;
    min-width: 0;
}

.driver-map-card__name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.driver-map-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.driver-map-card__rating .ri-star-fill {
    color: var(--inaaga-primary, #d4af37);
}

.driver-map-card__locate {
    margin-top: 0.15rem;
}

.driver-map-card__locate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.driver-map-card__expand {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.driver-map-card__details {
    padding: 0 0.75rem 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.driver-map-card__details[hidden] {
    display: none !important;
}

.driver-map-card__meta {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    display: grid;
    gap: 0.35rem;
}

.driver-map-card__meta div {
    display: flex;
    gap: 0.5rem;
}

.driver-map-card__meta dt {
    font-weight: 600;
    color: #64748b;
    min-width: 4.5rem;
}

.driver-map-card__meta dd {
    margin: 0;
    color: #334155;
}

.driver-map-card__profile-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--inaaga-primary, #d4af37);
    text-decoration: none;
}

.driver-map-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 420px;
}

.driver-map-canvas-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    pointer-events: none;
}

.driver-map-canvas-controls > * {
    pointer-events: auto;
}

.driver-map-vehicle-filter__select {
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fff;
    min-width: 9rem;
}

.driver-map-canvas {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - var(--admin-header-height, 64px) - 48px);
}

.driver-map-canvas__hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #64748b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.driver-map-panel__notice {
    padding: 1.5rem;
    font-size: 0.9rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .driver-map-page__layout {
        flex-direction: column;
    }

    .driver-map-panel--list {
        width: 100%;
        max-height: 45vh;
        border-right: none;
        border-bottom: 1px solid var(--card-border, #e5e7eb);
    }

    .driver-map-canvas {
        min-height: 50vh;
    }
}

/* ---- Zone add / edit form ---- */
.zone-form-page {
    padding: 1.25rem 1.5rem;
}

.zone-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.25rem;
    align-items: start;
}

.zone-form-main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-form-row--map .admin-form-row__field {
    max-width: none;
}

.zone-map-editor__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.zone-map-editor__canvas {
    width: 100%;
    height: min(420px, 50vh);
    min-height: 280px;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}

.zone-form-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1rem 0.5rem;
    margin: 1rem 0;
}

.zone-form-fieldset legend {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 0.35rem;
}

.zone-form-fieldset__enable {
    margin: 0.5rem 0 0.75rem;
}

.zone-form-aside {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.zone-form-aside__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.zone-form-aside__list {
    margin: 0.75rem 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.zone-form-aside__list li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.zone-form-aside__list i {
    color: var(--inaaga-primary, #d4af37);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

@media (max-width: 1024px) {
    .zone-form-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Legacy full-width map (unused) ---- */
.map-page {
    padding: 1.25rem 1.5rem;
}

.map-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.map-page__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.map-page__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    font-weight: 600;
}

.map-page__refresh {
    font-size: 0.75rem;
    font-weight: 500;
}

.map-page__notice {
    border-left: 4px solid var(--inaaga-primary);
    background: #fffdf5;
    padding: 0.85rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.map-page__notice--warning {
    border-left-color: #d39e00;
    background: #fff8e1;
}

.map-page__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.map-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.map-legend__dot--online { background: #10b981; }
.map-legend__dot--ride { background: #0ea5e9; }
.map-legend__dot--offline { background: #94a3b8; }

.map-page__canvas-wrap {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
}

.map-page__canvas-wrap:fullscreen {
    padding: 0;
    border-radius: 0;
}

.map-page__canvas-wrap:fullscreen .map-page__canvas {
    height: 100vh !important;
}

.map-page__controls {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.map-page__controls > * {
    pointer-events: auto;
}

.map-type-toggle {
    display: inline-flex;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.map-type-toggle__btn {
    border: none;
    background: #fff;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
}

.map-type-toggle__btn.is-active {
    background: rgba(212, 175, 55, 0.2);
    color: #8a6d12;
}

.map-page__fullscreen-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.map-page__canvas {
    width: 100%;
    height: min(72vh, 640px);
    min-height: 420px;
}

.map-page__empty {
    position: absolute;
    inset: auto 0 0;
    margin: 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-muted);
}

/* ---- Catalog list pages (vehicle types, etc.) ---- */
.catalog-page {
    padding: 1.25rem 1.5rem;
}

.catalog-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.catalog-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalog-page__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.catalog-page__hint {
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

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

.catalog-stat-card {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.catalog-stat-card__label {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.catalog-stat-card__value {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.catalog-tabs__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.catalog-tabs__link.is-active {
    color: #8a6d12;
    border-bottom-color: var(--inaaga-primary);
}

.catalog-toolbar__search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.catalog-toolbar__search-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    min-width: 240px;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.catalog-toolbar--bulk {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.catalog-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.catalog-toolbar__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.catalog-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    background: #fff;
}

.catalog-bulk-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-per-page-form {
    display: inline;
}

.catalog-col-check {
    width: 36px;
}

.catalog-col-actions {
    width: 90px;
    text-align: right;
}

.data-table--catalog td {
    vertical-align: middle;
}

.catalog-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.catalog-name-cell__thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.catalog-name-cell__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-name-cell__thumb i {
    font-size: 1.35rem;
    color: var(--text-muted);
}

.catalog-name-cell__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.catalog-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin-top: 0.2rem;
}

.catalog-row-actions__link {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.78rem;
    color: var(--inaaga-primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.catalog-row-actions__link--danger {
    color: var(--red-danger);
}

.catalog-row-actions__sep {
    color: #ccc;
    font-size: 0.75rem;
}

.catalog-inline-form {
    display: inline;
}

.catalog-icon-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.catalog-toggle-form {
    margin: 0;
}

.catalog-pagination {
    margin-top: 1rem;
}

.link-primary {
    color: var(--inaaga-primary);
    font-weight: 600;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .catalog-page__header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .catalog-toolbar__search {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-toolbar__search-input {
        min-width: 0;
        width: 100%;
    }
}

/* ---- Admin user form (add rider, etc.) ---- */
.admin-form-page {
    padding: 1.25rem 1.5rem;
}

.admin-form-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-form-page__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.admin-form-page__errors {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
}

.admin-form-page__errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.admin-form-card {
    max-width: 52rem;
    background: #fff;
    border: 1px solid var(--inaaga-border, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem 1.25rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    gap: 0.75rem 1.25rem;
    align-items: start;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.admin-form-row:last-of-type {
    border-bottom: none;
}

.admin-form-row__label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    padding-top: 0.45rem;
}

.admin-form-row__label .required {
    color: #dc2626;
}

.admin-form-input {
    width: 100%;
    max-width: 28rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.admin-form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.admin-phone-input {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
}

.admin-phone-input__code {
    width: 6.5rem;
    flex-shrink: 0;
}

.admin-phone-input__number {
    flex: 1;
}

.admin-password-field {
    position: relative;
    max-width: 28rem;
}

.admin-password-field .admin-form-input {
    padding-right: 2.5rem;
}

.admin-password-field__toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.admin-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

.admin-avatar-upload {
    width: 5.5rem;
    height: 5.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.75rem;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.btn-gold {
    background: var(--inaaga-primary, #d4af37);
    color: #111;
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    filter: brightness(0.95);
    color: #111;
}

.btn-icon-only {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }
}

.admin-wizard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.admin-wizard-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.admin-wizard-tabs__btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #92700c;
}

.admin-wizard-tabs__btn.is-active {
    background: rgba(212, 175, 55, 0.18);
    color: #92700c;
    box-shadow: inset 0 -2px 0 #d4af37;
}

.admin-wizard-panel[hidden] {
    display: none !important;
}

.admin-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.admin-wizard-footer__right {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.admin-form-card textarea.admin-form-input {
    max-width: 28rem;
    min-height: 6rem;
}

/* ---- Vehicle type add / edit form ---- */
.vehicle-type-form-page {
    padding: 1.25rem 1.5rem;
}

.vehicle-type-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.25rem;
    align-items: start;
}

.vehicle-type-form-main {
    max-width: none;
}

.vehicle-type-form-main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.vehicle-type-form-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vehicle-type-form-sidebar-card {
    padding: 1.25rem;
}

.vehicle-type-form-sidebar-card__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-type-form-sidebar-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.vehicle-type-form-sidebar-field {
    margin-bottom: 1rem;
}

.vehicle-type-form-sidebar-field:last-child {
    margin-bottom: 0;
}

.vehicle-type-form-sidebar-field__label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.45rem;
}

.vehicle-type-form-sidebar-field__label .required {
    color: #dc2626;
}

.admin-image-upload {
    display: inline-block;
    cursor: pointer;
}

.admin-image-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-image-upload__box {
    width: 5.5rem;
    height: 5.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.75rem;
    overflow: hidden;
    background: #fff;
}

.admin-image-upload__box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-form-multiselect {
    max-width: none;
    min-height: 7rem;
}

.status-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    overflow: hidden;
}

.status-toggle__btn {
    border: none;
    background: #fff;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
}

.status-toggle__btn.is-active {
    background: var(--inaaga-primary, #d4af37);
    color: #111;
}

.status-toggle__btn + .status-toggle__btn {
    border-left: 1px solid #cbd5e1;
}

@media (max-width: 1024px) {
    .vehicle-type-form-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Media library ---- */
.media-page {
    padding: 1.25rem 1.5rem;
}

.media-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-page__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--inaaga-primary);
    color: #8a6d12;
    background: #fffdf5;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.media-upload {
    display: none;
    position: relative;
    margin-bottom: 1.25rem;
    border: 2px dashed #e0d5b8;
    border-radius: 12px;
    background: #fffdf8;
    padding: 2rem 1.5rem;
}

.media-upload.is-open {
    display: block;
}

.media-upload__close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.media-upload__dropzone {
    text-align: center;
}

.media-upload__dropzone.is-dragover {
    background: rgba(212, 175, 55, 0.08);
}

.media-upload__dropzone > i {
    font-size: 2.5rem;
    color: var(--inaaga-primary);
}

.media-upload__label {
    margin: 0.5rem 0;
    font-weight: 600;
}

.media-upload__hint {
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
}

.media-upload__select {
    cursor: pointer;
    margin-top: 0.5rem;
}

.media-upload__select input {
    display: none;
}

.media-upload__chosen {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.media-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.media-toolbar--bulk {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.media-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.media-toolbar__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.media-toolbar__search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.media-toolbar__search-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    min-width: 200px;
}

.media-toolbar__filter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.media-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    background: #fff;
}

.media-view-toggle {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.media-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    color: var(--text-muted);
    text-decoration: none;
    background: #fff;
}

.media-view-toggle__btn.is-active {
    background: rgba(212, 175, 55, 0.15);
    color: #8a6d12;
}

.media-file-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.media-file-cell__thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-file-cell__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-file-cell__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 0.25rem;
}

.media-actions__link {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.78rem;
    color: var(--inaaga-primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.media-actions__link--danger {
    color: var(--red-danger);
}

.media-actions__delete {
    display: inline;
}

.media-sort-link {
    color: inherit;
    text-decoration: none;
}

.media-sort-link:hover {
    color: var(--inaaga-primary);
}

.media-col-check {
    width: 36px;
}

.data-table--media td {
    vertical-align: middle;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.media-grid__item {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.65rem;
    position: relative;
    background: #fff;
}

.media-grid__check {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1;
}

.media-grid__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.media-grid__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-grid__thumb i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.media-grid__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
}

.media-grid__empty {
    grid-column: 1 / -1;
}

.media-pagination {
    margin-top: 1rem;
}

.media-per-page-form {
    display: inline;
}

.media-bulk-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 991px) {
    .chat-page__layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .chat-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        max-height: 420px;
    }

    .chat-panel {
        min-height: 360px;
    }
}

/* ---- Settings ---- */
.settings-page { margin-bottom: 2rem; }

.settings-page__layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.settings-page__content {
    padding: 1.5rem;
    min-height: 420px;
}

.settings-page__errors {
    background: #fdecea;
    color: #b71c1c;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.settings-page__errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.settings-tab {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.settings-tab:hover {
    background: #fffdf5;
    color: var(--text-primary);
}

.settings-tab--active {
    border-left-color: var(--inaaga-primary);
    background: #fffbea;
    color: var(--text-primary);
    font-weight: 600;
}

.settings-form__heading {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.settings-form__subheading {
    margin: 1.5rem 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.settings-form__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.settings-upload-preview {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    max-width: 160px;
}

.settings-upload-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.settings-upload-preview--sm {
    max-width: 48px;
}

.input-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix__symbol {
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--text-secondary);
    font-weight: 600;
}

.input-prefix .admin-form-input {
    border-radius: 0 6px 6px 0;
}

@media (max-width: 991px) {
    .settings-page__layout {
        grid-template-columns: 1fr;
    }

    .settings-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .settings-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 6px;
    }

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

.settings-tabs__btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    cursor: pointer;
}

.settings-tabs__btn--active {
    border-color: var(--inaaga-primary);
    color: var(--inaaga-primary);
    font-weight: 600;
}

.settings-panel { display: none; }
.settings-panel--active { display: block; }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) {
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Forms (auth + general) ---- */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.input-with-icon > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.25rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.input-with-icon input:focus {
    border-color: var(--inaaga-primary);
    outline: none;
}

/* ---- Auth / Guest layout ---- */
.admin-guest {
    min-height: 100vh;
    background: #ececec;
    color: var(--text-primary);
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2.25rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.auth-card__brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo-img {
    height: 42px;
    width: auto;
    display: inline-block;
}

.auth-card__intro {
    border-left: 4px solid #111;
    padding-left: 0.85rem;
    margin-bottom: 1.75rem;
}

.auth-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
}

.auth-card__subtitle {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.auth-card__brand h1 { margin: 0.75rem 0 0.25rem; font-size: 1.5rem; }
.auth-card__brand p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.auth-logo { margin: 0 auto; }

.auth-form .form-group { margin-bottom: 0.85rem; }

.auth-form .input-with-icon {
    display: block;
}

.auth-form .input-with-icon input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.85rem 0.85rem 2.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #eef4fb;
    color: #333;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .input-with-icon input::placeholder {
    color: #666;
}

.auth-form .input-with-icon input:focus {
    border-color: rgba(255, 152, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.12);
    outline: none;
}

.auth-form .input-with-icon > i {
    left: 0.9rem;
    color: #666;
    font-size: 1.05rem;
    z-index: 1;
}

.auth-form .input-with-icon--password input {
    padding-right: 2.85rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.auth-password-toggle i {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    font-size: 1.05rem;
    pointer-events: none;
}

.auth-password-toggle:hover {
    color: #333;
}

.auth-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

.auth-form .form-check {
    margin-bottom: 0;
    color: #666;
    font-size: 0.875rem;
}

.auth-form .form-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--inaaga-primary);
}

.auth-form__forgot {
    color: #222;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.auth-form__forgot:hover {
    color: var(--inaaga-primary);
    text-decoration: underline;
}

.auth-form__submit {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.auth-form__submit:hover {
    background: var(--inaaga-primary-hover, #e68900);
}

.auth-version-badge {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--inaaga-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.alert-danger {
    background: #fdecea;
    color: #dc3545;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

code {
    font-size: 0.85em;
    background: #f5f5f5;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

/* ---- Health check ---- */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

.health-label { font-size: 0.875rem; font-weight: 500; flex: 1; }

.health-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.health-badge--ok { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.health-badge--warn { background: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* ---- Footer ---- */
.admin-footer {
    height: var(--footer-height);
    background: #fafafa;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-footer__badges {
    display: flex;
    gap: 0.5rem;
}

.admin-footer__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-footer__badge--version {
    background: var(--inaaga-primary);
    color: #fff;
}

.admin-footer__badge--perf {
    background: #f0f0f0;
    color: var(--text-secondary);
}

/* ---- Plain list ---- */
.plain-list { margin: 0.5rem 0 0; padding-left: 1.25rem; }

.cell-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ride-map {
    height: 320px;
    border-radius: 8px;
    background: #f5f5f5;
}

/* ---- SOS alert detail ---- */
.sos-alert-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sos-alert-detail__cards {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .sos-alert-detail__cards {
        grid-template-columns: 1fr 1fr;
    }

    .sos-alert-detail__card--solo {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.5rem);
    }
}

.sos-alert-detail__card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.sos-alert-detail__map-card {
    width: 100%;
}

.sos-alert-detail__map-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sos-alert-detail__map {
    min-height: 420px;
    height: 420px;
}

.sos-alert-status-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sos-alert-status-form__select {
    min-width: 11rem;
}

/* ---- Wallet manage (rider / driver) ---- */
.wallet-manage-page__header {
    margin-bottom: 1rem;
}

.wallet-manage-page__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
}

.wallet-manage-tabs {
    margin-bottom: 1.25rem;
}

.wallet-manage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.wallet-manage-card {
    padding: 1.25rem 1.5rem;
}

.wallet-manage-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.wallet-manage-card__hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-secondary, #64748b);
}

.wallet-manage-card__empty {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

.wallet-manage-select {
    width: 100%;
}

.wallet-balance-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.wallet-balance-display__icon {
    font-size: 1.75rem;
    color: var(--inaaga-primary, #d4af37);
}

.wallet-balance-display__amount {
    font-size: 1.5rem;
    font-weight: 600;
}

.wallet-adjust-form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-secondary, #64748b);
}

.wallet-adjust-form .admin-form-input {
    width: 100%;
    margin-bottom: 0.75rem;
}

.wallet-adjust-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-debit {
    background: #e11d48;
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-debit:hover {
    filter: brightness(0.95);
    color: #fff;
}

.wallet-manage-transactions {
    padding: 1.25rem 1.5rem;
}

.wallet-manage-transactions__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wallet-tx-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.wallet-tx-search__input {
    min-width: 12rem;
}

@media (max-width: 768px) {
    .wallet-manage-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Admin reports (transaction report, etc.) ---- */
.report-page__layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.report-filters {
    padding: 1.25rem 1.5rem;
}

.report-filters__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.report-filters__form .admin-form-group {
    margin-bottom: 1rem;
}

.report-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.report-page__main {
    min-width: 0;
}

.report-table__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.data-table__empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .report-page__layout {
        grid-template-columns: 1fr;
    }
}

.report-analytics {
    margin-bottom: 1.25rem;
}

.report-analytics__summary {
    margin-bottom: 1rem;
}

.report-analytics__charts {
    margin-bottom: 0;
}

.report-analytics__chart .contentbox__header h3 {
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 991px) {
    .report-analytics__charts.dashboard-grid--charts {
        grid-template-columns: 1fr;
    }
}

/* ---- Report filter dropdown ---- */
.report-filter-dropdown {
    position: relative;
    flex-shrink: 0;
}

.report-filter-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.report-filter-dropdown__toggle .ri-arrow-down-s-line {
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.report-filter-dropdown.is-open .report-filter-dropdown__toggle .ri-arrow-down-s-line {
    transform: rotate(180deg);
}

.report-filter-dropdown__panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100;
    width: min(92vw, 21rem);
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #eaeaea);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: reportDropdownFadeIn 0.15s ease;
    overflow: hidden;
}

.report-filter-dropdown__panel[hidden] {
    display: none;
}

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

.report-filter-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--card-border, #eaeaea);
    background: #fafafa;
}

.report-filter-dropdown__header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #222);
    letter-spacing: 0.01em;
}

.report-filter-dropdown__close {
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    color: var(--text-secondary, #6c757d);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.report-filter-dropdown__close:hover {
    background: #f0f0f0;
    color: var(--text-primary, #222);
}

.report-filter-dropdown__body {
    padding: 1rem 1.25rem 0.75rem;
}

.report-filter-dropdown__form .admin-form-group {
    margin-bottom: 0.85rem;
}

.report-filter-dropdown__form .admin-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 0.3rem;
}

.report-filter-dropdown__form .admin-form-input {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    color: var(--text-primary, #222);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.report-filter-dropdown__form .admin-form-input:focus {
    outline: none;
    border-color: var(--inaaga-primary, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.report-filter-dropdown__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--card-border, #eaeaea);
    background: #fafafa;
}

@media (max-width: 575px) {
    .report-filter-dropdown__panel {
        right: -0.5rem;
        width: calc(100vw - 2rem);
    }
}

/* ---- Withdraw requests modal ---- */
body.admin-modal-open {
    overflow: hidden;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 32rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.admin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.admin-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.admin-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary, #64748b);
    border-radius: 0.375rem;
    cursor: pointer;
}

.admin-modal__close:hover {
    background: #f1f5f9;
    color: var(--text-primary, #0f172a);
}

.admin-modal__body {
    padding: 1.25rem 1.5rem;
}

.admin-modal__loading {
    margin: 0;
    color: var(--text-secondary, #64748b);
}

.admin-modal__fields {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.admin-modal__field dt {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
}

.admin-modal__field dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-primary, #0f172a);
}

.admin-modal__audit {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.admin-modal__audit-title {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-modal__audit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.admin-modal__audit-item {
    display: grid;
    gap: 0.15rem;
}

.admin-modal__audit-action {
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-modal__audit-meta {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
}

.admin-modal__audit-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

.admin-modal__error {
    margin: 1rem 0 0;
}

.admin-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.btn-icon--gold {
    color: var(--inaaga-primary, #ff9800);
    border-color: rgba(255, 152, 0, 0.35);
}

.btn-icon--gold:hover {
    background: rgba(255, 152, 0, 0.08);
}

.btn-icon--danger {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.25);
}

.btn-icon--danger:hover {
    background: rgba(220, 53, 69, 0.08);
}

.catalog-name-cell__thumb {
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .page-sidebar {
        position: fixed;
        height: calc(100vh - var(--header-height));
        top: var(--header-height);
        z-index: 90;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .page-sidebar.collapsed {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .row-cards {
        grid-template-columns: 1fr;
    }

    .admin-header__user-info { display: none; }
}

/* ---- Push notification composer ---- */
.push-notification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.5rem;
    align-items: start;
}

.push-notification-form {
    max-width: none;
}

.push-image-upload {
    display: inline-block;
    cursor: pointer;
}

.push-image-upload__box {
    width: 100px;
    height: 100px;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.75rem;
    overflow: hidden;
    background: #f8fafc;
}

.push-image-upload__box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.admin-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: 0.2s;
}

.admin-toggle__slider::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.admin-toggle input:checked + .admin-toggle__slider {
    background: var(--inaaga-primary, #d4af37);
}

.admin-toggle input:checked + .admin-toggle__slider::before {
    transform: translateX(20px);
}

.push-schedule-field {
    margin-top: 0.75rem;
}

.push-schedule-field.is-hidden {
    display: none;
}

.push-notification-preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.push-notification-preview-card__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.push-lock-screen {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.25rem;
    padding: 1.5rem 1rem 2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.push-lock-screen__status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: auto;
    padding-top: 0.25rem;
}

.push-lock-screen__notification {
    width: 100%;
    display: flex;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin-top: 2rem;
}

.push-lock-screen__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.2);
    color: #92700c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 1.1rem;
}

.push-lock-screen__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.push-lock-screen__body {
    min-width: 0;
    flex: 1;
}

.push-lock-screen__app {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.push-lock-screen__title {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.push-lock-screen__message {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 960px) {
    .push-notification-layout {
        grid-template-columns: 1fr;
    }

    .push-notification-preview-card {
        position: static;
    }
}

/* ---- Flash toasts (session success/error/warning/info) ---- */
.admin-toast-stack {
    position: fixed;
    top: calc(var(--header-height) + 0.75rem);
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.admin-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8e0c8;
    box-shadow: 0 10px 28px rgba(18, 18, 18, 0.14);
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.4;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(1.25rem);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.admin-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.admin-toast--hiding {
    opacity: 0;
    transform: translateX(1.25rem);
}

.admin-toast__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.05rem;
}

.admin-toast__message {
    flex: 1;
    margin: 0;
    font-weight: 500;
}

.admin-toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.15rem -0.1rem 0 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.admin-toast__close:hover,
.admin-toast__close:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    outline: none;
}

.admin-toast--success {
    border-left: 4px solid var(--inaaga-primary);
}

.admin-toast--success .admin-toast__icon {
    color: var(--inaaga-primary);
}

.admin-toast--info {
    border-left: 4px solid #5c6bc0;
}

.admin-toast--info .admin-toast__icon {
    color: #5c6bc0;
}

.admin-toast--warning {
    border-left: 4px solid var(--orange-accent);
}

.admin-toast--warning .admin-toast__icon {
    color: #e65100;
}

.admin-toast--error {
    border-left: 4px solid var(--red-danger);
}

.admin-toast--error .admin-toast__icon {
    color: var(--red-danger);
}

@media (max-width: 640px) {
    .admin-toast-stack {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}
