:root {
    /* Color Palette - Premium Dark Theme */
    --bg-body: #09090b;
    --bg-surface: #18181b;
    --bg-surface-hover: #27272a;
    --bg-glass: rgba(24, 24, 27, 0.95);

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);

    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.35);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --ring-focus: 0 0 0 3px rgba(99, 102, 241, 0.5);

    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border-light: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, rgba(30, 30, 47, 0.5) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Blobs - Optimized */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
    /* Reduced blur further for significant performance gain */
    opacity: 0.12;
    /* Reduced opacity to lessen blending cost */
    will-change: transform;
    animation: float-blob 40s infinite ease-in-out alternate;
    /* Even slower animation */
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float-blob {
    0% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    33% {
        transform: translate3d(20px, -30px, 0) scale3d(1.05, 1.05, 1);
    }

    66% {
        transform: translate3d(-15px, 15px, 0) scale3d(0.95, 0.95, 1);
    }

    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing Effect Cursor */
.typing-wrapper {
    min-height: 1.5em;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .typing-wrapper {
        justify-content: center;
        min-height: 2.4em;
        /* Allow multi-line height */
    }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 6px 16px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
    /* Reduced blur */
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.badge-secondary {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 5, 7, 0.95);
    /* More opaque background */
    backdrop-filter: blur(6px);
    /* Reduced blur for performance */
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.nav-mobile-actions {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.stat-item h4 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(6px);
    /* Reduced blur */
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Grid */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 40%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.06);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.feature-media-inline {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover .feature-media-inline {
    border-color: var(--primary-glow);
}

/* Pricing Card */
.pricing-card {
    background: rgba(24, 24, 27, 0.4);
    /* Much more transparent */
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    transition: var(--transition);
}

.pricing-card.premium {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.5) 0%, rgba(99, 102, 241, 0.08) 100%);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.pricing-card.premium:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
    margin: 24px 0 8px;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    vertical-align: top;
}

.price-period {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.pricing-features {
    margin-bottom: 40px;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.pricing-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background: var(--bg-body);
    width: calc(100% - 280px);
}

.sidebar-nav {
    margin-top: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
}

.menu-item.active {
    color: var(--primary);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.user-profile {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    z-index: 2000;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
    padding: 8px;
    flex: 1;
    text-align: center;
    border-radius: 8px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px 80px 20px;
        /* Added bottom padding for nav */
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        min-height: 110px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-text>div[style*="display: flex"] {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 24px;
        border-bottom: 1px solid var(--border-light);
        gap: 16px;
    }

    .nav-mobile-actions {
        display: block;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
    }

    .hero-text h1 {
        font-size: 2rem;
        min-height: 90px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Disable expensive effects on mobile */
    .blob {
        display: none;
    }

    .glass-card,
    .header.scrolled {
        backdrop-filter: none !important;
        background: var(--bg-surface) !important;
    }
}

/* Fix for Select/Option Colors in Dark Mode */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.form-input option {
    background-color: var(--bg-surface);
    color: var(--text-main);
    padding: 12px;
}

/* Modern visual refresh */
:root {
    --bg-body: #080a0f;
    --bg-surface: #11141b;
    --bg-surface-hover: #191d26;
    --bg-glass: rgba(17, 20, 27, 0.86);
    --primary: #7d8cff;
    --primary-hover: #6877e8;
    --primary-glow: rgba(125, 140, 255, 0.2);
    --secondary: #8aa0c8;
    --secondary-glow: rgba(138, 160, 200, 0.16);
    --accent: #c7d2fe;
    --accent-glow: rgba(199, 210, 254, 0.14);
    --text-main: #f5f7fb;
    --text-muted: #a5afc4;
    --text-dim: #69748c;
    --border-light: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.42);
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(125, 140, 255, 0.1), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(138, 160, 200, 0.07), transparent 28%),
        linear-gradient(180deg, #080a0f 0%, #0e1118 52%, #080a0f 100%);
    background-size: auto;
    background-attachment: fixed;
}

.bg-blobs {
    display: none;
}

.container {
    max-width: 1180px;
}

.header {
    padding: 18px 0;
}

.header .nav-container {
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 18px;
}

.header.scrolled .nav-container,
.header:not(.scrolled) .nav-container {
    background: rgba(10, 12, 18, 0.68);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

.header.scrolled .nav-container {
    background: rgba(10, 12, 18, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.header.scrolled {
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    padding: 12px 0;
}

.logo {
    letter-spacing: 0;
}

.logo img {
    filter: drop-shadow(0 8px 18px rgba(124, 92, 255, 0.28));
}

.nav-menu {
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.nav-link {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn {
    min-height: 44px;
    border-radius: 10px;
    letter-spacing: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #8491ff 0%, #6472d8 100%);
    box-shadow: 0 12px 28px rgba(125, 140, 255, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(125, 140, 255, 0.22);
}

.btn-secondary,
.btn-outline {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.badge {
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.badge-primary {
    color: #dcd6ff;
    background: rgba(124, 92, 255, 0.13);
    border-color: rgba(124, 92, 255, 0.32);
}

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 132px;
    padding-bottom: 72px;
}

.hero-content {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 54px;
}

.hero-text h1 {
    width: 100%;
    max-width: 560px;
    font-size: clamp(2.35rem, 3.55vw, 3.8rem);
    line-height: 1.08;
    min-height: 0;
    letter-spacing: 0;
    margin-bottom: 26px;
    overflow-wrap: anywhere;
}

.text-gradient,
.section-title {
    background: linear-gradient(135deg, #ffffff 0%, #d9eef0 48%, #a7b2c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #eef2ff 0%, #9aa8ff 55%, #7d8cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1rem;
    color: #bbc4d6;
    max-width: 560px;
}

.hero-text>div[style*="display: flex"] {
    flex-wrap: wrap;
}

.hero-stats {
    gap: 14px;
    border-top: 0;
    padding-top: 0;
    margin-top: 42px;
}

.stat-item {
    flex: 1 1 130px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
}

.stat-item h4 {
    font-size: 1.55rem;
}

.stat-item p {
    letter-spacing: 0;
    text-transform: none;
}

.glass-card,
.feature-card,
.pricing-card,
.auth-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
        rgba(17, 19, 27, 0.84) !important;
    border: 1px solid rgba(255, 255, 255, 0.095) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md);
}

.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::after,
.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 26%, transparent 78%, rgba(125, 140, 255, 0.06));
    opacity: 0.72;
}

.hero-visual .glass-card {
    transform: rotateX(0deg) rotateY(-5deg);
    border-radius: 20px !important;
}

.hero-visual .glass-card:hover {
    transform: translateY(-6px) rotateX(0deg) rotateY(-2deg);
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.section {
    padding: 92px 0;
}

.section-header {
    margin-bottom: 46px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    letter-spacing: 0;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
    padding: 28px;
    min-height: 100%;
}

.feature-card::before {
    background: linear-gradient(180deg, rgba(125, 140, 255, 0.14), rgba(138, 160, 200, 0.05));
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 140, 255, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.034)),
        rgba(18, 21, 31, 0.9) !important;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #dcd6ff;
    background: linear-gradient(135deg, rgba(125, 140, 255, 0.18), rgba(138, 160, 200, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #8491ff, #6472d8);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1.14rem;
}

.feature-media-inline {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #07080d;
}

.pricing-card {
    max-width: 520px;
    padding: 42px;
    overflow: hidden;
}

.pricing-card.premium {
    border-color: rgba(125, 140, 255, 0.24) !important;
}

.price-amount {
    font-size: 4.4rem;
    background: linear-gradient(135deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
        rgba(10, 12, 18, 0.92);
    border-right-color: rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.2);
}

.dashboard-main {
    background: transparent;
    padding: 38px;
}

.dashboard-header,
.content-header {
    padding: 18px 0 8px;
    margin-bottom: 26px;
}

.dashboard-header h2,
.page-title {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: 0;
}

.menu-item {
    border: 1px solid transparent;
    border-radius: 10px;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
    color: #dcd6ff;
    box-shadow: inset 3px 0 0 var(--secondary);
}

.user-profile {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}

.form-input,
.combo-btn {
    min-height: 44px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.form-input:focus {
    border-color: rgba(125, 140, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(125, 140, 255, 0.1);
}

.alert {
    border-radius: 12px;
}

table.table thead th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

table.table tbody tr {
    transition: background-color 0.2s ease;
}

table.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.mobile-bottom-nav {
    background: rgba(10, 12, 18, 0.94);
    backdrop-filter: blur(14px);
}

/* Custom Combo Box Styles (if used) */
.combo-wrap {
    position: relative;
    display: inline-block;
}

.combo-btn {
    width: 100%;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.combo-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.combo-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    padding: 4px;
    list-style: none;
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.combo-list.active {
    display: block;
}

.combo-list li {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
}

.combo-list li:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
}

.combo-list li.selected {
    background: var(--primary);
    color: white;
}

/* Video Overlay Styles */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    backdrop-filter: blur(5px);
}

.video-wrap {
    width: 90%;
    max-width: 1000px;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleIn 0.3s 0.1s forwards;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

/* Responsive Dashboard Adjustments */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
        padding-bottom: 100px !important;
        /* Bottom nav spacing */
    }

    .grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .table {
        min-width: 600px;
        /* Force scroll on small screens */
    }

    .stat-card {
        padding: 16px !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
    }

    .nav-item span {
        font-size: 10px;
    }
}

/* Modern refresh responsive fixes */
@media (max-width: 1180px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text>div[style*="display: flex"],
    .hero-stats {
        justify-content: center;
    }

    .hero-visual .glass-card {
        max-width: 720px;
        margin: 0 auto;
        transform: none;
    }

    .hero-visual .glass-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 50% -12%, rgba(125, 140, 255, 0.08), transparent 34%),
            linear-gradient(180deg, #080a0f 0%, #0b0d13 48%, #080a0f 100%);
        background-repeat: no-repeat;
        background-size: 100% 420px, 100% 100%;
        background-attachment: scroll;
    }

    .header .nav-container {
        border-radius: 14px;
    }

    .nav-menu.active {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        background: rgba(10, 12, 18, 0.96);
    }

    .hero {
        min-height: auto;
        padding-top: 116px;
        padding-bottom: 54px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 10vw, 2.85rem);
        line-height: 1.08;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .section {
        padding: 68px 0;
    }

    .pricing-card {
        padding: 30px 22px;
    }

    .auth-card {
        padding: 30px 22px !important;
    }
}

/* Keep navbar readable over content */
.header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.header:not(.scrolled) .nav-container {
    background: rgba(10, 12, 18, 0.42);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.header.scrolled .nav-container {
    background: rgba(10, 12, 18, 0.97);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}

@media (max-width: 768px) {
    .header.scrolled {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header.scrolled .nav-container {
        background: rgba(10, 12, 18, 0.98) !important;
        backdrop-filter: blur(12px) saturate(115%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
    }
}

/* Package Selection Styles */
.package-option {
    cursor: pointer;
}

.package-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.package-card span {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.package-card small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.package-option input:checked + .package-card {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.package-option input:checked + .package-card span {
    color: var(--primary);
}
