@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sidebar-bg: #FFFFFF;
    --sidebar-text: #64748B;
    --sidebar-text-active: #4F46E5;
    --accent: #4F46E5;
    --accent-hover: #4338CA;
    --accent-soft: #EEF2FF;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;
    --text: #0F172A;
    --text-muted: #64748B;
    --success: #059669;
    --success-soft: #ECFDF5;
    --warning: #D97706;
    --warning-soft: #FFFBEB;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

/* ---------- Login ---------- */

.loginWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(circle at 20% 20%, #1E1B4B 0%, #111827 55%, #0B0F19 100%);
}

.loginCard {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 36px;
    width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.loginBrand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.loginBrandMark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366F1, #4338CA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 15px;
}

.loginBrand h1 {
    font-size: 16px;
    font-weight: 700;
}

.loginCard h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.loginCard .loginSub {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.fieldLabel {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.loginCard input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.loginCard input:focus {
    outline: none;
    border-color: var(--accent);
}

.loginCard button {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s;
}

.loginCard button:hover { background: var(--accent-hover); }

.errorMsg {
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 12.5px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.errorMsg.visible { display: block; }

/* ---------- App shell ---------- */

.appShell {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 224px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebarBrand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 20px;
}

.sidebarBrandMark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #4338CA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebarBrand span {
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
}

.sidebarNav {
    flex: 1;
    padding: 8px 12px;
}

.navItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.navItem svg { width: 17px; height: 17px; flex-shrink: 0; }

.navItem.active {
    background: rgba(79, 70, 229, 0.25);
    color: var(--sidebar-text-active);
}

.navItem.disabled {
    opacity: 0.4;
    cursor: default;
}

.navItem.disabled:hover { background: none; }

.navBadge {
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    color: var(--sidebar-text);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    text-transform: uppercase;
}

.sidebarFooter {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatarCircle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebarFooter div { flex: 1; min-width: 0; }

.sidebarUsername {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebarLogout {
    color: var(--sidebar-text);
    font-size: 11.5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.sidebarLogout:hover { color: #fff; }

/* ---------- Main content ---------- */

.mainArea {
    flex: 1;
    overflow-y: auto;
}

.topBar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 18px 32px;
}

.topBar h1 {
    font-size: 20px;
    font-weight: 700;
}

.topBar .topBarSub {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

main { padding: 28px 32px; }

/* KPI cards */

.kpiGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpiCard {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.kpiLabel {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.kpiIcon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpiIcon svg { width: 14px; height: 14px; }

.kpiValue {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

/* Card / table container */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cardHeader {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cardHeader h2 { font-size: 15px; font-weight: 700; }

.searchBox {
    position: relative;
    width: 280px;
}

.searchBox svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.searchBox input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
}

.searchBox input:focus {
    outline: none;
    border-color: var(--accent);
}

.tenantTable {
    width: 100%;
    border-collapse: collapse;
}

.tenantTable th {
    text-align: left;
    padding: 10px 20px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    font-weight: 700;
    background: #FBFCFE;
    border-bottom: 1px solid var(--border);
}

.tenantTable td {
    padding: 14px 20px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.tenantTable tr:last-child td { border-bottom: none; }

.tenantTable tbody tr {
    transition: background 0.1s;
}

.tenantTable tbody tr:hover {
    background: #FAFAFF;
}

.tenantCell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenantAvatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.tenantName { font-weight: 600; }

.cellSubtext {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.cellMuted { color: #CBD5E1; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge.badgeSuccess { background: var(--success-soft); color: var(--success); }
.badge.badgeWarning { background: var(--warning-soft); color: var(--warning); }
.badge.badgeMuted { background: #F1F5F9; color: var(--text-muted); }

.emptyState {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.badge.badgeDanger { background: var(--danger-soft); color: var(--danger); }
.badge.badgeInfo { background: #EFF6FF; color: #2563EB; }
html[data-theme="dark"] .badge.badgeInfo { background: #1E293B; color: #60A5FA; }

.tenantRow { cursor: pointer; }

.modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modalOverlay.hidden { display: none; }

.modalCard {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

.modalHeader {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modalHeader h2 { font-size: 16px; font-weight: 700; }

.modalClose {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modalBody { padding: 22px; }

.detailRow {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
    gap: 12px;
}

.detailRow:last-child { border-bottom: none; }

.detailLabel { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.detailValue { font-weight: 600; text-align: right; word-break: break-word; }

.modalActions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.actionBtn {
    flex: 1;
    padding: 9px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    min-width: 100px;
}

.actionBtn:hover { background: #F8FAFC; }
.actionBtn.btnSuccess { color: var(--success); border-color: #A7F3D0; }
.actionBtn.btnSuccess:hover { background: var(--success-soft); }
.actionBtn.btnWarning { color: var(--warning); border-color: #FDE68A; }
.actionBtn.btnWarning:hover { background: var(--warning-soft); }
.actionBtn.btnDanger { color: var(--danger); border-color: #FECACA; }
.actionBtn.btnDanger:hover { background: var(--danger-soft); }
.actionBtn:disabled { opacity: 0.5; cursor: default; }

.confirmText { font-size: 13.5px; color: var(--text); line-height: 1.5; margin-bottom: 4px; white-space: pre-line; }

.confirmInputWrap { margin-top: 12px; }
.confirmInputWrap.hidden { display: none; }

.confirmInput {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}

.confirmInput:focus { outline: none; border-color: var(--primary); }

.toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: toastIn 0.2s ease;
}

.toast.toastSuccess { background: #065F46; }
.toast.toastError { background: #991B1B; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Admin Center v2 - new shell, login, dashboard, dark mode
   ============================================================ */

html[data-theme="dark"] {
    --sidebar-bg: #0B0F19;
    --bg: #0F1420;
    --card-bg: #161C2C;
    --border: #262E42;
    --text: #F1F5F9;
    --text-muted: #8B96AC;
    --accent-soft: #1E1B4B;
    --success-soft: #052E23;
    --warning-soft: #3A2A05;
    --danger-soft: #3A0E0E;
}

html[data-theme="dark"] .tenantTable th { background: #10141F; }
html[data-theme="dark"] .tenantTable tbody tr:hover { background: #1A2033; }
html[data-theme="dark"] .badge.badgeMuted { background: #262E42; color: var(--text-muted); }
html[data-theme="dark"] .cellMuted { color: #475066; }
html[data-theme="dark"] .actionBtn { background: var(--card-bg); color: var(--text); }
html[data-theme="dark"] .actionBtn:hover { background: #1E2536; }

/* ---------- Login v2 (split screen) ---------- */

.loginSplitWrap {
    display: flex;
    height: 100vh;
    background: var(--bg);
}

.loginBrandPanel {
    flex: 1.1;
    background: radial-gradient(circle at 15% 15%, #1E293B 0%, #0F172A 50%, #020617 100%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.loginBrandPanel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
    top: -160px;
    right: -160px;
}

.loginBrandTop { position: relative; z-index: 1; }

.loginBrandLogo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.loginBrandLogo .sidebarBrandMark { width: 38px; height: 38px; font-size: 15px; background: linear-gradient(135deg, #334155, #0F172A); }
.loginBrandLogo span { font-size: 18px; font-weight: 800; }

.loginBrandTop h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    max-width: 460px;
    margin-bottom: 12px;
}

.loginBrandTop p {
    font-size: 14px;
    color: #94A3B8;
    max-width: 420px;
    line-height: 1.6;
}

/* ---------- Login carousel (8 rotating slides) ---------- */

.loginCarousel {
    position: relative;
    z-index: 1;
    margin-top: 44px;
    max-width: 460px;
}

.carouselContent {
    transition: opacity 0.25s ease;
    min-height: 190px;
}

.carouselContent.fading { opacity: 0; }

.carouselIconRow { margin-bottom: 14px; }

.carouselIcon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carouselIcon svg { width: 18px; height: 18px; color: #93C5FD; }

.carouselTitle { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.carouselDesc { font-size: 13px; color: #94A3B8; line-height: 1.6; margin-bottom: 18px; }

.slideMock {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px;
    height: 92px;
}

.slideMockSidebar { width: 26%; display: flex; flex-direction: column; gap: 7px; }
.slideMockSidebar span { display: block; height: 7px; border-radius: 3px; background: rgba(255,255,255,0.09); }
.slideMockSidebar span:first-child { width: 65%; background: rgba(147,197,253,0.35); }

.slideMockMain { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; }
.slideMockMain span { border-radius: 5px; background: rgba(255,255,255,0.05); }

.carouselDots { display: flex; gap: 6px; margin-top: 18px; }

.carouselDot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.carouselDot.active { width: 20px; border-radius: 3px; background: #93C5FD; }

.loginFormPanel {
    flex: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.loginFormPanel .loginCard {
    box-shadow: none;
    border: 1px solid var(--border);
}

.loginFootnote {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 18px;
}

@media (max-width: 900px) {
    .loginBrandPanel { display: none; }
    .loginFormPanel { flex: 1; }
}

/* ---------- Shell v2 (grouped sidebar + top bar) ---------- */

.appShellV2 { display: flex; height: 100vh; background: var(--bg); }

.sidebarV2 {
    width: 236px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebarV2 .sidebarBrand { padding: 20px 20px 22px; }
.sidebarV2 .sidebarBrand span { color: var(--text); }

.sidebarSection { padding: 0 12px; margin-bottom: 4px; }

.sidebarSectionLabel {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94A3B8;
    padding: 14px 12px 6px;
    text-transform: uppercase;
}

.sidebarV2 .navItem { text-decoration: none; color: var(--sidebar-text); }
.sidebarV2 .navItem:hover:not(.disabled) { background: var(--bg); color: var(--text); }
.sidebarV2 .navItem.active { background: var(--accent-soft); color: var(--sidebar-text-active); }

.sidebarV2Footer {
    margin-top: auto;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: #94A3B8;
}

html[data-theme="dark"] .sidebarV2 { background: #0B0F19; border-right-color: #1E2536; }
html[data-theme="dark"] .sidebarV2 .navItem { color: #94A3B8; }
html[data-theme="dark"] .sidebarV2 .navItem:hover:not(.disabled) { background: rgba(255,255,255,0.06); color: #fff; }
html[data-theme="dark"] .sidebarV2 .navItem.active { background: rgba(79, 70, 229, 0.25); color: #fff; }
html[data-theme="dark"] .sidebarV2 .sidebarBrand span { color: #fff; }
html[data-theme="dark"] .sidebarSectionLabel,
html[data-theme="dark"] .sidebarV2Footer { color: #475066; }

.mainAreaV2 { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.topBarV2 {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.topBarSearch {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.topBarSearch svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.topBarSearch input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

.topBarSearch input:focus { outline: none; border-color: var(--accent); }

.topBarSearchHint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10.5px;
    color: var(--text-muted);
    background: var(--border);
    padding: 2px 6px;
    border-radius: 4px;
}

.topBarActions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.topBarIconBtn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.topBarIconBtn:hover { background: var(--bg); color: var(--text); }
.topBarIconBtn svg { width: 18px; height: 18px; }

.topBarBadge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.topBarUserMenu {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px 5px 5px;
    border-radius: 9px;
    cursor: pointer;
    margin-left: 6px;
    flex-shrink: 0;
    position: relative;
}

.topBarUserMenu:hover { background: var(--bg); }

.topBarUserMenu .avatarCircle { width: 32px; height: 32px; }

.topBarUserName { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.topBarUserRole { font-size: 11px; color: var(--text-muted); line-height: 1.2; }

.userMenuDropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    min-width: 180px;
    padding: 6px;
    z-index: 50;
    display: none;
}

.userMenuDropdown.open { display: block; }

.userMenuItem {
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.userMenuItem:hover { background: var(--bg); }

.pageContent { padding: 28px 32px; flex: 1; }

.pageHeader { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pageHeader h1 { font-size: 22px; font-weight: 800; }
.pageHeader .pageSub { color: var(--text-muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- Dashboard widgets ---------- */

.dashGrid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }

.trendUp { color: var(--success); font-size: 11.5px; font-weight: 700; }
.trendDown { color: var(--danger); font-size: 11.5px; font-weight: 700; }

.activityList { padding: 6px; }

.activityItem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
}

.activityItem:hover { background: var(--bg); }

.activityIcon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activityIcon svg { width: 14px; height: 14px; }

.activityText { flex: 1; min-width: 0; }
.activityText .activityMain { font-size: 13px; font-weight: 600; }
.activityText .activityMeta { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.activityTime { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

.healthGrid { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }

.healthRow { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.healthRow .healthDot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 8px; }

/* ---------- Coming soon stub ---------- */

.comingSoonWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.comingSoonIcon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.comingSoonIcon svg { width: 30px; height: 30px; }

.comingSoonWrap h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.comingSoonWrap p { font-size: 13.5px; max-width: 380px; line-height: 1.6; }
.comingSoonWrap .badge { margin-top: 16px; }

/* ---------- Support Tickets ---------- */

.ticketModalCard { width: 640px; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; }
.ticketModalBody { padding: 20px 22px; overflow-y: auto; flex: 1; }

.ticketMeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.ticketDescription {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 18px;
    white-space: pre-line;
}

.commentThread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.commentBubble {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
}

.commentBubble.commentAdmin { background: var(--accent-soft); border-color: transparent; }

.commentMeta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.commentText { font-size: 13px; line-height: 1.5; white-space: pre-line; }

.replyBox textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    background: var(--card-bg);
    color: var(--text);
}

.replyBox textarea:focus { outline: none; border-color: var(--accent); }

.statusSelect {
    padding: 7px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
}

.ticketModalFooter {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}