:root {
    --bg-color: #ffffff;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #333;
    padding: 40px;
    box-sizing: border-box;
}

/* Main Layout Container */
.layout-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 800px;
}

/* Header & Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #111;
    letter-spacing: -0.5px;
}

.guide-link {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.05);
}

.guide-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(2px);
}

/* Section Headers */
.section-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    margin: 0;
    margin-bottom: -20px;
    /* Pull grid closer */
    padding-left: 10px;
}

/* Grid Layout for Themes */
.theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
}

.theme-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Icon Size Control */
    --icon-size: 25px;
}

.theme-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.5;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #333;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0;
}

.dev-link:hover {
    opacity: 1;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.color-legend {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #666;
    font-family: monospace;
}

.color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.icons-row {
    display: flex;
    gap: 30px;
}

.unlock-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* --- THEME SCOPES --- */

/* 1. Neon AI (Default) */
.theme-neon {
    --main-color-1: #6366f1;
    /* Electric Indigo */
    --main-color-2: #06b6d4;
    /* Neon Cyan */
    --main-color-3: #a855f7;
    /* Vivid Violet */
}

/* 2. Solar Flare */
.theme-solar {
    --main-color-1: #FF416C;
    /* Cherry Red */
    --main-color-2: #FF4B2B;
    /* Orange */
    --main-color-3: #F9D423;
    /* Sun Yellow */
}

/* 3. Deep Ocean */
.theme-ocean {
    --main-color-1: #00c6ff;
    /* Cyan */
    --main-color-2: #0072ff;
    /* Royal Blue */
    --main-color-3: #004e92;
    /* Lighter Navy (Was #000428) */
}

/* 4. Cyber Venom */
.theme-venom {
    --main-color-1: #DCE35B;
    /* Lime */
    --main-color-2: #45B649;
    /* Green */
    --main-color-3: #4ecdc4;
    /* Soft Teal (Was #11998e) */
}

/* ... */
.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    /* Increased from 20px */
    opacity: 0.8;
}

/* 5. Golden Era */
.theme-gold {
    --main-color-1: #FFD700;
    /* Gold */
    --main-color-2: #FFA500;
    /* Orange */
    --main-color-3: #FDB931;
    /* Bright Gold */
}

/* 6. Ruby Red */
.theme-ruby {
    --main-color-1: #FF0000;
    /* Red */
    --main-color-2: #990000;
    /* Maroon */
    --main-color-3: #FF4D4D;
    /* Light Red */
}

/* 7. Pastel Dream */
.theme-pastel {
    --main-color-1: #FF9A9E;
    /* Pink */
    --main-color-2: #A18CD1;
    /* Purple */
    --main-color-3: #FAD0C4;
    /* Soft Orange */
}

/* 8. Midnight Sky */
.theme-midnight {
    --main-color-1: #141E30;
    /* Dark Blue */
    --main-color-2: #243B55;
    /* Blue Grey */
    --main-color-3: #000000;
    /* Black */
}

.unlock-btn {
    width: var(--icon-size);
    height: var(--icon-size);
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    /* Very subtle base track for light mode */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-face {
    clip-path: url(#face-clip);
}

.btn-fingerprint {
    clip-path: url(#fingerprint-clip);
}

.unlock-btn:hover {
    transform: scale(1.05);
}

.unlock-btn:active {
    transform: scale(0.95);
}

/* 
   THE LIQUID CORE 
   We use multiple blurring blobs mixing together to look like liquid
*/
.liquid-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: black;
    filter: blur(8px) contrast(15);
    /* Gooey effect filter chain */
    /* Note: filter might mess with clip-path in some browsers, 
       but here clip-path is on parent.
       Actually, standard "gooey" needs white/black contrast.
       Let's try a simpler vibrant gradient mesh first for "Flowing Color".
    */
}

/* Resetting liquid container for Gradient Mesh approach (More reliable premium look) */
.liquid-container {
    filter: none;
    background: transparent;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.9;
}

/* Blob 1: Cyan */
.blob-1 {
    width: 100%;
    height: 150%;
    background: var(--main-color-1);
    top: -25%;
    left: -100%;
    animation: flow-right 1.5s linear infinite;
}

/* Blob 2: Purple */
.blob-2 {
    width: 100%;
    height: 150%;
    background: var(--main-color-2);
    top: -25%;
    left: -100%;
    animation: flow-right 1.5s linear infinite;
    animation-delay: -0.5s;
}

/* Blob 3: Blue */
.blob-3 {
    width: 100%;
    height: 150%;
    background: var(--main-color-3);
    top: -25%;
    left: -100%;
    animation: flow-right 1.5s linear infinite;
    animation-delay: -1s;
}

/* Interactions */
.unlock-btn.scanning .liquid-container {
    filter: brightness(2);
    /* Speed up animations */
}

.unlock-btn.scanning .liquid-blob {
    animation-duration: 0.2s;
    /* Super fast scanning */
}

.unlock-btn.unlocked {
    background: #4ade80;
    /* Success Green */
    clip-path: url(#face-clip);
    /* Keep shape */
}

.unlock-btn.unlocked .liquid-container {
    opacity: 0;
    /* Hide liquid */
    transition: opacity 0.3s;
}

.status-label {
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Keyframes */
/* Fast, smooth Left-to-Right flow */
@keyframes flow-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Top-to-Bottom flow */
@keyframes flow-down {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Bottom-to-Top flow */
@keyframes flow-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200%);
    }
}

/* Direction Modifiers */

/* Down Flow Modifier */
.dir-down .liquid-blob {
    animation-name: flow-down;
    width: 150%;
    height: 100%;
    top: -100%;
    left: -25%;
}

/* Up Flow Modifier */
.dir-up .liquid-blob {
    animation-name: flow-up;
    width: 150%;
    height: 100%;
    top: 100%;
    left: -25%;
}