:root {
    --gold-100: #ffe7aa;
    --gold-200: #f2d48a;
    --gold-300: #9d6d35;
    --gold-400: #986932;
    --gold-grad: linear-gradient(90deg, #986932 0%, #ffe7aa 50%, #9d6d35 100%);
    --gold-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.04),
        0 1px 12px rgba(0, 0, 0, 0.05);
    --gold-border-top: 1px solid rgba(255, 255, 255, 0.15);
    --ink: #000000;
    --ink-2: #0d0d0d;
    --ink-3: #141414;
    --ink-4: #1a1a1a;
    --panel: #ffffff;
    --panel-2: #f5f5f5;
    --muted: #8a8a8a;
    --text: #1a1a1a;
    --border: #ececec;
    /* Status tint system: fill 13% / border 19% of base color */
    --status-gold: #986932;
    --status-green: #1f9d55;
    --status-red: #e53935;
    --status-blue: #1d6fb8;
    --status-purple: #7e22ce;
    --status-fill: 0.13;
    --status-stroke: 0.19;
    --pending: var(--status-gold);
    --ok: var(--status-green);
    --danger: var(--status-red);
    --sidebar-w: 270px;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    --font-brand: "Cormorant Garamond", Georgia, serif;
    --font-ui: "Sora", sans-serif;
}

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

html,
body {
    margin: 0;
    height: 100%;
}

body {
    font-family: var(--font-ui);
    color: var(--text);
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

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

button,
input {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.is-hidden {
    display: none !important;
}

/* ---------- Login ---------- */

.login-page {
    background: #050505;
    color: #fff;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2.2vh, 24px);
}

.login-frame {
    width: min(1200px, 100%);
    height: min(720px, 100%);
    border: 1px solid #2a2a2a;
    border-radius: 28px;
    overflow: hidden;
    background: #0a0a0a;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    height: 100%;
    min-height: 0;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 3vh, 36px) clamp(18px, 3vw, 40px);
    height: 100%;
    min-height: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(197, 160, 89, 0.08), transparent 40%),
        #0a0a0a;
}

.login-panel__inner {
    width: min(100%, 380px);
}

.login-brand {
    text-align: center;
    margin-bottom: clamp(14px, 2.6vh, 28px);
}

.login-brand__logo {
    width: clamp(110px, 18vh, 168px);
    height: auto;
    margin: 0 auto;
}

.login-copy {
    margin-bottom: clamp(14px, 2.4vh, 24px);
}

.login-copy h2 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3.4vh, 2rem);
    font-weight: 700;
    color: #fff;
}

.login-copy p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.92rem;
    font-weight: 400;
}

.login-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ffb4b4;
    font-size: 0.85rem;
}

.login-form {
    display: grid;
    gap: clamp(12px, 1.8vh, 16px);
}

.field {
    display: grid;
    gap: 7px;
}

.field__label {
    font-size: 0.86rem;
    color: #ffffff;
    font-weight: 500;
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #d0d0d0;
    pointer-events: none;
    z-index: 1;
}

.field__control input {
    width: 100%;
    height: clamp(46px, 6.4vh, 52px);
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    background: #121212;
    color: #fff;
    padding: 0 48px 0 44px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__control input::placeholder {
    color: #7a7a7a;
}

.field__control input:focus {
    border-color: var(--gold-300);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.16);
}

.field__toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #d0d0d0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 2;
    padding: 0;
}

.field__toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.field__toggle:hover {
    color: var(--gold-100);
}

.login-form__meta {
    display: flex;
    justify-content: flex-end;
}

.login-forgot {
    font-size: 0.84rem;
    color: #ffffff;
    font-weight: 600;
}

.login-forgot:hover {
    color: var(--gold-100);
}

.btn-gold {
    appearance: none;
    border: 0;
    border-top: var(--gold-border-top);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(46px, 6.4vh, 52px);
    padding: 0 28px;
    border-radius: 999px;
    background: var(--gold-grad);
    color: #1a1205;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--gold-shadow);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-gold--sm {
    min-height: 34px;
    padding: 0 16px;
    font-size: 0.75rem;
    border-radius: 999px;
}

.login-hero {
    padding: clamp(14px, 2.2vh, 22px);
    height: 100%;
    min-height: 0;
}

.login-hero__frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 22px;
    overflow: hidden;
}

.login-hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* ---------- Admin shell ---------- */

.admin-app {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f5f5f5;
    overflow-x: hidden;
}

.sidebar {
    background: #0b0b0b;
    color: #e8e8e8;
    display: flex;
    flex-direction: column;
    padding: 18px 12px 14px;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #1a1a1a;
    z-index: 40;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px 18px;
}

.sidebar__logo {
    width: min(100%, 120px);
    height: auto;
}

.sidebar__nav {
    display: grid;
    gap: 3px;
    flex: 1;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #d6d6d6;
    font-size: 0.78rem;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar__link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.sidebar__link.is-active {
    background: var(--gold-grad);
    color: #111;
    font-weight: 600;
    border-top: var(--gold-border-top);
    box-shadow: var(--gold-shadow);
}

.sidebar__footer {
    margin-top: 14px;
    padding: 12px 8px 4px;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

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

.sidebar__avatar,
.topbar__avatar,
.person img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.topbar__avatar,
.person img {
    border-radius: 50%;
}

.sidebar__user-meta {
    min-width: 0;
}

.sidebar__welcome {
    display: block;
    font-size: 0.68rem;
    color: #9a9a9a;
}

.sidebar__user strong {
    display: block;
    font-size: 0.82rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__logout {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.sidebar__logout svg {
    width: 18px;
    height: 18px;
}

.sidebar__logout:hover {
    color: var(--gold-100);
}

.admin-main {
    margin-left: var(--sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: #f5f5f5;
}

.topbar__menu {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.topbar__menu svg {
    width: 20px;
    height: 20px;
}

.topbar__search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 999px;
    padding: 0 16px;
    height: 44px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.topbar__search svg {
    width: 18px;
    height: 18px;
    color: #8a8a8a;
}

.topbar__search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--text);
}

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

.topbar__icon {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #333;
}

.topbar__icon svg {
    width: 18px;
    height: 18px;
}

.topbar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
}

.topbar__profile span {
    font-size: 0.84rem;
    font-weight: 600;
}

.content {
    padding: 8px 24px 32px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--panel);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    min-height: 148px;
}

.stat-card--gold {
    background: var(--gold-grad);
    color: #000;
    border-top: var(--gold-border-top);
    box-shadow: var(--gold-shadow);
    border-radius: 24px;
}

.stat-card__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
}

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

.stat-card--gold .stat-card__glyph {
    background: #000;
    color: var(--gold-100);
    border-radius: 10px;
}

.stat-card__label {
    margin: 4px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    opacity: 1;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #000;
}

.stat-card__sub {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #757575;
}

.stat-card--gold .stat-card__sub {
    color: #111;
    opacity: 0.85;
}

.stat-card__side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.stat-card__glyph {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.stat-card__glyph.gold {
    background: var(--gold-grad);
    color: #111;
    border-top: var(--gold-border-top);
    box-shadow: var(--gold-shadow);
}

.stat-card__glyph svg {
    width: 18px;
    height: 18px;
}

.trend-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.trend-pill.is-up {
    background: #e6f4ea;
    color: #1e8e3e;
}

.trend-pill.is-down {
    background: #fce8e6;
    color: #d93025;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.panel {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel--wide {
    margin-bottom: 8px;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 6px;
}

.panel__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.page-heading h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.page-heading p,
.panel__hint {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.date-filter {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.date-filter label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.68rem;
}

.date-filter input {
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 8px;
    color: var(--text);
    background: #fff;
    font-size: 0.74rem;
}

.analytics-stats {
    grid-template-columns: repeat(4, 1fr);
}

.analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 220px;
    padding: 22px 18px 16px;
}

.analytics-bar {
    display: flex;
    flex: 1;
    min-width: 26px;
    height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.analytics-bar__value {
    color: var(--gold-400);
    font-size: 0.62rem;
    white-space: nowrap;
}

.analytics-bar__track {
    display: flex;
    width: 100%;
    max-width: 34px;
    height: 140px;
    align-items: flex-end;
    border-radius: 8px 8px 2px 2px;
    background: #f4f4f4;
}

.analytics-bar__track span {
    width: 100%;
    border-radius: 8px 8px 2px 2px;
    background: var(--gold-grad);
}

.analytics-bar small {
    color: var(--muted);
    font-size: 0.66rem;
}

.status-list {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.status-list div {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
}

.status-list b {
    margin-left: auto;
    color: var(--gold-400);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-300);
}

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

.empty-state {
    padding: 24px !important;
    color: var(--muted);
    text-align: center !important;
}

.analytics-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.panel-link {
    display: flex;
    justify-content: space-between;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    font-weight: 600;
}

.panel-link span,
.breadcrumb {
    color: var(--gold-400);
    font-size: 0.75rem;
}

.breadcrumb {
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--text);
}

.analytics-detail {
    padding: 4px 0;
}

.cms-alert {
    margin-bottom: 16px;
}

.cms-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 44px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.cms-tabs a {
    display: grid;
    place-items: center;
    padding: 0 16px;
    color: #555;
    font-size: 0.78rem;
    font-weight: 500;
}

.cms-tabs a.is-active {
    border-radius: 9px;
    color: #111;
    background: var(--gold-grad);
    font-weight: 650;
}

.cms-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.cms-section-head h2 {
    margin: 0;
    font-size: 1rem;
}

.cms-content-card {
    min-height: 360px;
    padding: 18px;
    color: #222;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: normal;
}

.cms-faq-list {
    display: grid;
    gap: 10px;
}

.cms-faq-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cms-faq-card h3 {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.cms-faq-card p {
    margin: 0;
    color: #444;
    font-size: 0.72rem;
    line-height: 1.45;
}

.cms-page-modal,
.cms-faq-modal {
    max-width: 680px;
}

.cms-content-input {
    min-height: 360px !important;
}

.cms-faq-modal textarea {
    min-height: 170px;
}

.notification-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-select {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--text);
    background: #fff;
    font-size: 0.72rem;
}

.notification-message {
    color: #555;
}

.notification-form-modal {
    max-width: 660px;
}

.notification-upload {
    margin: 8px 0 18px;
}

.notification-detail-modal {
    max-width: 420px;
}

.notification-detail {
    min-height: 360px;
}

.notification-detail__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--gold-400);
    font-size: 1.5rem;
}

.notification-detail dl {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 10px 18px;
    margin: 0;
    font-size: 0.78rem;
}

.notification-detail dt {
    color: #777;
}

.notification-detail dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    text-align: left;
    font-size: 0.82rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table th {
    color: #8b8b8b;
    font-weight: 500;
    font-size: 0.74rem;
}

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

.person {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.person img {
    width: 34px;
    height: 34px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.stars {
    color: var(--gold-200);
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4.81px;
    height: 30px;
    min-height: 30px;
    width: fit-content;
    padding: 3.85px 9.63px;
    border-radius: 19.26px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.badge--pending,
.badge--completed {
    color: var(--status-gold);
    background: rgba(152, 105, 50, var(--status-fill));
    border-color: rgba(152, 105, 50, var(--status-stroke));
}

.badge--paid,
.badge--available,
.badge--active,
.badge--in-progress {
    color: var(--status-green);
    background: rgba(31, 157, 85, var(--status-fill));
    border-color: rgba(31, 157, 85, var(--status-stroke));
}

.badge--inactive,
.badge--rejected {
    color: var(--status-red);
    background: rgba(229, 57, 53, var(--status-fill));
    border-color: rgba(229, 57, 53, var(--status-stroke));
}

.badge--on-the-way {
    color: var(--status-purple);
    background: rgba(126, 34, 206, var(--status-fill));
    border-color: rgba(126, 34, 206, var(--status-stroke));
}

.badge--scheduled,
.badge--under-review {
    color: var(--status-blue);
    background: rgba(29, 111, 184, var(--status-fill));
    border-color: rgba(29, 111, 184, var(--status-stroke));
}

.badge--resolved {
    color: var(--status-green);
    background: rgba(31, 157, 85, var(--status-fill));
    border-color: rgba(31, 157, 85, var(--status-stroke));
}

.badge--dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.page-shell {
    padding-bottom: 20px;
}

.page-title {
    margin: 0 0 18px;
    font-size: 1.55rem;
    font-weight: 700;
}

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

.page-head .page-title {
    margin: 0;
}

.page-head .btn-gold {
    min-height: 44px;
    padding: 0 22px;
    font-size: 0.9rem;
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 18px;
    height: 18px;
}

.field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.field > span {
    font-size: 0.86rem;
    font-weight: 600;
    color: #222;
}

.field em {
    color: #e53935;
    font-style: normal;
}

.field input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #f3f3f4;
    padding: 0 16px;
    outline: none;
    color: #111;
}

.field input[type="datetime-local"] {
    font-size: 16px;
    padding-inline: 12px;
}

.field input:focus {
    box-shadow: 0 0 0 2px rgba(152, 105, 50, 0.25);
}

.upload-dropzone {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 110px;
    padding: 16px;
    border: 1.5px dashed #d0d0d0;
    border-radius: 16px;
    background: #fafafa;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-dropzone:hover {
    border-color: var(--gold-400);
    background: #fffdf8;
}

.upload-dropzone__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ececec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    flex: 0 0 auto;
}

.upload-dropzone__icon svg {
    width: 22px;
    height: 22px;
}

.upload-dropzone__text {
    display: grid;
    gap: 4px;
    color: #444;
    font-size: 0.86rem;
}

.upload-dropzone__text small {
    color: #888;
    font-size: 0.75rem;
}

.upload-dropzone__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-dropzone.has-preview .upload-dropzone__icon,
.upload-dropzone.has-preview .upload-dropzone__text {
    opacity: 0;
}

.field select,
.field textarea {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: #f3f3f4;
    padding: 12px 16px;
    outline: none;
    color: #111;
    resize: vertical;
    font: inherit;
}

.field select {
    height: 46px;
    border-radius: 999px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field select:focus,
.field textarea:focus {
    box-shadow: 0 0 0 2px rgba(152, 105, 50, 0.25);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field-row .field {
    margin-top: 18px;
}

@container (max-width: 540px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.service-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.service-detail__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
}

.service-detail__list {
    margin-bottom: 8px;
}

.service-detail__block {
    margin-top: 18px;
}

.service-detail__block h4 {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

.service-detail__block p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.86rem;
}

.equipment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.equipment-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: #333;
}

.equipment-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-400);
    background:
        radial-gradient(circle at center, var(--gold-400) 0 4px, transparent 5px);
    flex: 0 0 auto;
}

.detail-status-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: -6px 0 16px;
}

.thumb-row img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb-row img.is-active {
    border-color: var(--gold-400);
}

.ticket-requester {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ticket-requester__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.ticket-requester p {
    margin: 2px 0;
    color: #666;
    font-size: 0.82rem;
}

.ticket-requester strong {
    display: block;
    margin-bottom: 4px;
}

.modal__footer--stack {
    flex-wrap: wrap;
}

.modal-overlay--center {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay--center .confirm-card {
    width: min(100%, 380px);
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px 22px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.modal-overlay--center.is-open .confirm-card {
    transform: scale(1);
    opacity: 1;
}

.confirm-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
    display: grid;
    place-items: center;
}

.confirm-card__icon svg {
    width: 24px;
    height: 24px;
}

.confirm-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.confirm-card p {
    margin: 0 0 20px;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.45;
}

.confirm-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-danger-solid {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    background: #e53935;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn-outline--gold {
    border-color: var(--gold-400);
    color: #111;
}

.btn-status-action {
    min-height: 44px;
    flex: 1;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 0 18px;
}

.panel__head--tools {
    align-items: center;
    flex-wrap: wrap;
}

.table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tool-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f3f4;
    border-radius: 999px;
    padding: 0 12px;
    height: 40px;
    min-width: 200px;
}

.tool-search--wide {
    min-width: 260px;
}

.tool-search svg {
    width: 16px;
    height: 16px;
    color: #888;
}

.tool-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
}

.tool-select {
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f3f3f4;
    padding: 0 14px;
    color: #333;
}

.btn-enable,
.btn-disable,
.btn-table-approve,
.btn-table-disapprove {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4.81px;
    height: 30px;
    min-height: 30px;
    width: fit-content;
    padding: 3.85px 9.63px;
    border-radius: 19.26px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-enable,
.btn-table-approve {
    color: var(--status-green);
    background: rgba(31, 157, 85, var(--status-fill));
    border-color: rgba(31, 157, 85, var(--status-stroke));
}

.btn-enable:hover,
.btn-table-approve:hover {
    background: rgba(31, 157, 85, 0.2);
}

.btn-disable,
.btn-table-disapprove {
    color: var(--status-red);
    background: rgba(229, 57, 53, var(--status-fill));
    border-color: rgba(229, 57, 53, var(--status-stroke));
}

.btn-disable:hover,
.btn-table-disapprove:hover {
    background: rgba(229, 57, 53, 0.2);
}

.btn-enable svg,
.btn-disable svg {
    width: 14px;
    height: 14px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.04);
    color: #555;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.action-btn--ok {
    color: var(--status-green);
    background: rgba(31, 157, 85, var(--status-fill));
    border-color: rgba(31, 157, 85, var(--status-stroke));
}

.action-btn--no {
    color: var(--status-red);
    background: rgba(229, 57, 53, var(--status-fill));
    border-color: rgba(229, 57, 53, var(--status-stroke));
}

.action-btn--view {
    color: #555;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.action-btn--delete {
    color: var(--status-red);
    background: rgba(229, 57, 53, var(--status-fill));
    border-color: rgba(229, 57, 53, var(--status-stroke));
}

.action-btn:hover {
    filter: brightness(0.97);
}

.vendor-section {
    margin-bottom: 28px;
}

.vendor-section > h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.vendor-section--kyc {
    margin-top: 8px;
}

.edit-vendor-panel {
    max-width: 920px;
}

.edit-vendor-body {
    padding: 8px 4px 12px;
}

.edit-vendor-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-cancel {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid #222;
    background: #fff;
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #f7f7f7;
}

.edit-vendor-actions .btn-gold {
    min-width: 160px;
    min-height: 46px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Modals (Right Drawer) ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.modal-overlay[hidden] {
    display: none !important;
}

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

.modal {
    width: min(100%, 480px);
    height: 100%;
    max-height: 100%;
    max-width: 100vw;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    container-type: inline-size;
}

.modal > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.modal--lg {
    width: min(100%, 520px);
}

.modal--sm {
    width: min(100%, 420px);
}

.modal--preview {
    width: min(100%, 560px);
}

.modal__header {
    background: #0b0b0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    flex: 0 0 auto;
}

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

.modal__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.modal__close svg {
    width: 16px;
    height: 16px;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.modal__body {
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.modal__body--plain {
    padding: 22px;
}

.modal__subtitle {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 650;
}

.modal__title-plain {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
}

.modal__footer {
    display: flex;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid #f0f0f0;
    flex: 0 0 auto;
    background: #fff;
}

.modal__footer--plain {
    border-top: 0;
    padding: 16px 0 0;
}

.modal__footer > * {
    flex: 1;
}

.btn-gold--modal {
    min-height: 44px;
    color: #111;
    border-radius: 999px;
    font-weight: 700;
}

.btn-outline-danger,
.btn-soft-danger,
.btn-outline {
    appearance: none;
    border: 1px solid #d4d4d4;
    background: #fff;
    color: #111;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline-danger {
    border-color: #f0b4b4;
    color: #e11d48;
}

.btn-soft-danger {
    background: #fff1f2;
    border-color: transparent;
    color: #e11d48;
}

.btn-outline {
    border-color: #222;
    color: #111;
}

.assign-toolbar {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 10px;
    margin-bottom: 14px;
}

.assign-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 0 12px;
    height: 42px;
}

.assign-search svg {
    width: 16px;
    height: 16px;
    color: #888;
}

.assign-search input,
.assign-select {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font: inherit;
    color: #222;
}

.assign-select {
    height: 42px;
    border-radius: 999px;
    background: #f5f5f5;
    padding: 0 14px;
}

.provider-list {
    display: grid;
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding-right: 2px;
}

.provider-card {
    display: grid;
    grid-template-columns: 44px 1fr auto auto 22px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
}

.provider-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.provider-card__info {
    min-width: 0;
}

.provider-card__info strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.provider-card__distance {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

.badge--available {
    color: var(--status-green);
    background: rgba(31, 157, 85, var(--status-fill));
    border-color: rgba(31, 157, 85, var(--status-stroke));
}

.badge--paid {
    color: var(--status-green);
    background: rgba(31, 157, 85, var(--status-fill));
    border-color: rgba(31, 157, 85, var(--status-stroke));
}

.provider-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.provider-card__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    display: inline-block;
}

.provider-card:has(input:checked) {
    border-color: var(--gold-300);
    background: #fffaf0;
}

.provider-card:has(input:checked) .provider-card__radio {
    border-color: var(--gold-300);
    box-shadow: inset 0 0 0 5px var(--gold-300);
}

.detail-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.detail-meta {
    display: grid;
    gap: 8px;
}

.detail-meta span,
.service-card__grid span,
.time-grid span,
.total-rows span,
.customer-card p {
    display: block;
    color: #8a8a8a;
    font-size: 0.75rem;
}

.detail-meta strong,
.service-card__grid strong,
.time-grid strong,
.total-rows strong {
    font-size: 0.9rem;
    color: #1a1a1a;
}

.detail-badges {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.detail-block {
    margin-bottom: 16px;
}

.detail-block h5 {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 650;
}

.customer-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 14px;
}

.customer-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-card strong {
    display: block;
    margin-bottom: 2px;
}

.customer-card p {
    margin: 0;
}

.service-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 14px;
}

.service-card img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

.service-card__grid,
.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.total-rows {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 14px;
}

.total-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.total-rows__grand {
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 2px;
}

.total-rows__grand strong {
    font-size: 1rem;
}

.reject-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 14px;
    resize: vertical;
    outline: none;
    font: inherit;
}

.reject-textarea:focus {
    border-color: var(--gold-300);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

body.modal-open {
    overflow: hidden;
}

/* ---------- Request Detail Page ---------- */

.request-page {
    padding-bottom: 24px;
}

.request-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.breadcrumb {
    margin: 0 0 4px;
    color: #8a8a8a;
    font-size: 0.8rem;
}

.request-page__head h1,
.request-page__head .page-title {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-weight: 500;
    font-size: 0.88rem;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.request-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.request-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #555;
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.request-tab:hover:not(.is-active) {
    color: #111;
}

.request-tab.is-active {
    background: var(--gold-grad);
    color: #111;
    border-top: var(--gold-border-top);
    box-shadow: var(--gold-shadow);
}

.request-panel {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

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

.request-panel h2 {
    margin: 0 0 18px;
    font-size: 1.05rem;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-summary__avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-summary__name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-summary__name-row h3 {
    margin: 0;
    font-size: 1.15rem;
}

.profile-summary__meta p {
    margin: 6px 0 0;
    color: #8a8a8a;
    font-size: 0.84rem;
}

.profile-list {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

.profile-list__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-list__row:last-child {
    border-bottom: 0;
}

.profile-list__row span {
    color: #8a8a8a;
    font-size: 0.84rem;
}

.profile-list__row strong {
    font-size: 0.9rem;
    text-align: right;
}

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

.kyc-card {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.kyc-card__preview {
    height: 150px;
    background: #f5f5f5;
}

.kyc-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kyc-card__body {
    padding: 14px;
    flex: 1;
}

.kyc-card__label {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.75rem;
}

.kyc-card__body h4 {
    margin: 4px 0 8px;
    font-size: 0.9rem;
}

.kyc-card__date {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.78rem;
}

.kyc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 14px;
}

.doc-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #ffe4e8;
    color: #e11d48;
}

.doc-status.private {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-view {
    appearance: none;
    border: 1px solid var(--gold-300);
    background: #fff;
    color: #a67c2d;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-view svg {
    width: 15px;
    height: 15px;
}

.btn-view--lg {
    min-height: 40px;
    padding: 0 16px;
    white-space: nowrap;
}

.selfie-card {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
}

.selfie-card__image {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    object-fit: cover;
}

.selfie-card__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.selfie-card__title-row h4 {
    margin: 0;
    font-size: 1rem;
}

.selfie-card__info p {
    margin: 0 0 4px;
    color: #555;
    font-size: 0.86rem;
}

.selfie-card__date {
    color: #8a8a8a !important;
    font-size: 0.78rem !important;
}

.request-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-disapprove,
.btn-approve {
    appearance: none;
    border: 0;
    min-width: 180px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.btn-disapprove {
    background: #ffe4e8;
    color: #e11d48;
}

.btn-approve {
    background: #dcfce7;
    color: #15803d;
}

.modal--preview {
    width: min(100%, 560px);
}

.modal__body--preview {
    padding: 0;
    background: #111;
}

.modal__body--preview img {
    width: 100%;
    max-height: none;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

a.action-btn {
    text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

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

    .stat-grid .stat-card:last-child {
        grid-column: 1 / -1;
    }

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

@media (max-width: 980px) {
    .tool-search,
    .tool-search--wide {
        min-width: 100%;
    }

    .table-tools {
        width: 100%;
    }

    .tool-select {
        flex: 1;
        min-width: 140px;
    }

    .login-page {
        padding: 10px;
    }

    .login-frame {
        height: 100%;
        border-radius: 20px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        grid-template-rows: 30% minmax(0, 1fr);
    }

    .login-hero {
        order: -1;
        padding: 10px 10px 0;
    }

    .login-hero__frame {
        border-radius: 16px;
    }

    .login-panel {
        overflow: auto;
    }

    .admin-app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: min(86vw, var(--sidebar-w));
        transform: translateX(-105%);
        transition: transform 0.28s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.35);
    }

    .admin-main {
        margin-left: 0;
    }

    .topbar__menu {
        display: grid;
        place-items: center;
    }

    .content {
        padding: 8px 14px 28px;
    }

    .topbar {
        padding: 12px 14px;
    }

    .topbar__profile span {
        display: none;
    }
}

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

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

    .stat-grid .stat-card:last-child {
        grid-column: auto;
    }

    .stat-card__value {
        font-size: 1.45rem;
    }

    .login-shell {
        grid-template-rows: 24% minmax(0, 1fr);
    }

    .login-brand__logo {
        width: clamp(90px, 14vh, 120px);
    }

    .data-table {
        min-width: 680px;
    }

    .assign-toolbar {
        grid-template-columns: 1fr;
    }

    .provider-card {
        grid-template-columns: 40px 1fr auto;
    }

    .service-card,
    .service-card__grid,
    .time-grid,
    .detail-top {
        grid-template-columns: 1fr;
        display: grid;
    }

    .detail-top {
        display: grid;
    }

    .modal,
    .modal--lg,
    .modal--sm,
    .modal--preview {
        width: 100%;
    }

    .modal__header,
    .modal__body,
    .modal__footer {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .modal__footer {
        flex-direction: column;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .upload-dropzone {
        flex-wrap: wrap;
        min-height: 96px;
    }

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

    .selfie-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .request-page__head {
        flex-direction: column;
    }

    .request-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .request-tab {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0 12px;
    }

    .request-actions {
        position: sticky;
        bottom: 10px;
    }
}

.admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.admin-tabs a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 7px;
    color: #555;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.admin-tabs a.is-active {
    color: #111;
    background: linear-gradient(100deg, #986932, #f1d18d, #986932);
}

.loyalty-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.loyalty-stats .panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
}

.loyalty-stats span {
    color: #777;
    font-size: 0.78rem;
}

.loyalty-stats strong {
    font-size: 1.25rem;
}

.pagination-wrap {
    padding: 14px 18px;
}

.points-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 9px;
    border: 1px solid rgba(31, 157, 85, 0.35);
    border-radius: 20px;
    background: rgba(31, 157, 85, 0.08);
    color: #16804a;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.points-pill--negative {
    border-color: rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.08);
    color: #d32f2f;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    color: #333;
    font-size: 0.82rem;
    font-weight: 600;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #f7f7f7;
    color: #222;
    font: inherit;
}

.point-quick-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.point-pick {
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    background: #f7f7f7;
    color: #555;
    cursor: pointer;
    font-size: 0.72rem;
}

.point-pick:hover,
.point-pick.is-active {
    border-color: #b98b4d;
    background: #fff7e9;
    color: #805a2b;
}

.recipient-list {
    display: grid;
    max-height: 330px;
    gap: 7px;
    overflow-y: auto;
}

.recipient-card {
    display: grid;
    grid-template-columns: auto 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 8px;
    background: #f2f2f2;
    cursor: pointer;
}

.recipient-card img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.recipient-card span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.recipient-card strong,
.recipient-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipient-card strong {
    font-size: 0.8rem;
}

.recipient-card small {
    color: #777;
    font-size: 0.7rem;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 2px;
    font-size: 0.82rem;
    cursor: pointer;
}

.loyalty-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.loyalty-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
}

.loyalty-detail-list dt {
    color: #777;
    font-size: 0.78rem;
}

.loyalty-detail-list dd {
    max-width: 65%;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

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

@media (max-width: 900px) {
    .loyalty-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-tabs {
        grid-template-columns: 1fr;
    }

    .loyalty-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .loyalty-stats .panel {
        padding: 12px;
    }

    .loyalty-stats strong {
        font-size: 1.05rem;
    }
}
