:root {
    --bg-dark: #020305;
    --bg-card: #0d0f14;
    --text-main: #ECEFF4;
    --text-muted: #94A3B8;
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #8B5CF6 100%);
    --accent-glow: 0 0 80px rgba(37, 99, 235, 0.25);
    --border-color: #334155;
}

/* Override System Styles */
body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
    flex: 1; /* Allow it to fill remaining space */
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: none !important;
}

footer {
    background-color: var(--bg-dark) !important;
    border-top: 1px solid var(--border-color) !important;
    margin-top: auto;
    padding: 20px 20px !important;
}

footer .text-muted {
    color: var(--text-muted) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Custom Navbar */
.neon-nav {
    background: rgba(2, 3, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.nav-brand {
    font-weight: 800;
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-item-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-item-link:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    position: relative;
    flex: 1; /* For flex layout in auth pages */
}

.hero-badge {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #60A5FA;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title em {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn-neon-primary {
    background: #fff;
    color: #000;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 99px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-neon-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: #fff;
    color: #000;
}

.btn-neon-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 99px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-neon-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Features/Auth Grid */
.features-section {
    padding: 100px 0;
    position: relative;
}

.feature-card-neon {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}
.auth-card-neon {
    background: rgba(13, 15, 20, 0.5); /* Semi-transparent bg-card */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.feature-card-neon:hover {
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--accent-glow);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Input Fields for Auth */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #2563EB;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    color: #fff;
}

.form-label {
    color: var(--text-muted);
}

/* Split Section */
.split-section {
    padding: 100px 0;
}

.code-window {
    background: #1e1e2e;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.code-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* Pricing */
.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-card-neon {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}

.pricing-card-neon.active {
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0) 100%), var(--bg-card);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 20px 0;
}

.check-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: #2563EB;
}

/* Testimonials */
.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding-top: 120px; }
    
    /* Smaller Brand Logo & Text on Mobile */
    .nav-brand {
        font-size: 1.5rem !important;
        margin-top: 10px !important;
    }
    .neon-nav img[alt="Logo"],
    .offcanvas-neon img[alt="Logo"] {
        height: 32px !important;
    }
}

/* Offcanvas Mobile Menu */
.offcanvas-neon {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-neon .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-neon .nav-link {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-neon .nav-link.active {
    color: #fff;
}

/* High Contrast Alerts for Dark Theme */
.alert-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ff8690 !important; /* Lighter red/pink */
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.15) !important;
    color: #6ee7b7 !important; /* Lighter green */
    border: 1px solid rgba(25, 135, 84, 0.3) !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #ffe69c !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.15) !important;
    color: #6edff6 !important;
    border: 1px solid rgba(13, 202, 240, 0.3) !important;
}
