/* =====================================================================
   OMBORpro — Liquid Glass theme layer
   Loaded after ui.css + custom.css. Layout is untouched; this file only
   restyles color, depth, glass surfaces and radii.
   ===================================================================== */

/* Inter (self-hosted: the app's CSP only allows fonts from 'self') */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-400: #818cf8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --violet-500: #8b5cf6;
    --sky-400: #38bdf8;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --hairline: rgba(15, 23, 42, 0.07);

    --grad-brand: linear-gradient(135deg, #6366f1 0%, #7c5cf6 55%, #a855f7 100%);
    --grad-brand-hover: linear-gradient(135deg, #5458ee 0%, #6d4ef0 55%, #9a45ec 100%);
    --grad-danger: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.13) 0%, rgba(168, 85, 247, 0.10) 100%);

    --glass: rgba(255, 255, 255, 0.58);
    --glass-strong: rgba(255, 255, 255, 0.78);
    --glass-soft: rgba(255, 255, 255, 0.40);
    --glass-border: rgba(255, 255, 255, 0.72);
    --glass-blur: saturate(180%) blur(22px);
    --glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 2px rgba(30, 41, 99, 0.05),
        0 12px 32px -14px rgba(30, 41, 99, 0.22);
    --glass-shadow-lift:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(30, 41, 99, 0.06),
        0 20px 44px -16px rgba(30, 41, 99, 0.30);
    --btn-gloss: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.08);

    --r-xl: 20px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 10px;
}

/* ---------- Canvas ---------- */
html { background: #eef1f9; }

body.bg-gray-100 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background-color: #eef1f9 !important;
    background-image:
        radial-gradient(900px 600px at -8% -12%, rgba(99, 102, 241, 0.38), transparent 62%),
        radial-gradient(760px 560px at 108% 4%, rgba(56, 189, 248, 0.34), transparent 60%),
        radial-gradient(820px 640px at 62% 112%, rgba(168, 85, 247, 0.30), transparent 62%),
        radial-gradient(600px 420px at 30% 60%, rgba(244, 114, 182, 0.14), transparent 70%) !important;
    background-attachment: fixed !important;
    font-feature-settings: "cv11", "ss01";
}

::selection { background: rgba(99, 102, 241, 0.22); }

a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }

/* ---------- Sidebar ---------- */
.app-sidebar {
    background: rgba(255, 255, 255, 0.52) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.5), 18px 0 48px -24px rgba(30, 41, 99, 0.25);
}

.app-brand { border-bottom: 1px solid var(--hairline); }

.brand-mark {
    border-radius: 12px;
    background: var(--grad-brand);
    box-shadow: var(--btn-gloss), 0 10px 24px -8px rgba(99, 102, 241, 0.65);
}

.app-brand h2 {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-heading {
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 10px;
    color: var(--brand-700);
    background: var(--grad-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

.nav-link {
    border-radius: 10px;
    color: var(--ink-2);
}

.nav-child { color: #475569; }

.nav-child::before {
    background: var(--grad-brand);
    opacity: 0.55;
}

.nav-link:hover {
    color: var(--brand-700);
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px -6px rgba(30, 41, 99, 0.18);
}

.nav-link.is-active {
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(99, 102, 241, 0.16), 0 8px 20px -10px rgba(79, 70, 229, 0.45);
}

.nav-link.is-active::before { opacity: 1; }

.nav-link.is-active::after { background: var(--grad-brand); }

.app-sidebar-footer {
    border-top: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.30) !important;
}

.account-button {
    border-radius: var(--r-sm);
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px -2px rgba(30, 41, 99, 0.12);
}

.account-button:hover {
    color: var(--brand-800);
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.32);
    text-decoration: none;
}

.logout-button {
    border-radius: var(--r-sm);
    color: #e11d48;
    background: rgba(255, 241, 242, 0.75);
    border: 1px solid rgba(244, 63, 94, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logout-button:hover {
    opacity: 1;
    color: #ffffff;
    background: var(--grad-danger);
    border-color: transparent;
    box-shadow: var(--btn-gloss), 0 8px 20px -8px rgba(225, 29, 72, 0.6);
}

/* ---------- Top bar ---------- */
body header.sticky.bg-white {
    background: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px -18px rgba(30, 41, 99, 0.35) !important;
}

header h1 {
    color: var(--ink) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* ---------- Glass surfaces (cards / panels) ---------- */
main div.bg-white,
main form.bg-white,
main section.bg-white,
main .card,
main .panel {
    background-color: var(--glass) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--glass-shadow) !important;
}

/* nested white blocks inside a glass card shouldn't stack blur */
main div.bg-white div.bg-white,
main div.bg-white form.bg-white,
main form.bg-white div.bg-white {
    background-color: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: rgba(15, 23, 42, 0.06) !important;
    border-radius: var(--r-md) !important;
    box-shadow: none !important;
}

main .bg-gray-50 { background-color: rgba(248, 250, 252, 0.55) !important; }
main .bg-gray-100 { background-color: rgba(241, 245, 249, 0.6) !important; }
main .border-gray-200,
main .border-gray-100,
main .divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(15, 23, 42, 0.06) !important; }

.card-header,
.panel-heading {
    background: transparent;
    border-bottom: 1px solid var(--hairline);
}

/* Dashboard */
.dashboard-stats > div {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-stats > div:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-lift) !important;
}

.dashboard-stats p.text-2xl {
    letter-spacing: -0.02em;
}

.dashboard-stats .rounded-full {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px -8px rgba(30, 41, 99, 0.35);
}

.dashboard-list-item {
    border-radius: var(--r-md) !important;
    transition: background-color 0.18s ease;
}

.quick-action-btn {
    border-radius: var(--r-md) !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
    background: rgba(255, 255, 255, 0.45) !important;
}

.quick-action-btn:hover {
    border-color: rgba(99, 102, 241, 0.55) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 10px 24px -14px rgba(79, 70, 229, 0.55);
    transform: translateY(-1px);
}

.quick-action-btn:hover i,
.quick-action-btn:hover span { color: var(--brand-600) !important; }

/* ---------- Tables ---------- */
table { background-color: transparent; }

main tbody.bg-white,
main table .bg-white { background-color: transparent !important; }

table thead,
table thead.bg-gray-50,
table thead.bg-gray-100 {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.10) 60%, rgba(56, 189, 248, 0.08) 100%) !important;
}

table thead th {
    color: var(--brand-800) !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.14) !important;
    font-weight: 700 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

table thead th.table-index { color: rgba(55, 48, 163, 0.6) !important; }

table thead tr:hover { background-color: transparent !important; }

table tbody td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

tr:hover { background-color: transparent; }

table tbody tr { transition: background-color 0.15s ease; }

table tbody tr:hover { background-color: rgba(99, 102, 241, 0.05) !important; }

table thead th:first-child { border-top-left-radius: var(--r-lg); }
table thead th:last-child { border-top-right-radius: var(--r-lg); }

.table-pagination {
    border-top: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.35);
}

.table-pagination a {
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.table-pagination a:hover {
    color: var(--brand-700);
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.35);
}

/* status pills */
main .rounded-full.bg-green-100 { background: rgba(16, 185, 129, 0.14) !important; color: #047857 !important; }
main .rounded-full.bg-red-100   { background: rgba(244, 63, 94, 0.13) !important;  color: #be123c !important; }
main .rounded-full.bg-yellow-100 { background: rgba(245, 158, 11, 0.16) !important; }
main .rounded-full.bg-blue-100  { background: rgba(59, 130, 246, 0.14) !important; }

/* ---------- Buttons ---------- */
.btn-primary,
.bg-indigo-600,
.bg-indigo-700,
button.bg-indigo-600,
a.bg-indigo-600,
.search-submit,
.bg-blue-600 {
    color: #ffffff !important;
    background: var(--grad-brand) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: var(--btn-gloss), 0 8px 20px -10px rgba(99, 102, 241, 0.75) !important;
    transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover,
.bg-indigo-600:hover,
.bg-indigo-700:hover,
.search-submit:hover,
.bg-blue-600:hover {
    opacity: 1;
    color: #ffffff !important;
    background: var(--grad-brand-hover) !important;
    box-shadow: var(--btn-gloss), 0 12px 26px -10px rgba(99, 102, 241, 0.85) !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary:active,
.search-submit:active { transform: translateY(0); filter: brightness(0.96); }

.bg-red-600,
button.bg-red-600,
a.bg-red-600 {
    color: #ffffff !important;
    background: var(--grad-danger) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: var(--btn-gloss), 0 8px 20px -10px rgba(225, 29, 72, 0.7) !important;
}

.bg-red-600:hover { opacity: 1; filter: brightness(1.05); transform: translateY(-1px); }

.bg-gray-600 {
    background: linear-gradient(135deg, #64748b, #334155) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: var(--btn-gloss) !important;
}

/* secondary "white" buttons / links */
main a.bg-white,
main button.bg-white,
main a.border-gray-300,
main button.border-gray-300,
main .bg-gray-200 {
    color: var(--ink-2) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px -3px rgba(30, 41, 99, 0.18) !important;
}

main a.bg-white:hover,
main button.bg-white:hover,
main .bg-gray-200:hover {
    opacity: 1;
    color: var(--brand-700) !important;
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    text-decoration: none;
}

.page-toolbar a,
.page-toolbar button { border-radius: var(--r-sm) !important; }

/* focus rings */
.focus\:ring-2:focus { --tw-ring-color: rgba(99, 102, 241, 0.45) !important; }

/* ---------- Forms ---------- */
.form-control,
.form-select,
main input[type="text"],
main input[type="number"],
main input[type="email"],
main input[type="password"],
main input[type="tel"],
main input[type="date"],
main input[type="search"],
main select,
main textarea,
.mobile-select-button {
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: var(--r-sm);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control:hover,
.form-select:hover,
main select:hover,
main textarea:hover { border-color: rgba(99, 102, 241, 0.28); }

.form-control:focus,
.form-select:focus,
main input:focus,
main select:focus,
main textarea:focus,
.mobile-select.is-open .mobile-select-button {
    outline: none;
    background-color: #ffffff;
    border-color: var(--brand-500) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16) !important;
}

main .search-bar input,
main .search-bar input:focus {
    background: transparent;
    border: 0;
    box-shadow: none !important;
}

main label { color: var(--ink-2); }

input[type="checkbox"],
input[type="radio"] { accent-color: var(--brand-600); }

/* custom dropdown */
.mobile-select-menu {
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 24px 48px -20px rgba(30, 41, 99, 0.4);
}

.mobile-select-search,
.mobile-select-option { background: transparent; }

.mobile-select-option.is-selected,
.mobile-select-option:hover {
    background: rgba(99, 102, 241, 0.09);
    color: var(--brand-700);
}

/* ---------- Search toolbar ---------- */
.search-bar {
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--glass-shadow);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), var(--glass-shadow);
}

.search-clear:hover { background: rgba(99, 102, 241, 0.08); color: var(--brand-700); }

/* ---------- Row action icons ---------- */
.action-icon-button {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 #ffffff;
}

.action-icon-button.is-edit {
    color: var(--brand-600);
    border-color: rgba(99, 102, 241, 0.22);
    background: rgba(238, 242, 255, 0.75);
}

.action-icon-button.is-edit:hover {
    color: #ffffff;
    background: var(--grad-brand);
    border-color: transparent;
    box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.7);
}

.action-icon-button.is-delete {
    color: #e11d48;
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(255, 241, 242, 0.75);
}

.action-icon-button.is-delete:hover {
    color: #ffffff;
    background: var(--grad-danger);
    border-color: transparent;
    box-shadow: 0 6px 16px -6px rgba(225, 29, 72, 0.7);
}

/* ---------- Brand accents that used to be green ---------- */
.text-primary,
.text-indigo-600,
.text-indigo-800,
.text-indigo-900,
a.text-indigo-600 { color: var(--brand-600) !important; }

.text-primary:hover,
a.text-indigo-600:hover { color: var(--brand-700) !important; }

.bg-primary-light,
.bg-indigo-50 { background-color: rgba(99, 102, 241, 0.10) !important; }
.bg-indigo-100 { background-color: rgba(99, 102, 241, 0.18) !important; }
.border-primary,
.border-indigo-500,
.hover\:border-indigo-500:hover { border-color: var(--brand-500) !important; }

/* ---------- Messages / toasts / modal ---------- */
.django-message {
    border-radius: var(--r-md) !important;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

.django-message.bg-green-100 { background: rgba(209, 250, 229, 0.75) !important; }
.django-message.bg-red-100 { background: rgba(255, 228, 230, 0.78) !important; }
.django-message.bg-yellow-100 { background: rgba(254, 243, 199, 0.78) !important; }

.app-toast {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 40px -16px rgba(15, 23, 42, 0.45);
}

.app-toast-success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92)); }
.app-toast-error   { background: linear-gradient(135deg, rgba(251, 113, 133, 0.94), rgba(225, 29, 72, 0.94)); }
.app-toast-warning { background: linear-gradient(135deg, rgba(251, 191, 36, 0.94), rgba(217, 119, 6, 0.94)); }
.app-toast-info    { background: linear-gradient(135deg, rgba(99, 102, 241, 0.94), rgba(139, 92, 246, 0.94)); }

.confirm-modal-backdrop {
    background: rgba(15, 23, 42, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.confirm-modal {
    border-radius: var(--r-xl);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 #ffffff, 0 32px 80px -24px rgba(15, 23, 42, 0.45);
}

.confirm-modal-actions button { border-radius: var(--r-sm); }

.confirm-cancel {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.confirm-danger {
    background: var(--grad-danger);
    border: 1px solid transparent;
    box-shadow: var(--btn-gloss), 0 8px 20px -10px rgba(225, 29, 72, 0.7);
}

.confirm-danger:hover { background: var(--grad-danger); filter: brightness(1.06); }

/* ---------- Progress bar ---------- */
#app-progress {
    background: linear-gradient(90deg, #38bdf8, #6366f1, #a855f7);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

/* ---------- Mobile menu button ---------- */
.mobile-menu-button {
    border-radius: 12px !important;
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

.mobile-menu-button span { background: var(--brand-700) !important; }

.sidebar-backdrop {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ---------- Flatpickr ---------- */
.flatpickr-calendar {
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 24px 48px -20px rgba(30, 41, 99, 0.45);
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after { display: none; }

.flatpickr-day { border-radius: 10px; }

.flatpickr-day.today { border-color: var(--brand-400); }

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--grad-brand);
    border-color: transparent;
    box-shadow: 0 6px 14px -6px rgba(99, 102, 241, 0.8);
}

.flatpickr-day:hover { background: rgba(99, 102, 241, 0.1); border-color: transparent; }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - 48px); }

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: var(--grad-brand);
    box-shadow: var(--btn-gloss), 0 16px 32px -12px rgba(99, 102, 241, 0.8);
}

.auth-logo svg { width: 28px; height: 28px; }

.auth-card {
    border-radius: 24px !important;
    background-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 40px 80px -32px rgba(30, 41, 99, 0.45) !important;
}

.auth-card h2 { letter-spacing: -0.03em; }

/* ---------- Small screens ---------- */
@media (max-width: 1023px) {
    .app-sidebar { background: rgba(255, 255, 255, 0.84) !important; }
}

@media (max-width: 768px) {
    main div.bg-white,
    main form.bg-white { border-radius: var(--r-md) !important; }

    .dashboard-stats > div:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-stats > div,
    .quick-action-btn,
    .btn-primary,
    .search-submit { transition: none; }
}

/* Browsers without backdrop-filter: keep surfaces readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    main div.bg-white,
    main form.bg-white,
    .app-sidebar,
    body header.sticky.bg-white,
    .search-bar { background-color: rgba(255, 255, 255, 0.94) !important; }
}
