/* ============================================
   KDP PILOT — Main Stylesheet
   Light theme · Blue primary · Rounded · Soft shadows
   ============================================ */

:root {
    /* ===== Midnight Studio — dark theme · violet accent ===== */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #312e46;
    --primary-soft: #201d2e;
    --font-head: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

    --bg: #16161d;
    --bg-card: #1e1e28;
    --sidebar-bg: #0f0f14;
    --sidebar-border: #262633;
    --navbar-bg: #16161d;

    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-soft: #71717a;
    --border: #2a2a37;
    --border-soft: #22222c;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 2px 10px rgba(0,0,0,.45);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.55);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;

    --sidebar-w: 260px;
    --navbar-h: 64px;

    --success: #34d399;
    --info: #22d3ee;
    --warning: #fbbf24;
    --danger: #f87171;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ==== Layout ==== */
.app-wrapper { display: flex; min-height: 100vh; }

/* ==== Sidebar ==== */
.app-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column;
    z-index: 100;
    transition: transform .25s ease;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    position: sticky; top: 0; background: var(--sidebar-bg); z-index: 2;
}
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-link:hover { color: var(--text); }
.brand-logo { height: 30px; }
.brand-text { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

.sidebar-close { background: transparent; border: none; color: var(--text-muted); }

.sidebar-nav { padding: 12px 12px 24px; flex: 1; }
.nav-section { margin-bottom: 16px; }
.nav-section-title {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-soft); font-weight: 600;
    padding: 8px 12px 6px;
}
.app-sidebar .nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 500;
    margin-bottom: 2px; transition: all .15s ease;
}
.app-sidebar .nav-link i:first-child { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.app-sidebar .nav-link span { flex: 1; font-size: .93rem; }
.app-sidebar .nav-link:hover {
    background: var(--primary-soft); color: var(--primary-dark);
}
.app-sidebar .nav-link.active {
    background: var(--primary); color: #fff !important;
}
.app-sidebar .nav-link.active i { color: #fff; }
.app-sidebar .nav-link.nav-disabled { opacity: .65; cursor: not-allowed; }
.app-sidebar .nav-link.nav-disabled:hover { background: transparent; color: var(--text-muted); }

/* ==== Main area ==== */
.app-main {
    margin-left: 0;
    flex: 1;
    display: flex; flex-direction: column; min-width: 0;
}

.app-navbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--navbar-h); background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    display: flex; align-items: center; gap: 16px;
    height: 100%; padding: 0 24px;
}
.btn-icon {
    background: transparent; border: none; color: var(--text-muted);
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.btn-icon:hover { background: var(--border-soft); color: var(--text); }

.navbar-search { flex: 1; max-width: 480px; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-soft); pointer-events: none; }
.search-box .form-control { padding-left: 35px; border-radius: var(--radius-sm); background: var(--bg); border-color: var(--border-soft); }
.search-box .form-control:focus { background: var(--bg-card); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,.28); }
.search-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-height: 480px; overflow-y: auto;
    display: none; z-index: 70;
}
.search-dropdown.show { display: block; }
.search-group { padding: 8px 0; }
.search-group + .search-group { border-top: 1px solid var(--border-soft); }
.search-group-label { padding: 6px 16px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); font-weight: 600; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--text); cursor: pointer; }
.search-result:hover { background: var(--primary-soft); }
.search-result i { color: var(--text-muted); }
.search-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: .9rem; }

.navbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-item-dropdown .notif-badge {
    position: absolute; top: 4px; right: 4px;
    background: var(--danger); color: #fff;
    font-size: .65rem; font-weight: 700;
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}

.btn-user-menu { background: transparent; border: none; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--text); }
.btn-user-menu:hover { background: var(--border-soft); }
.navbar-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-card); box-shadow: 0 0 0 1px var(--border); }
.user-name { font-size: .85rem; font-weight: 600; line-height: 1.1; text-align: left; }
.user-role { font-size: .7rem; color: var(--text-muted); line-height: 1.1; text-align: left; }

.user-dropdown { min-width: 240px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px 0; }
.user-dropdown .dropdown-item { padding: 8px 16px; font-size: .9rem; }
.user-dropdown .dropdown-header { padding: 8px 16px; }

/* ==== Notifications dropdown ==== */
.notif-dropdown {
    width: 360px; max-width: 92vw;
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 0; overflow: hidden;
}
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
    color: var(--text); border-bottom: 1px solid var(--border-soft); transition: background .15s ease;
}
.notif-item:hover { background: var(--primary-soft); }
.notif-item.unread { background: rgba(139,92,246,.10); border-left: 3px solid var(--primary); }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: .9rem; }
.notif-msg { color: var(--text-muted); font-size: .82rem; }
.notif-time { color: var(--text-soft); font-size: .72rem; margin-top: 2px; }
.notif-footer { padding: 10px 16px; text-align: center; border-top: 1px solid var(--border-soft); }
.notif-footer a { font-size: .85rem; font-weight: 500; }
.notif-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); }
.notif-empty i { font-size: 2rem; display: block; margin-bottom: 8px; color: var(--text-soft); }

/* ==== Content area ==== */
.app-content { flex: 1; padding: 24px; min-width: 0; }
.content-inner { max-width: 1400px; margin: 0 auto; }

.page-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.page-subtitle { color: var(--text-muted); margin: 0; font-size: .92rem; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==== Cards & components ==== */
.content-card, .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-card { display: flex; align-items: flex-start; gap: 14px; }
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.stat-body { flex: 1; min-width: 0; }
.stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin-top: 2px; letter-spacing: -.01em; }
.stat-meta { font-size: .76rem; color: var(--text-muted); margin-top: 4px; }
.storage-bar { height: 4px; background: var(--border-soft); border-radius: 999px; margin: 6px 0 4px; overflow: hidden; }
.storage-fill { height: 100%; background: linear-gradient(90deg, var(--warning), var(--danger)); border-radius: 999px; transition: width .3s ease; }

.card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }

/* Soft background utilities */
.bg-soft-primary { background: rgba(139,92,246,.18); }
.bg-soft-success { background: rgba(16,185,129,.12); }
.bg-soft-info    { background: rgba(6,182,212,.12); }
.bg-soft-warning { background: rgba(245,158,11,.14); }
.bg-soft-danger  { background: rgba(239,68,68,.12); }
.bg-soft-secondary { background: rgba(107,114,128,.12); }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn { border-radius: var(--radius-sm); font-weight: 500; }

/* Forms */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,.28); }
.input-group-text { background: var(--bg); border-color: var(--border); }
.form-label { font-weight: 500; font-size: .88rem; color: var(--text); margin-bottom: 6px; }

/* Tables */
.table { color: var(--text); }
.table > :not(caption) > * > * { padding: 12px 14px; vertical-align: middle; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; background: var(--bg); border-bottom: 1px solid var(--border); }
.table-hover tbody tr:hover { background: var(--primary-soft); }
.dataTables_wrapper .dataTables_filter input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; }
.dataTables_wrapper .dataTables_length select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: var(--radius-sm) !important; }

/* Tabs */
.nav-tabs-bordered { border-bottom: 1px solid var(--border); }
.nav-tabs-bordered .nav-link { border: none; color: var(--text-muted); font-weight: 500; padding: 10px 16px; border-bottom: 2px solid transparent; background: transparent; }
.nav-tabs-bordered .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }

/* Recent projects list */
.recent-projects { display: flex; flex-direction: column; gap: 8px; }
.recent-project-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text); border: 1px solid var(--border-soft);
    transition: all .15s ease;
}
.recent-project-item:hover { background: var(--primary-soft); border-color: var(--primary-light); color: var(--text); }
.rp-icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rp-body { flex: 1; min-width: 0; }
.rp-name { font-weight: 600; font-size: .92rem; }
.rp-meta { font-size: .75rem; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }

/* Module cards (placeholders) */
.module-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--bg); height: 100%; color: var(--text); }
.module-card-live { transition: all .15s; cursor: pointer; }
.module-card-live:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.module-card-live:hover .bi-arrow-right { color: var(--primary) !important; transform: translateX(3px); transition: transform .15s; }

/* Photo-style module cards */
.module-photo-card {
    position: relative;
    display: block;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center 5%;
    background-color: var(--bg);
    border: 1px solid var(--border-soft);
    transition: all .2s ease;
}
.module-photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.module-photo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
}
.module-photo-arrow {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    font-size: .95rem;
    z-index: 2;
    transition: all .2s;
}
.module-photo-card:hover .module-photo-arrow { background: var(--primary); color: #fff; transform: translateX(2px); }

.module-photo-hover-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.85);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(139,92,246,.45);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 2;
}
.module-photo-card:hover .module-photo-hover-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.module-photo-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px;
    z-index: 1;
}
.module-photo-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.module-photo-desc {
    color: rgba(255,255,255,.88);
    font-size: .8rem;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.module-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.module-body { flex: 1; min-width: 0; }
.module-title { font-size: .98rem; font-weight: 600; }
.module-desc { font-size: .82rem; color: var(--text-muted); margin: 4px 0 10px; }

/* Activity */
.activity-list { display: flex; flex-direction: column; gap: 14px; }
.activity-item { display: flex; gap: 12px; }
.activity-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-top: 8px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(139,92,246,.28); }
.activity-action { font-weight: 600; font-size: .88rem; }
.activity-desc { font-size: .82rem; color: var(--text-muted); }
.activity-time { font-size: .72rem; color: var(--text-soft); }

/* Empty state */
.empty-state { padding: 36px 16px; text-align: center; }
.empty-state i { font-size: 2.5rem; color: var(--text-soft); display: block; margin-bottom: 8px; }
.empty-state h6 { margin: 8px 0 4px; font-weight: 600; }

/* Profile */
.profile-avatar-wrap { text-align: center; padding: 10px 0; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 4px solid var(--bg-card); box-shadow: 0 0 0 1px var(--border), var(--shadow-md); }
.info-list dt { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: 10px; }
.info-list dd { margin: 2px 0; font-weight: 500; }
.info-table td { padding: 8px 0; font-size: .9rem; }

/* Dropzone */
.dropzone-card {
    border: 2px dashed var(--border); background: var(--bg-card);
    border-radius: var(--radius); padding: 28px; text-align: center;
    transition: all .2s ease;
}
.dropzone-card.dragging { border-color: var(--primary); background: var(--primary-soft); }
.dropzone-inner i { font-size: 2.2rem; color: var(--primary); display: block; margin-bottom: 8px; }
.upload-progress { margin-top: 14px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Flash */
.alert { border-radius: var(--radius); border: none; }
.alert-success { background: rgba(16,185,129,.1); color: #047857; }
.alert-danger  { background: rgba(239,68,68,.1); color: #b91c1c; }
.alert-warning { background: rgba(245,158,11,.12); color: #92400e; }
.alert-info    { background: rgba(6,182,212,.1); color: #0e7490; }

/* Footer */
.app-footer {
    padding: 16px 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    color: var(--text-muted); font-size: .82rem; background: var(--bg-card);
}

.sidebar-backdrop { display: none; }

/* ==== Mobile ==== */
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.open { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90;
        display: none;
    }
    .sidebar-backdrop.show { display: block; }
    .navbar-search { max-width: none; }
    .app-content { padding: 16px; }
    .page-header { flex-direction: column; align-items: stretch; }
    .user-name, .user-role { display: none !important; }
}

/* DataTables tweaks */
table.dataTable.no-footer { border-bottom: 1px solid var(--border-soft); }
.dataTables_info, .dataTables_length, .dataTables_filter { font-size: .85rem; color: var(--text-muted); }
.page-link { color: var(--primary); border-color: var(--border); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Misc */
code { background: var(--bg); padding: 2px 6px; border-radius: 4px; color: var(--primary-dark); font-size: .85em; }
/* ============================================
   Midnight Studio — vendor & polish overrides
   (things Bootstrap's data-bs-theme=dark doesn't reach)
   ============================================ */

/* Violet-glow active sidebar link */
.app-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 14px rgba(139,92,246,.35);
}

/* Dark scrollbars */
* { scrollbar-width: thin; scrollbar-color: #3a3a48 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #3a3a48; border-radius: 8px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: #4a4a5a; }

/* SweetAlert2 — doesn't follow Bootstrap theme */
.swal2-popup { background: var(--bg-card) !important; color: var(--text) !important; border: 1px solid var(--border); }
.swal2-title, .swal2-html-container { color: var(--text) !important; }

/* DataTables safety (bootstrap5 dark covers most; force muted controls) */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { color: var(--text-muted); }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { background: var(--bg-card); color: var(--text); }

/* Bootstrap dropdown/modals inherit dark, but pin app surfaces */
.dropdown-menu { background: var(--bg-card); border-color: var(--border); }
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: var(--primary-soft); color: var(--text); }
.modal-content, .offcanvas { background: var(--bg-card); color: var(--text); }
.card { background: var(--bg-card); border-color: var(--border); }

/* ============================================
   Midnight Studio — typography + dashboard look
   ============================================ */
h1,h2,h3,h4,h5,h6,
.page-title,.brand-text,.stat-value,
.module-photo-title,.dash-hero-title,.section-title-text {
    font-family: var(--font-head);
    letter-spacing: -.015em;
}

/* Dashboard hero */
.dash-hero {
    position: relative;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,.20), transparent 55%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 22px;
    overflow: hidden;
}
.dash-hero::after {
    content:''; position:absolute; right:-40px; top:-50px;
    width:200px; height:200px; border-radius:50%;
    background: radial-gradient(circle, rgba(139,92,246,.22), transparent 70%);
    pointer-events:none;
}
.dash-hero-eyebrow {
    font-size:.72rem; text-transform:uppercase; letter-spacing:.14em;
    color: var(--primary); font-weight:600; margin:0 0 8px; position:relative; z-index:1;
}
.dash-hero-title { font-size:1.95rem; font-weight:700; margin:0; line-height:1.15; position:relative; z-index:1; }
.dash-hero-name {
    background: linear-gradient(120deg, #a78bfa, #8b5cf6 55%, #c4b5fd);
    -webkit-background-clip:text; background-clip:text; color:transparent;
}
.dash-hero-sub { color: var(--text-muted); margin:8px 0 0; font-size:.95rem; max-width:640px; position:relative; z-index:1; }
.dash-hero-meta { display:flex; gap:18px; margin-top:18px; flex-wrap:wrap; position:relative; z-index:1; }
.dash-hero-meta .hm { display:flex; align-items:center; gap:7px; font-size:.85rem; color:var(--text-muted); }
.dash-hero-meta .hm i { color: var(--primary); font-size:1rem; }

/* Section heading with accent bar */
.section-head { display:flex; align-items:center; gap:10px; margin:0 0 14px; }
.section-head .bar { width:4px; height:20px; border-radius:2px; background: linear-gradient(var(--primary), var(--primary-dark)); }
.section-title-text { font-size:1.05rem; font-weight:600; margin:0; }
.section-head .hint { font-size:.82rem; color:var(--text-soft); margin-left:auto; }

/* Persona chip on module cards */
.module-photo-persona {
    position:absolute; top:12px; left:12px; z-index:2;
    display:inline-flex; align-items:center; gap:6px;
    padding:4px 11px 4px 8px; border-radius:999px;
    background: rgba(15,15,20,.58); backdrop-filter: blur(6px);
    border:1px solid rgba(255,255,255,.14);
    color:#fff; font-size:.72rem; font-weight:600;
}
.module-photo-persona .dot { width:6px; height:6px; border-radius:50%; background:#34d399; box-shadow:0 0 0 3px rgba(52,211,153,.25); }

/* Violet hover ring on cards */
.module-photo-card:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); }
.module-photo-desc { color: rgba(255,255,255,.9); }

/* ============================================
   Dashboard — stats strip + storage tile
   ============================================ */
.stat-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:12px; }
.metric-tile {
    background: var(--bg-card); border:1px solid var(--border); border-radius:12px;
    padding:14px 16px; transition:border-color .15s ease, transform .15s ease;
}
.metric-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.metric-tile .mt-icon {
    width:34px; height:34px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center;
    background: var(--primary-soft); color: var(--primary); font-size:1rem; margin-bottom:10px;
}
.metric-tile .mt-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); font-weight:600; }
.metric-tile .mt-value { font-family:var(--font-head); font-size:1.7rem; font-weight:700; line-height:1.1; margin-top:2px; }
.metric-tile.is-total { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-color:transparent; }
.metric-tile.is-total .mt-icon { background: rgba(255,255,255,.18); color:#fff; }
.metric-tile.is-total .mt-label { color: rgba(255,255,255,.85); }
.metric-tile.is-total .mt-value { color:#fff; }
.metric-tile.is-total:hover { border-color:transparent; box-shadow:0 6px 20px rgba(139,92,246,.35); }

.storage-tile { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
.storage-tile .st-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.storage-tile .st-label { font-size:.85rem; font-weight:600; color:var(--text); display:flex; align-items:center; gap:7px; }
.storage-tile .st-label i { color: var(--primary); }
.storage-tile .st-nums { font-family:var(--font-head); font-size:.9rem; font-weight:600; }
.storage-tile .st-quota { color:var(--text-soft); font-weight:400; }
.storage-tile .st-bar { height:8px; border-radius:999px; background:var(--border-soft); overflow:hidden; }
.storage-tile .st-bar span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg, var(--primary), #c4b5fd); transition:width .4s ease; }
.storage-tile .st-foot { font-size:.75rem; color:var(--text-muted); margin-top:6px; }
