:root {
    --primary-color: #00d8ff;
    /* Vibrant Cyan */
    --secondary-color: #8b5cf6;
    /* Electric Purple */
    --accent-color: #ff1f7e;
    /* Sunset Pink */
    --warning-color: #ff8a00;
    /* Bright Orange */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-outfit: 'Outfit', sans-serif;
}

/* BETA TAG */
.beta-tag {
    background: var(--warning-color);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
}

/* DARK THEME (DEFAULT) */
.dark-theme {
    --bg-body: #0a0b10;
    --bg-navbar: rgba(10, 11, 16, 0.8);
    --bg-navbar-scroll: rgba(10, 11, 16, 0.95);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-dropdown: rgba(13, 15, 20, 0.98);
    --text-main: #f8f9fa;
    --text-muted: #a0aec0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --input-bg: rgba(255, 255, 255, 0.05);
    --bg-sidebar: #111218;
    --bg-stage: #08090d;
    --hero-title-gradient: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --border-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --shadow-lift: 0 20px 40px rgba(0, 216, 255, 0.1);
    --input-focus-bg: rgba(255, 255, 255, 0.08);
    --bg-overlay: rgba(5, 6, 10, 0.85);
    --shadow-modal: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* LIGHT THEME */
body.light-theme {
    --bg-body: #f0f2f5;
    --bg-navbar: rgba(255, 255, 255, 0.82);
    --bg-navbar-scroll: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-dropdown: rgba(255, 255, 255, 0.98);
    --text-main: #2d3748;
    --text-muted: #718096;
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --input-bg: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-stage: #f0f2f5;
    --hero-title-gradient: linear-gradient(to right, #2d3748, #718096);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --border-card: rgba(0, 0, 0, 0.12);
    --bg-card-hover: #ffffff;
    --shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.12);
    --input-focus-bg: #fff;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --shadow-modal: 0 30px 60px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html.modal-open {
    overflow: hidden !important;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: var(--font-outfit);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    opacity: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.modal-open {
    overflow: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg-navbar-scroll);
    height: 70px;
    box-shadow: var(--shadow);
}

.navbar .container {
    height: 100%;
    /* Added for vertical alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* LOCKOUT SCREEN */
.lockout-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(25px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.lockout-screen.active {
    display: flex;
}

.lockout-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lockout-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.lockout-icon i {
    width: 40px;
    height: 40px;
}

.lockout-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--hero-title-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lockout-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.lockout-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.lockout-actions .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .lockout-card {
        padding: 2rem;
    }
    .lockout-actions {
        flex-direction: column;
    }
}

.btn-cooldown {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border-color: var(--glass-border) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}
.verification-banner {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    position: fixed;
    top: 80px; /* Below fixed header */
    left: 0;
    right: 0;
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.verification-banner i {
    width: 18px;
    height: 18px;
}

.verification-banner.active {
    display: flex;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .verification-banner {
        top: 70px;
        font-size: 0.8rem;
    }
}
.lang-switcher-custom {
    position: relative;
    user-select: none;
}

.lang-switcher-custom .lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    background: var(--bg-dropdown);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    box-shadow: var(--shadow-modal);
}

.lang-switcher-custom.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-custom .lang-option {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switcher-custom .lang-option:hover {
    background: var(--hover-bg);
}

.lang-switcher-custom .lang-option.active {
    background: rgba(79, 209, 197, 0.1);
    color: var(--primary-color);
}

.lang-switcher-custom .lang-option img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-switcher-custom.guest-only {
    display: none;
}
.nav-icon {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    background: rgba(79, 209, 197, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 100%;
}

/* PREMIUM SEGMENTED THEME TOGGLE */
.theme-segmented-control {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    width: 70px;
    height: 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 2px;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-segmented-control:hover {
    border-color: var(--primary-color);
}

.segment {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.segment i {
    width: 14px;
    height: 14px;
}

.segment-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: 0 4px 10px rgba(79, 209, 197, 0.3);
}

/* Dark theme state (Left) */
.dark-theme .segment.dark {
    color: #fff;
}

.dark-theme .segment-slider {
    transform: translateX(0);
}

/* Light theme state (Right) */
.light-theme .segment.light {
    color: #fff;
}

.light-theme .segment-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    /* Sun gradient */
    box-shadow: 0 4px 10px rgba(237, 137, 54, 0.4);
}

.light-theme .theme-segmented-control {
    background: #e2e8f0;
    border-color: rgba(0, 0, 0, 0.05);
}

/* LANGUAGE SWITCHER CUSTOM */
.lang-switcher-custom {
    position: relative;
    user-select: none;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-selected:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: var(--bg-dropdown);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    padding: 0.5rem;
}

.lang-switcher-custom.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(159, 122, 234, 0.1));
    color: var(--primary-color);
}

.lang-option .flag {
    font-size: 1.2rem;
}

.lang-option .name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* BUTTONS */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 20px rgba(79, 209, 197, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 209, 197, 0.3);
}

/* USER DROPDOWN */
.user-dropdown-container {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem 0.5rem 0.6rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.user-dropdown-trigger:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-name-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--bg-dropdown);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    padding: 0.5rem;
}

.user-dropdown-container.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.dropdown-item.active {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(159, 122, 234, 0.1));
}

.dropdown-item.logout-link:hover {
    color: #f56565;
    background: rgba(245, 101, 101, 0.05);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-border);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;

}

/* HERO SECTION */
.hero {
    padding: 180px 0 100px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    padding: 3rem;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(79, 209, 197, 0.1) 0%, transparent 70%);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating 6s ease-in-out infinite;
    min-height: 400px;
}

.ai-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 20px var(--primary-color);
    z-index: 5;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.image-wrapper img {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(159, 122, 234, 0.4));
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotateX(2deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg);
    }

    100% {
        transform: translateY(0px) rotateX(2deg);
    }
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(159, 122, 234, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* FEATURES */
.features {
    padding: 100px 0;
    background: radial-gradient(circle at bottom left, rgba(79, 209, 197, 0.05) 0%, transparent 40%);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

/* COMPARISON SECTION */
.comparison {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 0;
    aspect-ratio: 4 / 3;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: ew-resize;
    user-select: none;
}

@media (max-width: 768px) {
    .comparison-container {
        border-radius: 15px;
    }
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.raw-car {
    background: url('../img/comparator/before.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.raw-car::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.processed-car {
    background: url('../img/comparator/after.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    right: 0;
    /* Align image to the right so it doesn't move when container shrinks */
    top: 0;
}

/* Base style for labels */
.label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    color: white;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.aura-badge-glass {
    background: rgba(13, 15, 20, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Hide simulated elements from CSS as we now have real images */
.processed-car::before,
.processed-car::after {
    display: none !important;
}

/* CSS cleanup */

.image-before,
.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-after {
    width: 50%;
    z-index: 5;
    overflow: hidden;
    border-left: 3px solid var(--primary-color);
    left: auto;
    right: 0;
}

.image-after .label {
    right: 20px;
    background: rgba(13, 15, 20, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.image-before .label {
    left: 20px;
    background: rgba(13, 15, 20, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    color: white;
}

/* TOOLS PAGE STYLES */
.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 20px;
    width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    position: relative;
    /* Base mask (can be changed by classes) */
    -webkit-mask-image: none;
    mask-image: none;
}
.tools-tabs::-webkit-scrollbar { display: none; }

.tools-tabs.fade-right {
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.tools-tabs.fade-left {
    -webkit-mask-image: linear-gradient(to left, black 85%, transparent 100%);
    mask-image: linear-gradient(to left, black 85%, transparent 100%);
}
.tools-tabs.fade-both {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

@media (max-width: 600px) {
    .tools-tabs {
        width: calc(100% - 2rem);
        max-width: 100%;
        gap: 0.5rem;
        border-radius: 12px;
        padding: 0.25rem;
        justify-content: flex-start;
        padding-right: 2rem;
        padding-left: 1rem;
    }
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: 15px;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tab-btn i {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .tab-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        justify-content: center;
        min-width: 44px;
    }
    .tab-btn span {
        display: none;
    }
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.btn-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-list {
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* PAGE TRANSITIONS */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

body.page-fade-out {
    animation: pageFadeOut 0.4s forwards ease-in;
}

body.page-fade-in {
    animation: pageFadeIn 0.4s forwards ease-out;
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    z-index: 20;
    transform: translateX(-50%);
    pointer-events: none;
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.4);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.highlighted {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.08), rgba(79, 209, 197, 0.08));
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.plate-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.watermark-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* STEPS */
.how-it-works {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
    margin-top: 4rem;
}

.step {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.1;
    margin-bottom: -1rem;
}

.step h4 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.step p {
    color: var(--text-muted);
}

/* FOOTER */
.footer {
    margin-top: 40px;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-attribution {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.tec3h-logo {
    height: 25px;
    width: auto;
    transition: var(--transition);
}

.tec3h-logo:hover {
    transform: scale(1.05);
}

/* Theme Switching for tec3h logo */
.tec3h-logo.for-dark { display: block; }
.tec3h-logo.for-light { display: none; }

body:not(.dark-theme) .tec3h-logo.for-dark { display: none; }
body:not(.dark-theme) .tec3h-logo.for-light { display: block; }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        order: 2;
    }

    .footer-attribution {
        order: 1;
        justify-content: center;
    }

    .footer-copy {
        order: 3;
    }
}


/* MOBILE DRAWER STYLES */
.mobile-toggle-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100vh;
    background: #0d0f14;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    border-left: 1px solid var(--glass-border);
    padding: 2.5rem 1.5rem;
    display: none;
    /* Hide by default for desktop/tablets */
    flex-direction: column;
    visibility: hidden;
    pointer-events: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

/* Isolated Dropdown Fix */
.aura-dropdown-isolated .lang-dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.aura-dropdown-isolated.active .lang-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drawer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.drawer-links a:hover,
.drawer-links a.active {
    color: var(--primary-color);
}

.drawer-links a.active {
    background: rgba(79, 209, 197, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-left: -1rem;
    display: block;
}

.drawer-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

.drawer-lang-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.drawer-lang-options .lang-option {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.drawer-lang-options .lang-option.active {
    border-color: var(--primary-color);
    background: rgba(79, 209, 197, 0.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .navbar {
        height: 64px;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo-text {
        display: none;
    }

    .user-name-text {
        display: none;
    }

    .user-dropdown-trigger {
        padding: 0.4rem;
        gap: 0.5rem;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    .mobile-drawer {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem;
    }

    .btn-lg {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .lang-switcher-custom {
        display: none !important;
    }

    .mobile-toggle-btn {
        display: flex !important;
        margin-left: 0.5rem;
    }

    .mobile-drawer {
        display: flex;
        /* Only show on mobile */
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding-top: 100px;
    }

    main {
        padding-top: 100px !important;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.text-center {
    text-align: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* REVEAL ANIMATIONS */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* PREMIUM POPUPS */
.aura-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 6, 10, 0.95);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.aura-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.aura-popup {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.aura-popup-overlay.active .aura-popup {
    transform: scale(1) translateY(0);
}

.aura-popup-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(79, 209, 197, 0.2);
}

.aura-popup-icon.warning {
    background: linear-gradient(135deg, #f56565, #ed8936);
    box-shadow: 0 10px 20px rgba(245, 101, 101, 0.2);
}

.aura-popup-icon.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.2);
}

.aura-popup-icon.error {
    background: linear-gradient(135deg, #e53e3e, #9b2c2c);
    box-shadow: 0 10px 20px rgba(229, 62, 62, 0.3);
}

.aura-popup-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.aura-popup-message {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.aura-popup-actions {
    display: flex;
    gap: 1rem;
}

.aura-popup-btn {
    min-width: 120px;
}

/* AURA LOADING OVERLAY */
.aura-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aura-loading-overlay.active {
    display: flex;
    opacity: 1;
}

.aura-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.aura-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: aura-spin 0.8s linear infinite;
}

.aura-loading-text {
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@keyframes aura-spin {
    to { transform: rotate(360deg); }
}

body.loading-active {
    overflow: hidden !important;
}

.spin {
    animation: aura-spin 1s linear infinite;
    display: inline-block;
}

.btn-download.loading {
    pointer-events: none;
    opacity: 0.7;
}

.img-not-found {
    opacity: 0.8;
}

/* BATCH SELECTION STYLES */
.design-item {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
}

.design-item.selected {
    border-color: var(--primary-color) !important;
    background: rgba(79, 209, 197, 0.05);
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.2);
}

.selection-checkbox {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.design-item:hover .selection-checkbox,
.selection-checkbox.active {
    opacity: 1;
    transform: scale(1);
}

.selection-checkbox.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.selection-checkbox i {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.selection-checkbox.active i {
    opacity: 1;
    transform: scale(1);
}

.batch-action-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 95vw);
    background: rgba(13, 15, 20, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 10px 10px 10px 30px;
    z-index: 9000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.batch-action-bar.active {
    bottom: 30px;
}

.batch-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.batch-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.batch-count {
    background: var(--primary-color);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.batch-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .batch-action-bar {
        border-radius: 20px;
        padding: 15px;
    }
    .batch-content {
        flex-direction: column;
        gap: 15px;
    }
    .batch-info {
        width: 100%;
        justify-content: center;
    }
    .batch-actions {
        width: 100%;
    }
    .batch-actions .btn {
        flex: 1;
    }
}

