:root {
    --bg-dark: #070708;
    --bg-deep: #0a0a0c;
    --bg-card: #111114;
    --bg-card-2: #151519;
    --bg-surface: #1a1a1f;
    --bg-hover: #202025;
    --border: #28282f;
    --border-light: #3a3a43;
    --gold: #f6c945;
    --gold-bright: #ffdc62;
    --gold-dark: #c99d22;
    --text: #f7f7f8;
    --text-soft: #d4d4d8;
    --text-muted: #92929c;
    --success: #36d399;
    --danger: #ff5d6c;
    --info: #60a5fa;
    --sidebar-width: 258px;
    --topbar-height: 72px;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% -10%, rgba(246, 201, 69, .08), transparent 28%),
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .025), transparent 22%), var(--bg-dark);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

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

button {
    -webkit-tap-highlight-color: transparent
}

::selection {
    background: rgba(246, 201, 69, .22);
    color: #fff
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

::-webkit-scrollbar-track {
    background: #0d0d10
}

::-webkit-scrollbar-thumb {
    background: #303038;
    border-radius: 99px
}

::-webkit-scrollbar-thumb:hover {
    background: #45454f
}

/* AUTH */
.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px
}

.auth-box {
    width: min(440px, 100%);
    padding: 34px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 38%), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .55)
}

.auth-box:before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -90px;
    top: -90px;
    background: rgba(246, 201, 69, .08);
    border-radius: 50%;
    filter: blur(5px)
}

.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(246, 201, 69, .45);
    border-radius: 11px;
    color: var(--gold);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: -.8px;
    background: linear-gradient(145deg, rgba(246, 201, 69, .16), rgba(246, 201, 69, .03))
}

.logo-mark span {
    color: #fff
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 900;
    line-height: 1
}

.auth-brand-name b,
.logo b {
    color: var(--gold)
}

.auth-brand small {
    display: block;
    color: #686872;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.7px;
    margin-top: 5px
}

.auth-heading {
    position: relative;
    margin-bottom: 25px
}

.auth-heading h1 {
    font-size: 30px;
    letter-spacing: -1px
}

.auth-heading p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px
}

.eyebrow {
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
    margin-bottom: 5px
}

.auth-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: #696972;
    font-size: 10px
}

.secure-dot,
.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(54, 211, 153, .7)
}

.input-wrap {
    position: relative
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #66666f;
    font-size: 11px;
    pointer-events: none
}

.input-wrap input {
    padding-left: 35px !important;
    padding-right: 58px !important
}

.password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer
}

/* TOPBAR */
.top-nav {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 26px;
    background: rgba(8, 8, 9, .88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px)
}

.topbar-left,
.logo-wrap,
.nav-user,
.admin-identity {
    display: flex;
    align-items: center
}

.topbar-left {
    gap: 14px
}

.logo-wrap {
    gap: 11px
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1
}

.logo {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.4px
}

.logo-text small {
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-top: 5px
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #70707a;
    font-size: 11px
}

.breadcrumb i {
    font-style: normal;
    color: #44444c
}

.breadcrumb strong {
    color: #ddd;
    font-weight: 700
}

.nav-user {
    gap: 10px
}

.admin-identity {
    gap: 9px
}

.admin-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: #111;
    font-weight: 900;
    font-size: 12px
}

.admin-identity-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0
}

.admin-identity-text strong {
    font-size: 12px;
    color: #fff
}

.admin-identity-text span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    color: var(--gold);
    margin-top: 3px
}

.mobile-menu-btn,
.sidebar-close {
    display: none
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #aaaab2;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    font-size: 17px
}

.icon-btn:hover {
    color: #fff;
    border-color: var(--border-light);
    background: var(--bg-hover)
}

/* LAYOUT */
.layout {
    min-height: calc(100vh - var(--topbar-height));
    display: flex
}

.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    position: sticky;
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(13, 13, 16, .82);
    border-right: 1px solid var(--border)
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px 11px;
    color: #686872;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.6px
}

.nav-item {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    transition: .2s ease
}

.nav-item:hover {
    color: var(--text-soft);
    background: rgba(255, 255, 255, .035);
    border-color: rgba(255, 255, 255, .04);
    transform: translateX(2px)
}

.nav-item.active {
    color: var(--gold-bright);
    background: linear-gradient(90deg, rgba(246, 201, 69, .13), rgba(246, 201, 69, .035));
    border-color: rgba(246, 201, 69, .12);
    box-shadow: inset 3px 0 0 var(--gold)
}

.nav-item.active:after {
    content: "";
    width: 5px;
    height: 5px;
    position: absolute;
    right: 13px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(246, 201, 69, .75)
}

.nav-icon {
    width: 20px;
    text-align: center;
    color: inherit;
    font-size: 16px;
    opacity: .9
}

.sidebar-spacer {
    flex: 1
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid rgba(54, 211, 153, .13);
    background: rgba(54, 211, 153, .035);
    border-radius: 11px
}

.sidebar-status strong {
    display: block;
    color: #a5eccc;
    font-size: 10px
}

.sidebar-status small {
    display: block;
    color: #68706f;
    font-size: 9px;
    margin-top: 2px
}

.sidebar-version {
    text-align: center;
    color: #4d4d55;
    font-size: 8px;
    padding: 10px 0 0
}

.content {
    flex: 1;
    min-width: 0;
    padding: 30px clamp(18px, 3vw, 38px) 50px;
    overflow-x: hidden
}

.content-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    margin-bottom: 28px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
    border: 1px solid var(--border);
    border-radius: var(--radius)
}

.content-intro p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 3px
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(54, 211, 153, .16);
    border-radius: 999px;
    background: rgba(54, 211, 153, .05);
    color: #91e9c3;
    font-size: 10px;
    font-weight: 750
}

.system-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(54, 211, 153, .7)
}

.tab-content {
    display: none;
    animation: tabIn .2s ease both
}

.tab-content.active {
    display: block
}

@keyframes tabIn {
    from {
        opacity: 0;
        transform: translateY(5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

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

.page-heading h2 {
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.15;
    letter-spacing: -.7px
}

.page-heading p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px
}

.page-actions {
    display: flex;
    gap: 8px
}

/* FIELDS / BUTTONS */
.field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field label {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700
}

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

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
    gap: 10px;
    margin-bottom: 18px
}

.toolbar-single {
    grid-template-columns: minmax(220px, 600px)
}

.search-wrap {
    position: relative
}

.search-wrap>span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #66666f;
    font-size: 17px;
    pointer-events: none
}

.search-wrap input {
    padding-left: 36px !important
}

.toolbar input,
.toolbar select,
.field input,
.field textarea,
.field select,
.settings-field input {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    color: #fff;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s
}

.field textarea {
    min-height: auto;
    resize: vertical
}

.field input::placeholder,
.field textarea::placeholder,
.toolbar input::placeholder {
    color: #686871
}

.toolbar input:focus,
.toolbar select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.settings-field input:focus {
    border-color: rgba(246, 201, 69, .62);
    box-shadow: 0 0 0 3px rgba(246, 201, 69, .08);
    background: #1d1d22
}

.btn {
    min-height: 42px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease
}

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

.btn:active {
    transform: translateY(0)
}

.btn-block {
    width: 100%
}

.btn-gold {
    color: #0a0a0a;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 8px 22px rgba(246, 201, 69, .12)
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffe58b, var(--gold));
    box-shadow: 0 10px 28px rgba(246, 201, 69, .18)
}

.btn-dark,
.btn-sm {
    color: var(--text-soft);
    background: var(--bg-surface);
    border: 1px solid var(--border)
}

.btn-dark:hover,
.btn-sm:hover {
    color: #fff;
    border-color: var(--border-light);
    background: var(--bg-hover)
}

.btn-sm {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer
}

.logout-btn {
    color: #ff9aa4;
    border-color: rgba(255, 93, 108, .16);
    background: rgba(255, 93, 108, .05)
}

/* DASHBOARD */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 18px
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    transition: .2s ease
}

.stat-card:after {
    content: "";
    width: 100px;
    height: 100px;
    position: absolute;
    right: -45px;
    bottom: -50px;
    border-radius: 50%;
    background: rgba(246, 201, 69, .055)
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(246, 201, 69, .18)
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800
}

.stat-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(246, 201, 69, .08);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900
}

.stat-card h3 {
    position: relative;
    z-index: 1;
    margin-top: 13px;
    color: #fff;
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 850;
    letter-spacing: -.8px
}

.stat-note {
    display: block;
    color: #686871;
    font-size: 9px;
    margin-top: 6px
}

.quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 19px;
    margin: 0 0 16px;
    background: linear-gradient(120deg, rgba(246, 201, 69, .06), rgba(255, 255, 255, .015));
    border: 1px solid rgba(246, 201, 69, .13);
    border-radius: var(--radius)
}

.quick-actions h3 {
    font-size: 14px;
    letter-spacing: -.2px
}

.quick-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 16px
}

.chart-card {
    min-height: 320px;
    padding: 19px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008)), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12)
}

.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px
}

.chart-head h4 {
    font-size: 13px;
    color: #eeeef0
}

.chart-chip {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(54, 211, 153, .06);
    border: 1px solid rgba(54, 211, 153, .13);
    color: #83d8b4;
    font-size: 9px;
    font-weight: 800
}

.chart-holder {
    height: 250px;
    position: relative
}

.doughnut-holder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center
}

/* TABLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12)
}

.modern-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 12px
}

.modern-table th {
    padding: 13px 15px;
    color: #9d9da7;
    background: #0d0d10;
    border-bottom: 1px solid var(--border);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 850;
    white-space: nowrap
}

.modern-table td {
    padding: 14px 15px;
    color: var(--text-soft);
    border-bottom: 1px solid rgba(40, 40, 47, .7);
    vertical-align: middle
}

.modern-table tbody tr {
    transition: background .15s
}

.modern-table tbody tr:last-child td {
    border-bottom: 0
}

.modern-table tbody tr:hover {
    background: rgba(246, 201, 69, .025)
}

.table-empty {
    height: 130px;
    text-align: center;
    color: var(--text-muted) !important
}

/* BADGES / CARDS */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    border: 1px solid transparent
}

.status-paid {
    background: rgba(54, 211, 153, .09);
    color: #69e4ae;
    border-color: rgba(54, 211, 153, .18)
}

.status-pending {
    background: rgba(246, 201, 69, .09);
    color: var(--gold-bright);
    border-color: rgba(246, 201, 69, .2)
}

.status-processing {
    background: rgba(96, 165, 250, .09);
    color: #8bbcff;
    border-color: rgba(96, 165, 250, .18)
}

.status-refunded {
    background: rgba(168, 85, 247, .09);
    color: #c792ff;
    border-color: rgba(168, 85, 247, .18)
}

.status-cancelled {
    background: rgba(255, 93, 108, .09);
    color: #ff8b96;
    border-color: rgba(255, 93, 108, .18)
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008)), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12)
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px
}

.category-card,
.policy-card,
.payment-card {
    padding: 18px;
    transition: .18s ease
}

.category-card:hover,
.policy-card:hover,
.payment-card:hover {
    transform: translateY(-2px);
    border-color: rgba(246, 201, 69, .17)
}

.item-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px
}

.item-card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(246, 201, 69, .08);
    color: var(--gold);
    font-weight: 900
}

.item-card h3 {
    font-size: 14px
}

.item-card p {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px
}

.item-actions {
    display: flex;
    gap: 7px;
    margin-top: 16px;
    flex-wrap: wrap
}

.payment-address {
    margin-top: 13px;
    padding: 10px 12px;
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #ddd;
    font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    overflow-wrap: anywhere
}

.policy-meta {
    color: #686871;
    font-size: 9px;
    margin-top: 6px
}

/* SETTINGS */
.settings-card {
    max-width: 760px;
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr 130px auto;
    align-items: center;
    gap: 18px
}

.settings-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(246, 201, 69, .08);
    color: var(--gold);
    font-size: 20px
}

.settings-copy h3 {
    font-size: 14px
}

.settings-copy p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px
}

.settings-field label {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
    margin-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase
}

/* MODALS */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    place-items: center;
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px)
}

.modal-card {
    width: min(750px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 30%), var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 17px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, .6)
}

.modal-small {
    max-width: 450px
}

.modal-medium {
    max-width: 520px
}

.modal-large {
    max-width: 850px
}

.modal-xl {
    max-width: 900px
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border)
}

.modal-header h3 {
    font-size: 17px;
    letter-spacing: -.3px
}

.close-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #aaaab2;
    background: var(--bg-surface);
    font-size: 21px;
    cursor: pointer
}

.close-btn:hover {
    color: #fff;
    border-color: var(--border-light);
    background: var(--bg-hover)
}

.form-section {
    padding: 0 0 5px;
    margin-bottom: 19px
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border)
}

.section-title h4 {
    color: #eeeef0;
    font-size: 12px
}

.section-title>span {
    color: #65656e;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .8px
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 15px;
    margin-top: 7px;
    border-top: 1px solid var(--border)
}

.code-editor {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    line-height: 1.6;
    font-size: 11px
}

/* VARIANT ROWS */
.variant-row {
    display: grid;
    grid-template-columns: 1.3fr .75fr .65fr 36px;
    gap: 8px;
    align-items: end;
    margin-bottom: 9px
}

.variant-row .field {
    margin-bottom: 0
}

.variant-remove {
    height: 42px;
    border: 1px solid rgba(255, 93, 108, .18);
    background: rgba(255, 93, 108, .05);
    color: #ff8993;
    border-radius: 8px;
    cursor: pointer
}

/* TOAST */
.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: min(380px, calc(100vw - 36px))
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #17171b;
    border: 1px solid var(--border-light);
    border-radius: 11px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    animation: toastIn .2s ease both
}

.toast.success {
    border-color: rgba(54, 211, 153, .25)
}

.toast.error {
    border-color: rgba(255, 93, 108, .25)
}

.toast-icon {
    font-weight: 900;
    color: var(--gold)
}

.toast.success .toast-icon {
    color: var(--success)
}

.toast.error .toast-icon {
    color: var(--danger)
}

.toast strong {
    display: block;
    font-size: 11px
}

.toast span {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 2px
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* RESPONSIVE */
@media(max-width:1100px) {
    :root {
        --sidebar-width: 230px
    }

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

    .chart-grid {
        grid-template-columns: 1fr
    }

    .settings-card {
        grid-template-columns: auto 1fr
    }

    .settings-field {
        grid-column: 2
    }

    .settings-card>.btn {
        grid-column: 2;
        justify-self: start
    }
}

@media(max-width:900px) {
    :root {
        --topbar-height: 64px
    }

    .top-nav {
        height: var(--topbar-height);
        padding: 0 15px
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        color: var(--text-soft);
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        cursor: pointer;
        font-size: 17px
    }

    .sidebar {
        position: fixed;
        z-index: 80;
        top: 0;
        left: 0;
        width: min(285px, 88vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 25px 0 70px rgba(0, 0, 0, .5)
    }

    body.sidebar-open .sidebar {
        transform: translateX(0)
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(0, 0, 0, .62);
        opacity: 0;
        visibility: hidden;
        transition: .2s
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible
    }

    .sidebar-close {
        display: block;
        border: 0;
        background: transparent;
        color: #888892;
        font-size: 22px;
        cursor: pointer
    }

    .content {
        width: 100%;
        padding: 20px 15px 40px
    }

    .content-intro {
        align-items: flex-start;
        flex-direction: column
    }

    .system-status {
        align-self: flex-start
    }

    .topbar-center {
        display: none
    }
}

@media(max-width:640px) {

    .logo-text small,
    .admin-identity-text {
        display: none
    }

    .nav-user {
        gap: 7px
    }

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

    .stat-card {
        min-height: 115px;
        padding: 15px
    }

    .stat-card h3 {
        font-size: 21px;
        margin-top: 9px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .page-actions,
    .page-heading>.btn {
        width: 100%
    }

    .page-actions .btn {
        flex: 1
    }

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

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

    .quick-actions {
        align-items: flex-start;
        flex-direction: column
    }

    .quick-action-buttons {
        width: 100%
    }

    .quick-action-buttons .btn {
        flex: 1
    }

    .settings-card {
        grid-template-columns: auto 1fr
    }

    .settings-field {
        grid-column: 1/-1
    }

    .settings-card>.btn {
        grid-column: 1/-1;
        width: 100%
    }

    .modal {
        padding: 10px
    }

    .modal-card {
        max-height: calc(100vh - 20px);
        padding: 20px;
        border-radius: 14px
    }

    .variant-row {
        grid-template-columns: 1fr 1fr
    }

    .variant-row .variant-option {
        grid-column: 1/-1
    }

    .variant-remove {
        height: 40px
    }
}

@media(max-width:420px) {
    .stats-grid {
        grid-template-columns: 1fr
    }

    .logo {
        font-size: 16px
    }

    .logo-mark {
        width: 35px;
        height: 35px
    }

    .content-intro {
        padding: 15px
    }

    .logout-btn {
        padding: 6px 8px
    }
}