/* ====================================================================
   ANTIGRAVITY VFS CORE DESIGN SYSTEM & STYLING
   ==================================================================== */

:root {
    --font-primary: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* High-Contrast Pitch Black Surface (073609.png) */
    --color-bg-dark: #000000;
    --color-bg-panel: #000000;
    --color-border: rgba(255, 0, 0, 0.4);
    --color-border-hover: #ff0000;
    
    /* Pure White Body & Bright Red Title Text */
    --color-text-bright: #ff0000;       /* Main headers: Bright Red */
    --color-text-normal: #ffffff;       /* Body text: Pure White */
    --color-text-muted: #ff0000;        /* Muted / Senders: Pure Red */
    --color-text-yellow: #ffff00;       /* Category Labels: Electric Yellow */

    /* Crimson Red Accents */
    --color-primary: #ff0000;       /* Bright Red */
    --color-primary-glow: rgba(255, 0, 0, 0.5);
    --color-secondary: #dc2626;     /* Deep Crimson */
    --color-secondary-glow: rgba(220, 38, 38, 0.4);
    --color-success: #10b981;       /* Emerald */
    --color-danger: #ff0000;        /* Bright Red */
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-normal);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}
.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* App Container (Fluid 100% Full-Width) */
.app-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    backdrop-filter: blur(16px);
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-symbol {
    font-size: 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotateSymbol 10s linear infinite;
}
@keyframes rotateSymbol {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.logo-text h1 {
    color: var(--color-text-bright);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 1.5px;
}

/* Workspace Layout */
.workspace-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    flex: 1;
}

@media (max-width: 900px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* Side panel & Sidebar */
.sidebar-panel, .content-panel {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-panel {
    min-height: 500px;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}
.panel-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Tab buttons styling */
.nav-tab-btn:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--color-text-bright) !important;
}
.nav-tab-btn.active {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: var(--color-text-bright) !important;
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.08);
}

/* Content Panel */
.content-panel {
    padding: 24px;
    background: rgba(8, 12, 28, 0.45);
    min-height: 500px;
}

/* Card */
.card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-body {
    padding: 20px;
}

/* Tab panes visibility */
.tab-pane {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #6d28d9);
    color: white;
    box-shadow: 0 4px 12px var(--color-primary-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text-bright);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border-hover);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-normal);
}
.btn-outline:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-bright);
    background: rgba(255, 255, 255, 0.02);
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
}
.data-table td {
    padding: 12px 10px;
    font-size: 13px;
    color: var(--color-text-normal);
    border-bottom: 1px solid var(--color-border-hover);
    transition: background var(--transition-fast);
}
.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-bright);
}
.scroll-table-y {
    max-height: 400px;
    overflow-y: auto;
}

/* PAM Login screen overlay styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background-image: radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.22) 0%, transparent 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity var(--transition-normal);
}
.login-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    width: 420px;
    max-width: 90%;
    padding: 40px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 68, 68, 0.25);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}
.login-icon {
    font-size: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    align-self: center;
    margin-bottom: 20px;
    animation: pulseGlow 3s infinite alternate;
}
@keyframes pulseGlow {
    from { filter: drop-shadow(0 0 2px var(--color-primary-glow)); }
    to { filter: drop-shadow(0 0 12px var(--color-primary-glow)); }
}
.login-card h2 {
    color: var(--color-text-bright);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.login-card p {
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
    margin-bottom: 24px;
}
.auth-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--color-danger);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
}

/* Telemetry Circular Gauge charts */
.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8;
}
.gauge-indicator {
    fill: none;
    stroke: var(--color-secondary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.gauge-indicator.memory {
    stroke: var(--color-primary);
}
.gauge-indicator.sandbox {
    stroke: var(--color-success);
}
.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-bright);
}
.sub-gauge-desc {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 8px;
    text-align: center;
}

/* Forms styling */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--color-text-bright);
    outline: none;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: border-color var(--transition-fast);
}
.form-control:focus {
    border-color: var(--color-primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 10, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.modal-overlay.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: #0c1024;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}
.modal-overlay.open .modal-card {
    transform: scale(1);
}
.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 16px;
    color: var(--color-text-bright);
}
.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted);
}
.modal-close:hover {
    color: var(--color-text-bright);
}
.modal-body {
    padding: 24px;
}

/* File explorer specifics */
.explorer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 12px;
}
.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.breadcrumb-item {
    color: var(--color-text-normal);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-bright);
}
.breadcrumb-item:last-child {
    color: var(--color-secondary);
    font-weight: 600;
    pointer-events: none;
}
.breadcrumb-separator {
    color: var(--color-text-muted);
}
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--color-text-bright);
    outline: none;
    width: 200px;
    transition: border-color var(--transition-fast), width var(--transition-fast);
}
.search-input:focus {
    border-color: var(--color-secondary);
    width: 240px;
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.grid-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
}
.grid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}
.grid-item-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.grid-item-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-bright);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.grid-item-size {
    font-size: 10px;
    color: var(--color-text-muted);
}
.item-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--color-danger);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.grid-item:hover .item-delete-btn {
    opacity: 1;
}
.item-delete-btn:hover {
    background: var(--color-danger);
    color: white;
}

/* Disk progress bars inside disk tables */
.disk-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}
.disk-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}
.disk-progress-fill {
    height: 100%;
    border-radius: 3px;
}

/* Toast Telemetry System alerts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.toast {
    background: rgba(12, 16, 36, 0.9);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-bright);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    min-width: 250px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast.success {
    border-left-color: var(--color-success);
}
.toast.error {
    border-left-color: var(--color-danger);
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Advanced Control panel buttons inside VFS file cards */
.item-action-btn {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    background: rgba(12, 16, 36, 0.9);
    color: var(--color-text-normal);
}
.grid-item:hover .item-action-btn {
    opacity: 1;
}
.item-action-btn.btn-delete {
    top: 6px;
    right: 6px;
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--color-danger);
}
.item-action-btn.btn-delete:hover {
    background: var(--color-danger);
    color: white;
}
.item-action-btn.btn-rename {
    top: 6px;
    right: 32px;
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--color-secondary);
}
.item-action-btn.btn-rename:hover {
    background: var(--color-secondary);
    color: black;
}
.item-action-btn.btn-chmod {
    top: 6px;
    left: 6px;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-primary);
}
.item-action-btn.btn-chmod:hover {
    background: var(--color-primary);
    color: white;
}
.item-action-btn.btn-archive {
    top: 6px;
    left: 32px;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}
.item-action-btn.btn-archive:hover {
    background: var(--color-success);
    color: white;
}
.item-action-btn.btn-download {
    bottom: 6px;
    right: 6px;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}
.item-action-btn.btn-download:hover {
    background: #f59e0b;
    color: black;
}

/* Process priority input styling */
.nice-input {
    width: 45px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    color: var(--color-text-bright);
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    outline: none;
    font-family: var(--font-code);
    transition: border-color var(--transition-fast);
}
.nice-input:focus {
    border-color: var(--color-secondary);
}

/* Network Power Map visualization styles */
.network-map-container svg {
    user-select: none;
}
.map-link {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
    transition: stroke var(--transition-normal);
}
.map-link.active {
    stroke: rgba(220, 38, 38, 0.25);
}
.map-link.tunnel {
    stroke-dasharray: 6, 4;
    animation: dashflow 30s linear infinite;
}
.map-link.tunnel.active {
    stroke: var(--color-secondary);
    stroke-dasharray: 6, 3;
}
@keyframes dashflow {
    to {
        stroke-dashoffset: -1000;
    }
}
.map-node {
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.map-node:hover {
    transform: scale(1.1);
}
.node-circle {
    fill: #0c1024;
    stroke: var(--color-border);
    stroke-width: 2;
    transition: stroke var(--transition-fast), fill var(--transition-fast);
}
.map-node.physical .node-circle {
    stroke: var(--color-primary);
}
.map-node.wireguard .node-circle {
    stroke: var(--color-secondary);
}
.map-node.peer .node-circle {
    stroke: var(--color-success);
}
.map-node.loopback .node-circle {
    stroke: var(--color-text-muted);
}
.map-node.active .node-circle {
    fill: rgba(220, 38, 38, 0.15);
    stroke: var(--color-secondary);
}
.node-pulse {
    animation: nodepulse 2s infinite ease-out;
    transform-origin: center;
}
@keyframes nodepulse {
    0% {
        r: 10px;
        opacity: 0.8;
    }
    100% {
        r: 24px;
        opacity: 0;
    }
}
.node-label {
    fill: var(--color-text-normal);
    font-size: 10px;
    font-family: var(--font-primary);
    text-anchor: middle;
    pointer-events: none;
}
.node-icon {
    font-size: 14px;
    text-anchor: middle;
    pointer-events: none;
}

/* WireGuard Interface & Peer items */
.wg-interface-card, .wg-peer-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.wg-interface-card:hover, .wg-peer-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.03);
}
.wg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wg-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    display: inline-block;
}
.status-indicator.active, .status-indicator.up {
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}
.status-indicator.down {
    background: var(--color-danger);
}
.wg-key-row {
    font-size: 10px;
    color: var(--color-text-muted);
    font-family: var(--font-code);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.wg-key-row:hover {
    color: var(--color-secondary);
    border-color: rgba(220, 38, 38, 0.2);
}
.wg-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-normal);
}
.wg-detail-lbl {
    color: var(--color-text-muted);
}
.wg-detail-val {
    font-family: var(--font-code);
}

/* ====================================================================
   CUSTOM EXTENSION PANELS - TUNER, SIEM, DOCKER
   ==================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}
input:checked + .slider-round {
    background-color: var(--color-secondary);
}
input:checked + .slider-round:before {
    transform: translateX(22px);
}

.policy-card:hover {
    border-color: var(--color-border-hover) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    transform: translateY(-2px);
}
.policy-card.active {
    border-color: var(--color-primary) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

/* ====================================================================
   ARTALL.US PUBLIC PORTAL STYLES
   ==================================================================== */

.public-portal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 2.5rem;
    min-height: 100vh;
    display: none;
    box-sizing: border-box;
}

.portal-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

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

.portal-logo .logo-symbol {
    font-size: 24px;
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.portal-logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text-bright);
    margin: 0;
}

.portal-logo .logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.portal-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

.portal-hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-bright), var(--color-text-normal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero p {
    font-size: 1.1rem;
    color: var(--color-text-normal);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.portal-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.portal-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portal-card .card-icon {
    font-size: 32px;
}

.portal-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-bright);
    margin: 0;
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--color-text-normal);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.portal-card .btn {
    align-self: flex-start;
    width: 100%;
}

.portal-telemetry {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.telemetry-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-bright);
    margin: 0;
}

.telemetry-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.telemetry-status .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.telemetry-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.telemetry-card.details-card {
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}

.telemetry-card.graph-card {
    grid-column: 1 / -1;
    align-items: stretch;
}

.telemetry-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gauge-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-code);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-bright);
}

.telemetry-desc {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--color-text-normal);
    text-align: center;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 4px;
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-code);
    color: var(--color-text-bright);
    font-weight: 600;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shannon-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-code);
    padding: 4px 10px;
    border-radius: 20px;
}

.login-close:hover {
    color: var(--color-text-bright) !important;
}



