/* ==========================================================================
   KINTI & RAI — iOS ADMIN & REPORTING SUITE
   Dark Mode Glassmorphic Apple-inspired Design System
   ========================================================================== */

:root {
    --bg-dark: #080a0f;
    --bg-card: rgba(16, 21, 33, 0.75);
    --bg-card-hover: rgba(22, 29, 46, 0.85);
    --bg-input: rgba(255, 255, 255, 0.04);
    
    --primary: #f59e0b;
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
    --primary-glow: rgba(245, 158, 11, 0.25);
    
    --accent-blue: #38bdf8;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(245, 158, 11, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Backdrops */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}
.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    top: -200px;
    left: -150px;
}
.bg-glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: -150px;
    right: -100px;
}
.bg-glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    top: 40%;
    left: 60%;
}

/* Utility Helpers */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* ==========================================================================
   AUTHENTICATION VIEW
   ========================================================================== */
.auth-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.25rem 2rem;
    animation: fadeInScale 0.45s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.app-logo-hero {
    display: inline-flex;
    padding: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.4));
    border-radius: 36px;
    margin-bottom: 1.25rem;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.25);
}

.brand-hero-img {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-smooth);
}
.brand-hero-img:hover {
    transform: scale(1.04);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.security-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: #bae6fd;
    margin-bottom: 1.25rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}
.btn-text-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.65rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}
.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.remember-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.remember-toggle input {
    accent-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin-top: 0.5rem;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.45);
}
.btn-submit:active {
    transform: translateY(1px);
}
.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}
.alert-box.error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fca5a5;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.server-node {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-indicator.online {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* ==========================================================================
   PORTAL DASHBOARD VIEW
   ========================================================================== */
.portal-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    background: rgba(13, 17, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon-mini-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.app-icon-mini {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.portal-title-block {
    display: flex;
    flex-direction: column;
}
.portal-app-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.portal-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.env-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f172a;
}

.admin-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.admin-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}
.admin-role {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-logout:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fca5a5;
}

/* Portal Layout */
.portal-layout {
    display: flex;
    flex: 1;
}

.portal-sidebar {
    width: 250px;
    background: rgba(10, 14, 23, 0.6);
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}
.nav-btn.active {
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 600;
}
.nav-btn.active svg {
    stroke: var(--primary);
}

.app-store-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
}
.app-store-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.35rem;
}
.app-store-status {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Portal Main Content */
.portal-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.pane-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.25rem;
}
.pane-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.15rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
    transition: all var(--transition-fast);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.15rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast);
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.metric-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.metric-badge.positive {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}
.metric-badge.highlight {
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary);
}

.metric-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.35rem;
}
.metric-footer {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Dashboard Boxes */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.box-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pill-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Visual Bar Chart */
.chart-container {
    padding-top: 1rem;
}
.bar-chart {
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.bar-fill {
    width: 100%;
    max-width: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px 6px 0 0;
    transition: all 0.5s ease-out;
}
.bar-fill:hover {
    background: rgba(255, 255, 255, 0.25);
}
.bar-fill.highlight {
    background: var(--primary-gradient);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}
.bar-label {
    position: absolute;
    bottom: -22px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* Device List */
.device-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.device-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}
.device-name { color: var(--text-main); font-weight: 600; }
.device-pct { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}
.progress-fill.alt { background: var(--primary); }
.progress-fill.muted { background: var(--text-dim); }

/* Table */
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
    padding: 0.85rem 1rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #fcd34d;
}
.badge-success {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
}
.tool-icon {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.tool-content {
    flex: 1;
}
.tool-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.tool-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}
input:checked + .slider {
    background-color: var(--primary);
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Version Enforcement */
.version-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.version-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.version-input-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Connected Sites */
.sites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}
.site-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.site-chip.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fff;
}
.site-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.toast-notification.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .portal-layout { flex-direction: column; }
    .portal-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .hide-mobile { display: none; }
    .portal-main { padding: 1.25rem; }
}
