


:root {
    
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: rgba(99, 102, 241, 0.08);
    
    
    --accent: #8b5cf6;
    --cyan: #06b6d4;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    
    
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

.btn-ghost-white {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}


.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    max-width: 720px;
}

.hero-protocols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.protocol-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--green);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}


.logos-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-light);
}

.logos-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.logo-item {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-400);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    color: var(--gray-600);
}


.section {
    padding: 100px 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-slow);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
    position: relative;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon svg {
    width: 24px;
    height: 24px;
}

.product-icon.residential {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.product-icon.datacenter {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
}

.product-icon.mobile {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--gray-100);
    color: var(--text-secondary);
}

.product-badge.popular {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.product-badge.best-value {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
}

.product-badge.new {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}

.product-pricing {
    margin-bottom: 20px;
}

.product-pricing .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.product-pricing .price-unit {
    font-size: 1rem;
    color: var(--text-muted);
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


.code-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.code-content .section-label {
    text-align: left;
}

.code-content .section-title {
    text-align: left;
}

.code-content .section-desc {
    text-align: left;
    margin-bottom: 24px;
}

.code-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.code-tab {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.code-tab.active {
    background: var(--primary);
    color: var(--white);
}

.code-tab:hover:not(.active) {
    background: var(--gray-200);
}

.code-features {
    list-style: none;
}

.code-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.code-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.code-window {
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots .dot.red { background: #ef4444; }
.code-dots .dot.yellow { background: #f59e0b; }
.code-dots .dot.green { background: #10b981; }

.code-filename {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-family: 'JetBrains Mono', monospace;
}

.copy-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-700);
    border: none;
    border-radius: 4px;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--gray-600);
    color: var(--white);
}

.code-block {
    display: none;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    overflow-x: auto;
    background: #0f172a !important; 
    color: #e2e8f0 !important;
    border-radius: 0 0 12px 12px;
}

.code-block.active {
    display: block;
}

.code-block pre {
    margin: 0;
    background: transparent !important;
    color: #e2e8f0 !important;
}

.code-block code {
    background: transparent !important;
    color: #e2e8f0 !important;
    font-family: 'JetBrains Mono', monospace;
}


.code-block .kw { color: #f472b6 !important; font-weight: 600; } 
.code-block .str { color: #34d399 !important; } 
.code-block .fn { color: #38bdf8 !important; } 
.code-block .cmt { color: #94a3b8 !important; font-style: italic; } 
.code-block .num { color: #fbbf24 !important; } 
.code-block .op { color: #94a3b8 !important; } 


.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.usecase-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
}

.usecase-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.usecase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.usecase-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.usecase-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.usecase-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-slow);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-xl);
    transform: scale(1.02);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-header .pricing-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.pricing-price {
    margin-bottom: 24px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-price .amount.custom {
    font-size: 2rem;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}


.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}


.footer {
    background: var(--gray-900);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--gray-400);
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}


#chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}


.chat-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
    cursor: pointer;
}

.chat-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-popup-content {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.chat-popup-content p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.chat-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.chat-popup-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.chat-popup-arrow {
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

#chat-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

#chat-trigger svg {
    width: 24px;
    height: 24px;
}

#chat-trigger:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

#chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#chat-window.open {
    display: flex;
}

#chat-header {
    background: var(--primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.chat-header-info strong {
    color: var(--white);
    font-size: 0.9375rem;
}

.chat-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50);
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.message.client {
    align-self: flex-end;
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.admin {
    align-self: flex-start;
    background: var(--white);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

#chat-input-area {
    padding: 16px;
    display: flex;
    gap: 12px;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    outline: none;
    transition: var(--transition);
}

#chat-input:focus {
    border-color: var(--primary);
}

#chat-send {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chat-send svg {
    width: 18px;
    height: 18px;
}

#chat-send:hover {
    background: var(--primary-dark);
}


@media (max-width: 1024px) {
    .products-grid,
    .features-grid,
    .usecases-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .code-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }
    
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .products-grid,
    .features-grid,
    .usecases-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


.admin-body {
    background: var(--admin-bg, #f8fafc);
    color: var(--admin-text, #0f172a);
    height: 100vh;
    overflow: hidden;
}

.admin-layout {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 320px;
    background: var(--admin-sidebar, #ffffff);
    border-right: 1px solid var(--admin-border, #e2e8f0);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
}

.admin-badge {
    font-size: 0.75rem;
    background: var(--admin-bg, #f8fafc);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
}

.client-list {
    flex: 1;
    overflow-y: auto;
}

.client-item {
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--admin-bg, #f8fafc);
    transition: background 0.2s;
}

.client-item:hover {
    background: var(--admin-bg, #f8fafc);
}

.client-item.active {
    background: #eef2ff;
    border-left: 4px solid var(--primary);
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.message-wrapper.client {
    align-items: flex-start;
}

.message-wrapper.admin {
    align-items: flex-end;
}

.message-bubble {
    max-width: 60%;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.client .message-bubble {
    background: #f3f4f6;
    color: var(--admin-text, #0f172a);
    border-bottom-left-radius: 0;
}

.admin .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0;
}

.message-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.input-wrapper {
    margin: 1.5rem 2rem;
    padding: 0.5rem;
    background: var(--admin-bg, #f8fafc);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    outline: none;
    font-size: 1rem;
}

.sidebar-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 0.5rem;
    background: var(--admin-bg, #f8fafc);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--primary);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--admin-border, #e2e8f0);
    background: var(--admin-sidebar, #ffffff);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--admin-text, #0f172a);
}

.user-status {
    font-size: 0.75rem;
    color: var(--green);
}

.client-list-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.client-info {
    flex: 1;
    min-width: 0;
}

.client-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.client-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--admin-text, #0f172a);
}

.client-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.client-last-msg {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: var(--admin-bg, #f8fafc);
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--admin-text, #0f172a);
}

.chat-placeholder p {
    font-size: 0.9375rem;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header-left h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
}

.status-pill.hidden {
    display: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}


.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.connection-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.connection-status .status-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-status.connected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.connection-status.connected .status-dot {
    background: var(--green);
    animation: pulse 2s infinite;
}

.connection-status.connecting {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.connection-status.connecting .status-dot {
    background: var(--orange);
    animation: pulse 1s infinite;
}

.connection-status.reconnecting {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.connection-status.reconnecting .status-dot {
    background: var(--orange);
    animation: pulse 0.75s infinite;
}

.connection-status.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    cursor: pointer;
}

.connection-status.disconnected .status-dot {
    background: var(--red);
    animation: none;
}

.connection-status.disconnected:hover {
    background: rgba(239, 68, 68, 0.2);
}


.client-item.loading {
    opacity: 0.6;
}

.client-item.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--admin-bg, #f8fafc);
    color: var(--admin-text, #0f172a);
    border-color: var(--primary);
}

.input-area {
    padding: 1rem 2rem 2rem;
    background: white;
    border-top: 1px solid var(--admin-border, #e2e8f0);
}

.attach-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.attach-btn:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.hidden {
    display: none !important;
}




.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background: var(--gray-50);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--red);
}

.form-actions {
    margin-top: 8px;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.auth-alt {
    text-align: center;
}

.auth-alt p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-alt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-alt a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


.auth-discord {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.auth-discord p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-discord a {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-discord a:hover {
    text-decoration: underline;
}


.reset-result {
    text-align: center;
    padding: 24px;
}

.reset-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.reset-success svg {
    color: var(--green);
}

.reset-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reset-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.discord-help {
    margin-top: 8px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #5865F2;
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-1px);
}


.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-toggle:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-menu-toggle svg {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.user-menu-toggle.active svg {
    transform: rotate(180deg);
}


.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-email {
    font-size: 0.875rem;
    color: var(--text-muted);
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.dropdown-item:hover svg {
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.logout-btn {
    color: var(--red);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.logout-btn svg {
    color: var(--red);
}


.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--green);
}

.toast.error {
    background: var(--red);
}


@media (max-width: 480px) {
    .auth-container {
        padding: 100px 16px 40px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-toggle {
        padding: 6px;
    }
}



.doc-container {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
    position: relative;
}

.doc-sidebar {
    width: 260px;
    background: var(--gray-50);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    position: fixed;
    top: 72px;
    left: 0;
    height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 10;
}

.doc-container .footer {
    margin-left: 260px;
    width: calc(100% - 260px);
}

.doc-nav h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    margin-top: 24px;
}

.doc-nav h4:first-child {
    margin-top: 0;
}

.doc-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.doc-link:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.doc-link.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 500;
}

.doc-content {
    flex: 1;
    margin-left: 260px;
    padding: 48px 64px;
    max-width: 900px;
}

.doc-section {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.doc-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.doc-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 48px;
}

.doc-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 32px;
}

.doc-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.doc-step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.step-content p {
    margin-bottom: 16px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.doc-table th,
.doc-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.doc-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.doc-table td {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.doc-table td code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.proxy-type-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.proxy-type-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.proxy-type-card .code-window {
    background: var(--gray-100);
    border: 1px solid var(--border);
}

.proxy-type-card .code-block {
    background: var(--gray-100);
    color: var(--text-primary);
}


.doc-content .code-window {
    background: var(--gray-100);
    border: 1px solid var(--border);
}

.doc-content .code-header {
    background: var(--gray-200);
    border-bottom: 1px solid var(--border);
}

.doc-content .code-filename {
    color: var(--text-secondary);
}

.doc-content .code-block {
    background: var(--gray-100);
    color: var(--text-primary);
}

.doc-content .code-block pre {
    color: var(--text-primary);
}

.doc-content .code-block code {
    color: var(--text-primary);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.country-item .flag {
    font-size: 1.25rem;
}

.doc-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
}

.doc-cta {
    text-align: center;
    padding: 48px;
    background: var(--gray-50);
    border-radius: 16px;
}

.doc-cta h2 {
    margin-top: 0;
}

.doc-cta p {
    margin-bottom: 24px;
}


@media (max-width: 1024px) {
    .doc-sidebar {
        display: none;
    }
    
    .doc-content {
        margin-left: 0;
        padding: 32px 24px;
    }
    
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-step {
        flex-direction: column;
    }
}



.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
}

.dashboard-sidebar {
    width: 240px;
    background: var(--gray-50);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: fixed;
    top: 72px;
    left: 0;
    height: calc(100vh - 72px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dashboard-nav {
    flex: 1;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.dash-link:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.dash-link.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 500;
}

.dash-link svg {
    flex-shrink: 0;
}

.sidebar-balance {
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.dashboard-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px 48px;
    max-width: 1000px;
}

.dashboard-container .footer {
    margin-left: 240px;
    width: calc(100% - 240px);
}

.dash-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.dash-section h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.dash-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 48px;
}

.dash-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dash-lead {
    color: var(--text-secondary);
    margin-bottom: 32px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}


.config-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.config-row:last-child {
    border-bottom: none;
}

.config-row label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.config-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-value code {
    background: var(--gray-100);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.copy-btn, .toggle-visibility {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 6px;
    transition: var(--transition);
}

.copy-btn:hover, .toggle-visibility:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.copy-btn.copied {
    color: var(--green);
}


.proxy-builder {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
}

.builder-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.builder-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.builder-row select,
.builder-row input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: var(--white);
}

.builder-row select:focus,
.builder-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.builder-result label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.builder-result .code-window {
    margin-bottom: 16px;
}


.usage-empty {
    text-align: center;
    padding: 64px 32px;
    background: var(--gray-50);
    border-radius: 12px;
    color: var(--text-muted);
}

.usage-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.usage-empty h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}


.billing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.balance-display {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 32px;
}

.balance-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.topup-options h4 {
    margin-bottom: 16px;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.topup-btn {
    padding: 12px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.topup-btn:hover {
    background: var(--gray-200);
}

.topup-btn.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.custom-amount {
    margin-bottom: 24px;
}

.custom-amount label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.amount-input {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.amount-input span {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.amount-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
}


.settings-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.danger-zone {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.danger-zone h3 {
    color: var(--red);
    margin-bottom: 16px;
}

.setting-row.danger {
    border-bottom: none;
    padding-bottom: 0;
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}


@media (max-width: 1024px) {
    .dashboard-sidebar {
        display: none;
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 24px;
    }
    
    .dashboard-container .footer {
        margin-left: 0;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .builder-form {
        grid-template-columns: 1fr;
    }
    
    .topup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .topup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .config-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
