/* ==========================================================================
   Panel administrativo: sistema de diseño
   Tokens -> shell (sidebar/topbar) -> componentes Bootstrap re-estilizados
   ========================================================================== */

:root {
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bg: #f3f5f7;
    --bg-grad: radial-gradient(1200px 500px at 85% -10%, rgba(16, 185, 129, .10), transparent 60%),
               radial-gradient(900px 400px at -10% 0%, rgba(20, 184, 166, .08), transparent 55%);
    --surface: #ffffff;
    --surface-2: #f8fafb;
    --surface-glass: rgba(255, 255, 255, .72);
    --border: #e7eaef;
    --border-strong: #d6dbe3;
    --text: #0b1220;
    --text-2: #3b4658;
    --muted: #6b7686;
    --brand: #10b981;
    --brand-600: #059669;
    --brand-700: #047857;
    --brand-soft: rgba(16, 185, 129, .12);
    --brand-grad: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --side-bg: #0a1a14;
    --side-bg-2: #0d2219;
    --side-text: #9bb3a8;
    --side-active: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .04);
    --ring: 0 0 0 4px rgba(16, 185, 129, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --bs-body-font-family: var(--font);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-link-color: var(--brand-700);
    --bs-link-hover-color: var(--brand-600);
    --bs-border-radius: var(--radius-sm);
}

[data-bs-theme='dark'] {
    --bg: #070d0b;
    --bg-grad: radial-gradient(1000px 500px at 85% -10%, rgba(16, 185, 129, .13), transparent 60%),
               radial-gradient(800px 400px at -10% 0%, rgba(20, 184, 166, .08), transparent 55%);
    --surface: #0f1713;
    --surface-2: #131d18;
    --surface-glass: rgba(15, 23, 19, .72);
    --border: #1c2a23;
    --border-strong: #27382f;
    --text: #e8f0ec;
    --text-2: #b6c6bd;
    --muted: #7d9187;
    --brand: #34d399;
    --brand-600: #10b981;
    --brand-700: #6ee7b7;
    --brand-soft: rgba(52, 211, 153, .14);
    --side-bg: #0b1511;
    --side-bg-2: #0f1c16;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
    --ring: 0 0 0 4px rgba(52, 211, 153, .25);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface-2);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-grad), var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand-soft); }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-brand { color: var(--brand-600) !important; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; font-weight: 700; }
.tabular, .stat-value, td.text-end, th.text-end { font-variant-numeric: tabular-nums; }

/* ---------- Shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    position: sticky; top: 0; align-self: flex-start;
    height: 100vh; width: 268px; flex: 0 0 268px;
    padding: 14px;
}
.sidebar-inner {
    height: 100%; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--side-bg-2), var(--side-bg));
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 24px; padding: 18px 12px 12px;
    box-shadow: var(--shadow); color: var(--side-text);
    overflow-y: auto; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; color: #fff; text-decoration: none; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 13px; background: var(--brand-grad);
    display: grid; place-items: center; color: #04231a; flex: none;
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, .6);
}
.brand-name { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.brand-sub { font-size: .72rem; color: var(--side-text); font-weight: 500; }

.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #587267; padding: 16px 12px 6px; font-weight: 600; }
.side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 2px 0; border-radius: 13px;
    color: var(--side-text); text-decoration: none; font-weight: 500; font-size: .92rem;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    position: relative;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, .24), rgba(16, 185, 129, .06));
    color: var(--side-active); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .25);
}
.side-link.active .icon { color: #34d399; }
.side-link .count {
    margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
    background: #f59e0b; color: #1a1100; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.side-foot { margin-top: auto; padding-top: 14px; }
.side-user {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06);
}
.avatar {
    width: 38px; height: 38px; border-radius: 12px; background: var(--brand-grad); color: #04231a;
    display: grid; place-items: center; font-weight: 800; flex: none; font-size: .95rem;
}
.side-user .who { min-width: 0; line-height: 1.2; }
.side-user .who strong { display: block; color: #fff; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: .72rem; color: var(--side-text); }
.side-user form { margin-left: auto; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center;
    background: transparent; border: 1px solid transparent; color: inherit; cursor: pointer;
    transition: background .2s var(--ease), border-color .2s var(--ease);
}
.side-user .icon-btn { color: var(--side-text); }
.side-user .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.ico-sun { display: none; }
[data-bs-theme='dark'] .ico-sun { display: inline-flex; }
[data-bs-theme='dark'] .ico-moon { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 28px; margin: 0;
    background: var(--surface-glass); backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--border);
}
.topbar .page-title { font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.topbar .crumb { font-size: .75rem; color: var(--muted); font-weight: 500; line-height: 1; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.topbar .page-title { white-space: nowrap; }
.btn { white-space: nowrap; }
.flex-none { flex: none; }
.search {
    position: relative; margin-left: auto; width: min(360px, 38vw);
}
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
    width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.topbar .icon-btn { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.topbar .icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.content { padding: 28px; max-width: 1480px; width: 100%; margin: 0 auto; animation: rise .5s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 991.98px) {
    .sidebar { position: fixed; z-index: 1045; left: 0; transform: translateX(-105%); transition: transform .3s var(--ease); width: 284px; }
    .sidebar.open { transform: none; }
    .scrim { position: fixed; inset: 0; background: rgba(2, 8, 5, .55); backdrop-filter: blur(3px); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .25s; }
    .scrim.show { opacity: 1; pointer-events: auto; }
    .topbar { padding: 12px 16px; }
    .content { padding: 18px 16px 40px; }
    .search { display: none; }
    .topbar .theme { margin-left: auto; }
}
@media (min-width: 992px) { .only-mobile { display: none !important; } .scrim { display: none; } }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1, h1.h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 0; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.content > h1.h3 { margin-bottom: 20px !important; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); --bs-card-cap-bg: transparent; --bs-card-border-color: var(--border);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.card-header { background: transparent; border-bottom: 1px solid var(--border); padding: 16px 20px; font-weight: 600; border-radius: var(--radius) var(--radius) 0 0 !important; }
.card-body { padding: 20px; }
.card-header.bg-warning-subtle { background: color-mix(in srgb, #f59e0b 14%, transparent) !important; }
.card.border-warning { border-color: color-mix(in srgb, #f59e0b 45%, var(--border)) !important; }
.card h2.h6, .card .h6 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; }

/* Stat cards */
.stat-card { padding: 20px; position: relative; overflow: hidden; height: 100%; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-600); }
.stat-icon.amber { background: rgba(245, 158, 11, .14); color: #d97706; }
.stat-icon.sky { background: rgba(14, 165, 233, .14); color: #0284c7; }
.stat-icon.violet { background: rgba(139, 92, 246, .14); color: #7c3aed; }
.stat-label { color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat-value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat-sub { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.stat-card.hero { background: var(--brand-grad); color: #03231a; border: 0; box-shadow: 0 18px 40px -16px rgba(16, 185, 129, .6); }
.stat-card.hero .stat-label, .stat-card.hero .stat-sub { color: rgba(3, 35, 26, .72); }
.stat-card.hero .stat-icon { background: rgba(255, 255, 255, .35); color: #03231a; }
.stat-card.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .22); filter: blur(2px); }

/* ---------- Buttons ---------- */
.btn { border-radius: 13px; font-weight: 600; padding: .55rem 1rem; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; letter-spacing: -.01em; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { border-radius: 11px; padding: .38rem .75rem; font-size: .82rem; }
.btn-lg { border-radius: 15px; }
.btn:focus-visible { box-shadow: var(--ring) !important; outline: none; }
.btn-brand, .btn-success {
    --bs-btn-color: #03231a; --bs-btn-hover-color: #03231a; --bs-btn-active-color: #03231a;
    background: var(--brand-grad); border: 0; color: #03231a;
    box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-brand:hover, .btn-success:hover { color: #03231a; filter: brightness(1.05); box-shadow: 0 12px 26px -8px rgba(16, 185, 129, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(-1px); }
.btn-outline-secondary, .btn-outline-success, .btn-outline-danger, .btn-outline-primary, .btn-light {
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2);
}
.btn-outline-secondary:hover, .btn-light:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.btn-outline-success { color: var(--brand-700); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.btn-outline-success:hover, .btn-outline-success.active { background: var(--brand-soft); color: var(--brand-700); border-color: var(--brand); }
.btn-outline-danger { color: #dc2626; border-color: color-mix(in srgb, #ef4444 40%, var(--border)); }
.btn-outline-danger:hover { background: rgba(239, 68, 68, .1); color: #dc2626; border-color: #ef4444; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f43f5e); border: 0; box-shadow: 0 8px 20px -8px rgba(239, 68, 68, .6); }
.btn-link { color: var(--muted); text-decoration: none; }
.btn-link:hover { color: var(--text); }
.btn-close { border-radius: 10px; }

/* ---------- Forms ---------- */
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-control, .form-select {
    background-color: var(--surface-2); border: 1px solid var(--border); border-radius: 13px;
    padding: .62rem .9rem; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control-sm, .form-select-sm { border-radius: 11px; padding: .4rem .7rem; }
.form-control:focus, .form-select:focus { background: var(--surface); border-color: var(--brand); box-shadow: var(--ring); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-control:disabled { background: var(--surface-2); opacity: .7; }
.form-check-input { border-color: var(--border-strong); background-color: var(--surface); width: 1.15em; height: 1.15em; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand); }
input[type='file'].form-control { padding: .45rem .6rem; }
input[type='file']::file-selector-button { border: 0; background: var(--brand-soft); color: var(--brand-700); border-radius: 9px; padding: .35rem .8rem; margin-right: .8rem; font-weight: 600; }
hr { border-color: var(--border); opacity: 1; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); --bs-table-hover-bg: var(--surface-2); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .85rem 1.1rem; border-bottom-color: var(--border); background-color: transparent; }
.table-sm > :not(caption) > * > * { padding: .6rem .9rem; }
.table thead th {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
    font-weight: 700; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
.table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.table-hover > tbody > tr:hover > * { background-color: var(--surface-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.card > .table-responsive { border-radius: var(--radius); }
.table-responsive { scrollbar-width: thin; }
.table td:first-child a, .table td.text-nowrap { white-space: nowrap; }
.table a { font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* ---------- Badges (soft pills with dot) ---------- */
.badge { font-weight: 600; font-size: .72rem; padding: .38em .75em; border-radius: 999px; letter-spacing: 0; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.fs-6 { font-size: .85rem !important; padding: .5em 1em; }
.badge.text-bg-success { background: rgba(16, 185, 129, .14) !important; color: #047857 !important; }
.badge.text-bg-warning { background: rgba(245, 158, 11, .16) !important; color: #b45309 !important; }
.badge.text-bg-info { background: rgba(14, 165, 233, .15) !important; color: #0369a1 !important; }
.badge.text-bg-primary { background: rgba(99, 102, 241, .15) !important; color: #4338ca !important; }
.badge.text-bg-danger { background: rgba(239, 68, 68, .14) !important; color: #b91c1c !important; }
.badge.text-bg-secondary { background: rgba(100, 116, 139, .16) !important; color: #475569 !important; }
.badge.text-bg-dark { background: rgba(15, 23, 42, .12) !important; color: #1e293b !important; }
.badge.text-bg-light { background: var(--surface-2) !important; color: var(--text-2) !important; border: 1px solid var(--border); }
[data-bs-theme='dark'] .badge.text-bg-success { color: #6ee7b7 !important; }
[data-bs-theme='dark'] .badge.text-bg-warning { color: #fbbf24 !important; }
[data-bs-theme='dark'] .badge.text-bg-info { color: #7dd3fc !important; }
[data-bs-theme='dark'] .badge.text-bg-primary { color: #a5b4fc !important; }
[data-bs-theme='dark'] .badge.text-bg-danger { color: #fca5a5 !important; }
[data-bs-theme='dark'] .badge.text-bg-secondary { color: #cbd5e1 !important; }
[data-bs-theme='dark'] .badge.text-bg-dark { background: rgba(255, 255, 255, .1) !important; color: #e2e8f0 !important; }
.badge.rounded-pill::before, .tag-plain::before { display: none; }

/* ---------- Alerts / progress / pagination / misc ---------- */
.alert { border: 1px solid transparent; border-radius: 16px; padding: .9rem 1.1rem; box-shadow: var(--shadow-sm); }
.alert-success { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); color: var(--brand-700); }
.alert-danger { background: rgba(239, 68, 68, .09); border-color: rgba(239, 68, 68, .3); color: #b91c1c; }
.alert-warning { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); color: #92400e; }
[data-bs-theme='dark'] .alert-danger { color: #fca5a5; }
[data-bs-theme='dark'] .alert-warning { color: #fcd34d; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.progress-bar.bg-success { background: var(--brand-grad) !important; border-radius: 999px; }
.pagination { gap: 4px; --bs-pagination-border-radius: 11px; }
.page-link { border-radius: 11px !important; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; }
.page-item.active .page-link { background: var(--brand-grad); border-color: transparent; color: #03231a; }
.modal-content { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--border); }
.dropdown-menu { border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); padding: 8px; }
.dropdown-item { border-radius: 10px; font-weight: 500; }
.accordion-item, .list-group-item { background: var(--surface); border-color: var(--border); }
code { background: var(--brand-soft); color: var(--brand-700); padding: .1em .45em; border-radius: 7px; font-size: .85em; }
dl dt { color: var(--muted); font-weight: 500; }
dl dd { font-weight: 500; }
.small.text-muted { line-height: 1.5; }
a { text-underline-offset: 3px; }

/* ---------- Dashboard extras ---------- */
.greeting { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.greeting h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.04em; margin: 0; }
.greeting p { margin: 4px 0 0; color: var(--muted); }
.inbox-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row .amount { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inbox-row .meta { min-width: 0; flex: 1; line-height: 1.3; }
.inbox-row .meta strong { display: block; }
.inbox-row .meta span { color: var(--muted); font-size: .8rem; }
.heat { border-collapse: separate; border-spacing: 4px; }
.heat td { width: 38px; height: 34px; border-radius: 9px; font-size: .72rem; font-weight: 700; padding: 0 !important; vertical-align: middle; border: 0 !important; }
.heat th { font-size: .72rem; color: var(--muted); font-weight: 600; border: 0 !important; background: transparent !important; text-transform: none; letter-spacing: 0; padding: 0 6px !important; }
.occ-row + .occ-row { margin-top: 16px; }
.occ-row .top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--text-2); }

/* ---------- FullCalendar ---------- */
.fc {
    --fc-border-color: var(--border); --fc-page-bg-color: transparent; --fc-neutral-bg-color: var(--surface-2);
    --fc-today-bg-color: var(--brand-soft); --fc-now-indicator-color: #ef4444;
    --fc-button-bg-color: var(--surface); --fc-button-border-color: var(--border-strong); --fc-button-text-color: var(--text-2);
    --fc-button-hover-bg-color: var(--surface-2); --fc-button-hover-border-color: var(--muted);
    --fc-button-active-bg-color: var(--brand-soft); --fc-button-active-border-color: var(--brand);
    font-family: var(--font);
}
.fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; text-transform: capitalize; }
.fc .fc-button { border-radius: 12px !important; font-weight: 600; text-transform: capitalize; padding: .45rem .85rem; box-shadow: none !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { color: var(--brand-700); }
.fc .fc-button-group > .fc-button { border-radius: 0 !important; }
.fc .fc-button-group > .fc-button:first-child { border-radius: 12px 0 0 12px !important; }
.fc .fc-button-group > .fc-button:last-child { border-radius: 0 12px 12px 0 !important; }
.fc .fc-event { border-radius: 10px; border: 0; padding: 2px 6px; font-weight: 600; font-size: .78rem; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); cursor: pointer; transition: transform .15s var(--ease), filter .15s; }
.fc .fc-event:hover { transform: scale(1.015); filter: brightness(1.06); }
.fc .fc-col-header-cell-cushion, .fc .fc-timegrid-slot-label-cushion { color: var(--muted); font-weight: 600; font-size: .78rem; text-decoration: none; text-transform: capitalize; }
.fc .fc-timegrid-slot { height: 2.6em; }
.fc .fc-scrollgrid { border-radius: var(--radius-sm); overflow: hidden; border-color: var(--border); }
.fc .fc-daygrid-day-number { color: var(--text-2); text-decoration: none; font-weight: 600; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--border); }

/* ---------- Login ---------- */
.auth {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
    background: var(--bg);
}
.auth-art {
    position: relative; overflow: hidden; color: #eafff6; padding: 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(700px 400px at 20% 0%, rgba(52, 211, 153, .35), transparent 60%),
        radial-gradient(600px 500px at 100% 100%, rgba(20, 184, 166, .35), transparent 60%),
        linear-gradient(160deg, #06271c 0%, #0a1a14 100%);
}
.auth-art::after {
    content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 70%);
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; max-width: 14ch; }
.auth-art p { color: #a7d9c5; max-width: 38ch; }
.auth-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: #cdeee0; font-weight: 500; }
.auth-points .dot { width: 26px; height: 26px; border-radius: 9px; background: rgba(52, 211, 153, .18); color: #6ee7b7; display: grid; place-items: center; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; }
.auth-card .form-control { height: 50px; }
@media (max-width: 899.98px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Utilities ---------- */
.rounded-4x { border-radius: var(--radius); }
.scroll-y { max-height: 320px; overflow: auto; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
