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

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette */
    --bg-main: #0a0a0f;
    --bg-secondary: #13131f;
    --bg-card: rgba(30, 30, 40, 0.6);
    --accent-primary: #6d28d9;
    /* Deep Purple */
    --accent-secondary: #3b82f6;
    /* Bright Blue */
    --accent-glow: #8b5cf6;
    --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: 'Outfit', sans-serif;
    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: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-glow) 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);
}

/* 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;
}

#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: 'Space Grotesk', sans-serif;
    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(139, 92, 246, 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(139, 92, 246, 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(139, 92, 246, 0.3));
    transition: all 0.5s ease;
}

.feature-card:hover .feature-image-container img {
    box-shadow: 0 0 50px var(--hover-color, rgba(139, 92, 246, 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: 'Space Grotesk', sans-serif;
    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, #8b5cf6) 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(109, 40, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 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: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
    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-left: 0;
    margin-right: 0.7rem;
}

.nav-theme-slot {
    margin-left: auto;
    margin-right: 0.7rem;
}

.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-moon {
    color: #93c5fd;
}

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

.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%, #8b5cf6 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;
    /* Smoother parallax */
}

.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: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

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

/* Templates Grid */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    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(109, 40, 217, 0.65);
    box-shadow: 0 0 18px rgba(109, 40, 217, 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;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 2rem;
    margin-top: 4rem;
    background: var(--bg-secondary);
    text-align: center;
    color: var(--text-muted);
}

/* 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(109, 40, 217, 0.2);
}

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

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

.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: #00ff87;
    box-shadow: 0 0 20px rgba(0, 255, 135, 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(0, 255, 135, 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: 'Space Grotesk', sans-serif;
}

.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(109, 40, 217, 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: #00ff87;
    box-shadow: 0 0 20px rgba(0, 255, 135, 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(0, 255, 135, 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: 'Space Grotesk', sans-serif;
}

.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(109, 40, 217, 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;
    min-width: 960px;
}

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

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

.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);
}

.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(109, 40, 217, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

.save-template-btn.is-saved {
    background: rgba(109, 40, 217, 0.25);
    border-color: rgba(109, 40, 217, 0.7);
    color: #fff;
}

[data-theme="light"] {
    /* New vibrant light palette - Darker Text Version */
    --bg-main: #f8fafc; /* Crisp slate-50 */
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    
    /* Replaced Purple/Blue with Daylight Gradients */
    --accent-primary: #0ea5e9; /* Sky 500 */
    --accent-secondary: #22d3ee; /* Cyan 400 */
    --accent-glow: #38bdf8; /* Sky 400 */
    
    --text-main: #020617; /* Slate 950 - Much Darker */
    --text-muted: #334155; /* Slate 700 - Much Darker */
    
    --border-light: rgba(148, 163, 184, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(148, 163, 184, 0.25);
}

[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-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(109, 40, 217, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.2);
}

.admin-sidebar-toggle:hover {
    background: rgba(109, 40, 217, 0.45);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 20px rgba(109, 40, 217, 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(139, 92, 246, 0.3) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 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(139, 92, 246, 0.1);
    color: #fff;
}

.admin-sidebar-link.active {
    background: rgba(109, 40, 217, 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(109, 40, 217, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.admin-sidebar-dashboard:hover {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.3), rgba(59, 130, 246, 0.2));
    color: #fff;
    border-color: rgba(139, 92, 246, 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(109, 40, 217, 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: 'Space Grotesk', sans-serif;
    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(139, 92, 246, 0.15);
    color: #fff;
}

.dash-time-toggles button.active {
    background: rgba(109, 40, 217, 0.3);
    border-color: rgba(139, 92, 246, 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(109, 40, 217, 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(139, 92, 246, 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(139, 92, 246, 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(139, 92, 246, 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: 'Space Grotesk', monospace;
}
.visitor-table .visitor-ip {
    color: #e2e8f0;
    font-family: 'Space Grotesk', 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(139, 92, 246, 0.15);
    color: #fff;
}
.visitor-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.visitor-pagination-btn.active {
    background: rgba(109, 40, 217, 0.3);
    border-color: rgba(139, 92, 246, 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(109, 40, 217, 0.2);
    border: 1px solid rgba(109, 40, 217, 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(109, 40, 217, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #a78bfa;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(109, 40, 217, 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(139, 92, 246, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(109, 40, 217, 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: 'Space Grotesk', sans-serif;
    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"] code {
    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: 'Space Grotesk', sans-serif;
    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"] code {
    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;
}
