/* ==========================================================================
   SHIELDX DESIGN SYSTEM & STYLESHEET (VANILLA CSS)
   Theme: Dark Futuristic Cyber Security (Cloudflare & Datadog Vibe)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-darkest: #06090e;
    --bg-darker: #0c1017;
    --bg-dark: #121824;
    --bg-card: rgba(13, 20, 33, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 240, 255, 0.25);
    
    /* Glares & Accents */
    --accent-cyan: #00f0ff;
    --accent-blue: #0072ff;
    --accent-purple: #9d4edd;
    --accent-red: #ff3864;
    --accent-green: #00ff87;
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(157, 78, 221, 0.05) 50%, transparent 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-darker) 100%);
    
    /* Fonts & Radii */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    /* Shadows */
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
    --glow-purple: 0 0 20px rgba(157, 78, 221, 0.35);
    --glow-btn: 0 4px 20px rgba(0, 114, 255, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --navbar-height: 80px;
}

/* --- Global Resets & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ==========================================================================
   UTILITY CLASSES & REUSABLE LAYOUTS
   ========================================================================== */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-cyan { color: var(--accent-cyan); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.text-muted { color: var(--text-muted); }
.bg-cyan { background-color: var(--accent-cyan); }
.bg-blue { background-color: var(--accent-blue); }
.bg-purple { background-color: var(--accent-purple); }

.w-full { width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* Glowing Badges */
.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

/* SPA Panel Switcher */
.view-panel {
    display: none !important;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}
.view-panel.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}
#auth-view.active {
    display: flex !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #fff;
    box-shadow: var(--glow-btn);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 114, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Glowing Buttons Animation Accent */
.glow-button {
    position: relative;
    overflow: hidden;
}
.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}
.glow-button:hover::after {
    left: 120%;
    opacity: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(6, 9, 14, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    box-shadow: var(--glow-cyan);
}
.logo-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--bg-darkest);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.logo-text .highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 0;
}
.nav-link:hover {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Mobile Nav Menu drawer */
.mobile-nav {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
}
.mobile-link {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.mobile-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 20px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero-subtext-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    width: 100%;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Network Topology Canvas Container */
.hero-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
}
.topology-wrapper {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}
.topology-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.window-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }
.window-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pulse-indicator-live {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-green);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pulse-indicator-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: var(--radius-full);
    animation: pulse-ring 1.5s infinite;
}

.canvas-container {
    height: 320px;
    background: rgba(6, 9, 14, 0.4);
    position: relative;
}
#hero-topology-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.topology-status-bar {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.status-node-info {
    display: flex;
    gap: 6px;
}
.status-node-info .info-label {
    color: var(--text-muted);
}
.status-node-info .info-value {
    font-weight: 600;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.section-padding {
    padding: 100px 24px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}
.bg-dark-gradient {
    position: relative;
}
.section-header {
    margin-bottom: 60px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

/* Card Mouse Highlight Glow */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 240, 255, 0.05), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.feature-card:hover .card-glow {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
    font-size: 20px;
}
.bg-cyan-glow {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.bg-blue-glow {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.2);
}
.bg-purple-glow {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-red));
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-list li {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bullet-check {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

.feature-highlight {
    border-left: 2px solid var(--accent-cyan);
    padding-left: 12px;
    margin-top: 16px;
}
.highlight-badge {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.highlight-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   HOW IT WORKS (TIMELINE)
   ========================================================================== */
.workflow-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
}

.workflow-step {
    flex: 1;
    position: relative;
}
.step-number {
    font-size: 40px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -25px;
    left: 20px;
    z-index: 0;
}
.step-content {
    padding: 30px 24px;
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}
.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.workflow-arrow {
    font-size: 24px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-only { display: none; }

/* ==========================================================================
   DASHBOARD PREVIEW SECTION
   ========================================================================== */
.preview-mockup-wrapper {
    width: 100%;
    overflow: hidden;
}
.mockup-header {
    background: rgba(6, 9, 14, 0.6);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mockup-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mockup-path {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 12px;
}
.mockup-badge-live {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(255, 56, 100, 0.15);
    border: 1px solid rgba(255, 56, 100, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-red);
}

.mockup-content {
    padding: 24px;
    background: rgba(6, 9, 14, 0.3);
}

.mockup-grid-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.mockup-stat-card {
    background: rgba(13, 20, 33, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.m-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}
.m-card-value {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}
.m-card-sub {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.m-card-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.m-progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.mockup-main-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 20px;
}

.mockup-graph-pane {
    padding: 20px;
    height: 320px;
    display: flex;
    flex-direction: column;
}
.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.pane-legends {
    display: flex;
    gap: 16px;
}
.legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.legend-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}
.chart-canvas-container {
    flex: 1;
    width: 100%;
    position: relative;
}
.chart-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.mockup-sidebar-pane {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 320px;
}
.status-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}
.summary-item .label { color: var(--text-secondary); }
.summary-item .value { font-weight: 600; display: flex; align-items: center; gap: 4px;}

.live-threat-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.feed-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.feed-logs {
    flex: 1;
    background: #030508;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 10.5px;
    padding: 8px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.log-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.pricing-badge-space {
    height: 24px;
    margin-bottom: 8px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}
.plan-price .currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
}
.plan-price .amount {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}
.plan-price .period {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 40px;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex: 1;
}
.plan-features li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-features li.unsupported {
    color: var(--text-muted);
    text-decoration: line-through;
}
.feat-icon {
    width: 16px;
    height: 16px;
}

/* Extra nodes slider controller for Pro Plan */
.extra-proxy-selector {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.extra-proxy-selector .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.selector-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.selector-control button {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}
.selector-control button:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
}
.proxy-count-display {
    font-size: 12px;
    font-weight: 700;
}
.extra-info-text {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

/* Highlighted Popular Plan */
.popular-plan {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 114, 255, 0.15);
    transform: translateY(-8px);
}
.popular-badge {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Best Value Complete Solution Plan */
.best-value-plan {
    border-color: rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.15);
}
.best-value-badge {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-red));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    cursor: pointer;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
}
.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--border-hover);
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}
.faq-item.active .faq-answer {
    max-height: 150px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(6, 9, 14, 0.6);
    padding: 60px 24px 20px 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.brand-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 380px;
}
.crypto-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    background: rgba(0, 255, 135, 0.06);
    border: 1px solid rgba(0, 255, 135, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    color: var(--text-primary);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.links-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.links-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color 0.2s;
}
.links-col a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   AUTH CARD VIEW (LOGIN / REGISTER)
   ========================================================================== */
#auth-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
}
.auth-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-link {
    font-size: 11px;
    color: var(--accent-cyan);
}

.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}
.input-icon-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.input-icon-wrapper input:focus {
    border-color: var(--accent-cyan);
}

.auth-toggle {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 24px;
}
.auth-toggle a {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-left: 4px;
}

/* ==========================================================================
   CLIENT PORTAL SIDEBAR & CONTENT AREA
   ========================================================================== */
#client-view {
    min-height: 100vh;
}
.client-layout {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.client-sidebar {
    width: 260px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.sidebar-header {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-user {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}
.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}
.user-meta {
    display: flex;
    flex-direction: column;
}
.user-meta .username {
    font-size: 13px;
    font-weight: 700;
}
.user-meta .role {
    font-size: 11px;
    font-weight: 500;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.menu-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}
.menu-item.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--accent-cyan);
    font-weight: 600;
    border-left: 2px solid var(--accent-cyan);
}
.menu-item i {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

/* Main Dashboard Panel Workstation */
.client-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
}
.client-header {
    height: var(--navbar-height);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 16, 23, 0.4);
}
.header-title h2 {
    font-size: 20px;
    font-weight: 800;
}
.header-title p {
    font-size: 12px;
}

.status-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.2);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
}
.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}
.indicator-dot.online {
    background: var(--accent-green);
}

.panels-container {
    padding: 32px;
    flex: 1;
}

.client-tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.client-tab-panel.active {
    display: block;
    opacity: 1;
}

/* Dashboard Home panel stats grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.dashboard-stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.dashboard-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.dashboard-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}
.dashboard-stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.dashboard-stat-card .value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.dashboard-stat-card .trend {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Home Panel Charts & logs grid */
.dashboard-grid-main {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
}
.graph-box, .logs-box {
    padding: 24px;
    height: 380px;
    display: flex;
    flex-direction: column;
}
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.box-header h3 {
    font-size: 15px;
    font-weight: 700;
}
.live-update-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-cyan);
    padding: 2px 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.05);
    border-radius: var(--radius-full);
}
.chart-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
}
.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.logs-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 11px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Services Panel Styles */
.services-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.service-title-group h4 {
    font-size: 16px;
    font-weight: 700;
}
.service-title-group .service-type {
    font-size: 11px;
    color: var(--text-muted);
}
.service-metrics-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 20px;
}
.service-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-metric .label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.service-metric .value {
    font-size: 14px;
    font-weight: 700;
}

.service-controls {
    display: flex;
    gap: 10px;
}
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    flex: 1;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-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: 20px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-cyan);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
}

/* Billing & Invoices Panel */
.billing-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.billing-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.billing-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.badge-status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
}
.badge-status.paid {
    background: rgba(0, 255, 135, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 135, 0.2);
}
.badge-status.unpaid {
    background: rgba(255, 56, 100, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 56, 100, 0.2);
}

/* USDT Payment Dialog / Widget */
.payment-widget {
    padding: 24px;
}
.payment-widget .close-btn {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}
.payment-widget .close-btn:hover { color: #fff; }
.invoice-meta-info {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 12px;
    margin-bottom: 20px;
}

.network-selector-group {
    margin-bottom: 20px;
}
.network-selector-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.network-buttons {
    display: flex;
    gap: 8px;
}
.network-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.network-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.network-btn.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.payment-instructions {
    display: flex;
    gap: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    align-items: center;
}
.qr-placeholder {
    width: 100px;
    height: 100px;
    background: #fff;
    color: #000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}
.address-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.address-details .label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.address-copy-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.address-copy-wrapper input {
    flex: 1;
    font-family: monospace;
    font-size: 10.5px;
    padding: 6px 10px;
    width: 100%;
}
.copy-btn-addon {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.copy-btn-addon i { width: 14px; height: 14px; }
.copy-btn-addon:hover { background: rgba(255, 255, 255, 0.1); }
.payment-amount-usdt {
    font-size: 11px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.payment-status-monitor {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.spinner-pulse {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-top: 2px solid var(--accent-cyan);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}
.status-msg {
    display: flex;
    flex-direction: column;
}
.status-msg .pulse-txt {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
}
.status-msg .sub-txt {
    font-size: 9.5px;
    color: var(--text-muted);
}

/* Support Tickets Panel */
.tickets-grid-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}
.ticket-list-box {
    padding: 24px;
}
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
}
.ticket-list-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.ticket-list-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
}
.ticket-list-item.active {
    background: rgba(0, 240, 255, 0.03);
    border-color: var(--accent-cyan);
}
.tkt-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.tkt-item-subject {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tkt-item-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.badge-priority {
    font-size: 9.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}
.badge-priority.normal { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.badge-priority.high { background: rgba(0, 114, 255, 0.1); color: var(--accent-cyan); }
.badge-priority.critical { background: rgba(255, 56, 100, 0.1); color: var(--accent-red); }

.ticket-chat-box {
    padding: 24px;
    height: 520px;
    display: flex;
    flex-direction: column;
}
.active-ticket-title-group {
    display: flex;
    flex-direction: column;
}
.active-ticket-title-group .ticket-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.active-ticket-title-group h4 {
    font-size: 14px;
    font-weight: 700;
}
.ticket-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
}
.chat-msg.client {
    align-self: flex-end;
    background: var(--accent-blue);
    border-bottom-right-radius: 2px;
}
.chat-msg.staff {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}
.msg-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}
.chat-msg.staff .msg-meta-row {
    color: var(--text-muted);
}
.ticket-chat-footer {
    display: flex;
    gap: 10px;
}
.ticket-chat-footer input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
}
.ticket-chat-footer input:focus { border-color: var(--accent-cyan); }

.ticket-create-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ticket-create-form select, .ticket-create-form textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 13px;
    width: 100%;
}
.ticket-create-form select:focus, .ticket-create-form textarea:focus { border-color: var(--accent-cyan); }

/* License Keys Panel */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.key-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.key-box .box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}
.key-box h3 { font-size: 15px; font-weight: 700; }
.key-box i { font-size: 20px; }
.desc-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.key-display-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}
.key-display-wrapper input {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    color: var(--accent-cyan);
}
.sub-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
}

.key-list-wrapper {
    flex: 1;
    overflow-x: auto;
}
.key-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.key-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}
.key-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Downloads Panel */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.download-item {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.dl-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.dl-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-cyan);
}
.dl-title-meta h4 {
    font-size: 15px;
    font-weight: 700;
}
.version-tag {
    font-size: 10px;
    color: var(--accent-purple);
    font-weight: 600;
}
.dl-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}
.install-instructions .label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.cmd-box {
    background: #030508;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cmd-box code {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    user-select: all;
    max-width: 85%;
}
.copy-cmd-btn {
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.copy-cmd-btn:hover { color: #fff; }
.dl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.arch-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Profile Settings Panel */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.settings-card {
    padding: 24px;
}
.settings-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.col-6 { flex: 1; }
.settings-card input[type="text"], .settings-card input[type="email"], .settings-card input[type="url"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    width: 100%;
}
.settings-card input:focus { border-color: var(--accent-cyan); }
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* ==========================================================================
   MODALS AND BACKDROPS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fade-in 0.25s ease-out;
}
.modal-card {
    width: 100%;
    max-width: 440px;
    padding: 30px;
    position: relative;
    animation: scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.modal-header .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-header .close-btn:hover { color: #fff; }

.modal-card select, .modal-card input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 13px;
    width: 100%;
}
.modal-card select:focus, .modal-card input:focus { border-color: var(--accent-cyan); }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 135, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 135, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-stats {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .popular-plan {
        transform: none;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .client-layout {
        flex-direction: column;
    }
    .client-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }
    .menu-item {
        white-space: nowrap;
        padding: 8px 12px;
    }
    .sidebar-footer {
        display: none;
    }
    .client-content {
        height: auto;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .workflow-timeline {
        flex-direction: column;
        gap: 24px;
    }
    .workflow-arrow {
        transform: rotate(90deg);
    }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .mockup-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
    .mockup-main-grid {
        grid-template-columns: 1fr;
    }
    .mockup-graph-pane {
        height: 250px;
    }
    .mockup-sidebar-pane {
        height: auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid-main {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .billing-main-grid {
        grid-template-columns: 1fr;
    }
    .tickets-grid-layout {
        grid-template-columns: 1fr;
    }
    .keys-grid {
        grid-template-columns: 1fr;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta button, .hero-cta a {
        width: 100%;
        text-align: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .mockup-grid-top {
        grid-template-columns: 1fr;
    }
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
}
