/**
 * Dark Theme - Base styles and overrides
 */

html, body {
    background-color: var(--bg-dark) !important;
    background: var(--bg-dark) !important;
    position: relative;
    color: var(--text-color) !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted-foreground) / 0.3) hsl(var(--background));
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background-color: #000;
}

.feature-content {
    padding-left: 0;
    border-left: none;
}

#topo-background,
#res-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#res-canvas {
    width: 100%;
    height: auto;
    object-fit: contain;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.025) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 78%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
        #03030a;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

/* Ambient glow blobs */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 700px 500px at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 70%),
        radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.section,
.feature-part {
    background-color: transparent !important;
    position: relative;
    z-index: 2;
}

/* ── Layout: footer always at bottom on ALL pages ── */
html {
    height: 100%;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
}

/* Content sections: natural height only */
.section.feature-part,
.product-part,
.details-part,
.profile-part,
.order-part,
.blog-part,
.contact-part,
.faq-part,
.policy-part,
.affiliate-part,
.transaction-part,
.log-part,
.security-part,
.tool-part,
.recharge-part,
.wallet-part,
body > section {
    flex: 0 0 auto !important;
}

/* Sticky footer: pushed to bottom via margin-top auto */
.louk-modern-footer,
.footer-part,
body > footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

.container {
    background-color: transparent !important;
    position: relative;
    z-index: 2;
}

body, p, span, label, li, td, th {
    color: var(--text-color) !important;
}

h1, h2, h3, h4, h5, h6, .home-heading h3, .feature-name {
    color: #ffffff !important;
}

.text-muted, .feature-desc, .muted-foreground {
    color: hsl(var(--muted-foreground)) !important;
}

a {
    color: var(--primary);
    transition: color 0.3s ease;
}

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

.inner-section,
.section,
.part {
    background-color: transparent !important;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}
