:root {
    --admin-blue: #2563eb;
    --admin-cyan: #06b6d4;
    --admin-purple: #7c3aed;
    --admin-navy: #0f172a;
    --admin-sidebar: #0f172a;
    --admin-bg: #f1f5f9;
    --admin-text: #24344d;
    --admin-muted: #718096;
    --admin-line: #e2e8f0;
    --admin-green: #1fa875;
}
* { box-sizing: border-box; }
body { color: var(--admin-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.btn-primary { --bs-btn-bg: var(--admin-blue); --bs-btn-border-color: var(--admin-blue); --bs-btn-hover-bg: #1157c9; --bs-btn-hover-border-color: #1157c9; }

.admin-guest-body { display: grid; min-height: 100vh; padding: 1.5rem; place-items: center; background: radial-gradient(circle at 12% 8%, rgba(37,99,235,.1), transparent 28%), linear-gradient(145deg, #f8fafc, #eef3f9); }
.admin-login-shell { display: grid; width: min(940px, 100%); min-height: 590px; overflow: hidden; grid-template-columns: minmax(340px, .84fr) minmax(460px, 1.16fr); border: 1px solid rgba(203,213,225,.85); border-radius: 24px; background: white; box-shadow: 0 28px 80px rgba(15,23,42,.16); }
.login-brand-panel { position: relative; overflow: hidden; min-height: 590px; color: white; background: radial-gradient(circle at 90% 4%, rgba(6,182,212,.4), transparent 35%), radial-gradient(circle at 18% 92%, rgba(124,58,237,.22), transparent 35%), linear-gradient(150deg, #0b1427 0%, #102b57 58%, #1d4ed8 100%); box-shadow: inset -1px 0 rgba(255,255,255,.08); }
.login-brand-panel::before { position: absolute; inset: 0; content: ""; opacity: .2; 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: linear-gradient(to bottom, black, transparent 82%); }
.login-brand-panel::after { position: absolute; right: -150px; bottom: -170px; width: 420px; height: 420px; content: ""; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.035), 0 0 0 116px rgba(255,255,255,.025); }
.login-brand-content { position: relative; z-index: 2; display: flex; height: 100%; min-height: 590px; padding: 2.25rem; flex-direction: column; justify-content: space-between; }
.login-brand { display: inline-flex; align-items: center; gap: .65rem; color: white; font-size: .96rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.login-brand-icon, .mobile-admin-brand > span { display: inline-grid; width: 40px; height: 40px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: rgba(255,255,255,.1); }
.login-brand-icon img, .mobile-admin-brand > span img { width: 54px; max-width: none; height: 54px; object-fit: contain; }
.login-brand-copy { display: flex; flex-direction: column; gap: .12rem; }
.login-brand-copy strong { color: white; font-size: .91rem; line-height: 1.1; }
.login-brand-copy small { color: rgba(255,255,255,.5); font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-message { max-width: 320px; }
.panel-kicker, .form-kicker, .dashboard-kicker, .panel-label { display: block; margin-bottom: .8rem; color: #77d8f5; font-size: .71rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.login-message h1 { margin-bottom: .85rem; font-size: clamp(1.8rem, 2.25vw, 2.1rem); font-weight: 780; line-height: 1.14; letter-spacing: -.035em; }
.login-message > p { max-width: 310px; margin-bottom: 0; color: rgba(255,255,255,.7); font-size: .8rem; line-height: 1.65; }
.login-capabilities { display: grid; margin-top: 1.25rem; gap: .55rem; }
.login-capability { display: flex; min-height: 52px; padding: .62rem .7rem; align-items: center; gap: .68rem; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.065); backdrop-filter: blur(8px); }
.capability-icon { display: inline-grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #67e8f9; border: 1px solid rgba(103,232,249,.24); border-radius: 8px; background: rgba(6,182,212,.12); font-size: .68rem; font-weight: 850; }
.login-capability div { display: flex; min-width: 0; flex-direction: column; }
.login-capability strong { color: rgba(255,255,255,.94); font-size: .68rem; font-weight: 750; }
.login-capability small { margin-top: .12rem; overflow: hidden; color: rgba(255,255,255,.5); font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.login-panel-footer { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.58); font-size: .66rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ce1a8; box-shadow: 0 0 0 4px rgba(76,225,168,.12); }
.login-form-panel { display: grid; padding: 2.5rem 3.25rem; place-items: center; background: white; }
.login-box { width: min(390px, 100%); }
.form-kicker { color: var(--admin-blue); }
.login-box h2 { margin-bottom: .35rem; color: var(--admin-navy); font-size: 2rem; font-weight: 790; letter-spacing: -.045em; }
.login-subtitle { margin-bottom: 1.55rem; color: var(--admin-muted); font-size: .84rem; }
.admin-login-form .form-label { margin-bottom: .45rem; color: #35455d; font-size: .78rem; font-weight: 750; }
.admin-login-form .form-control { min-height: 46px; padding: .68rem .85rem; color: var(--admin-navy); border-color: #dbe3ee; border-radius: 9px; background: #fbfcfe; font-size: .84rem; }
.admin-login-form .form-control:focus { border-color: #8ebcf7; background: white; box-shadow: 0 0 0 4px rgba(25,103,232,.09); }
.secure-label { color: var(--admin-green); font-size: .67rem; font-weight: 700; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 4rem; }
.password-toggle { position: absolute; top: 11px; right: 12px; color: var(--admin-blue); border: 0; background: transparent; font-size: .69rem; font-weight: 750; }
.login-submit { min-height: 48px; margin-top: 1.2rem; border-radius: 9px; box-shadow: 0 10px 22px rgba(37,99,235,.2); font-size: .82rem; font-weight: 780; }
.login-submit span { margin-left: .35rem; font-size: 1.05rem; }
.back-to-site { color: var(--admin-blue); font-size: .75rem; font-weight: 700; text-decoration: none; }
.login-meta { display: flex; margin-top: 1.25rem; align-items: center; justify-content: space-between; gap: 1rem; color: #8b98aa; font-size: .65rem; }
.login-meta span { text-align: right; }
.mobile-admin-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.75rem; color: var(--admin-navy); font-weight: 800; }
.mobile-admin-brand > span { color: white; background: #eef6ff; }

.admin-body { min-height: 100vh; background: var(--admin-bg); }
.admin-sidebar { position: fixed; z-index: 1040; top: 0; bottom: 0; left: 0; display: flex; width: 274px; color: #a7b4c7; flex-direction: column; background: var(--admin-sidebar); transition: transform .25s ease; }
.sidebar-brand { display: flex; height: 82px; padding: 0 1.35rem; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand > a { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; }
.admin-brand-mark { display: inline-grid; width: 42px; height: 42px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: 0 9px 18px rgba(0,0,0,.2); }
.admin-brand-mark img { width: 58px; max-width: none; height: 58px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: .95rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .12rem; color: #718099; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-close { color: #a7b4c7; border: 0; background: transparent; font-size: 1.6rem; }
.sidebar-nav { overflow-y: auto; padding: 1.6rem 1rem; flex: 1; }
.nav-section-label { display: block; padding: 0 .7rem; margin-bottom: .55rem; color: #53637b; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-link { display: flex; min-height: 45px; margin-bottom: .28rem; padding: 0 .75rem; align-items: center; gap: .75rem; color: #9aa9bd; border-radius: 9px; font-size: .79rem; font-weight: 650; text-decoration: none; }
.sidebar-link:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar-link.active { color: white; background: linear-gradient(90deg, rgba(31,117,238,.25), rgba(31,117,238,.08)); box-shadow: inset 3px 0 #3b8df6; }
.sidebar-link.disabled { opacity: .58; pointer-events: none; }
.nav-glyph { display: inline-grid; width: 25px; height: 25px; place-items: center; color: #6f91bd; font-size: 1rem; }
.sidebar-link.active .nav-glyph { color: #74b3ff; }
.soon-badge { margin-left: auto; padding: .15rem .36rem; color: #7690b0; border-radius: 5px; background: rgba(255,255,255,.07); font-size: .53rem; text-transform: uppercase; }
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.07); }
.system-status { display: flex; padding: .8rem; align-items: center; gap: .65rem; border-radius: 9px; background: rgba(255,255,255,.035); }
.system-status > span { width: 8px; height: 8px; border-radius: 50%; background: #42d69c; box-shadow: 0 0 0 4px rgba(66,214,156,.1); }
.system-status div { display: flex; flex-direction: column; }
.system-status strong { color: #b4c1d1; font-size: .65rem; }
.system-status small { color: #607089; font-size: .57rem; }

.admin-main { min-height: 100vh; margin-left: 274px; }
.admin-header { position: sticky; z-index: 1020; top: 0; display: flex; min-height: 82px; padding: 0 2rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--admin-line); background: rgba(255,255,255,.94); backdrop-filter: blur(13px); }
.header-breadcrumb { display: block; margin-bottom: .2rem; color: #8b98aa; font-size: .63rem; }
.admin-header h1 { margin: 0; color: var(--admin-navy); font-size: 1.18rem; font-weight: 780; }
.sidebar-toggle { width: 39px; height: 39px; color: var(--admin-navy); border: 1px solid var(--admin-line); border-radius: 9px; background: white; }
.environment-pill { display: inline-flex; padding: .42rem .65rem; align-items: center; gap: .45rem; color: #58708e; border: 1px solid var(--admin-line); border-radius: 20px; background: #f8fafc; font-size: .63rem; font-weight: 700; }
.environment-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--admin-green); }
.profile-button { display: flex; padding: .3rem .5rem .3rem .35rem; align-items: center; gap: .65rem; color: var(--admin-text); border: 1px solid transparent; border-radius: 10px; background: transparent; }
.profile-button:hover { border-color: var(--admin-line); background: #f8fafc; }
.profile-avatar { display: inline-grid; width: 36px; height: 36px; place-items: center; color: white; border-radius: 10px; background: linear-gradient(145deg, #1d75ed, #094fb9); font-size: .78rem; font-weight: 800; }
.profile-copy { flex-direction: column; align-items: flex-start; }
.profile-copy strong { max-width: 150px; overflow: hidden; color: var(--admin-navy); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: #8b98aa; font-size: .58rem; }
.profile-menu { width: 240px; border-color: var(--admin-line); border-radius: 11px; font-size: .76rem; }
.profile-menu .dropdown-item { font-size: .76rem; }

.admin-content { padding: 2rem; }
.dashboard-welcome { margin-bottom: 1.8rem; }
.dashboard-kicker, .panel-label { margin-bottom: .45rem; color: var(--admin-blue); font-size: .61rem; }
.dashboard-welcome h2 { margin: 0 0 .4rem; color: var(--admin-navy); font-size: 1.85rem; font-weight: 780; letter-spacing: -.04em; }
.dashboard-welcome p { margin: 0; color: var(--admin-muted); font-size: .8rem; }
.role-stack { display: flex; align-items: center; gap: .5rem; }
.role-stack span { color: var(--admin-muted); font-size: .65rem; }
.role-stack strong { padding: .4rem .6rem; color: #0b6b50; border: 1px solid #bfe8d8; border-radius: 7px; background: #eaf8f3; font-size: .63rem; }
.summary-card, .admin-panel { border: 1px solid var(--admin-line); border-radius: 13px; background: white; box-shadow: 0 6px 18px rgba(16,36,69,.035); }
.summary-card { padding: 1.2rem; }
.summary-top { display: flex; margin-bottom: 1.1rem; align-items: flex-start; justify-content: space-between; }
.summary-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; font-size: .9rem; font-weight: 800; }
.tone-primary { color: #155ecb; background: #e9f2ff; }.tone-success { color: #18805d; background: #e8f8f2; }.tone-info { color: #087892; background: #e7f8fb; }.tone-warning { color: #a36512; background: #fff5e1; }
.summary-change { color: var(--admin-green); font-size: .61rem; font-weight: 750; }
.summary-value, .summary-label { display: block; }
.summary-value { color: var(--admin-navy); font-size: 1.55rem; line-height: 1; letter-spacing: -.03em; }
.summary-label { margin-top: .35rem; color: var(--admin-muted); font-size: .68rem; }
.summary-spark { height: 3px; margin-top: 1.1rem; border-radius: 6px; background: #edf1f6; }
.summary-spark i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2563eb, #06b6d4); }
.admin-panel { padding: 1.35rem; }
.panel-heading { margin-bottom: 1.2rem; }
.panel-heading h3 { margin: 0; color: var(--admin-navy); font-size: .98rem; font-weight: 760; }
.dummy-label { padding: .3rem .5rem; color: #8794a6; border-radius: 6px; background: #f1f4f8; font-size: .56rem; font-weight: 750; text-transform: uppercase; }
.chart-wrap { display: flex; height: 260px; padding-top: 1rem; align-items: flex-end; gap: clamp(.55rem, 2vw, 1.35rem); border-bottom: 1px solid var(--admin-line); background-image: linear-gradient(#eef2f6 1px, transparent 1px); background-size: 100% 25%; }
.chart-column { position: relative; display: flex; height: 100%; align-items: center; flex: 1; flex-direction: column; justify-content: flex-end; }
.chart-column i { width: min(38px, 72%); min-height: 20px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #4a93f1, #1764d7); opacity: .88; transition: opacity .2s; }
.chart-column:hover i { opacity: 1; }
.chart-column small { position: absolute; bottom: -1.6rem; color: #8b98aa; font-size: .6rem; }
.chart-value { margin-bottom: .35rem; color: #6f7f93; font-size: .54rem; opacity: 0; }
.chart-column:hover .chart-value { opacity: 1; }
.activity-panel { padding-bottom: 2.8rem; }
.status-list { display: grid; gap: .95rem; }
.status-list > div { display: flex; align-items: flex-start; gap: .75rem; }
.status-check, .status-wait { display: inline-grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; color: #17815e; border-radius: 8px; background: #e8f8f2; font-size: .7rem; font-weight: 850; }
.status-wait { color: #96601a; background: #fff4df; }
.status-list p, .status-list strong, .status-list small { display: block; margin: 0; }
.status-list strong { color: #33445d; font-size: .69rem; }
.status-list small { margin-top: .18rem; color: #8895a7; font-size: .6rem; }
.activity-table { min-width: 720px; font-size: .69rem; }
.activity-table thead th { padding: .75rem; color: #8794a6; border-bottom-color: var(--admin-line); background: #f8fafc; font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; }
.activity-table tbody td { padding: .85rem .75rem; color: #596a80; border-bottom-color: #edf1f5; }
.activity-table tbody tr:last-child td { border-bottom: 0; }
.activity-table strong { color: var(--admin-navy); }
.table-status { display: inline-block; padding: .3rem .48rem; border-radius: 6px; font-size: .56rem; font-weight: 750; }
.table-status.confirmed { color: #137455; background: #e6f7f0; }.table-status.review { color: #9b6417; background: #fff3dd; }.table-status.pending { color: #4f68a1; background: #edf2ff; }
.admin-overlay { display: none; }

@media (max-width: 1199.98px) {
    .admin-login-shell { width: min(900px, 100%); }
}
@media (max-width: 991.98px) {
    .admin-login-shell { display: block; width: min(520px, 100%); min-height: auto; border-radius: 20px; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: auto; padding: 2.5rem; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-overlay { position: fixed; z-index: 1035; inset: 0; background: rgba(5,15,31,.48); }
    .sidebar-open .admin-overlay { display: block; }
}
@media (max-width: 767.98px) {
    .admin-header { min-height: 70px; padding: 0 1rem; }
    .admin-content { padding: 1.2rem 1rem; }
    .dashboard-welcome h2 { font-size: 1.5rem; }
    .role-stack { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .admin-guest-body { padding: .85rem; }
    .admin-login-shell { border-radius: 16px; }
    .login-form-panel { padding: 1.75rem 1.25rem; }
    .login-box h2 { font-size: 1.8rem; }
    .login-meta { align-items: flex-start; flex-direction: column; }
    .login-meta span { text-align: left; }
    .admin-sidebar { width: min(286px, 86vw); }
    .profile-button { padding: .2rem; }
}
