/* ============================================
   MINRA PLATFORM — Glass Navy Power Theme
   Navy #000080 + Orange #FF6B00
   Inspired by the Generate License page
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --sidebar-width: 260px;
    --sidebar-bg: rgba(0,0,30,0.55);
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active: rgba(255,107,0,0.12);
    --sidebar-border: rgba(255,255,255,0.08);
    --accent: #FF6B00;
    --accent-glow: rgba(255,107,0,0.4);
    --accent-light: rgba(255,107,0,0.1);
    --navy: #000080;
    --navy-dark: #000040;
    --navy-deep: #000050;
    --navy-light: #0000B3;
    --navy-vivid: #0000AA;
    --orange: #FF6B00;
    --orange-dark: #E05E00;
    --orange-light: #FF8533;
    --orange-hot: #FF6000;
    --body-bg: #000030;
    --card-bg: rgba(255,255,255,0.04);
    --card-border: rgba(255,255,255,0.08);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 40px rgba(0,0,128,0.04);
    --card-shadow-hover: 0 12px 40px rgba(0,0,0,0.4), 0 0 60px rgba(255,107,0,0.04);
    --text-primary: #EDF0F7;
    --text-secondary: #9AA2BC;
    --text-muted: #5A6480;
    --surface-1: rgba(255,255,255,0.04);
    --surface-2: rgba(255,255,255,0.06);
    --surface-3: rgba(255,255,255,0.08);
    --border-subtle: rgba(255,255,255,0.08);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #000050 0%, #000030 50%, #000020 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { transition: color var(--transition-fast); }

/* ═══════════════════════════════════════════
   ANIMATED BACKGROUND — Global Orbs
   ═══════════════════════════════════════════ */
.global-bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.global-bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.10;
}
.global-bg-orbs .orb-1 {
    width: 600px; height: 600px;
    background: var(--navy);
    top: -10%; left: -10%;
    animation: orbFloat1 18s ease-in-out infinite;
}
.global-bg-orbs .orb-2 {
    width: 500px; height: 500px;
    background: var(--orange);
    bottom: -15%; right: -10%;
    animation: orbFloat2 22s ease-in-out infinite;
}
.global-bg-orbs .orb-3 {
    width: 350px; height: 350px;
    background: var(--navy-vivid);
    top: 40%; left: 50%;
    animation: orbFloat3 15s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(80px, 60px) scale(1.15); }
    66% { transform: translate(-40px, 100px) scale(0.9); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-60px, -80px) scale(1.2); }
    66% { transform: translate(50px, -40px) scale(0.85); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0,0) scale(0.8); }
    50% { transform: translate(-100px, 60px) scale(1.1); }
}

/* Grid overlay */
.global-bg-orbs .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,128,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,128,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 40s linear infinite;
}
@keyframes gridScroll {
    0% { transform: translate(0,0); }
    100% { transform: translate(60px, 60px); }
}

/* ═══════════════════════════════════════════
   SIDEBAR — Translucent Dark Glass
   ═══════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(0,0,30,0.55);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: fixed;
    top: 0; left: 0;
    z-index: 1040;
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.sidebar::before {
    content: '';
    position: absolute; inset: 0;
    background: none;
    pointer-events: none;
}
.sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    flex-shrink: 0;
}
.sidebar-nav-scroll {
    flex: 1 1 0;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0.5rem 0;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar-nav-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover { background: var(--orange); }

.brand-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.brand-text .brand-dot {
    width: 10px; height: 10px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
    50% { box-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(255,107,0,0.15); }
}

.sidebar-section-label {
    padding: 1.25rem 1.5rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.25);
    position: relative;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.5);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    transition: transform var(--transition-fast);
}
.sidebar .nav-link:hover {
    color: rgba(255,255,255,0.95);
    background: rgba(255,107,0,0.08);
    border-left-color: rgba(255,107,0,0.5);
}
.sidebar .nav-link:hover i { transform: scale(1.1); color: var(--orange); }
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,107,0,0.12);
    border-left-color: var(--orange);
    font-weight: 600;
}
.sidebar .nav-link.active i { color: var(--orange); }
.sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--orange);
    border-radius: 3px 0 0 3px;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    background: rgba(0,0,0,0.15);
}
.sidebar-footer .sidebar-user {
    display: flex; align-items: center; gap: 0.75rem;
    color: rgba(255,255,255,0.7); font-size: 0.82rem;
}
.sidebar-footer .user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}
.sidebar-logout-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    color: rgba(255,255,255,0.4); text-decoration: none;
    transition: all var(--transition-fast); flex-shrink: 0;
}
.sidebar-logout-btn:hover { color: #ff4444; background: rgba(255,68,68,0.15); }

/* ═══════════════════════════════════════════
   MAIN CONTENT & TOPBAR
   ═══════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: transparent;
    transition: margin-left var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.topbar {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.topbar .page-title {
    font-size: 0.8rem; font-weight: 600;
    color: var(--orange);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.topbar .notification-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.topbar .notification-btn:hover {
    border-color: var(--orange); color: var(--orange);
    box-shadow: 0 2px 12px rgba(255,107,0,0.2);
}
.topbar .notification-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    background: var(--orange); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.topbar .user-info {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    transition: all var(--transition-fast);
}
.topbar .user-info:hover {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.topbar .user-info .avatar-sm {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.75rem;
}
.topbar .user-info .user-name {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-primary); line-height: 1.2;
}
.topbar .user-info .user-role {
    font-size: 0.68rem; color: var(--text-muted); text-transform: capitalize;
}
.topbar .logout-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.topbar .logout-btn:hover {
    border-color: #ff4444; color: #ff4444;
    background: rgba(255,68,68,0.08);
}

.content-wrapper { padding: 2rem; max-width: 1400px; }

/* ═══════════════════════════════════════════
   PAGE HEADERS — Premium Style
   ═══════════════════════════════════════════ */
.page-header { margin-bottom: 1.75rem; }
.page-header h4 {
    font-weight: 800; font-size: 1.35rem;
    letter-spacing: -0.03em; color: var(--text-primary);
}
.page-header p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

/* ═══════════════════════════════════════════
   CARDS — Glass with Backdrop Blur
   ═══════════════════════════════════════════ */
.card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 100px; height: 100px;
    background: radial-gradient(circle at top right, rgba(255,107,0,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}
.stat-card-wrap .card:hover {
    transform: translateY(-4px);
}
.card-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}
.card-body { color: var(--text-primary); }

/* ═══════════════════════════════════════════
   SECTION LABELS — Orange Accent
   ═══════════════════════════════════════════ */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    position: relative;
}
.section-label::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--orange) 0%, rgba(255,107,0,0.15) 40%, transparent 100%);
}
.section-label i {
    font-size: 0.9rem;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,107,0,0.1);
    border-radius: 7px;
    color: var(--orange);
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
.table { font-size: 0.85rem; color: var(--text-secondary); --bs-table-bg: transparent; }
.table thead th {
    font-weight: 800; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-subtle);
    padding: 0.85rem 1rem; white-space: nowrap;
    background: transparent;
}
.table tbody td {
    padding: 0.85rem 1rem; vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.table tbody tr { transition: background var(--transition-fast); }
.table-hover tbody tr:hover { background: rgba(255,107,0,0.03); }
.table tbody td:first-child, .table thead th:first-child { padding-left: 1.5rem; }
.table tbody td:last-child, .table thead th:last-child { padding-right: 1.5rem; }
.table a { color: var(--orange); font-weight: 600; text-decoration: none; }
.table a:hover { color: var(--orange-light); }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge {
    font-weight: 700; font-size: 0.68rem;
    letter-spacing: 0.3px; padding: 0.35em 0.75em; border-radius: 6px;
}

/* ═══════════════════════════════════════════
   BUTTONS — Power Edition
   ═══════════════════════════════════════════ */
.btn {
    font-weight: 700; font-size: 0.82rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    box-shadow: 0 4px 16px rgba(255,107,0,0.25);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    box-shadow: 0 6px 24px rgba(255,107,0,0.35);
    transform: translateY(-2px);
    color: #fff;
}
.btn-outline-primary {
    color: var(--orange); border-color: var(--orange);
}
.btn-outline-primary:hover {
    background: var(--orange); border-color: var(--orange);
    color: #fff; box-shadow: 0 4px 16px rgba(255,107,0,0.25);
}
.btn-outline-secondary {
    color: var(--text-secondary); border-color: var(--border-subtle);
}
.btn-outline-secondary:hover {
    background: var(--surface-3);
    border-color: rgba(255,255,255,0.12);
    color: var(--text-primary);
}
.btn-warning {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy), var(--navy-vivid));
    border: 1px solid rgba(80,80,255,0.15);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,128,0.3);
}
.btn-warning:hover {
    box-shadow: 0 6px 24px rgba(0,0,128,0.4);
    color: #fff; transform: translateY(-2px);
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; border-radius: 8px; }

/* ═══════════════════════════════════════════
   FORMS — Glass Inputs
   ═══════════════════════════════════════════ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255,255,255,0.08);
    font-size: 0.84rem;
    padding: 0.65rem 0.95rem;
    transition: all 0.3s var(--ease);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-weight: 500;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1), 0 0 20px rgba(255,107,0,0.05);
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}
.form-label {
    font-weight: 700; font-size: 0.8rem;
    color: var(--text-primary); margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.form-label .text-danger { color: var(--orange) !important; }
.form-text { color: var(--text-muted); font-size: 0.7rem; }
.input-group-text {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: var(--orange);
    transition: all 0.3s var(--ease);
}
.input-group:focus-within .input-group-text {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255,107,0,0.06);
}
.form-select option {
    background: #0a0a2a;
    color: var(--text-primary);
}
textarea.form-control { border-radius: var(--radius-sm); }

/* Browser autofill override — prevent white flash on dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 9999px #000030 inset !important;
    box-shadow: 0 0 0 9999px #000030 inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    border-color: rgba(255,255,255,0.12) !important;
    transition: background-color 600000s 0s, color 600000s 0s !important;
}
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #000030 inset !important;
    box-shadow: 0 0 0 9999px #000030 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
}
.card input:-webkit-autofill,
.card input:-webkit-autofill:hover,
.card input:-webkit-autofill:focus,
.card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #000030 inset !important;
    box-shadow: 0 0 0 9999px #000030 inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.pagination .page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: var(--surface-1);
    font-weight: 600; font-size: 0.8rem;
    margin: 0 2px; padding: 0.4rem 0.75rem;
    transition: all var(--transition-fast);
}
.pagination .page-link:hover {
    background: var(--surface-3);
    color: var(--orange); border-color: var(--orange);
}
.pagination .page-item.active .page-link {
    background: var(--orange); border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(255,107,0,0.3); color: #fff;
}

/* ═══════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════ */
.alert {
    border-radius: var(--radius-md);
    border: none; font-size: 0.85rem;
    font-weight: 500; padding: 0.85rem 1.25rem;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success {
    background: rgba(28,200,138,0.1);
    color: #5eeaaa;
}
.alert-danger {
    background: rgba(231,74,59,0.1);
    color: #ff8a80;
}
.alert .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ═══════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════ */
.filter-bar {
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════ */
.stat-card {
    border: none; border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════ */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state i { font-size: 3rem; opacity: 0.15; margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   CODE / LICENSE KEYS
   ═══════════════════════════════════════════ */
code {
    background: rgba(255,107,0,0.1);
    color: var(--orange);
    padding: 0.15em 0.45em;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   TEXT UTILITIES (dark overrides)
   ═══════════════════════════════════════════ */
.text-dark { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-white { background: var(--surface-1) !important; }
.bg-light { background: var(--surface-2) !important; }
.border { border-color: var(--border-subtle) !important; }
.border-bottom { border-bottom-color: var(--border-subtle) !important; }
.shadow-sm { box-shadow: var(--card-shadow) !important; }
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }
p { color: var(--text-secondary); }
.small, small { color: var(--text-muted); }
.fw-bold, .fw-semibold { color: var(--text-primary); }

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */
.auth-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #000050 0%, #000030 50%, #000020 100%);
    position: relative; overflow: hidden;
}
.auth-body::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.12), transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
    animation: float-orb 8s ease-in-out infinite;
}
.auth-body::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,0,180,0.15), transparent 70%);
    bottom: -150px; left: -100px;
    border-radius: 50%;
    animation: float-orb 10s ease-in-out infinite reverse;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
.auth-card { max-width: 440px; width: 100%; position: relative; z-index: 1; }
.auth-card .card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.auth-card .card-body { padding: 2.5rem; }
.auth-card .brand-text { color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; }
.auth-card .brand-sub { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.auth-card .form-label { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.auth-card .form-control {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: #fff; padding: 0.7rem 1rem;
}
.auth-card .form-control::placeholder { color: rgba(255,255,255,0.25); }
.auth-card .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15); color: #fff;
}
.auth-card .input-group-text {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
}

.auth-card .form-check-label { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.auth-card .form-check-input { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.auth-card .form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 4px 16px var(--accent-glow);
    padding: 0.75rem; font-size: 0.9rem; font-weight: 700;
}
.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    box-shadow: 0 6px 24px var(--accent-glow);
}
.auth-card .auth-footer { text-align: center; margin-top: 1.5rem; color: rgba(255,255,255,0.2); font-size: 0.75rem; }

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }
.slide-up { animation: slideUp 0.6s var(--ease) both; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
}
.opacity-5 { opacity: 0.05 !important; }
.opacity-10 { opacity: 0.1 !important; }
.opacity-15 { opacity: 0.15 !important; }
.opacity-25 { opacity: 0.25 !important; }

/* ═══════════════════════════════════════════
   DETAIL / SHOW PAGES
   ═══════════════════════════════════════════ */
.detail-label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
}
.detail-value {
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   NOTIFICATION ITEMS
   ═══════════════════════════════════════════ */
.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}
.notification-item:hover { background: rgba(255,107,0,0.03); }
.notification-item.unread { background: rgba(255,107,0,0.04); border-left: 3px solid var(--orange); }
.notification-item .notif-time { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   FORM SWITCH / CHECKBOX
   ═══════════════════════════════════════════ */
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(255,107,0,0.15); border-color: var(--orange); }
.form-check-input { background-color: var(--surface-3); border-color: rgba(255,255,255,0.15); }
.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,0.4)'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════
   SIDEBAR OVERLAY (MOBILE)
   ═══════════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1035;
}
.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════
   RESPONSIVE — Full Mobile Support
   ═══════════════════════════════════════════ */

/* ── Tablet (768–991px) ─────────────────── */
@media (max-width: 991.98px) {
    .content-wrapper { padding: 1.25rem; }
    .topbar { padding: 0.65rem 1.25rem; }
    .stat-value { font-size: 1.35rem; }
    .dash-hero { padding: 1.5rem 1.75rem; }
    .dash-hero h2 { font-size: 1.35rem; }
    .glass-panel-header { padding: 1rem 1.25rem 0; }
    .glass-panel-body { padding: 0.85rem 1.25rem 1.25rem; }
}

/* ── Mobile hamburger button ────────────── */
#sidebarToggle {
    width: 40px; height: 40px;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0 !important;
}
#sidebarToggle:hover {
    border-color: var(--orange);
    color: var(--orange) !important;
    background: rgba(255,107,0,0.06);
}
@media (min-width: 768px) {
    #sidebarToggle { display: none !important; }
}

/* ── Mobile (< 768px) ──────────────────── */
@media (max-width: 767.98px) {
    /* Sidebar: off-canvas left */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,0.5);
    }

    /* Main content: full width */
    .main-content { margin-left: 0; }

    /* Content area */
    .content-wrapper { padding: 0.85rem; }

    /* Topbar: compact */
    .topbar { padding: 0.5rem 0.85rem; }
    .topbar .page-title { display: none; }
    .topbar .user-info { display: none !important; }
    .topbar .notification-btn,
    .topbar .logout-btn {
        width: 36px; height: 36px;
        border-radius: 8px;
    }
    .topbar .notification-badge {
        min-width: 16px; height: 16px;
        font-size: 0.55rem;
        top: -3px; right: -3px;
    }

    /* Page headers: stack title + button */
    .page-header { margin-bottom: 1.25rem; }
    .page-header h4 { font-size: 1.1rem; }
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    /* Dashboard hero */
    .dash-hero {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
        border-radius: var(--radius-md);
    }
    .dash-hero h2 { font-size: 1.15rem; }
    .dash-hero p { font-size: 0.82rem; }
    .dash-hero .hero-time { font-size: 0.72rem; }

    /* Stat cards: 2-col on mobile, smaller padding */
    .stat-card .p-3.p-md-4,
    .stat-card .p-4 {
        padding: 0.85rem !important;
    }
    .stat-icon {
        width: 40px; height: 40px;
        border-radius: 10px;
        font-size: 1rem;
    }
    .stat-value { font-size: 1.3rem; }
    .stat-label { font-size: 0.6rem; }
    .stat-link { font-size: 0.72rem; }
    .stat-card .position-absolute i { font-size: 2.5rem !important; }

    /* Subscription bar: wrap + smaller */
    .sub-bar {
        padding: 0.65rem 0.85rem;
        gap: 0.5rem;
        border-radius: var(--radius-sm);
    }
    .sub-bar-label { font-size: 0.7rem; }
    .sub-badge { font-size: 0.7rem; padding: 0.25rem 0.65rem; }
    .sub-bar .stat-link { font-size: 0.72rem; }

    /* Glass panels */
    .glass-panel { border-radius: var(--radius-md); }
    .glass-panel-header { padding: 0.85rem 1rem 0; }
    .glass-panel-body { padding: 0.75rem 1rem 1rem; }

    /* Status rows */
    .status-row { padding: 0.6rem 0.75rem; margin-bottom: 0.35rem; }

    /* Cards: reduced radius + padding */
    .card { border-radius: var(--radius-md); }
    .card-header { padding: 0.75rem 1rem; font-size: 0.88rem; }
    .card-body { padding: 0.85rem 1rem; }

    /* Tables: horizontal scroll */
    .table-responsive { margin: 0 -1rem; padding: 0 1rem; }
    .table { font-size: 0.78rem; }
    .table thead th {
        font-size: 0.62rem;
        padding: 0.65rem 0.65rem;
        white-space: nowrap;
    }
    .table tbody td {
        padding: 0.65rem 0.65rem;
        font-size: 0.78rem;
    }
    .table tbody td:first-child,
    .table thead th:first-child { padding-left: 0.85rem; }
    .table tbody td:last-child,
    .table thead th:last-child { padding-right: 0.85rem; }
    .activity-table thead th { font-size: 0.6rem; padding: 0.6rem 0.65rem; }
    .activity-table tbody td { font-size: 0.76rem; padding: 0.55rem 0.65rem; }
    .activity-avatar { width: 26px; height: 26px; font-size: 0.58rem; }

    /* Filter bars: stack vertically */
    .filter-bar {
        padding: 0.65rem 0.85rem;
        border-radius: var(--radius-sm);
    }
    .filter-bar .row { gap: 0.35rem; }
    .filter-bar .col-md-2,
    .filter-bar .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Forms: full width inputs */
    .form-control, .form-select {
        font-size: 0.84rem;
        padding: 0.6rem 0.85rem;
    }
    .form-label { font-size: 0.78rem; }
    .form-control-sm, .form-select-sm {
        font-size: 0.8rem;
        padding: 0.45rem 0.7rem;
    }

    /* Buttons: touch-friendly sizing */
    .btn { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
    .btn-sm { font-size: 0.75rem; padding: 0.4rem 0.7rem; }

    /* Badges */
    .badge { font-size: 0.64rem; padding: 0.3em 0.6em; }

    /* Dropdown menus */
    .dropdown-menu {
        font-size: 0.82rem;
        border-radius: var(--radius-sm);
        min-width: 160px;
    }
    .dropdown-item { padding: 0.5rem 0.85rem; font-size: 0.82rem; }

    /* Pagination: compact */
    .pagination .page-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        margin: 0 1px;
    }

    /* Alerts */
    .alert { font-size: 0.8rem; padding: 0.7rem 1rem; border-radius: var(--radius-sm); }

    /* Section labels */
    .section-label { font-size: 0.65rem; margin-bottom: 0.85rem; }
    .section-label i { width: 22px; height: 22px; font-size: 0.8rem; }

    /* Empty states */
    .empty-state { padding: 2rem 0.75rem; }
    .empty-state i { font-size: 2.25rem; }
    .empty-state p { font-size: 0.82rem; }

    /* Detail pages */
    .detail-label { font-size: 0.68rem; }
    .detail-value { font-size: 0.82rem; }

    /* Modals */
    .modal-dialog { margin: 0.5rem; }
    .modal-content {
        border-radius: var(--radius-md);
        background: rgba(0,0,30,0.95);
        backdrop-filter: blur(40px);
    }

    /* Background orbs: smaller on mobile to reduce GPU load */
    .global-bg-orbs .orb-1 { width: 300px; height: 300px; }
    .global-bg-orbs .orb-2 { width: 250px; height: 250px; }
    .global-bg-orbs .orb-3 { width: 180px; height: 180px; }

    /* Mini progress bars */
    .mini-progress { width: 45px; height: 5px; }

    /* Notification items */
    .notification-item { padding: 0.75rem 0.85rem; }
}

/* ── Small phones (< 400px) ─────────────── */
@media (max-width: 399.98px) {
    .content-wrapper { padding: 0.65rem; }
    .dash-hero { padding: 1rem 0.85rem; }
    .dash-hero h2 { font-size: 1.05rem; }
    .stat-card .p-3.p-md-4,
    .stat-card .p-4 { padding: 0.7rem !important; }
    .stat-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .stat-value { font-size: 1.15rem; }
    .sub-bar { flex-direction: column; align-items: flex-start; }
    .sub-bar .stat-link { margin-left: 0; }
    .topbar { padding: 0.45rem 0.65rem; }
    .card-body { padding: 0.7rem 0.85rem; }
    .glass-panel-header { padding: 0.75rem 0.85rem 0; }
    .glass-panel-body { padding: 0.65rem 0.85rem 0.85rem; }
}

/* ── Auth / Login page mobile ───────────── */
@media (max-width: 767.98px) {
    .auth-body { padding: 1rem; }
    .auth-card { max-width: 100%; }
    .auth-card .card-body { padding: 1.75rem 1.25rem; }
    .auth-card .brand-text { font-size: 1.4rem; }
}

/* ── Tablet landscape (768–1199px) ──────── */
@media (min-width: 768px) and (max-width: 1199.98px) {
    :root { --sidebar-width: 240px; }
    .content-wrapper { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════
   BOOTSTRAP DARK OVERRIDES
   ═══════════════════════════════════════════ */
.bg-white, .bg-light { background: var(--surface-1) !important; }
.card-header.bg-white { background: rgba(255,255,255,0.03) !important; }
.text-dark { color: var(--text-primary) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end {
    border-color: var(--border-subtle) !important;
}
.shadow-sm, .shadow { box-shadow: var(--card-shadow) !important; }
.table-light, .table-light th, .table-light td,
thead.table-light, thead.table-light th {
    background: var(--surface-2) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-subtle) !important;
}
.table-borderless td, .table-borderless th { border: none !important; }
.table-sm td { color: var(--text-secondary); }
.bg-opacity-10 { --bs-bg-opacity: 0.15 !important; }

/* Badge dark overrides */
.badge.bg-secondary { background: var(--surface-3) !important; color: var(--text-secondary) !important; }
.badge.bg-success { background: rgba(28,200,138,0.15) !important; color: #5eeaaa !important; }
.badge.bg-danger { background: rgba(231,74,59,0.15) !important; color: #ff8a80 !important; }
.badge.bg-warning { background: rgba(246,194,62,0.15) !important; color: #f6c23e !important; }
.badge.bg-info { background: rgba(54,185,204,0.15) !important; color: #6dd5ed !important; }
.badge.bg-primary { background: rgba(0,0,128,0.2) !important; color: #6666cc !important; }

/* Text color overrides */
.text-success { color: #5eeaaa !important; }
.text-danger { color: #ff8a80 !important; }
.text-warning { color: #f6c23e !important; }
.text-info { color: #6dd5ed !important; }
.text-primary { color: var(--orange) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* Button outline overrides */
.btn-outline-success { color: #5eeaaa; border-color: #5eeaaa; }
.btn-outline-success:hover { background: rgba(28,200,138,0.15); color: #5eeaaa; border-color: #5eeaaa; }
.btn-outline-danger { color: #ff8a80; border-color: #ff8a80; }
.btn-outline-danger:hover { background: rgba(231,74,59,0.15); color: #ff8a80; border-color: #ff8a80; }
.btn-outline-info { color: #6dd5ed; border-color: #6dd5ed; }
.btn-outline-info:hover { background: rgba(54,185,204,0.15); color: #6dd5ed; border-color: #6dd5ed; }

/* Progress bar */
.progress { background: var(--surface-3); }

/* Modal */
.modal-content {
    background: #0a0a2a;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.modal-header { border-bottom-color: var(--border-subtle); }
.modal-footer { border-top-color: var(--border-subtle); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Dropdown */
.dropdown-menu {
    background: #0a0a2a;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border-radius: var(--radius-sm);
}
.dropdown-item {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255,107,0,0.08);
    color: var(--text-primary);
}

/* Input group dark */
.input-group-text.bg-white { background: var(--surface-3) !important; }

/* List group */
.list-group-item {
    background: var(--surface-1);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

/* Nav tabs */
.nav-tabs { border-bottom-color: var(--border-subtle); }
.nav-tabs .nav-link { color: var(--text-secondary); border-color: transparent; }
.nav-tabs .nav-link:hover { border-color: var(--border-subtle); color: var(--text-primary); }
.nav-tabs .nav-link.active {
    background: var(--surface-1);
    border-color: var(--border-subtle) var(--border-subtle) var(--surface-1);
    color: var(--orange);
}

/* Accordion */
.accordion-item { background: var(--surface-1); border-color: var(--border-subtle); }
.accordion-button { background: var(--surface-2); color: var(--text-primary); }
.accordion-button:not(.collapsed) { background: var(--surface-3); color: var(--orange); }
.accordion-body { color: var(--text-secondary); }

/* ═══════════════════════════════════════════
   SETTINGS PAGE OVERRIDES
   ═══════════════════════════════════════════ */
.settings-hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #080870 100%) !important;
}
.settings-tabs .tab-btn.active {
    background: var(--orange) !important;
    box-shadow: 0 2px 12px rgba(255,107,0,0.3) !important;
}
.setting-card {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
}
.setting-card-header { border-bottom-color: var(--border-subtle) !important; }
.input-styled {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
}
.input-styled:focus {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1) !important;
}
.input-styled::placeholder { color: var(--text-muted) !important; }
.btn-eye {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: var(--text-muted) !important;
}
.btn-eye:hover { color: var(--orange) !important; }
.btn-save { background: var(--orange) !important; }
.btn-save:hover {
    background: var(--orange-dark) !important;
    box-shadow: 0 4px 16px rgba(255,107,0,0.25) !important;
}

.btn-test {
    border-color: rgba(16,185,129,0.3) !important;
    color: #5eeaaa !important;
    background: rgba(16,185,129,0.06) !important;
}
.btn-test:hover { background: rgba(16,185,129,0.12) !important; }
.webhook-url-row { background: var(--surface-2) !important; }
.webhook-url-row label { color: var(--text-secondary) !important; }
.webhook-url-row input { color: var(--text-primary) !important; }
.select-styled {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
}
.select-styled:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1) !important;
}
.divider { background: var(--border-subtle) !important; }
.field-label { color: var(--text-secondary) !important; }
.field-hint { color: var(--text-muted) !important; }
.field-hint a { color: var(--orange) !important; }
.status-pill.configured { background: rgba(16,185,129,0.12) !important; color: #5eeaaa !important; }
.status-pill.not-set { background: rgba(107,114,128,0.12) !important; color: #8888a8 !important; }

/* ═══════════════════════════════════════════
   POWER BADGE (reusable)
   ═══════════════════════════════════════════ */
.power-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(0,0,128,0.08));
    border: 1px solid rgba(255,107,0,0.15);
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.power-badge::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--orange);
    border-radius: 50%;
    animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(255,107,0,0); }
}

/* Chart.js */
canvas { filter: brightness(1.05); }

/* ═══════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════ */
@media print {
    .sidebar, .topbar, .global-bg-orbs { display: none !important; }
    .main-content { margin-left: 0 !important; }
    body { background: #fff; color: #000; }
}
