/* ==========================================================================
   GRAVITY ADMIN — MODERN WHITE / LIGHT THEME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-deep: #f8fafc;
    --bg-base: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-border-hi: #cbd5e1;

    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.25);
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);

    --cyan: #0284c7;
    --cyan-bg: #e0f2fe;
    --emerald: #059669;
    --emerald-bg: #d1fae5;
    --violet-bg: #ede9fe;
    --fuchsia-bg: #fae8ff;

    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --danger-border: #fca5a5;

    --text-main: #0f172a;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-sub: #94a3b8;

    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #7c3aed;

    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03), 0 16px 24px -4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLING
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

[hidden],
.login-wrapper[hidden],
#login[hidden],
#app[hidden] {
    display: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124, 58, 237, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(2, 132, 199, 0.04), transparent 60%);
}

/* ==========================================================================
   SOFT PASTEL AMBIENT GLOW ACCENTS
   ========================================================================== */

.liquid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.liquid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    mix-blend-mode: multiply;
    will-change: transform;
}

.orb-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #e9d5ff 0%, #fae8ff 70%, transparent);
    top: -150px;
    left: 25%;
    animation: orbFloat1 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #e0f2fe 0%, #ede9fe 70%, transparent);
    top: 35%;
    right: -100px;
    animation: orbFloat2 24s ease-in-out infinite alternate;
}

.orb-3 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #fce7f3 0%, #e0e7ff 70%, transparent);
    bottom: -100px;
    left: 10%;
    animation: orbFloat3 22s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, 60px) scale(1.1);
    }

    100% {
        transform: translate(-60px, 100px) scale(0.95);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, -50px) scale(1.08);
    }

    100% {
        transform: translate(50px, 80px) scale(0.92);
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, -80px) scale(1.08);
    }

    100% {
        transform: translate(-50px, 30px) scale(0.96);
    }
}

/* ==========================================================================
   CARDS (WHITE THEME ELEVATION)
   ========================================================================== */

.glass-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: all 0.25s var(--ease);
    overflow: hidden;
}

/* ==========================================================================
   LOGIN SCREEN (WHITE CARD)
   ========================================================================== */

.login-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 38px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-float);
    animation: loginAppear 0.4s var(--ease);
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ddd6fe;
    background: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-wrap img,
#loginLogo {
    width: 100% !important;
    height: 100% !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    border-radius: inherit;
    display: block;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.login-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.input-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
}

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

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    opacity: 0.6;
    pointer-events: none;
}

.input-wrapper input {
    padding-left: 42px !important;
}

.input-wrapper input[type="password"],
.input-wrapper input#adminPass {
    padding-right: 44px !important;
}

.pass-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    line-height: 1;
    border-radius: 6px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.pass-toggle-btn:hover {
    transform: scale(1.15);
    background: rgba(124, 58, 237, 0.08);
}

.pass-toggle-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   INPUTS & TEXTAREAS (CLEAN WHITE THEME)
   ========================================================================== */

input,
textarea,
select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 12px 15px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s var(--ease);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--card-border-hi);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-sub);
}

textarea {
    line-height: 1.6;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

select option {
    background: #ffffff;
    color: var(--text-main);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-liquid-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--primary-gradient);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 6px 18px -2px var(--primary-glow);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}

.btn-liquid-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -2px var(--primary-glow);
    filter: brightness(1.05);
}

.btn-liquid-primary:active {
    transform: translateY(0);
}

.btn-liquid-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn-liquid-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-liquid-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    background: var(--primary-gradient);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px -2px var(--primary-glow);
    transition: all 0.2s var(--ease);
}

.btn-liquid-add:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-glass-danger {
    padding: 8px 16px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* ==========================================================================
   TOP BAR (WHITE NAVBAR)
   ========================================================================== */

.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-glow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd6fe;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    flex-shrink: 0;
}

.brand-glow img,
#adminNavLogo {
    width: 100% !important;
    height: 100% !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: inherit;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text b {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-heading);
}

.brand-sub {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
}

/* ==========================================================================
   TABS SWITCHER (CLEAN PILL STYLE)
   ========================================================================== */

.liquid-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.tab-btn:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px -2px var(--primary-glow);
}

.tab-icon {
    font-size: 14px;
}

.tab-counter {
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 999px;
}

.tab-btn.active .tab-counter {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--card-border);
    color: var(--text-body);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link-btn:hover {
    color: var(--primary);
    background: #ede9fe;
    border-color: #ddd6fe;
}

.arrow-up-right {
    font-size: 11px;
    opacity: 0.7;
}

/* ==========================================================================
   DASHBOARD CONTAINER
   ========================================================================== */

.dash-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

/* ==========================================================================
   STATS CARDS GRID
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
    flex-shrink: 0;
}

.stat-icon-wrap img,
#statBotLogo {
    width: 100% !important;
    height: 100% !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: cover !important;
    border-radius: 12px;
    display: block;
}

.stat-icon-wrap.violet {
    background: var(--violet-bg);
}

.stat-icon-wrap.cyan {
    background: var(--cyan-bg);
}

.stat-icon-wrap.fuchsia {
    background: var(--fuchsia-bg);
}

.stat-icon-wrap.emerald {
    background: var(--emerald-bg);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
    margin-top: 2px;
}

/* ==========================================================================
   TAB PANES
   ========================================================================== */

.tab-pane {
    display: none;
    animation: tabFadeIn 0.25s var(--ease);
}

.tab-pane.active {
    display: block;
}

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

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

.section-header {
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--primary);
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.panel-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   SETTINGS FORM
   ========================================================================== */

.liquid-form {
    display: grid;
    gap: 20px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
}

.form-field small {
    font-size: 11px;
    color: var(--text-sub);
}

.form-actions-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
    margin-top: 10px;
}

/* ==========================================================================
   ADD ITEM CARDS
   ========================================================================== */

.add-card {
    padding: 26px 28px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid #ddd6fe;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.08);
}

.add-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.header-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.add-card-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
}

.add-card-header p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Add Forms Layouts */
.cat-form-grid {
    display: grid;
    grid-template-columns: 1.8fr 110px 2.2fr 90px auto;
    gap: 12px;
    align-items: end;
}

.cmd-form-grid {
    display: grid;
    grid-template-columns: 180px 170px 2.2fr 1.6fr 80px auto;
    gap: 12px;
    align-items: end;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-col-sm {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-col-xs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-col-btn {
    display: flex;
    align-items: flex-end;
}

.cat-form-grid label,
.cmd-form-grid label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

/* ==========================================================================
   FILTER & SEARCH BAR
   ========================================================================== */

.filter-glass-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
}

.search-input-wrap input {
    padding-left: 42px;
    background: #ffffff;
}

.filter-select-wrap {
    width: 220px;
}

.filter-select-wrap select {
    background: #ffffff;
}

/* ==========================================================================
   LIST SECTIONS & ITEMS
   ========================================================================== */

.list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.list-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.badge-count {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    color: var(--primary);
}

.items-grid,
.commands-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item Card Row */
.liquid-item-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s var(--ease);
}

.liquid-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.liquid-item-form {
    display: grid;
    gap: 10px;
    align-items: end;
}

.cat-item-grid {
    grid-template-columns: 1.8fr 90px 2.2fr 80px auto auto;
}

.cmd-item-grid {
    grid-template-columns: 160px 160px 2.2fr 1.6fr 75px auto auto;
}

.field-caption {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.btn-item-update {
    height: 42px;
    padding: 0 16px;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    color: #6d28d9;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-item-update:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-item-delete {
    height: 42px;
    padding: 0 14px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-item-delete:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* ==========================================================================
   LEGAL TAB STYLING
   ========================================================================== */

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

.legal-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.box-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.box-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.box-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
}

.box-title small {
    font-size: 12px;
    color: var(--text-muted);
}

.legal-box textarea {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    min-height: 360px;
    background: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATION (WHITE ELEVATED PILL)
   ========================================================================== */

.liquid-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 14px 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16);
    color: var(--text-heading);
    font-size: 13px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    transition: all 0.3s var(--ease);
}

.liquid-toast.show {
    display: flex;
    animation: toastSlideUp 0.35s var(--ease);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

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

.liquid-toast.success {
    border-color: #a7f3d0;
}

.liquid-toast.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.liquid-toast.error {
    border-color: #fca5a5;
}

.liquid-toast.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.err {
    display: block !important;
    color: var(--danger) !important;
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

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

    .cat-form-grid,
    .cmd-form-grid,
    .cat-item-grid,
    .cmd-item-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .form-col-btn {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .glass-nav {
        height: auto;
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 14px;
    }

    .liquid-tabs {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }

    .tab-label {
        display: none;
    }

    .settings-grid-2,
    .legal-grid {
        grid-template-columns: 1fr;
    }

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

    .cat-form-grid,
    .cmd-form-grid,
    .cat-item-grid,
    .cmd-item-grid {
        grid-template-columns: 1fr !important;
    }

    .form-col-btn {
        grid-column: span 1;
    }

    .btn-liquid-add,
    .btn-item-update,
    .btn-item-delete {
        width: 100%;
    }

    .filter-glass-bar {
        flex-direction: column;
    }

    .filter-select-wrap {
        width: 100%;
    }
}