/* 
  Renvima - Premium Template Marketplace 
  Theme: Deep Space Dark with Neon Accents
*/

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Cabinet Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Palette */
    --bg-main: #0a0a0f;
    --bg-secondary: #13131f;
    --bg-card: rgba(30, 30, 40, 0.6);
    --accent-primary: #f59e0b;
    --accent-secondary: #f43f5e;
    --accent-glow: #fbbf24;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.015em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Global Code & Pre Formatting */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.88em;
    padding: 0.2em 0.45em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
    vertical-align: baseline;
}

pre,
.article-content pre,
.codeblock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 1.25rem 1.5rem !important;
    overflow-x: auto !important;
    color: #f8fafc !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

pre code,
.article-content pre code,
.codeblock code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: inherit !important;
    color: #f8fafc !important;
    border-radius: 0 !important;
}

[data-theme="light"] code {
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
    font-weight: 600;
}

[data-theme="light"] pre,
[data-theme="light"] .article-content pre,
[data-theme="light"] .codeblock {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] pre code,
[data-theme="light"] .article-content pre code,
[data-theme="light"] .codeblock code {
    background: transparent !important;
    border: none !important;
    color: #f8fafc !important;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure content is visible for bots/crawlers and reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Modern Features Section */
.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.modern-features-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    width: max-content;
    animation: scrollHorizontal 40s linear infinite;
    padding: 2rem 0;
    will-change: transform;
}

#features {
    overflow: hidden;
    position: relative;
}

/* Optional: Fading edges for a smoother look */
#features::before,
#features::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#features::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

#features::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

@keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* -50% because we duplicated the cards */
}

.modern-feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    width: 350px; /* Fixed width for consistent scrolling */
    flex-shrink: 0;
}

.modern-feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(var(--accent-color-rgb), 0.1);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

.modern-feature-card:hover .card-glow {
    opacity: 0.15;
}

.card-content {
    position: relative;
    z-index: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-feature-card:hover .icon-wrapper {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-color);
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: color 0.4s ease;
}

.modern-feature-card:hover .icon-wrapper i {
    color: #000;
}

.modern-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: #fff;
}

.modern-feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Feature Card (Old Styles for cleanup if needed) */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 0 5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.4) 0%, rgba(10, 10, 18, 0.8) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s ease;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, var(--hover-color, rgba(245, 158, 11, 0.5)));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--hover-color, rgba(245, 158, 11, 0.15)) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.6) 0%, rgba(15, 15, 25, 0.9) 100%);
}

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

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

.feature-image-container {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    margin-right: 3rem;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Floating animation for the orbs */
@keyframes magicalFloat {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-8px) rotateX(5deg) rotateY(5deg); }
    50% { transform: translateY(0) rotateX(0) rotateY(10deg); }
    75% { transform: translateY(8px) rotateX(-5deg) rotateY(5deg); }
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: magicalFloat 6s ease-in-out infinite;
    box-shadow: 0 0 30px var(--hover-color, rgba(245, 158, 11, 0.3));
    transition: all 0.5s ease;
    /* Fix #5: Pre-promote to GPU layer — isolates the infinite 3D rotation animation */
    will-change: transform;
}

.feature-card:hover .feature-image-container img {
    box-shadow: 0 0 50px var(--hover-color, rgba(245, 158, 11, 0.6));
    animation-play-state: paused;
    transform: scale(1.05);
}

.feature-content {
    flex-grow: 1;
    text-align: left;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-content h3 {
    background: linear-gradient(135deg, #fff 0%, var(--hover-color, #f59e0b) 100%);
    background-clip: text;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateX(5px);
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-content p {
    color: #e5e7eb;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
    
    .feature-image-container {
        margin-right: 0;
        margin-bottom: 2rem;
        width: 130px;
        height: 130px;
    }
    
    .feature-content {
        text-align: center;
    }
    
    .feature-card:hover .feature-content h3,
    .feature-card:hover .feature-content p {
        transform: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.6);
}

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

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
}

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

/* Make nav grow to fill space for layout control */
nav {
    flex: 1;
    margin-left: 3rem;
    display: flex;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: center;
}

.nav-login {
    margin-left: 0;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-offers-slot {
    margin: 0;
}

.nav-theme-slot {
    margin: 0;
}

.nav-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.nav-theme-toggle i {
    font-size: 1rem;
}

[data-theme="dark"] .nav-theme-toggle .fa-sun {
    color: #f59e0b;
}

[data-theme="light"] .nav-theme-toggle .fa-moon {
    color: #93c5fd;
}

.nav-offers-icon-link {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #f59e0b 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25), 0 0 0 0 rgba(245, 158, 11, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    overflow: visible;
}

.nav-offers-icon-link::before,
.nav-offers-icon-link::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.nav-offers-icon-link::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.5) 0%, rgba(245, 158, 11, 0) 68%);
}

.nav-offers-icon-link::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(236, 72, 153, 0) 68%);
}

.nav-offers-icon-link i {
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transition: transform 0.28s ease;
}

.nav-offers-icon-link:hover {
    transform: translateY(-2px) scale(1.04);
    filter: saturate(1.12);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35), 0 0 0 8px rgba(245, 158, 11, 0.1);
}

.nav-offers-icon-link:hover::before,
.nav-offers-icon-link:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.nav-offers-icon-link:hover i {
    transform: rotate(-10deg) scale(1.12);
}

/* Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    transition: transform 0.1s ease-out;
    /* Fix #4: Pre-promote blobs to own GPU layer so mouse-parallax transform writes
       don't trigger repaints on surrounding content. translateZ(0) forces promotion. */
    will-change: transform;
    transform: translateZ(0);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: 0;
    right: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.hero-btns .btn {
    padding: 0.95rem 2.2rem;
    font-size: 1.05rem;
}

/* Templates Grid */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 3rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.template-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.template-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 250px;
    background-color: #2a2a35;
    /* Placeholder color */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.marketing-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.78rem;
    backdrop-filter: blur(6px);
    z-index: 5;
    pointer-events: none;
}

.marketing-inline {
    margin-left: 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.marketing-strike {
    margin-left: 0.7rem;
    font-size: 0.95rem;
    color: #ef4444;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

[data-theme="light"] .marketing-strike {
    color: #ef4444; /* Keep red in light mode too */
}

[data-theme="light"] .marketing-strike {
    color: #ef4444;
}

[data-theme="light"] .card-price {
    color: #22c55e; /* Keep green in light mode too */
}

.template-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-actions .btn {
    min-width: 160px;
    text-align: center;
}

.template-card:hover .card-overlay {
    opacity: 1;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.card-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #22c55e;
}

.explore-more-container {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.explore-more-container .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Login Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.social-icon {
    width: 24px;
    height: 24px;
}

.auth-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 600;
}

.auth-tab.active {
    border-color: rgba(244, 63, 94, 0.65);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.22);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-form.active {
    display: flex;
}

.btn-full {
    width: 100%;
}

#googleLoginBtn,
#githubLoginBtn {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

#googleLoginBtn .google-login-icon,
#githubLoginBtn .github-login-icon {
    width: 18px;
    height: 18px;
}

.auth-msg {
    min-height: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-msg.error {
    color: rgba(248, 113, 113, 0.95);
}

.auth-msg.success {
    color: rgba(34, 197, 94, 0.95);
}

.auth-legal {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Ad Corner (Small unobtrusive ads) */
.ad-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    z-index: 900;
    display: none;
    /* Can be toggled on */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   Comprehensive Modern Footer Styles
   ========================================================================== */
.renvima-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, #06070c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 6rem;
    padding: 5rem 0 2rem 0;
    color: var(--text-muted);
    overflow: hidden;
}

.renvima-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), rgba(59, 130, 246, 0.6), transparent);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.footer-top-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin-bottom: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.footer-top-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.footer-top-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    max-width: 440px;
}

.footer-newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.footer-newsletter-input:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.footer-newsletter-btn {
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f43f5e, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
}

.footer-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
    filter: brightness(1.1);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
}

.footer-brand-col .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand-col .footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    color: #00ff87;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #00ff87;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff87;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.footer-direct-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    margin-top: 0.2rem;
    width: fit-content;
}

.footer-email-link {
    color: #ffffff;
    font-family: monospace;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email-link:hover {
    color: #38bdf8;
}

.footer-capabilities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.3rem;
}

.capability-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
    transition: all 0.25s ease;
    user-select: none;
}

.capability-tag i {
    font-size: 0.78rem;
    color: #a855f7;
    transition: transform 0.25s ease;
}

.capability-tag:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

.capability-tag:hover i {
    transform: scale(1.15);
}

.footer-col-title {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.3rem;
    position: relative;
    letter-spacing: 0.3px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #3b82f6);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list li a {
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links-list li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-badge-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #c084fc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom-bar {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.88rem;
}

.footer-bottom-bar p {
    margin: 0;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Light Theme overrides for the modern footer */
[data-theme="light"] .renvima-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(203, 213, 225, 0.8);
    color: #475569;
}

[data-theme="light"] .renvima-footer::before {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), rgba(59, 130, 246, 0.4), transparent);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .footer-top-card {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.15);
}

[data-theme="light"] .footer-top-card h3 {
    color: #0f172a !important;
}

[data-theme="light"] .footer-top-card p {
    color: #64748b !important;
}

[data-theme="light"] .footer-newsletter-input {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a !important;
}

[data-theme="light"] .footer-newsletter-input:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .footer-brand-col .footer-desc {
    color: #64748b !important;
}

[data-theme="light"] .footer-direct-contact {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .footer-email-link {
    color: #0f172a !important;
}

[data-theme="light"] .capability-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
}

[data-theme="light"] .capability-tag i {
    color: #0284c7;
}

[data-theme="light"] .capability-tag:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    color: #0284c7 !important;
}

[data-theme="light"] .footer-col-title {
    color: #0f172a !important;
}

[data-theme="light"] .footer-links-list li a {
    color: #64748b !important;
}

[data-theme="light"] .footer-links-list li a:hover {
    color: #0284c7 !important;
}

[data-theme="light"] .footer-bottom-bar {
    border-top: 1px solid #cbd5e1;
    color: #64748b !important;
}

[data-theme="light"] .footer-back-to-top {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
}

[data-theme="light"] .footer-back-to-top:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

/* Responsive Breakpoints for Footer */
@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-top-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    .footer-newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-newsletter-form {
        flex-direction: column;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Contact Form */
.contact-form-section {
    padding: 4rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-notice-card {
    padding: 2rem 2.2rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 135, 0.35);
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.06) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#contactName {
    text-transform: capitalize;
}

/* Dropdown Option Styling for Dark Mode */
select.glass-input option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

/* Smart Dynamic Contact Form Styles */
.form-group {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group.smart-hidden {
    display: none !important;
}

.form-group-animated {
    animation: fadeInSlideUp 0.35s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    letter-spacing: 0.3px;
}

.field-label .required-star {
    color: #f43f5e;
    margin-left: 2px;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

/* Tech Stack Segmented Toggle & Chips */
.tech-stack-segmented {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tech-seg-btn {
    flex: 1;
    min-width: 160px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tech-seg-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.tech-seg-btn.active {
    background: rgba(244, 63, 94, 0.18);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

.tech-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.tech-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tech-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-1px);
}

.tech-chip.selected {
    background: rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.5);
    color: #00d2ff;
    font-weight: 600;
}

/* Glassmorphic File Upload Dropzone */
.file-dropzone-container {
    grid-column: span 2;
    position: relative;
}

.file-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-dropzone:hover,
.file-dropzone.dragover {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.file-dropzone-icon {
    font-size: 1.8rem;
    color: #00d2ff;
    margin-bottom: 0.5rem;
}

.file-dropzone-text {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.file-dropzone-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.file-input-hidden {
    display: none;
}

.file-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.2rem;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    margin-top: 0.75rem;
    animation: fadeInSlideUp 0.3s ease;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow: hidden;
}

.file-preview-icon {
    font-size: 1.4rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.file-preview-details {
    overflow: hidden;
}

.file-preview-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.file-preview-size {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.file-remove-btn {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.8rem;
}

.file-remove-btn:hover {
    background: #f43f5e;
    color: #ffffff;
    transform: scale(1.05);
}

.file-limit-warning {
    display: none;
    margin-top: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: 10px;
    color: #fda4af;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: fadeInSlideUp 0.3s ease;
}

.file-limit-warning.show {
    display: block;
}

/* Glassmorphic Human Verification (I am not a robot) Widget */
.captcha-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    max-width: 340px;
    transition: all 0.3s ease;
    user-select: none;
}

.captcha-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.captcha-card.verified {
    background: rgba(0, 255, 135, 0.05);
    border-color: rgba(0, 255, 135, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.12);
}

.captcha-card.error-shake {
    border-color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.08) !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3) !important;
    animation: captchaShake 0.4s ease;
}

@keyframes captchaShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    margin: 0;
}

.captcha-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.captcha-custom-check {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.captcha-label:hover .captcha-custom-check {
    border-color: #00d2ff;
}

.captcha-checkbox:checked ~ .captcha-custom-check {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.captcha-checkbox:checked ~ .captcha-custom-check::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #0b0f19;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}

.captcha-text {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.captcha-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    gap: 0.2rem;
}

.captcha-badge i {
    font-size: 1.1rem;
    color: #00d2ff;
}

.faq {
    padding: 2.5rem;
}

.faq-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.qa {
    padding: 1.25rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qa summary {
    cursor: pointer;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
}

.qa p {
    margin-top: 0.8rem;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form > div,
    .form-group {
        grid-column: span 1 !important;
    }
}

/* Trust Section Redesign (Premium FontAwesome Version) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.trust-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.trust-icon-fa {
    font-size: 3.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

/* Specific Icon Glows */
.trust-card:nth-child(1) .trust-icon-fa {
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.trust-card:nth-child(2) .trust-icon-fa {
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.trust-card:nth-child(3) .trust-icon-fa {
    color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.1);
}

.trust-card:hover .trust-icon-fa {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
}

.trust-card:nth-child(1):hover .trust-icon-fa {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.trust-card:nth-child(2):hover .trust-icon-fa {
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.4);
}

.trust-card:nth-child(3):hover .trust-icon-fa {
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.4);
}

.trust-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        padding: 2rem;
    }
}

/* Workflow Section */
.workflow-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.workflow-step {
    flex: 1;
    position: relative;
    padding-top: 2rem;
}

.step-number {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    font-family: var(--font-heading);
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.3));
}

.step-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.workflow-connector {
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
}

/* Tech Stack Section */
.tech-stack-container {
    padding: 3rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-item i {
    font-size: 1.5rem;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-glow);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    padding: 1.75rem 1.75rem 1.5rem;
}

.offer-card h3 {
    margin-bottom: 0.5rem;
}

.code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.code-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.copy-code-btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.copy-code-btn.copied {
    border-color: rgba(34, 197, 94, 0.8);
    color: #4ade80;
}

@media (max-width: 768px) {
    .workflow-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .mobile-hide {
        display: none;
    }
}

.trust-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.trust-icon-fa {
    font-size: 3.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

/* Specific Icon Glows */
.trust-card:nth-child(1) .trust-icon-fa {
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.trust-card:nth-child(2) .trust-icon-fa {
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.trust-card:nth-child(3) .trust-icon-fa {
    color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.1);
}

.trust-card:hover .trust-icon-fa {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
}

.trust-card:nth-child(1):hover .trust-icon-fa {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.trust-card:nth-child(2):hover .trust-icon-fa {
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.4);
}

.trust-card:nth-child(3):hover .trust-icon-fa {
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.4);
}

.trust-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        padding: 2rem;
    }
}

/* Workflow Section */
.workflow-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.workflow-step {
    flex: 1;
    position: relative;
    padding-top: 2rem;
}

.step-number {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    font-family: var(--font-heading);
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.3));
}

.step-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.workflow-connector {
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
}

/* Tech Stack Section */
.tech-stack-container {
    padding: 3rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-item i {
    font-size: 1.5rem;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-glow);
}

@media (max-width: 768px) {
    .workflow-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .mobile-hide {
        display: none;
    }

    .step-number {
        top: -30px;
    }
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-search {
    flex: 1 1 260px;
}

.admin-filter {
    width: 180px;
}

.admin-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-pill strong {
    color: var(--text-main);
    font-weight: 600;
}

.admin-table-wrap {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    vertical-align: top;
}

.admin-table th {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.admin-table td {
    color: rgba(255, 255, 255, 0.92);
}

.admin-row-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-input {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    color: #fff;
}

.admin-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.admin-table-wrap {
    background: rgba(5, 7, 22, 0.55);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Specific styling & responsive proportional column widths for User Management table */
#section-user-management .admin-table {
    table-layout: fixed;
}

#section-user-management .admin-table th,
#section-user-management .admin-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

#section-user-management .admin-table th:nth-child(1),
#section-user-management .admin-table td:nth-child(1) { width: 18%; } /* User */
#section-user-management .admin-table th:nth-child(2),
#section-user-management .admin-table td:nth-child(2) { width: 22%; } /* Email */
#section-user-management .admin-table th:nth-child(3),
#section-user-management .admin-table td:nth-child(3) { width: 10%; } /* Role */
#section-user-management .admin-table th:nth-child(4),
#section-user-management .admin-table td:nth-child(4) { width: 35%; word-break: break-all; } /* Details */
#section-user-management .admin-table th:nth-child(5),
#section-user-management .admin-table td:nth-child(5) { width: 15%; } /* Actions */

.admin-table .admin-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 0.85rem;
    padding: 0.45rem 0.5rem;
}

.admin-detail-bold {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.save-template-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 10, 24, 0.55);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.save-template-btn:hover {
    border-color: rgba(244, 63, 94, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

.save-template-btn.is-saved {
    background: rgba(244, 63, 94, 0.25);
    border-color: rgba(244, 63, 94, 0.7);
    color: #fff;
}

[data-theme="light"] {
    /* Peach + Golden Vibe */
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    
    --accent-primary: #f472b6; /* Peach/Pink */
    --accent-secondary: #fbbf24; /* Bright Gold (Amber 400) */
    --accent-glow: #f59e0b; /* Golden Glow (Amber 500) */
    
    --text-main: #020617;
    --text-muted: #334155;
    
    /* Slightly tinted borders/shadows for glassmorphism */
    --border-light: rgba(245, 158, 11, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .bg-blob {
    filter: blur(120px);
    opacity: 0.6;
}

[data-theme="light"] .glass-panel {
    box-shadow: 0 8px 32px rgba(244, 114, 182, 0.08);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] strong,
[data-theme="light"] b {
    color: #020617 !important;
}

[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] span,
[data-theme="light"] div {
    color: #334155;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .muted {
    color: #475569 !important;
}

[data-theme="light"] body {
    /* Premium Light Theme: White with Subtle Blue, Pink & Golden Accents */
    background: 
        radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 45%), 
        radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(234, 179, 8, 0.05) 0%, transparent 50%),
        var(--bg-main);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .gradient-text {
    /* Premium Gradient Text: Blue to Pink/Gold */
    background: linear-gradient(135deg, #0ea5e9 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .btn-primary {
    /* Premium Golden/Gradient Button */
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    color: #fff;
    border: none;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(14, 165, 233, 0.4);
    color: #0ea5e9;
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .btn-outline:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: #0ea5e9;
    color: #0284c7;
}

[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 30px rgba(148, 163, 184, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .glass-panel:hover {
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .feature-card {
    /* Clean white card with subtle golden/pink glow on hover */
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(226, 232, 240, 0.6);
}

[data-theme="light"] .modern-feature-card {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .modern-feature-card h3 {
    color: #0f172a;
}

[data-theme="light"] .modern-feature-card p {
    color: #475569;
}

[data-theme="light"] .modern-feature-card:hover {
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(148, 163, 184, 0.15);
    border-color: var(--accent-color);
}

[data-theme="light"] .modern-feature-card .card-glow {
    opacity: 0.1; /* Very subtle glow for light mode */
}

[data-theme="light"] .modern-feature-card .icon-wrapper {
    background: #f1f5f9;
}

[data-theme="light"] .modern-feature-card:hover .icon-wrapper {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .modern-feature-card .card-footer {
    border-top-color: #f1f5f9;
}

[data-theme="light"] .feature-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    box-shadow: 0 25px 50px -12px rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
}

[data-theme="light"] .feature-content h3,
[data-theme="light"] .trust-card h3 {
    background: none !important;
    -webkit-text-fill-color: #1e293b !important;
    color: #1e293b !important;
}

[data-theme="light"] .feature-content p,
[data-theme="light"] .trust-card p {
    color: #334155 !important;
}

[data-theme="light"] .feature-card:hover .feature-content h3 {
    background: none !important;
    -webkit-text-fill-color: #1e293b !important;
    color: #1e293b !important;
}

[data-theme="light"] .template-card {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.7);
}

[data-theme="light"] .template-card:hover {
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.15);
    border-color: #ec4899; /* Pink border on hover */
}

[data-theme="light"] .card-image {
    background-color: #f0f9ff;
}

[data-theme="light"] .marketing-corner {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(245, 158, 11, 0.3); /* Golden accent */
    color: #b45309;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

[data-theme="light"] .glass-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
}

[data-theme="light"] .glass-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .glass-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .contact-banner div,
[data-theme="light"] .tech-item,
[data-theme="light"] .kpi,
[data-theme="light"] .skill,
[data-theme="light"] .chip,
[data-theme="light"] .side-links a,
[data-theme="light"] .pop,
[data-theme="light"] .stat,
[data-theme="light"] .work-thumb,
[data-theme="light"] .bar,
[data-theme="light"] .code-row {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .mobile-toggle {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(148, 163, 184, 0.25);
}

[data-theme="light"] .close-modal {
    color: #64748b;
}

[data-theme="light"] .close-modal:hover {
    color: #0f172a;
}

[data-theme="light"] .qa summary {
    color: #0f172a;
}

[data-theme="light"] .qa p.muted {
    color: #475569;
}

[data-theme="light"] .admin-table-wrap {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .admin-table th {
    color: #475569;
    background: #f1f5f9;
    border-bottom-color: #cbd5e1;
}

[data-theme="light"] .admin-table td {
    color: #334155;
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .admin-subtext {
    color: #64748b;
}

[data-theme="light"] .admin-detail-bold {
    color: #1e293b;
}

[data-theme="light"] .admin-input {
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .admin-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .save-template-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
    box-shadow: 0 2px 5px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .save-template-btn:hover {
    color: #0ea5e9;
    border-color: #0ea5e9;
    background: #f0f9ff;
}

[data-theme="light"] .save-template-btn.is-saved {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #0ea5e9;
}



/* Immersive Scroll Section Removed - Moved to immersive.css */

/* =============================================
   Admin Sidebar Navigation
   ============================================= */

html {
    scroll-behavior: smooth;
}

.admin-sidebar {
    position: fixed;
    top: var(--header-height, 80px);
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 90;
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(-260px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-sidebar.open {
    transform: translateX(0);
}

.admin-sidebar-toggle {
    position: fixed;
    top: calc(var(--header-height, 80px) + 1rem);
    left: 1rem;
    z-index: 91;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 63, 94, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

.admin-sidebar-toggle:hover {
    background: rgba(244, 63, 94, 0.45);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.35);
    transform: scale(1.05);
}

.admin-sidebar.open ~ .admin-sidebar-toggle,
.admin-sidebar.open + .admin-sidebar-toggle {
    left: 270px;
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.admin-sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.admin-sidebar-link:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #fff;
}

.admin-sidebar-link.active {
    background: rgba(244, 63, 94, 0.2);
    color: #fff;
    border-left: 3px solid var(--accent-glow);
    padding-left: calc(0.85rem - 3px);
}

.admin-sidebar-link.active i {
    color: var(--accent-glow);
}

.admin-sidebar-dashboard {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #c4b5fd;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.admin-sidebar-dashboard:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(59, 130, 246, 0.2));
    color: #fff;
    border-color: rgba(245, 158, 11, 0.3);
}

.admin-sidebar-dashboard i {
    color: var(--accent-glow);
}

.admin-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.5rem 0.5rem;
}

/* Main content shift when sidebar is open */
.admin-main-content {
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.admin-sidebar-open .admin-main-content {
    margin-left: 260px;
}

body.admin-sidebar-open .admin-sidebar-toggle {
    left: 270px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
        transform: translateX(-240px);
    }
    body.admin-sidebar-open .admin-main-content {
        margin-left: 0;
    }
    body.admin-sidebar-open .admin-sidebar-toggle {
        left: 250px;
    }
    /* Overlay when sidebar open on smaller screens */
    body.admin-sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 89;
        animation: fadeIn 0.3s ease;
    }
}

@media (max-width: 640px) {
    .admin-sidebar {
        width: 220px;
        transform: translateX(-220px);
    }
    .admin-sidebar-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    body.admin-sidebar-open .admin-sidebar-toggle {
        left: 230px;
    }
    .admin-sidebar-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
}

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

/* =============================================
   Admin Dashboard Page
   ============================================= */

.admin-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.admin-dash-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-dash-card:hover {
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.12);
}

.admin-dash-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.admin-dash-card .dash-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.dash-chart-container {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.dash-stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dash-stat-pill {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-stat-pill span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-stat-pill strong {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff, var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-time-toggles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-time-toggles button {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-time-toggles button:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fff;
}

.dash-time-toggles button.active {
    background: rgba(244, 63, 94, 0.3);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fff;
}

/* ---------- VISITOR TABLE ---------- */
.visitor-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 520px;
    overflow-y: auto;
}
.visitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 700px;
}
.visitor-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.visitor-table thead th {
    background: rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}
.visitor-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.visitor-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
}
.visitor-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
.visitor-table tbody tr:nth-child(even):hover {
    background: rgba(245, 158, 11, 0.08);
}
.visitor-table td {
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.visitor-table td:first-child {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.visitor-table .visitor-ip {
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    font-size: 0.82rem;
}
.visitor-table .visitor-user {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
}
.visitor-table .visitor-page {
    color: #a78bfa;
    font-weight: 500;
}
.visitor-table .visitor-time {
    color: #94a3b8;
    font-size: 0.78rem;
}
.visitor-table .visitor-ua {
    max-width: 180px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}
.visitor-table .visitor-ref {
    max-width: 150px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}
.visitor-pagination-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.visitor-pagination-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.15);
    color: #fff;
}
.visitor-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.visitor-pagination-btn.active {
    background: rgba(244, 63, 94, 0.3);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fff;
}
.visitor-pagination-info {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dash-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.dash-detail-overlay.show {
    display: flex;
}

.dash-detail-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.dash-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.dash-detail-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}


/* =========================================
   ADMIN TOOLS PAGE STYLES
   ========================================= */

/* Bulk Operations Chips */
.bulk-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    gap: 0.5rem;
}
.bulk-chip i {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}
.bulk-chip i:hover {
    color: #ef4444;
}

/* Announcement Banner */
#publicAnnouncementBanner {
    padding: 10px 20px;
    text-align: center;
    position: relative;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#publicAnnouncementBanner a {
    margin-left: 15px;
    text-decoration: underline;
    font-weight: bold;
}
.banner-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.8;
}
.banner-close-btn:hover {
    opacity: 1;
}

/* Audit Log Badges */
.audit-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Coming Soon Cards */
.coming-soon-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.card-coming-soon-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0055;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Tools Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Custom Services & Solutions Extensions */
.hero-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.3rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fbbf24;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: 2.2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(244, 63, 94, 0.2);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.solutions-matrix {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .solutions-matrix {
        grid-template-columns: 1fr;
    }
}

.matrix-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 32, 0.7) 0%, rgba(10, 10, 15, 0.9) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.matrix-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Light Theme Fixes for Services, Matrix Cards, Stat Boxes & Badges */
[data-theme="light"] .hero-pill-badge {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0284c7;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .service-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .service-card h3 {
    color: #0f172a !important;
}

[data-theme="light"] .service-card p {
    color: #334155 !important;
}

[data-theme="light"] .service-icon-box {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .service-tag {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

[data-theme="light"] .matrix-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 35px rgba(148, 163, 184, 0.12) !important;
}

[data-theme="light"] .matrix-card h3,
[data-theme="light"] .matrix-card h3 i {
    color: #0f172a !important;
}

[data-theme="light"] .matrix-card p,
[data-theme="light"] .matrix-card li {
    color: #334155 !important;
}

[data-theme="light"] .stat-box {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .stat-number {
    color: #0ea5e9;
}

[data-theme="light"] .stat-label {
    color: #475569 !important;
}

[data-theme="light"] .admin-code-badge {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

/* Light Theme Fixes for Admin Dashboard */
[data-theme="light"] .admin-dash-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.08);
}
[data-theme="light"] .admin-dash-card h2 {
    color: #0f172a;
}
[data-theme="light"] .dash-subtitle {
    color: #475569;
}
[data-theme="light"] .dash-stat-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}
[data-theme="light"] .dash-stat-pill span {
    color: #64748b;
}
[data-theme="light"] .dash-stat-pill strong {
    color: #0f172a;
}


.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.solutions-matrix {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .solutions-matrix {
        grid-template-columns: 1fr;
    }
}

.matrix-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 32, 0.7) 0%, rgba(10, 10, 15, 0.9) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.matrix-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Light Theme Fixes for Services, Matrix Cards, Stat Boxes & Badges */
[data-theme="light"] .hero-pill-badge {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0284c7;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .service-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .service-card h3 {
    color: #0f172a !important;
}

[data-theme="light"] .service-card p {
    color: #334155 !important;
}

[data-theme="light"] .service-icon-box {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .service-tag {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

[data-theme="light"] .matrix-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 35px rgba(148, 163, 184, 0.12) !important;
}

[data-theme="light"] .matrix-card h3,
[data-theme="light"] .matrix-card h3 i {
    color: #0f172a !important;
}

[data-theme="light"] .matrix-card p,
[data-theme="light"] .matrix-card li {
    color: #334155 !important;
}

[data-theme="light"] .stat-box {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .stat-number {
    color: #0ea5e9;
}

[data-theme="light"] .stat-label {
    color: #475569 !important;
}

[data-theme="light"] .admin-code-badge {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

/* Light Theme Fixes for Admin Dashboard */
[data-theme="light"] .admin-dash-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.08);
}
[data-theme="light"] .admin-dash-card h2 {
    color: #0f172a;
}
[data-theme="light"] .dash-subtitle {
    color: #475569;
}
[data-theme="light"] .dash-stat-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}
[data-theme="light"] .dash-stat-pill span {
    color: #64748b;
}
[data-theme="light"] .dash-stat-pill strong {
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    background: none;
}
[data-theme="light"] .dash-time-toggles button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
[data-theme="light"] .dash-time-toggles button:hover {
    background: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .dash-time-toggles button.active {
    background: #0ea5e9;
    border-color: #0284c7;
    color: #ffffff;
}

/* Light Theme Fixes for Visitor Table */
[data-theme="light"] .visitor-table-wrap {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
}
[data-theme="light"] .visitor-table thead th {
    background: #f8fafc;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}
[data-theme="light"] .visitor-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="light"] .visitor-table tbody tr:hover,
[data-theme="light"] .visitor-table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}
[data-theme="light"] .visitor-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
[data-theme="light"] .visitor-table td {
    color: #475569;
}
[data-theme="light"] .visitor-table td:first-child {
    color: #64748b;
}
[data-theme="light"] .visitor-table .visitor-ip {
    color: #0f172a;
}
[data-theme="light"] .visitor-table .visitor-user {
    color: #334155;
}
[data-theme="light"] .visitor-table .visitor-page {
    color: #0ea5e9;
}
[data-theme="light"] .visitor-table .visitor-time {
    color: #64748b;
}
[data-theme="light"] .visitor-table .visitor-ua,
[data-theme="light"] .visitor-table .visitor-ref {
    color: #94a3b8;
}
[data-theme="light"] .visitor-pagination-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}
[data-theme="light"] .visitor-pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}
[data-theme="light"] .visitor-pagination-info {
    color: #64748b;
}
[data-theme="light"] #visitorSearchInput {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
[data-theme="light"] #visitorSearchInput::placeholder {
    color: #94a3b8 !important;
}

/* =============================================================================
   Fix #3: GPU Acceleration Fallbacks
   Applied only when nav.js detects SwiftShader / software renderer (no GPU accel).
   GPU users: zero change. Non-GPU users: backdrop-filter replaced with
   slightly more opaque solid background. Visually very similar, runs on CPU.
   ============================================================================= */

/* --- Public page elements --- */
html.no-gpu .glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 12, 22, 0.92) !important;
}

[data-theme="light"] html.no-gpu .glass-panel,
html.no-gpu [data-theme="light"] .glass-panel {
    background: rgba(248, 250, 252, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.no-gpu .feature-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%) !important;
}

html.no-gpu header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 15, 0.97) !important;
}

[data-theme="light"] html.no-gpu header,
html.no-gpu [data-theme="light"] header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.no-gpu .modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

html.no-gpu .footer-top-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 12, 22, 0.95) !important;
}

/* Template badge (all.html) */
html.no-gpu [style*="backdrop-filter"],
html.no-gpu .hero-pill-badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* --- Admin pages (lower priority — admin users typically have good hardware) --- */
html.no-gpu .admin-sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(8, 8, 18, 0.98) !important;
}

html.no-gpu .admin-sidebar-toggle {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.no-gpu .admin-dash-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-card) !important;
}

html.no-gpu .visitor-table thead th {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(244, 63, 94, 0.3) !important;
}

html.no-gpu .dash-detail-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.82) !important;
}

/* --- Non-GPU Blob & Glow Optimizations (Replaces 80px blur filter with zero-cost radial gradients) --- */
html.no-gpu .bg-blob {
    filter: none !important;
    transition: none !important;
}

html.no-gpu .blob-1 {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%) !important;
    opacity: 0.3 !important;
    animation: none !important;
}

html.no-gpu .blob-2 {
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%) !important;
    opacity: 0.3 !important;
    animation: none !important;
}

/* Card glows & pseudo-element blurs */
html.no-gpu .card-glow,
html.no-gpu .feature-card::after {
    filter: none !important;
}

/* Stop continuous 3D rotateX/rotateY keyframe calculation in software rendering */
html.no-gpu .feature-image-container img {
    animation: none !important;
}

/* Shadow radius optimizations for non-GPU rendering */
html.no-gpu .modern-feature-card,
html.no-gpu .footer-top-card,
html.no-gpu .admin-dash-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

html.no-gpu .feature-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

html.no-gpu .feature-card:hover .feature-image-container img {
    box-shadow: 0 0 15px var(--hover-color, rgba(245, 158, 11, 0.4)) !important;
}

/* =============================================================================
   Toast Alert Notifications (Light & Dark Themes)
   ============================================================================= */

.toast-container {
    position: fixed;
    top: calc(var(--header-height, 80px) + 1.2rem);
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: calc(100vw - 3rem);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
    overflow: hidden;
    line-height: 1.4;
}

.toast.toast-hiding {
    animation: toastFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        max-height: 100px;
        margin-bottom: 0;
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: -0.75rem;
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
    word-break: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: toastProgressBar linear forwards;
}

@keyframes toastProgressBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* --- Dark Theme Toasts (Default) --- */
.toast {
    background: rgba(15, 17, 26, 0.95);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.no-gpu .toast {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0f111a !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

.toast-close {
    color: #94a3b8;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.15);
}
.toast-success .toast-icon { color: #10b981; }
.toast-success .toast-progress { background: #10b981; }

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(239, 68, 68, 0.15);
}
.toast-error .toast-icon { color: #ef4444; }
.toast-error .toast-progress { background: #ef4444; }

.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.15);
}
.toast-warning .toast-icon { color: #f59e0b; }
.toast-warning .toast-progress { background: #f59e0b; }

.toast-info {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.15);
}
.toast-info .toast-icon { color: #a78bfa; }
.toast-info .toast-progress { background: #f59e0b; }

/* --- Light Theme Toasts --- */
[data-theme="light"] .toast,
[data-theme="light"] html.no-gpu .toast {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
}

[data-theme="light"] .toast-close {
    color: #64748b;
}

[data-theme="light"] .toast-success {
    border-left: 4px solid #10b981 !important;
}
[data-theme="light"] .toast-success .toast-icon { color: #059669; }
[data-theme="light"] .toast-success .toast-progress { background: #10b981; }

[data-theme="light"] .toast-error {
    border-left: 4px solid #ef4444 !important;
}
[data-theme="light"] .toast-error .toast-icon { color: #dc2626; }
[data-theme="light"] .toast-error .toast-progress { background: #ef4444; }

[data-theme="light"] .toast-warning {
    border-left: 4px solid #f59e0b !important;
}
[data-theme="light"] .toast-warning .toast-icon { color: #d97706; }
[data-theme="light"] .toast-warning .toast-progress { background: #f59e0b; }

[data-theme="light"] .toast-info {
    border-left: 4px solid #8b5cf6 !important;
}
[data-theme="light"] .toast-info .toast-icon { color: #7c3aed; }
[data-theme="light"] .toast-info .toast-progress { background: #f59e0b; }

@media (max-width: 640px) {
    .toast-container {
        top: calc(var(--header-height, 70px) + 0.5rem);
        right: 50%;
        transform: translateX(50%);
        width: calc(100vw - 2rem);
    }
}


