:root {
    --bg: #fbf7f2;
    --panel: #fffdf9;
    --ink: #181716;
    --muted: #77706a;
    --line: #e9dfd5;
    --soft: #f3ebe4;
    --purple: #8b5cf6;
    --purple-deep: #5f3bd7;
    --pink: #f6aacb;
    --mint: #d7f2e5;
    --shadow: 0 18px 50px rgba(39, 31, 25, 0.12);
    --shadow-soft: 0 10px 28px rgba(39, 31, 25, 0.08);
    --radius: 8px;
    --nav-height: 78px;
}

/* Vibely Admin Portal Phase 1: isolated UI-only dashboard styles */
body.route-admin,
body.route-admin_login {
    background:
        radial-gradient(circle at 16% 12%, rgba(139, 92, 246, 0.18), transparent 30%),
        radial-gradient(circle at 82% 4%, rgba(246, 170, 203, 0.16), transparent 28%),
        #09090d;
    color: #f8f5ff;
}

.route-admin .app-shell,
.route-admin_login .app-shell {
    max-width: none;
    min-height: 100vh;
    padding: 0;
    background: transparent;
}

.route-admin main,
.route-admin_login main {
    min-height: 100vh;
}

.route-admin .topbar,
.route-admin .bottom-nav,
.route-admin .legal-footer,
.route-admin_login .topbar,
.route-admin_login .bottom-nav,
.route-admin_login .legal-footer {
    display: none;
}

.admin-login-v2,
.admin-v2 {
    font-family: Inter, Manrope, ui-sans-serif, system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-v2 *,
.admin-v2 * {
    box-sizing: border-box;
}

.admin-login-v2 {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 32px 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.06), transparent 34%),
        #09090d;
}

.admin-login-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: .42;
    pointer-events: none;
}

.admin-login-orb.orb-one {
    top: -120px;
    right: -90px;
    background: radial-gradient(circle, rgba(139,92,246,.72), transparent 66%);
}

.admin-login-orb.orb-two {
    bottom: -150px;
    left: -120px;
    background: radial-gradient(circle, rgba(246,170,203,.58), transparent 68%);
}

.admin-login-card {
    position: relative;
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(26,25,34,.86), rgba(15,15,22,.74));
    box-shadow: 0 28px 90px rgba(0,0,0,.42);
    backdrop-filter: blur(22px);
}

.admin-login-brand,
.admin-logo,
.admin-top-actions,
.admin-login-row,
.admin-action-row,
.admin-chip-row {
    display: flex;
    align-items: center;
}

.admin-login-brand {
    gap: 12px;
    margin-bottom: 30px;
}

.admin-brand-mark,
.admin-logo-mark {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
}

.admin-login-brand p,
.admin-login-brand span,
.admin-login-copy p,
.admin-login-row a,
.admin-login-row span,
.admin-form-error {
    margin: 0;
}

.admin-login-brand p,
.admin-login-copy h1,
.admin-page-head h1,
.admin-hero h1 {
    color: #fff;
}

.admin-login-brand p {
    font-weight: 800;
}

.admin-login-brand span,
.admin-login-copy p,
.admin-page-head p,
.admin-hero p,
.admin-panel p,
.admin-stat-card span,
.admin-side-nav small,
.admin-side-card span {
    color: #a9a2b8;
}

.admin-kicker {
    color: #b69cff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-login-copy h1 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.08;
}

.admin-login-form {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.admin-login-form label,
.admin-search,
.admin-filter-bar {
    display: grid;
    gap: 8px;
}

.admin-login-form label span,
.admin-search span {
    color: #d6d0e3;
    font-size: 13px;
    font-weight: 700;
}

.admin-login-form input,
.admin-search input,
.admin-filter-bar input,
.admin-panel textarea,
.admin-report-card textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    outline: 0;
    background: rgba(255,255,255,.07);
    color: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.admin-login-form input,
.admin-search input,
.admin-filter-bar input {
    height: 50px;
    padding: 0 15px;
}

.admin-login-form input:focus,
.admin-search input:focus,
.admin-filter-bar input:focus,
.admin-panel textarea:focus,
.admin-report-card textarea:focus {
    border-color: rgba(139,92,246,.82);
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}

.admin-login-row {
    justify-content: space-between;
}

.admin-check {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
}

.admin-check input {
    width: 16px;
    height: 16px;
}

.admin-login-row a {
    color: #cbbdff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.admin-form-error {
    border: 1px solid rgba(246,170,203,.22);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(246,170,203,.08);
    color: #ffc5d9;
    font-size: 13px;
}

.admin-login-form button,
.admin-hero button,
.admin-panel button,
.admin-action-row button,
.admin-filter-bar button,
.admin-setting-card button,
.admin-pill,
.admin-icon-btn,
.admin-menu-toggle {
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-login-form button,
.admin-hero button,
.admin-hero-link,
.admin-panel-link,
.admin-panel button,
.admin-action-row button:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6, #f6aacb);
    color: #fff;
    box-shadow: 0 16px 40px rgba(139,92,246,.22);
    text-decoration: none;
}

.admin-v2 {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(139,92,246,.22), transparent 26%),
        linear-gradient(180deg, #101018 0%, #09090d 100%);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,.09);
    padding: 22px 16px;
    background: rgba(7,7,11,.72);
    backdrop-filter: blur(20px);
}

.admin-logo {
    gap: 10px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 22px;
}

.admin-logo strong {
    font-size: 18px;
}

.admin-logo em {
    margin-left: auto;
    border: 1px solid rgba(139,92,246,.35);
    border-radius: 999px;
    padding: 5px 9px;
    color: #cbbdff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.admin-side-nav {
    display: grid;
    gap: 6px;
}

.admin-side-nav a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 3px 10px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 10px;
    color: #f8f5ff;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.admin-side-nav a:hover,
.admin-side-nav a.active {
    border-color: rgba(139,92,246,.32);
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.admin-side-nav a span {
    display: grid;
    grid-row: span 2;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #cbbdff;
    font-size: 12px;
    font-weight: 900;
}

.admin-side-nav b {
    font-size: 14px;
}

.admin-side-card,
.admin-panel,
.admin-stat-card,
.admin-chart-card,
.admin-table-card,
.admin-review-card,
.admin-report-card,
.admin-profile-card,
.admin-setting-card,
.admin-log-card {
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.045));
    box-shadow: 0 18px 60px rgba(0,0,0,.24);
    backdrop-filter: blur(18px);
}

.admin-side-card {
    margin-top: 18px;
    border-radius: 22px;
    padding: 16px;
}

.admin-side-card p,
.admin-stat-card p,
.admin-setting-card p {
    margin: 0 0 8px;
    color: #d9d4e6;
    font-size: 13px;
    font-weight: 800;
}

.admin-side-card strong {
    display: block;
    color: #fff;
    font-size: 30px;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    z-index: 5;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 16px 22px;
    background: rgba(9,9,13,.72);
    backdrop-filter: blur(18px);
}

.admin-menu-toggle {
    display: none;
    min-height: 40px;
    padding: 0 14px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.admin-top-actions {
    gap: 8px;
}

.admin-pill,
.admin-icon-btn,
.admin-profile-chip,
.admin-filter-bar button,
.admin-filter-bar button.active,
.admin-action-row button:not(:first-child),
.admin-action-row a,
.admin-setting-card button {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #fff;
}

.admin-filter-bar button.active {
    border-color: rgba(139,92,246,.45);
    background: rgba(139,92,246,.18);
}

.admin-pill {
    height: 40px;
    padding: 0 14px;
}

.admin-icon-btn {
    width: 40px;
    height: 40px;
}

.admin-profile-chip {
    gap: 8px;
    min-height: 40px;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    font: inherit;
}

.admin-profile-chip span,
.admin-user-cell span,
.admin-avatar-xl {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b5cf6, #f6aacb);
    color: #fff;
    font-weight: 900;
}

.admin-profile-chip span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.admin-content {
    padding: 24px;
}

.admin-hero,
.admin-page-head {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-hero {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 30px;
    padding: 24px;
    background:
        radial-gradient(circle at 76% 18%, rgba(246,170,203,.24), transparent 34%),
        linear-gradient(135deg, rgba(139,92,246,.18), rgba(255,255,255,.05));
}

.admin-hero h1,
.admin-page-head h1 {
    margin: 6px 0 8px;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.08;
}

.admin-hero p,
.admin-page-head p {
    margin: 0;
    max-width: 680px;
    font-size: 14px;
}

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

.admin-stat-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card {
    border-radius: 22px;
    padding: 16px;
}

.admin-stat-card strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.admin-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-chart-card,
.admin-panel,
.admin-table-card,
.admin-review-card,
.admin-report-card,
.admin-profile-card,
.admin-setting-card,
.admin-log-card {
    border-radius: 24px;
    padding: 18px;
}

.admin-chart-card {
    min-height: 236px;
    display: grid;
    grid-template-rows: auto 1fr;
}

.admin-chart-card h2,
.admin-panel h2,
.admin-review-card h2,
.admin-report-card h2,
.admin-profile-card h2,
.admin-log-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.admin-chart-card p,
.admin-review-card p,
.admin-report-card p,
.admin-log-card p,
.admin-log-card span {
    margin: 0;
    color: #a9a2b8;
    font-size: 13px;
}

.admin-chart-bars {
    display: flex;
    gap: 10px;
    align-items: end;
    min-height: 145px;
    margin-top: 22px;
}

.admin-chart-bars span {
    flex: 1;
    min-height: 24px;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #f6aacb, #8b5cf6);
    box-shadow: 0 10px 24px rgba(139,92,246,.22);
}

.admin-feed {
    display: grid;
    gap: 12px;
}

.admin-feed div {
    position: relative;
    padding-left: 18px;
}

.admin-feed div > span {
    position: absolute;
    top: 5px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
}

.admin-feed b,
.admin-meter span,
.admin-log-card strong {
    color: #fff;
    font-size: 14px;
}

.admin-feed p,
.admin-feed small {
    display: block;
    margin: 2px 0 0;
    color: #a9a2b8;
    font-size: 13px;
}

.admin-meter {
    display: grid;
    grid-template-columns: 100px 1fr 42px;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.admin-meter b {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5cf6, #f6aacb);
}

.admin-meter em {
    color: #cbbdff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.alert-panel {
    background: linear-gradient(180deg, rgba(139,92,246,.14), rgba(246,170,203,.08));
}

.admin-filter-bar {
    grid-template-columns: minmax(220px, 1fr) repeat(4, auto);
    align-items: center;
    margin-bottom: 16px;
}

.admin-filter-bar button {
    min-height: 44px;
    padding: 0 14px;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table-card {
    overflow-x: auto;
}

.admin-data-table th,
.admin-data-table td {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
}

.admin-data-table th {
    color: #a9a2b8;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-data-table td {
    color: #eee9fb;
}

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

.admin-user-cell span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 12px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255,255,255,.07);
    color: #efeafd;
    font-size: 12px;
    font-weight: 800;
    margin: 2px 4px 2px 0;
}

.badge-critical,
.badge-high,
.badge-failed,
.badge-suspended {
    border-color: rgba(246,170,203,.34);
    background: rgba(246,170,203,.12);
    color: #ffc5d9;
}

.badge-verified,
.badge-success,
.badge-active,
.badge-elite {
    border-color: rgba(139,92,246,.38);
    background: rgba(139,92,246,.14);
    color: #d9ceff;
}

.admin-action-menu {
    position: relative;
}

.admin-action-menu > button {
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-weight: 800;
}

.admin-action-menu div {
    position: absolute;
    z-index: 4;
    right: 0;
    display: none;
    min-width: 150px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 6px;
    background: #171721;
    box-shadow: 0 20px 40px rgba(0,0,0,.32);
}

.admin-action-menu:hover div {
    display: grid;
}

.admin-action-menu div button {
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    background: transparent;
    color: #efeafd;
    text-align: left;
}

.admin-action-menu div button:hover {
    background: rgba(255,255,255,.08);
}

.admin-detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr 1fr;
    gap: 16px;
}

.admin-detail-layout .wide {
    grid-column: 2 / -1;
}

.admin-profile-card {
    grid-row: span 2;
}

.admin-avatar-xl {
    width: 92px;
    height: 92px;
    border-radius: 30px;
    font-size: 24px;
    margin-bottom: 16px;
}

.admin-chip-row {
    flex-wrap: wrap;
    gap: 4px;
    margin: 16px 0;
}

.admin-action-row {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-action-row button {
    min-height: 38px;
    padding: 0 12px;
}

.admin-action-row form {
    margin: 0;
}

.admin-action-row a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 16px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.admin-action-row.compact {
    align-items: center;
    margin-top: 0;
}

.admin-photo-grid-demo,
.admin-review-photos {
    display: grid;
    gap: 10px;
}

.admin-photo-grid-demo {
    grid-template-columns: repeat(4, 1fr);
}

.admin-photo-grid-demo span,
.admin-review-photos span {
    display: grid;
    min-height: 120px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 18%, rgba(246,170,203,.26), transparent 34%),
        linear-gradient(135deg, rgba(139,92,246,.20), rgba(255,255,255,.06));
    color: #d9d4e6;
    font-size: 13px;
    font-weight: 800;
}

.admin-photo-grid-demo img,
.admin-review-photos img {
    width: 100%;
    min-height: 120px;
    max-height: 220px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
}

.admin-panel textarea,
.admin-report-card textarea {
    min-height: 96px;
    padding: 12px;
    resize: vertical;
}

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

.admin-review-photos {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 14px;
}

.admin-empty {
    border: 1px dashed rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 22px;
    color: #a9a2b8;
    text-align: center;
}

.admin-setting-card {
    min-height: 132px;
}

.admin-setting-card strong {
    display: block;
    color: #fff;
    font-size: 18px;
    margin-bottom: 18px;
}

.admin-setting-card button {
    min-height: 36px;
    padding: 0 12px;
}

.admin-setting-card input,
.admin-setting-card textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,.07);
    color: #fff;
    font: inherit;
}

.admin-save-settings {
    margin-top: 16px;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    background: linear-gradient(135deg, #8b5cf6, #f6aacb);
    color: #fff;
    font-weight: 900;
}

.admin-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
    color: #a9a2b8;
}

.admin-pagination a {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
}

.admin-data-table small,
.admin-table-card details {
    color: #a9a2b8;
}

.admin-table-card pre {
    max-width: 360px;
    max-height: 220px;
    overflow: auto;
    border-radius: 14px;
    padding: 12px;
    background: rgba(0,0,0,.22);
    color: #d9d4e6;
    white-space: pre-wrap;
}

.admin-switch {
    display: inline-flex;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
}

.admin-switch span {
    position: relative;
    display: block;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

.admin-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.admin-switch input:checked + span {
    background: linear-gradient(135deg, #8b5cf6, #f6aacb);
}

.admin-switch input:checked + span::after {
    transform: translateX(24px);
}

.admin-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    max-width: 320px;
    transform: translateY(20px);
    opacity: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(18,18,26,.94);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.36);
    transition: opacity .2s ease, transform .2s ease;
}

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

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(8px);
}

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

.admin-modal article {
    width: min(440px, 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px;
    padding: 22px;
    background: #15151f;
    box-shadow: 0 28px 80px rgba(0,0,0,.44);
}

.admin-modal article > button {
    float: right;
    border: 0;
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

@media (max-width: 1180px) {
    .admin-v2 {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .admin-logo strong,
    .admin-logo em,
    .admin-side-nav b,
    .admin-side-nav small,
    .admin-side-card {
        display: none;
    }

    .admin-side-nav a {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

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

    .admin-sidebar {
        position: fixed;
        z-index: 10;
        left: 0;
        transform: translateX(-105%);
        width: 280px;
        transition: transform .22s ease;
    }

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

    .admin-logo strong,
    .admin-logo em,
    .admin-side-nav b,
    .admin-side-nav small,
    .admin-side-card {
        display: block;
    }

    .admin-side-nav a {
        grid-template-columns: 34px 1fr;
        justify-items: stretch;
    }

    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
    }

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

    .admin-top-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .admin-stat-grid,
    .admin-stat-grid.compact,
    .admin-grid.two,
    .admin-grid.three,
    .admin-card-grid,
    .admin-settings-grid,
    .admin-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-detail-layout .wide {
        grid-column: auto;
    }

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

    .admin-filter-bar input {
        grid-column: 1 / -1;
    }
}

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

    .admin-hero,
    .admin-page-head {
        display: block;
    }

    .admin-hero button {
        width: 100%;
        margin-top: 16px;
    }

    .admin-data-table,
    .admin-data-table thead,
    .admin-data-table tbody,
    .admin-data-table tr,
    .admin-data-table th,
    .admin-data-table td {
        display: block;
    }

    .admin-data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .admin-data-table tr {
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 18px;
        padding: 10px;
        margin-bottom: 10px;
        background: rgba(255,255,255,.04);
    }

    .admin-data-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 8px;
    }

    .admin-data-table td::before {
        content: attr(data-label);
        color: #a9a2b8;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-photo-grid-demo {
        grid-template-columns: repeat(2, 1fr);
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 85% 8%, rgba(246, 170, 203, 0.28), transparent 30%),
        linear-gradient(180deg, #fbf7f2 0%, #f7efe7 100%);
    font-family: Inter, Manrope, ui-sans-serif, system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

body.page-in {
    opacity: 1;
    transform: translateY(0);
}

body.page-out {
    opacity: 0.82;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.app-shell {
    min-height: 100vh;
}

.screen {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(var(--nav-height) + 22px + env(safe-area-inset-bottom, 0px));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 14px 18px;
    background: rgba(251, 247, 242, 0.86);
    border-bottom: 1px solid rgba(233, 223, 213, 0.75);
    backdrop-filter: blur(18px);
}

.brand-mini,
.topbar-actions,
.profile-title,
.section-heading.inline,
.discover-header,
.chat-header,
.admin-actions,
.admin-inline-form,
.inline-form {
    display: flex;
    align-items: center;
}

.brand-mini {
    gap: 10px;
    font-weight: 800;
}

.brand-mark,
.logo-mark {
    display: block;
    object-fit: cover;
    flex: 0 0 auto;
}

.row-avatar,
.mini-avatar,
.settings-avatar,
.verification-ring {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.topbar-actions {
    gap: 12px;
}

.avatar-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 249, 0.94);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(39, 31, 25, 0.08);
    backdrop-filter: blur(18px);
}

.bottom-nav a {
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 5px;
    min-height: 52px;
    padding: 7px 3px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    touch-action: manipulation;
}

.bottom-nav a.active {
    color: var(--ink);
    background: var(--soft);
}

.nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.42;
}

.bottom-nav a.active .nav-dot {
    opacity: 1;
    background: var(--purple);
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 4px 18px calc(var(--nav-height) + 18px + env(safe-area-inset-bottom, 0px));
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.legal-page h2 {
    margin-top: 12px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(2.15rem, 9vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 7px;
    font-size: 1.08rem;
    line-height: 1.2;
}

p {
    color: var(--muted);
}

.lead {
    font-size: 1.18rem;
    color: #393430;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--purple-deep);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 850;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled,
button:disabled {
    cursor: progress;
    opacity: 0.68;
}

.button:active,
.decision:active,
.bottom-nav a:active,
.conversation-row:active {
    transform: scale(0.985);
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ink), var(--purple-deep));
    box-shadow: var(--shadow-soft);
}

.button.ghost {
    color: var(--ink);
    background: rgba(255, 253, 249, 0.72);
    border-color: var(--line);
}

.button.full {
    width: 100%;
}

.text-link {
    color: var(--purple-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
}

.notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.82);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.notification-link strong {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-size: 0.68rem;
}

.pill-link,
.badge,
.inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
}

.pill-link {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}

.badge {
    padding: 6px 10px;
    color: var(--ink);
    background: rgba(255, 253, 249, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.badge.verified,
.inline-badge {
    color: #17432b;
    background: var(--mint);
}

.inline-badge {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 0.62rem;
    vertical-align: middle;
}

.flash {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
    font-weight: 750;
}

.flash-error {
    color: #8a2f22;
    background: #fff1ee;
}

.flash-success {
    color: #22543a;
    background: #edf8f0;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: calc(var(--nav-height) + 22px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: min(320px, calc(100vw - 36px));
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
    font-weight: 800;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-error {
    color: #8a2f22;
    background: #fff1ee;
}

.splash-grid,
.auth-layout,
.center-stage {
    min-height: calc(100vh - 40px);
}

.splash-grid {
    display: grid;
    align-items: center;
    gap: 34px;
}

.logo-lockup {
    max-width: 520px;
}

.logo-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.phone-preview {
    position: relative;
    min-height: 360px;
}

.preview-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.86);
    box-shadow: var(--shadow);
}

.preview-card-main {
    overflow: hidden;
    max-width: 310px;
    margin: 0 auto;
    padding: 10px;
}

.preview-photo,
.profile-media {
    border-radius: var(--radius);
    background: linear-gradient(145deg, #2b2623, #8b5cf6 55%, #f6aacb);
}

.preview-photo {
    height: 255px;
}

.preview-lines {
    display: grid;
    gap: 10px;
    padding: 18px 6px 6px;
}

.preview-lines span {
    height: 12px;
    border-radius: 999px;
    background: var(--soft);
}

.preview-lines span:nth-child(2) {
    width: 78%;
}

.preview-lines span:nth-child(3) {
    width: 52%;
}

.preview-card-float {
    position: absolute;
    right: 0;
    bottom: 22px;
    width: min(250px, 74%);
    padding: 18px;
}

.preview-card-float p {
    margin-bottom: 6px;
    color: var(--purple-deep);
    font-size: 0.78rem;
    font-weight: 850;
}

.preview-card-float strong {
    display: block;
    line-height: 1.25;
}

.stack-page {
    display: grid;
    gap: 20px;
}

.stack-page.narrow,
.auth-card,
.center-stage > * {
    width: min(100%, 640px);
    margin: 0 auto;
}

.section-heading {
    padding: 12px 0;
}

.section-heading h1,
.discover-header h1,
.chat-header h1 {
    font-size: clamp(2rem, 8vw, 3.4rem);
}

.section-heading.inline {
    justify-content: space-between;
    gap: 16px;
}

.feature-stack,
.form-panel,
.settings-grid,
.list-stack,
.safety-grid,
.plan-grid,
.metric-grid,
.like-grid {
    display: grid;
    gap: 12px;
}

.feature-row,
.auth-card,
.form-panel,
.verification-card,
.empty-state,
.upgrade-band,
.settings-row,
.conversation-row,
.like-card,
.plan-card,
.admin-note,
.admin-list-card,
.table-card {
    border: 1px solid rgba(233, 223, 213, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.84);
    box-shadow: var(--shadow-soft);
}

.feature-row {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 18px;
}

.feature-number {
    color: var(--purple-deep);
    font-size: 0.8rem;
    font-weight: 900;
}

.onboarding-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.onboarding-progress span {
    height: 6px;
    border-radius: 999px;
    background: var(--line);
}

.onboarding-progress span.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.auth-layout,
.center-stage {
    display: grid;
    place-items: center;
}

.auth-card,
.form-panel,
.empty-state,
.upgrade-band,
.admin-note {
    padding: 20px;
}

.form-grid,
.prompt-grid,
.filter-panel,
.admin-filter-form,
.payment-summary {
    display: grid;
    gap: 14px;
}

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

label,
.field-block {
    display: grid;
    gap: 8px;
}

label span,
.field-label span {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.field-label small,
.form-note,
.switch-auth {
    color: var(--muted);
    font-size: 0.86rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(139, 92, 246, 0.58);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span,
.interest-row span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.choice-chip input:checked + span {
    color: var(--ink);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
}

.file-input {
    padding: 11px;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.photo-review-item {
    position: relative;
}

.skeleton-ready {
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--soft), #fff, var(--soft));
    background-size: 220% 100%;
    animation: skeleton 1.4s infinite linear;
}

@keyframes skeleton {
    from {
        background-position: 220% 0;
    }
    to {
        background-position: -220% 0;
    }
}

.photo-review-item .inline-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
}

.verification-card,
.settings-hero,
.conversation-row,
.admin-list-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.verification-ring {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 1.4rem;
}

.discover-screen {
    display: grid;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
}

.discover-header {
    justify-content: space-between;
    gap: 16px;
}

.profile-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    animation: cardIn 220ms ease both;
}

.premium-profile-card {
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow: 0 22px 58px rgba(95, 59, 215, 0.16);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-media {
    position: relative;
    display: grid;
    min-height: 410px;
    place-items: center;
    overflow: hidden;
}

.profile-media img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
}

.profile-media > span {
    color: #fff;
    font-size: 4rem;
    font-weight: 900;
}

.profile-badge-row {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-content {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.profile-title {
    justify-content: space-between;
    gap: 16px;
}

.profile-title h2 {
    margin-bottom: 4px;
    font-size: 1.55rem;
}

.profile-bio {
    margin-bottom: 0;
    color: #393430;
    font-weight: 650;
}

.interest-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-card {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--soft);
}

.prompt-card p {
    margin-bottom: 6px;
    color: var(--purple-deep);
    font-size: 0.82rem;
    font-weight: 850;
}

.prompt-card strong {
    display: block;
    font-size: 1.04rem;
    line-height: 1.35;
}

.decision-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.decision {
    min-height: 58px;
    border: 0;
    border-radius: var(--radius);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.decision.pass {
    color: var(--ink);
    background: #fff;
}

.decision.like {
    color: #fff;
    background: linear-gradient(135deg, var(--purple-deep), var(--pink));
}

.decision:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.filter-panel,
.boost-band {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.78);
    box-shadow: var(--shadow-soft);
}

.filter-panel {
    grid-template-columns: 1fr;
}

.inline-choice {
    align-self: end;
}

.boost-band,
.plan-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.boost-band h2 {
    margin-bottom: 0;
}

.upgrade-band.compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
}

.upgrade-band.compact p {
    margin-bottom: 0;
}

.match-card {
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: var(--shadow);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(24, 23, 22, 0.42);
    backdrop-filter: blur(16px);
}

.modal-card {
    position: relative;
}

.confirm-backdrop {
    z-index: 120;
    background:
        radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.22), transparent 28%),
        rgba(8, 8, 12, 0.72);
    backdrop-filter: blur(18px) saturate(1.08);
}

.confirm-card {
    position: relative;
    width: min(92vw, 430px);
    overflow: hidden;
    padding: 34px 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 32px;
    background:
        radial-gradient(circle at 18% 0%, rgba(246, 170, 203, 0.22), transparent 32%),
        radial-gradient(circle at 100% 16%, rgba(139, 92, 246, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 246, 241, 0.96));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.34),
        0 10px 34px rgba(95, 59, 215, 0.18);
    color: var(--ink);
    text-align: center;
    animation: softEnter 220ms ease both;
}

.confirm-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 24px;
    pointer-events: none;
}

.confirm-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(246, 170, 203, 0.18));
    color: var(--purple-deep);
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(95, 59, 215, 0.12);
}

.confirm-kicker {
    margin: 0 0 8px;
    color: var(--purple-deep);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.confirm-card h2 {
    max-width: 330px;
    margin: 0 auto;
    color: #17131f;
    font-size: clamp(1.35rem, 3.6vw, 1.8rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.confirm-copy {
    max-width: 310px;
    margin: 12px auto 0;
    color: #756d79;
    font-size: 0.94rem;
    line-height: 1.55;
}

.confirm-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.confirm-button {
    min-height: 54px;
    border-radius: 18px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.confirm-button:hover {
    transform: translateY(-1px);
}

.confirm-cancel {
    border: 1px solid rgba(30, 26, 34, 0.1);
    background: rgba(255, 255, 255, 0.78);
    color: #1d1a22;
    box-shadow: 0 12px 28px rgba(31, 24, 19, 0.08);
}

.confirm-continue {
    border: 1px solid rgba(95, 59, 215, 0.3);
    background: linear-gradient(135deg, #17131f, var(--purple-deep) 48%, #8b5cf6);
    color: #fff;
    box-shadow: 0 16px 36px rgba(95, 59, 215, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
}

.match-orbit {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.mini-avatar {
    width: 68px;
    height: 68px;
    margin: 0 -8px;
    border: 4px solid var(--panel);
    border-radius: 50%;
}

.mini-avatar.accent {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.match-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
}

.row-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ink), var(--purple));
    color: #fff;
}

.image-avatar {
    overflow: hidden;
}

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

.conversation-row {
    min-height: 76px;
    padding: 14px;
}

.notification-row.unread {
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.09), rgba(255, 253, 249, 0.92));
}

.conversation-row h2,
.conversation-row p {
    margin-bottom: 2px;
}

.chat-screen {
    display: grid;
    grid-template-rows: auto minmax(360px, 1fr) auto;
    gap: 12px;
    max-width: 720px;
    min-height: calc(100vh - 122px);
    margin: 0 auto;
}

.chat-header {
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.chat-header h1 {
    margin-bottom: 2px;
    text-align: center;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 12px 2px;
    overscroll-behavior: contain;
}

.message-bubble {
    max-width: min(82%, 430px);
    padding: 11px 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}

.message-bubble.mine {
    align-self: flex-end;
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.message-bubble p {
    margin-bottom: 4px;
    color: inherit;
}

.message-bubble span {
    color: inherit;
    opacity: 0.62;
    font-size: 0.72rem;
}

.message-report-form {
    margin-top: 4px;
}

.empty-message {
    align-self: center;
    margin: auto 0;
    color: var(--muted);
    font-weight: 750;
}

.message-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.message-form small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.76rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.message-form small.active {
    opacity: 1;
    transform: translateY(0);
}

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

.like-grid.locked .like-card {
    filter: blur(0);
}

.like-card {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.upgrade-band {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(246, 170, 203, 0.18)), var(--panel);
}

.premium-hero {
    padding: 24px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #181716, #5f3bd7 62%, #d981ab);
    box-shadow: var(--shadow);
}

.premium-hero p,
.premium-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.plan-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.plan-card.featured {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(255, 253, 249, 0.92));
}

.plan-card h2 {
    font-size: 2rem;
}

.plan-card h2 span {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.plan-card li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: #393430;
    font-weight: 750;
}

.payment-summary {
    margin-bottom: 16px;
}

.payment-summary div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.payment-summary span {
    color: var(--muted);
}

.payment-summary strong {
    text-align: right;
}

.settings-hero {
    align-items: center;
    padding: 12px 0;
}

.settings-avatar {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 50%;
    font-size: 1.4rem;
}

.settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.settings-row span {
    color: var(--muted);
}

.settings-row strong {
    text-align: right;
}

.profile-strength-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(233, 223, 213, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.84);
    box-shadow: var(--shadow-soft);
}

.strength-ring {
    --strength: 0%;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: conic-gradient(var(--purple) var(--strength), var(--soft) 0);
}

.strength-ring span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink);
    font-weight: 900;
}

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

.safety-grid article {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--soft);
}

.admin-shell {
    display: grid;
    gap: 16px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.admin-tabs a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 850;
}

.admin-tabs a.active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.admin-filter-form {
    grid-template-columns: 1fr;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.78);
}

.admin-filter-form.wide {
    grid-template-columns: 1fr;
}

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

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

.metric-grid article {
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.metric-grid span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.admin-list-card {
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
}

.admin-insight-grid,
.admin-photo-grid,
.activity-list {
    display: grid;
    gap: 12px;
}

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

.admin-detail-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(233, 223, 213, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.84);
    box-shadow: var(--shadow-soft);
}

.admin-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    object-fit: cover;
}

.stat-row,
.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.stat-row:last-child,
.activity-row:last-child {
    border-bottom: 0;
}

.stat-row span,
.activity-row span {
    color: var(--muted);
    font-size: 0.86rem;
}

.activity-row {
    align-items: flex-start;
    flex-direction: column;
}

.inline-badge.muted {
    color: var(--muted);
    background: var(--soft);
}

.admin-actions,
.admin-inline-form {
    gap: 8px;
    flex-wrap: wrap;
}

.admin-photo-review {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-photo-review img {
    width: 74px;
    height: 74px;
    border-radius: var(--radius);
    object-fit: cover;
}

.inline-admin-actions {
    align-items: stretch;
}

.inline-admin-actions .button {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.8rem;
}

.table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

td strong,
td span {
    display: block;
}

td span {
    color: var(--muted);
    font-size: 0.84rem;
}

.gradient-one {
    background: linear-gradient(135deg, #181716, #8b5cf6 58%, #f6aacb);
}

.gradient-two {
    background: linear-gradient(135deg, #2f2a26, #b68cff 56%, #ffe0c7);
}

.gradient-three {
    background: linear-gradient(135deg, #181716, #d7f2e5 48%, #f6aacb);
}

@media (min-width: 680px) {
    .screen {
        padding: 28px 28px calc(var(--nav-height) + 26px);
    }

    .splash-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        min-height: calc(100vh - 56px);
    }

    .hero-actions {
        grid-template-columns: auto auto;
        justify-content: flex-start;
    }

    .form-grid.two,
    .plan-grid,
    .like-grid,
    .safety-grid,
    .filter-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-filter-form {
        grid-template-columns: 1fr 180px auto;
    }

    .admin-filter-form.wide {
        grid-template-columns: minmax(220px, 1fr) 170px 150px 160px auto;
    }

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

    .admin-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-card,
    .form-panel,
    .empty-state,
    .upgrade-band,
    .admin-note {
        padding: 28px;
    }
}

@media (max-width: 430px) {
    h1 {
        font-size: 2rem;
    }

    .topbar {
        padding: 12px 14px;
    }

    .notification-link span {
        display: none;
    }

    .message-form {
        position: sticky;
        bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
        padding: 8px 0 0;
        background: var(--bg);
    }

    .profile-media,
    .profile-media img {
        min-height: 360px;
    }
}

@media (min-width: 980px) {
    .bottom-nav {
        right: 50%;
        left: auto;
        width: 540px;
        transform: translateX(50%);
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
    }

    .plan-grid,
    .like-grid,
    .safety-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Phase UI redesign: premium mobile-first Vibely shell */
:root {
    --surface: #fffdf9;
    --text: #171514;
    --accent: #7c5cff;
    --accent-soft: #efe9ff;
    --border: #e7e2dc;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --panel: var(--surface);
    --ink: var(--text);
    --line: var(--border);
    --purple: var(--accent);
    --purple-deep: #6046d9;
    --soft: #f4eee8;
    --shadow: 0 22px 70px rgba(24, 21, 18, 0.12);
    --shadow-soft: 0 12px 34px rgba(24, 21, 18, 0.07);
    --radius: var(--radius-lg);
    --nav-height: 82px;
}

body {
    min-height: 100dvh;
    background:
        linear-gradient(165deg, rgba(239, 233, 255, 0.82), rgba(255, 246, 250, 0) 34%),
        linear-gradient(180deg, #fbf7f2 0%, #f7f0e9 100%);
    color: var(--text);
    opacity: 1;
    transform: none;
    overflow-x: hidden;
}

body.page-in {
    opacity: 1;
    transform: none;
}

.app-shell {
    min-height: 100dvh;
}

.screen,
.topbar,
.legal-footer {
    width: 100%;
    max-width: 430px;
}

.screen {
    min-height: 100dvh;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(var(--nav-height) + 18px + env(safe-area-inset-bottom, 0px));
}

.route-admin .screen,
.route-admin .topbar,
.route-admin .legal-footer {
    width: min(100%, 1120px);
}

.route-privacy .screen,
.route-terms .screen,
.route-guidelines .screen,
.route-support .screen,
.route-contact .screen {
    width: min(100%, 720px);
}

.topbar {
    padding: 10px 14px;
    background: rgba(251, 247, 242, 0.92);
}

.brand-mark,
.logo-mark {
    background: transparent;
}

.brand-mini span:last-child {
    font-size: 1rem;
    letter-spacing: 0;
}

.bottom-nav {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 430px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: translateX(-50%);
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 249, 0.96);
    border: 1px solid rgba(231, 226, 220, 0.9);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
}

.bottom-nav a {
    min-height: 56px;
    border-radius: 18px;
    font-size: 0.72rem;
    gap: 4px;
}

.bottom-nav a.active {
    background: var(--accent-soft);
}

.nav-dot {
    display: none;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
}

h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.section-heading h1,
.discover-header h1,
.chat-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.05;
}

.lead,
.section-heading p,
.auth-card p,
.premium-hero p {
    font-size: 0.98rem;
}

.button,
input,
select,
textarea,
.decision {
    border-radius: 20px;
}

.button {
    min-height: 52px;
    font-size: 0.96rem;
}

.button.primary {
    background: linear-gradient(135deg, #171514, #6f55ef);
}

.button.ghost {
    background: rgba(255, 253, 249, 0.86);
}

.auth-layout,
.center-stage,
.splash-grid {
    min-height: calc(100dvh - 32px);
}

.auth-card,
.form-panel,
.feature-row,
.verification-card,
.empty-state,
.upgrade-band,
.settings-row,
.conversation-row,
.like-card,
.plan-card,
.admin-note,
.admin-list-card,
.table-card,
.profile-strength-card {
    border-radius: var(--radius-xl);
    background: rgba(255, 253, 249, 0.9);
}

.auth-card {
    align-self: center;
    padding: 22px;
}

.stack-page.narrow,
.auth-card,
.center-stage > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.auth-card h1 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
}

.trust-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.route-onboarding .screen {
    max-width: min(100%, 340px);
}

.route-onboarding .section-heading h1 {
    font-size: clamp(1.85rem, 8vw, 2.12rem);
}

.splash-grid {
    align-content: center;
    gap: 22px;
}

.splash-copy {
    display: grid;
    min-height: calc(100dvh - 36px);
    align-content: center;
    gap: 22px;
    animation: none;
}

.logo-lockup {
    text-align: center;
}

.logo-lockup .logo-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
}

.logo-lockup h1 {
    margin-bottom: 8px;
    font-size: clamp(3.4rem, 20vw, 4.8rem);
    letter-spacing: 0;
}

.phone-preview {
    display: none;
}

@keyframes softEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-progress {
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    min-width: 0;
}

.feature-row {
    grid-template-columns: 44px 1fr;
    width: 100%;
    min-width: 0;
    padding: 16px;
}

.feature-row > *,
.feature-row p,
.feature-row h2 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.feature-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
}

.form-panel {
    padding: 18px;
    min-width: 0;
}

.section-heading,
.payment-summary,
.payment-summary div {
    min-width: 0;
}

.payment-summary div {
    flex-wrap: wrap;
}

.payment-summary strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.setup-step-card {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(255, 253, 249, 0.76);
}

.setup-step-card > .field-label {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(231, 226, 220, 0.72);
}

input,
select,
textarea {
    min-height: 52px;
    padding: 13px 14px;
    font-size: 0.96rem;
    background: rgba(255, 255, 255, 0.95);
}

textarea {
    min-height: 92px;
}

.choice-chip span,
.interest-row span {
    min-height: 38px;
    border-radius: 999px;
}

.choice-chip input:checked + span {
    border-color: rgba(124, 92, 255, 0.68);
    background: rgba(124, 92, 255, 0.13);
}

.file-input {
    position: relative;
    min-height: 56px;
    border-style: dashed;
    background: rgba(239, 233, 255, 0.3);
}

.photo-strip {
    grid-template-columns: 1.25fr 1fr;
}

.photo-strip .photo-review-item:first-child {
    grid-row: span 2;
}

.photo-strip img,
.photo-review-item {
    min-height: 112px;
    border-radius: 20px;
}

.photo-strip .photo-review-item:first-child img {
    min-height: 234px;
}

.prompt-grid label {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: #fff;
}

.verification-card {
    align-items: flex-start;
    padding: 18px;
}

.verification-ring {
    border-radius: 24px;
}

.discover-screen {
    gap: 12px;
}

.discover-header {
    align-items: flex-end;
    padding: 4px 0 2px;
}

.filter-panel {
    display: none;
}

.profile-card {
    border-radius: 28px;
}

.profile-media,
.profile-media img {
    min-height: min(57dvh, 440px);
}

.profile-badge-row {
    right: 14px;
    bottom: 14px;
    left: 14px;
}

.badge {
    min-height: 30px;
    background: rgba(255, 253, 249, 0.88);
}

.profile-content {
    gap: 13px;
    padding: 18px;
}

.profile-title h2 {
    font-size: 1.5rem;
}

.prompt-card {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(239, 233, 255, 0.9), rgba(255, 246, 250, 0.92));
}

.decision-bar {
    position: sticky;
    bottom: calc(var(--nav-height) + 6px + env(safe-area-inset-bottom, 0px));
    z-index: 15;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(251, 247, 242, 0), rgba(251, 247, 242, 0.95) 28%);
}

.decision {
    min-height: 60px;
    font-size: 1rem;
}

.decision.pass {
    border: 1px solid var(--border);
}

.decision.like {
    background: linear-gradient(135deg, #171514, #7c5cff);
}

.modal-backdrop {
    padding: 16px;
}

.match-card {
    width: min(100%, 380px);
    border-radius: 30px;
    animation: softEnter 260ms ease both;
}

.match-card h1 {
    font-size: 2rem;
}

.chat-screen {
    min-height: calc(100dvh - var(--nav-height) - 22px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-header {
    position: sticky;
    top: 0;
    z-index: 12;
    background: rgba(251, 247, 242, 0.92);
    backdrop-filter: blur(14px);
}

.chat-header h1 {
    font-size: 1.2rem;
}

.message-list {
    max-height: calc(100dvh - 230px);
}

.message-bubble {
    border-radius: 22px;
}

.message-bubble.mine {
    background: #171514;
}

.message-form {
    position: sticky;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    align-items: center;
    padding: 10px 0 0;
    background: rgba(251, 247, 242, 0.98);
}

.message-form .button {
    min-width: 72px;
    padding-inline: 14px;
}

.premium-hero {
    border-radius: 30px;
    background: linear-gradient(145deg, #171514, #5f46dc 66%, #c986ad);
}

.plan-card {
    border-radius: 28px;
}

.plan-card.featured {
    background: linear-gradient(180deg, rgba(239, 233, 255, 0.95), rgba(255, 253, 249, 0.96));
}

.settings-avatar {
    border-radius: 26px;
}

.flash,
.toast {
    border-radius: 18px;
}

@media (min-width: 680px) {
    .screen {
        padding: calc(22px + env(safe-area-inset-top, 0px)) 18px calc(var(--nav-height) + 22px + env(safe-area-inset-bottom, 0px));
    }

    .splash-grid,
    .form-grid.two,
    .prompt-grid,
    .plan-grid,
    .like-grid,
    .safety-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .route-admin .form-grid.two,
    .route-admin .metric-grid,
    .route-admin .admin-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 720px) {
    .section-heading {
        padding: 4px 0;
    }

    .section-heading h1 {
        font-size: 1.72rem;
    }

    .auth-card,
    .form-panel,
    .setup-step-card {
        padding: 14px;
    }

    .profile-media,
    .profile-media img {
        min-height: min(49dvh, 360px);
    }
}

@media (max-width: 430px) {
    .screen,
    .topbar,
    .legal-footer {
        width: 100%;
    }

    .bottom-nav {
        width: 100%;
    }
}

/* Final admin route reset: keep the SaaS portal out of the mobile app shell cascade. */
body.route-admin,
body.route-admin_login {
    min-width: 0 !important;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 16% 12%, rgba(139, 92, 246, 0.18), transparent 30%),
        radial-gradient(circle at 82% 4%, rgba(246, 170, 203, 0.16), transparent 28%),
        #09090d !important;
}

.route-admin .app-shell,
.route-admin_login .app-shell {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.route-admin .screen,
.route-admin_login .screen {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.route-admin .topbar,
.route-admin .bottom-nav,
.route-admin .legal-footer,
.route-admin_login .topbar,
.route-admin_login .bottom-nav,
.route-admin_login .legal-footer {
    display: none !important;
}

.route-admin .flash,
.route-admin_login .flash {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
    width: min(360px, calc(100vw - 32px));
}

.route-admin .admin-v2 {
    display: grid !important;
    grid-template-columns: 284px minmax(0, 1fr) !important;
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

.route-admin .admin-main {
    min-width: 0 !important;
    width: 100% !important;
}

.route-admin .admin-content {
    width: 100% !important;
    max-width: none !important;
}

.route-admin .admin-topbar {
    width: 100% !important;
    max-width: none !important;
}

.route-admin .admin-sidebar {
    width: 284px !important;
}

.route-admin .admin-hero {
    min-height: 0 !important;
}

.route-admin .admin-stat-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
}

@media (max-width: 1180px) {
    .route-admin .admin-v2 {
        grid-template-columns: 92px minmax(0, 1fr) !important;
    }

    .route-admin .admin-sidebar {
        width: 92px !important;
    }
}

@media (max-width: 860px) {
    .route-admin .admin-v2 {
        grid-template-columns: 1fr !important;
    }

    .route-admin .admin-sidebar {
        width: 280px !important;
    }

    .route-admin .admin-stat-grid,
    .route-admin .admin-stat-grid.compact,
    .route-admin .admin-grid.two,
    .route-admin .admin-grid.three,
    .route-admin .admin-card-grid,
    .route-admin .admin-settings-grid,
    .route-admin .admin-detail-layout {
        grid-template-columns: 1fr !important;
    }
}
