/* ==========================================================================
   Professional DCCPR & EMC Meeting Report Management System v1
   Premium theme layer on top of AdminLTE 4 + Bootstrap 5.3
   ========================================================================== */
:root {
    --brand: #4f46e5;
    --brand-rgb: 79, 70, 229;
    --brand-2: #7c3aed;
    --ink: #0f172a;
    --muted: #64748b;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --line: #e7eaf3;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-2);
    --bs-body-font-family: var(--font);
    --lte-sidebar-width: 272px;
}
[data-bs-theme="dark"] {
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --surface: #111827;
    --soft: #0b1220;
    --line: #1f2937;
}
body { font-family: var(--font); color: var(--ink); background: var(--soft) !important; letter-spacing: -.005em; }
.app-main { background: var(--soft); }
a { text-decoration: none; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-7 { font-size: .8rem; }
.small-xs { font-size: .72rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .005em; }
.btn-primary, .btn-brand {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2);
    --bs-btn-active-bg: var(--brand-2); --bs-btn-active-border-color: var(--brand-2);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
    color: #fff; background-image: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0;
    box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), .6);
}
.btn-primary:hover, .btn-brand:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.btn-soft { background: rgba(var(--brand-rgb), .08); color: var(--brand); border: 1px solid rgba(var(--brand-rgb), .14); }
.btn-soft:hover { background: rgba(var(--brand-rgb), .15); color: var(--brand); }
.btn-ai { background: linear-gradient(135deg, #0ea5e9, #8b5cf6 60%, #ec4899); color: #fff; border: 0; box-shadow: 0 6px 16px -6px rgba(139, 92, 246, .6); }
.btn-ai:hover { color: #fff; filter: brightness(1.08); }
.btn-back { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-back:hover { border-color: var(--brand); color: var(--brand); }
.btn-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 10px; }

/* ---------- Header / navbar ---------- */
.app-header { background: rgba(255, 255, 255, .85) !important; backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); box-shadow: none; }
[data-bs-theme="dark"] .app-header { background: rgba(17, 24, 39, .85) !important; }
.app-header .nav-link { color: var(--ink); border-radius: 10px; }
.app-header .nav-link:hover { background: rgba(var(--brand-rgb), .07); }
.navbar-badge { font-size: .6rem; font-weight: 700; padding: 2px 5px; position: absolute; top: 6px; right: 4px; }
.user-chip { display: flex; align-items: center; gap: .55rem; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }

/* ---------- Sidebar ---------- */
.app-sidebar { background: linear-gradient(180deg, #0b1023 0%, #141a3a 55%, #1e1b4b 100%) !important; border-right: 0; box-shadow: 4px 0 24px -12px rgba(2, 6, 23, .5) !important; }
.app-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255, 255, 255, .06); height: auto; min-height: 64px; padding: .65rem .9rem; }
.sidebar-brand .brand-link { display: flex; align-items: center; gap: .65rem; padding: 0; white-space: normal; }
.brand-logo-box { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.brand-logo-box img { max-width: 34px; max-height: 34px; object-fit: contain; }
.brand-text-wrap { line-height: 1.1; min-width: 0; }
.brand-title { color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .01em; display: block; }
.brand-sub { color: #a5b4fc; font-size: .66rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.sidebar-user { margin: .9rem .8rem .3rem; padding: .7rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); display: flex; gap: .6rem; align-items: center; }
.sidebar-user .name { color: #fff; font-weight: 600; font-size: .8rem; line-height: 1.15; }
.sidebar-user .role { font-size: .66rem; color: #c7d2fe; }
.sidebar-menu .nav-header { color: #818cf8 !important; font-size: .64rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1rem .35rem !important; }
.app-sidebar .sidebar-menu .nav-link { color: #cbd5e1 !important; border-radius: 11px; margin: 2px .65rem; padding: .55rem .75rem; font-weight: 500; font-size: .86rem; transition: all .18s ease; width: auto; }
.app-sidebar .sidebar-menu .nav-link .nav-icon { color: #94a3b8; font-size: 1rem; transition: color .18s; }
.app-sidebar .sidebar-menu .nav-link:hover { background: rgba(255, 255, 255, .06) !important; color: #fff !important; transform: translateX(2px); }
.app-sidebar .sidebar-menu .nav-link:hover .nav-icon { color: #fff; }
.app-sidebar .sidebar-menu .nav-link.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; color: #fff !important; box-shadow: 0 10px 20px -10px rgba(var(--brand-rgb), .9); }
.app-sidebar .sidebar-menu .nav-link.active .nav-icon { color: #fff; }
.app-sidebar .nav-treeview .nav-link { padding-left: 1.4rem; font-size: .82rem; }
.app-sidebar .menu-open > .nav-link:not(.active) { background: rgba(255, 255, 255, .05) !important; color: #fff !important; }
.sidebar-badge { margin-left: auto; font-size: .62rem; flex-shrink: 0; min-width: 20px; }
.mandatory-note > i { margin-right: .4rem; }
.app-sidebar .sidebar-menu .nav-link p { display: flex; align-items: center; width: 100%; gap: .4rem; }
.sidebar-footer-card { margin: 1rem .8rem; padding: .8rem; border-radius: 14px; background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(236, 72, 153, .18)); color: #e0e7ff; font-size: .72rem; border: 1px solid rgba(255, 255, 255, .08); }
.sidebar-collapse .sidebar-user, .sidebar-collapse .sidebar-footer-card, .sidebar-collapse .brand-text-wrap { display: none !important; }
.sidebar-search .form-control { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #fff; border-radius: 10px; }

/* ---------- Page header ---------- */
.page-hero { padding: 1.2rem 0 .4rem; }
.page-hero h1 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.02em; display: flex; align-items: center; gap: .6rem; }
.page-hero .hero-icon { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 20px -10px rgba(var(--brand-rgb), .9); }
.page-hero .sub { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.breadcrumb { font-size: .78rem; margin: 0; }
.breadcrumb-item a { color: var(--muted); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; }
.card-header .card-title { font-weight: 700; font-size: .98rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-header .card-title i { color: var(--brand); }
.card-body { padding: 1.15rem; }
.card-premium { position: relative; overflow: hidden; }
.card-premium::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2), #ec4899); }
.section-card .card-header { background: linear-gradient(180deg, rgba(var(--brand-rgb), .05), transparent); }

/* ---------- KPI tiles ---------- */
.kpi { border-radius: 18px; padding: 1.05rem 1.1rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi .kpi-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; }
.kpi .kpi-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: .7rem; }
.kpi .kpi-label { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: .35rem; }
.kpi .kpi-foot { font-size: .74rem; color: var(--muted); margin-top: .5rem; }
.kpi::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -40px; top: -40px; background: currentColor; opacity: .05; }
.g-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.g-emerald { background: linear-gradient(135deg, #10b981, #14b8a6); }
.g-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.g-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.g-sky { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.g-slate { background: linear-gradient(135deg, #475569, #1e293b); }
.g-violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.g-teal { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }

.welcome-banner { border-radius: 20px; padding: 1.4rem 1.5rem; color: #fff; background: radial-gradient(1200px 300px at 0% 0%, rgba(255, 255, 255, .18), transparent), linear-gradient(135deg, #312e81, var(--brand) 45%, var(--brand-2)); box-shadow: 0 20px 40px -20px rgba(var(--brand-rgb), .8); position: relative; overflow: hidden; }
.welcome-banner::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.welcome-banner h2 { font-weight: 800; font-size: 1.35rem; margin: 0 0 .25rem; }
.welcome-banner .btn-light { color: var(--brand); font-weight: 700; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .72rem .85rem; border-bottom-color: var(--line); }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: rgba(var(--brand-rgb), .035); white-space: nowrap; }
.table-hover tbody tr:hover { background: rgba(var(--brand-rgb), .035); }
.table-stats td, .table-stats th { text-align: center; }
.table-stats td:first-child, .table-stats th:first-child { text-align: left; }
.ref-pill { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; background: rgba(var(--brand-rgb), .08); color: var(--brand); padding: .15rem .45rem; border-radius: 7px; font-weight: 600; white-space: nowrap; }
.title-cell { max-width: 380px; }
.title-cell .t { font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Status badges ---------- */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 8px; padding: .38em .62em; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }
.badge-soft-primary { background: #e0e7ff; color: #4338ca; }
.badge-soft-warning { background: #fef3c7; color: #b45309; }
.badge-soft-success { background: #dcfce7; color: #15803d; }
.badge-soft-danger { background: #ffe4e6; color: #be123c; }
[data-bs-theme="dark"] .badge-soft-secondary, [data-bs-theme="dark"] .badge-soft-info, [data-bs-theme="dark"] .badge-soft-primary, [data-bs-theme="dark"] .badge-soft-warning, [data-bs-theme="dark"] .badge-soft-success, [data-bs-theme="dark"] .badge-soft-danger { background: rgba(255, 255, 255, .08); }

.status-tabs { display: flex; gap: .45rem; flex-wrap: wrap; }
.status-tabs a { padding: .42rem .8rem; border-radius: 10px; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.status-tabs a.active, .status-tabs a:hover { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }
.status-tabs a .count { opacity: .75; margin-left: .25rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .84rem; margin-bottom: .35rem; color: var(--ink); }
.form-label .req, .req { color: #e11d48; font-weight: 800; margin-left: 2px; }
.form-control, .form-select { border-radius: 11px; border-color: #dbe0ec; padding: .55rem .8rem; font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(var(--brand-rgb), .14); }
.form-text { font-size: .74rem; }
.mandatory-note { display: block; padding: .6rem .85rem; border-radius: 12px; background: #fff1f2; color: #9f1239; font-size: .82rem; border: 1px dashed #fecdd3; }
[data-bs-theme="dark"] .mandatory-note { background: rgba(244, 63, 94, .08); color: #fda4af; border-color: rgba(244, 63, 94, .3); }
.form-section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--brand); margin: .4rem 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.input-group-text { border-radius: 11px; background: var(--soft); border-color: #dbe0ec; }
.sticky-actions { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: .8rem 1rem; margin: 0 -1rem -1rem; border-radius: 0 0 var(--radius) var(--radius); }
[data-bs-theme="dark"] .sticky-actions { background: rgba(17, 24, 39, .92); }
.ai-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.ai-toolbar .btn { font-size: .72rem; padding: .22rem .6rem; border-radius: 8px; }

/* ---------- Photo uploader ---------- */
.dropzone { border: 2px dashed #c7cde0; border-radius: 16px; padding: 1.6rem 1rem; text-align: center; background: linear-gradient(180deg, rgba(var(--brand-rgb), .03), transparent); cursor: pointer; transition: all .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(var(--brand-rgb), .06); }
.dropzone .dz-icon { width: 56px; height: 56px; margin: 0 auto .6rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.photo-tile { position: relative; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.photo-tile img { width: 100%; height: 108px; object-fit: cover; display: block; background: #eef1f7; }
.photo-tile .meta { padding: .35rem .45rem; font-size: .68rem; color: var(--muted); }
.photo-tile .meta input { font-size: .72rem; padding: .2rem .4rem; border-radius: 7px; }
.photo-tile .num { position: absolute; top: 6px; left: 6px; background: rgba(15, 23, 42, .75); color: #fff; font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; }
.photo-tile .rm { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(225, 29, 72, .9); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.photo-tile.new { outline: 2px solid rgba(16, 185, 129, .6); }
.photo-tile .handle { cursor: grab; }
.photo-counter { font-weight: 700; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; cursor: zoom-in; transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }

/* ---------- EMC editor ---------- */
.emc-section { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 1rem; background: var(--surface); overflow: hidden; }
.emc-section > .head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem 1rem; background: linear-gradient(90deg, rgba(var(--brand-rgb), .08), rgba(var(--brand-rgb), .01)); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.emc-section > .head .sec-no { width: 28px; height: 28px; border-radius: 9px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.emc-row { border-bottom: 1px dashed var(--line); padding: .9rem 1rem; position: relative; background: var(--surface); }
.emc-row:last-child { border-bottom: 0; }
.emc-row .row-tools { position: absolute; right: .7rem; top: .7rem; display: flex; gap: .25rem; }
.emc-row .drag { cursor: grab; color: var(--muted); }
.emc-row .linked { font-size: .7rem; }
.emc-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .85rem; }
.thumbs { display: flex; gap: .45rem; flex-wrap: wrap; }
.thumbs .th { position: relative; width: 84px; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .th label { position: absolute; inset: auto 0 0 0; background: rgba(15, 23, 42, .65); color: #fff; font-size: .6rem; text-align: center; margin: 0; padding: 1px; cursor: pointer; }
.picker-card { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; transition: all .15s; cursor: pointer; height: 100%; }
.picker-card:hover { border-color: var(--brand); }
.picker-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); background: rgba(var(--brand-rgb), .03); }

/* ---------- Timeline / logs ---------- */
.timeline-lite { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-lite::before { content: ""; position: absolute; left: 15px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-lite li { position: relative; padding: 0 0 .9rem 2.6rem; }
.timeline-lite li .dot { position: absolute; left: 6px; top: 2px; width: 20px; height: 20px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .65rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.timeline-lite li .t { font-size: .83rem; font-weight: 600; }
.timeline-lite li .s { font-size: .72rem; color: var(--muted); }

/* ---------- Detail view ---------- */
.dl-grid { display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dl-grid > div { padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dl-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.dl-grid .k { background: rgba(var(--brand-rgb), .04); font-weight: 600; color: var(--muted); font-size: .8rem; }
.dl-grid .v { white-space: pre-line; }
@media (max-width: 767.98px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid .k { border-bottom: 0 !important; padding-bottom: .1rem; } }
.readiness-ring { width: 92px; height: 92px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.check-list { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.check-list li { padding: .22rem 0; display: flex; gap: .45rem; align-items: center; }
.quote-card { border-left: 4px solid var(--brand); background: rgba(var(--brand-rgb), .04); border-radius: 0 12px 12px 0; padding: .8rem 1rem; font-style: italic; }
.quote-card .by { font-style: normal; font-size: .78rem; color: var(--muted); margin-top: .35rem; font-weight: 600; }

/* ---------- Charts ---------- */
.chart-box { min-height: 300px; }
.insight-item { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.insight-item:last-child { border-bottom: 0; }
.insight-item i { color: var(--brand); margin-top: 2px; }
.ai-badge { background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #ec4899); color: #fff; font-size: .65rem; padding: .2rem .5rem; border-radius: 6px; font-weight: 700; }

/* ---------- Footer ---------- */
.app-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- Login ---------- */
.login-page-pro { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--soft); }
.login-brand-panel { position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(900px 500px at 10% 10%, rgba(255, 255, 255, .14), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(140deg, #0b1023 0%, #1e1b4b 45%, var(--brand) 100%); }
.login-brand-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at 30% 30%, #000 0, transparent 70%); }
.login-brand-panel > * { position: relative; }
.login-logo { width: 74px; height: 74px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.login-logo img { max-width: 62px; max-height: 62px; object-fit: contain; }
.login-brand-panel h1 { font-weight: 800; font-size: 2.05rem; letter-spacing: -.03em; line-height: 1.15; margin: 1.4rem 0 .6rem; }
.login-brand-panel .lead { color: #c7d2fe; font-size: 1rem; max-width: 540px; }
.feature-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; margin: 0 .4rem .5rem 0; backdrop-filter: blur(6px); }
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.login-card { width: 100%; max-width: 430px; background: var(--surface); border-radius: 24px; padding: 2.2rem 2rem; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); border: 1px solid var(--line); }
.login-card h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.login-card .form-control { padding: .75rem .9rem; }
.login-card .input-group .btn { border-color: #dbe0ec; border-radius: 0 11px 11px 0; background: var(--soft); color: var(--muted); }
.login-card .input-group .form-control { border-right: 0; }
.login-card .input-group-text.left { border-radius: 11px 0 0 11px; border-right: 0; background: var(--surface); color: var(--muted); }
.login-card .input-group .form-control.with-left { border-left: 0; }
.login-copy { font-size: .74rem; color: var(--muted); text-align: center; margin-top: 1.5rem; }
@media (max-width: 991.98px) {
    .login-page-pro { grid-template-columns: 1fr; }
    .login-brand-panel { padding: 2rem 1.5rem; }
    .login-brand-panel h1 { font-size: 1.5rem; }
    .login-brand-panel .hide-sm { display: none !important; }
}

/* ---------- Error pages ---------- */
.error-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 5rem; font-weight: 900; letter-spacing: -.05em; background: linear-gradient(135deg, var(--brand), #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; top: 76px; right: 18px; z-index: 1090; width: min(380px, calc(100vw - 36px)); }
.toast-pro { border-radius: 14px; border: 0; box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .45); overflow: hidden; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .ico { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--brand); background: rgba(var(--brand-rgb), .08); }
.progress-thin { height: 6px; border-radius: 6px; }
.loading-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); backdrop-filter: blur(2px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.loading-overlay.show { display: flex; }
.loading-overlay .box { background: var(--surface); padding: 1.2rem 1.4rem; border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); margin: 0; }
@media (max-width: 575.98px) {
    .page-hero h1 { font-size: 1.15rem; }
    .kpi .kpi-value { font-size: 1.4rem; }
    .card-body { padding: .9rem; }
    .btn-text-sm-hide .t { display: none; }
}

/* ---------- Print ---------- */
@media print {
    .app-header, .app-sidebar, .app-footer, .no-print, .page-hero .actions, .btn, .toast-stack { display: none !important; }
    .app-main, body { background: #fff !important; }
    .card { box-shadow: none; border: 0; }
}
