:root {
            --bg-color: #050811;
            --card-bg: rgba(13, 20, 38, 0.6);
            --card-border: rgba(255, 255, 255, 0.05);
            --primary: #00f2fe;
            --secondary: #9b51e0;
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --danger: #ff4757;
            --success: #2ed573;
            --sidebar-width: 280px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(155, 81, 224, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 45%);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Glassmorphism Styles */
        .glass-card {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--card-border);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
            border-radius: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .glass-card:hover {
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        /* Buttons styling */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: none;
            white-space: nowrap;
        }

        .btn:disabled, .btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #000;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--card-border);
            color: var(--text-primary);
        }

        .btn-outline:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        /* --- PUBLIC WEBSITE PORTION --- */
        #public-website {
            display: block;
            width: 100%;
        }

        /* Navbar */
        .public-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 5%;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 900;
            background: rgba(5, 8, 17, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--card-border);
        }

        .public-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            background: linear-gradient(to right, var(--primary), #fff);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .public-logo-icon {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
        }
        .public-logo-icon i {
            color: #000;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        /* Hero Section */
        .hero-section {
            padding: 11rem 5% 7rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
        }

        .hero-tagline {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 30px;
            background: rgba(0, 242, 254, 0.05);
            border: 1px solid rgba(0, 242, 254, 0.15);
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 2rem;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.15;
            letter-spacing: -1.5px;
            margin-bottom: 1.5rem;
            background: linear-gradient(to right, #fff, #94a3b8);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: 1.15rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 2.5rem;
            max-width: 780px;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 4rem;
        }

        /* Section Containers */
        .section-container {
            padding: 6rem 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 2.25rem;
            font-weight: 800;
            letter-spacing: -0.75px;
            margin-bottom: 0.5rem;
        }

        .section-subtitle {
            color: var(--text-secondary);
            font-size: 1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Solutions / Use Cases Section */
        .solutions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .solution-card {
            padding: 2.5rem 2rem;
        }

        .solution-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }

        .solution-card:nth-child(even) .solution-icon {
            color: var(--secondary);
        }

        .solution-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .solution-desc {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* 3-Step Zero-Touch Deployment Flow */
        .process-flow {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2.5rem;
            margin-top: 1.5rem;
            position: relative;
        }

        .process-step {
            padding: 2rem;
            position: relative;
        }

        .step-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: rgba(0, 242, 254, 0.15);
            position: absolute;
            top: 1.5rem;
            right: 2rem;
            line-height: 1;
        }

        .step-title {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .step-desc {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Hardware Showcase Section */
        .hardware-showcase {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 4rem;
            align-items: center;
            background: radial-gradient(circle at 80% 50%, rgba(155, 81, 224, 0.05) 0%, transparent 40%);
        }

        .hw-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .hw-spec-item {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
        }

        .hw-spec-item i {
            color: var(--primary);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .hw-spec-title {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 2px;
        }

        .hw-spec-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        /* CSS-based Teltonika Router Mockup */
        .hw-graphic-container {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .router-mock {
            width: 300px;
            height: 200px;
            background: linear-gradient(135deg, #131722, #080a0f);
            border: 2px solid #232a3f;
            border-radius: 12px;
            position: relative;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            padding: 1.5rem;
        }

        .router-mock::before {
            content: 'TELTONIKA | RUT241';
            position: absolute;
            top: 15px;
            left: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #4a5568;
            letter-spacing: 0.5px;
        }

        .router-leds {
            display: flex;
            gap: 8px;
            margin-top: auto;
        }

        .led {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #1a202c;
        }

        .led.active {
            background-color: var(--success);
            box-shadow: 0 0 8px var(--success);
        }

        .led.pulse {
            animation: ledPulse 1s infinite alternate;
        }

        @keyframes ledPulse {
            0% { opacity: 0.3; }
            100% { opacity: 1; box-shadow: 0 0 10px var(--success); }
        }

        .router-ports {
            display: flex;
            gap: 15px;
            margin-top: 1rem;
        }

        .port {
            width: 35px;
            height: 25px;
            background: #1a202c;
            border: 1px solid #2d3748;
            border-radius: 4px;
        }

        .antenna-connector {
            width: 14px;
            height: 14px;
            background: #d69e2e;
            border-radius: 50%;
            position: absolute;
            top: -7px;
        }

        .ant-1 { left: 40px; }
        .ant-2 { right: 40px; }

        /* Public SLA / Server Status Section */
        .public-status-dashboard {
            padding: 2rem;
            margin-top: 2rem;
        }

        /* Footer */
        .public-footer {
            border-top: 1px solid var(--card-border);
            padding: 3rem 5%;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
            background: rgba(5, 8, 17, 0.95);
        }

        /* --- AUTH MODAL OVERLAY --- */
        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(5, 8, 17, 0.85);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 1.5rem;
        }

        .auth-modal.active {
            display: flex;
        }

        .auth-card {
            width: 100%;
            max-width: 450px;
            padding: 2.5rem;
            display: none;
        }

        .auth-card.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .auth-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .auth-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
        }

        .auth-logo i {
            color: #000;
            font-size: 1.5rem;
        }

        .auth-title {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 0.5rem;
            background: linear-gradient(to right, #fff, var(--text-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .auth-subtitle {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .auth-footer-link {
            text-align: center;
            margin-top: 1.5rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .auth-footer-link a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .auth-footer-link a:hover {
            text-decoration: underline;
        }

        /* --- PRIVATE APP LAYOUT --- */
        .app-layout {
            display: none;
            width: 100%;
            min-height: 100vh;
        }

        .app-layout.active {
            display: flex;
        }

        /* Sidebar Styling */
        aside {
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 100;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--card-border);
            background: rgba(10, 14, 23, 0.85);
            backdrop-filter: blur(20px);
            padding: 2rem 1.5rem;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 2.5rem;
            text-decoration: none;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
        }

        .logo-icon i {
            color: #000;
            font-weight: bold;
        }

        .logo-text {
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            background: linear-gradient(to right, var(--primary), #fff);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-menu {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            flex-grow: 1;
        }

        .nav-item a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.85rem 1rem;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .nav-item a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.03);
            transform: translateX(4px);
        }

        .nav-item.active a {
            color: var(--primary);
            background: rgba(0, 242, 254, 0.05);
            border: 1px solid rgba(0, 242, 254, 0.15);
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
        }

        .nav-item.active a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 15%;
            height: 70%;
            width: 3px;
            background: var(--primary);
            border-radius: 0 4px 4px 0;
            box-shadow: 0 0 10px var(--primary);
        }

        .sidebar-footer {
            margin-top: auto;
            padding-top: 1.5rem;
            border-top: 1px solid var(--card-border);
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .user-profile-section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .user-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary), rgba(0, 242, 254, 0.5));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #fff;
            border: 2px solid var(--card-border);
        }

        .user-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            max-width: 150px;
        }

        .user-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .logout-btn {
            margin-left: auto;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .logout-btn:hover {
            color: var(--danger);
            background: rgba(255, 71, 87, 0.1);
        }

        /* Demo Role Switcher */
        .demo-role-switcher {
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--card-border);
            border-radius: 6px;
            padding: 0.4rem;
            color: var(--text-secondary);
            outline: none;
            width: 100%;
            cursor: pointer;
        }

        .demo-role-switcher:focus {
            border-color: var(--primary);
        }

        /* Main Workspace */
        main {
            margin-left: var(--sidebar-width);
            flex-grow: 1;
            padding: 2.5rem;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            max-width: 1600px;
            width: calc(100% - var(--sidebar-width));
        }

        /* Top Navigation Header */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .page-title h1 {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 0.25rem;
        }

        .page-title p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 30px;
            background: rgba(46, 213, 115, 0.1);
            border: 1px solid rgba(46, 213, 115, 0.2);
            color: var(--success);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--success);
            box-shadow: 0 0 10px var(--success);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(0.9); opacity: 0.6; }
            50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 15px var(--success); }
            100% { transform: scale(0.9); opacity: 0.6; }
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
        }

        .stat-card {
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .stat-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(to right, transparent, var(--card-border), transparent);
        }

        .stat-card.primary::after {
            background: linear-gradient(to right, var(--primary), var(--secondary));
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .stat-icon {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-secondary);
        }

        .stat-card.primary .stat-icon {
            background: rgba(0, 242, 254, 0.1);
            color: var(--primary);
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 0.25rem;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .stat-trend {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.75rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }

        .trend-up { color: var(--success); }
        .trend-down { color: var(--danger); }

        /* Main Dashboard Layout */
        .dashboard-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
        }

        .charts-container {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .chart-card {
            padding: 1.5rem;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .chart-title {
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .chart-legends {
            display: flex;
            gap: 1rem;
            font-size: 0.8rem;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--text-secondary);
        }

        .legend-color {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .legend-cyan { background-color: var(--primary); box-shadow: 0 0 5px var(--primary); }
        .legend-purple { background-color: var(--secondary); box-shadow: 0 0 5px var(--secondary); }

        /* Canvas / Custom Graph container */
        .canvas-container {
            position: relative;
            width: 100%;
            height: 250px;
        }

        canvas {
            width: 100%;
            height: 100%;
        }

        /* Sidebar Side Widgets */
        .side-widgets {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .widget-card {
            padding: 1.5rem;
        }

        .widget-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .node-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .node-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--card-border);
        }

        .node-item:hover {
            border-color: rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
        }

        .node-icon-status {
            position: relative;
        }

        .node-status-indicator {
            position: absolute;
            bottom: -2px;
            right: -2px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 2px solid #0c1220;
        }

        .node-status-indicator.online { background-color: var(--success); }
        .node-status-indicator.offline { background-color: var(--danger); }
        .node-status-indicator.pending { background-color: #f1c40f; }

        .node-details {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex-grow: 1;
        }

        .node-name {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .node-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: flex;
            gap: 8px;
        }

        .node-signal {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--primary);
        }

        /* Locations and Hardware Section */
        .table-card {
            padding: 1.5rem;
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.25rem;
        }

        .table-title {
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        th {
            padding: 1rem 0.75rem;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 0.85rem;
            border-bottom: 1px solid var(--card-border);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            padding: 1rem 0.75rem;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.02);
            color: var(--text-primary);
        }

        tr:last-child td {
            border-bottom: none;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .badge-active { background: rgba(46, 213, 115, 0.1); color: var(--success); }
        .badge-danger { background: rgba(255, 71, 87, 0.1); color: var(--danger); }
        .badge-warning { background: rgba(241, 196, 15, 0.1); color: #f1c40f; }

        /* eSIM switch button */
        .esim-btn {
            background: rgba(155, 81, 224, 0.1);
            color: var(--secondary);
            border: 1px solid rgba(155, 81, 224, 0.2);
            padding: 0.35rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .esim-btn:hover {
            background: var(--secondary);
            color: #fff;
            box-shadow: 0 0 10px rgba(155, 81, 224, 0.3);
        }

        .esim-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-secondary);
            border-color: var(--card-border);
            box-shadow: none;
        }

        /* --- SUBSCRIPTION PLANS SCREEN --- */
        .plans-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 1rem;
        }

        .plan-card {
            padding: 2.5rem 2rem;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .plan-card.recommended {
            border-color: rgba(0, 242, 254, 0.25);
            box-shadow: 0 10px 40px rgba(0, 242, 254, 0.05);
        }

        .plan-card.recommended::before {
            content: 'RECOMMENDED';
            position: absolute;
            top: 15px;
            right: -30px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #000;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 4px 30px;
            transform: rotate(45deg);
        }

        .plan-name {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .plan-price {
            display: flex;
            align-items: baseline;
            gap: 4px;
            margin-bottom: 1.5rem;
        }

        .plan-amount {
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff;
        }

        .plan-period {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .plan-upfront {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-size: 0.85rem;
            color: var(--text-primary);
            margin-bottom: 2rem;
            border-left: 3px solid var(--secondary);
        }

        .plan-card.recommended .plan-upfront {
            border-left-color: var(--primary);
        }

        .plan-features {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 2.5rem;
            flex-grow: 1;
        }

        .plan-features li {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .plan-features li i {
            color: var(--primary);
        }

        /* --- CHECKOUT FORM SCREEN --- */
        .checkout-layout {
            display: grid;
            grid-template-columns: 3fr 2fr;
            gap: 2rem;
        }

        .checkout-form {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .form-section-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #fff;
            border-bottom: 1px solid var(--card-border);
            padding-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

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

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .form-control {
            background: rgba(10, 14, 23, 0.6);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            color: #fff;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
        }

        .payment-methods {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .payment-method-card {
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 1.25rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            background: rgba(255, 255, 255, 0.01);
        }

        .payment-method-card.selected {
            border-color: var(--primary);
            background: rgba(0, 242, 254, 0.05);
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
        }

        .payment-method-icon {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .order-summary-card {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            height: fit-content;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
            color: var(--text-secondary);
        }

        .summary-row.total {
            border-top: 1px solid var(--card-border);
            padding-top: 1.25rem;
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }

        /* --- API & WEBHOOKS SCREEN --- */
        .api-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .code-block {
            background: rgba(10, 14, 23, 0.9);
            border: 1px solid var(--card-border);
            padding: 1rem;
            border-radius: 8px;
            font-family: monospace;
            font-size: 0.85rem;
            color: var(--primary);
            overflow-x: auto;
            margin-top: 0.5rem;
        }

        /* --- PUBLIC STATUS / SLA SCREEN --- */
        .status-container {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .sla-progress-card {
            padding: 1.5rem;
        }

        .sla-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .sla-bars {
            display: flex;
            gap: 4px;
            height: 35px;
        }

        .sla-bar {
            flex-grow: 1;
            background-color: var(--success);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
        }

        .sla-bar.warning { background-color: #f1c40f; }
        .sla-bar.danger { background-color: var(--danger); }

        .sla-bar:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 45px;
            left: 50%;
            transform: translateX(-50%);
            background: #000;
            color: #fff;
            padding: 4px 8px;
            font-size: 0.75rem;
            border-radius: 4px;
            white-space: nowrap;
            z-index: 10;
        }

        /* --- ADMIN DASHBOARD --- */
        .admin-controls {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .control-card {
            padding: 1.5rem;
        }

        .switch-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        }

        .switch-label {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .switch-title {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .switch-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        /* Custom Switch Toggle */
        .switch {
            position: relative;
            display: inline-block;
            width: 46px;
            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.1);
            transition: .3s;
            border-radius: 24px;
            border: 1px solid var(--card-border);
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--primary);
        }

        input:checked + .slider:before {
            transform: translateX(22px);
            background-color: #000;
        }

        .screen-section {
            display: none;
        }

        .screen-section.active {
            display: block;
        }

        /* Role Badge Styling */
        .role-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
        }
        .role-admin { background: rgba(0, 242, 254, 0.15); color: var(--primary); border: 1px solid rgba(0, 242, 254, 0.2); }
        .role-noc { background: rgba(155, 81, 224, 0.15); color: var(--secondary); border: 1px solid rgba(155, 81, 224, 0.2); }
        .role-billing { background: rgba(46, 213, 115, 0.15); color: var(--success); border: 1px solid rgba(46, 213, 115, 0.2); }
        .role-readonly { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid var(--card-border); }

        .select-control {
            background: rgba(10, 14, 23, 0.6);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            color: #fff;
            font-size: 0.95rem;
            outline: none;
            width: 100%;
            cursor: pointer;
        }
        .select-control option {
            background: #0a0e17;
            color: #fff;
        }