:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #f3cf55;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --border-color: #333;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.main-header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--accent-color);
}

.logo .thin {
    font-weight: 400;
    opacity: 0.6;
    margin-left: 5px;
    font-style: italic;
    font-size: 1.4rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.nav-btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 0 100px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), transparent);
}

/* Animations */
@keyframes flyInPath {
    0% {
        opacity: 0;
        transform: translate(-150%, 150%) scale(0.2) rotate(-45deg);
        filter: blur(10px);
    }

    40% {
        opacity: 1;
        transform: translate(-20%, 20%) scale(0.8) rotate(10deg);
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        /* Final transform is set by JS, but this keyframe guides the entrance */
        /* We'll use a class-based transition for the final settle */
    }
}

.polaroid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    /* Dynamic grid */
    grid-auto-rows: auto;
    gap: 20px;
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Clipped as requested */
    align-content: flex-start;
}

.polaroid {
    position: relative;
    background: transparent;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.8s ease;
    /* Slower, smoother transition */
    opacity: 0;

    /* Dreamy, soft entrance */
    animation: dreamyFadeIn 1.2s ease-out forwards;

    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
    /* Enforce shape */
    background: #000;
}

.polaroid:hover {
    transform: scale(1.02);
    /* Very subtle scale */
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-color);
}

.polaroid img {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    /* Ensure it fits nicely */
    display: block;
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    background: #111;

    /* Shimmering / Shift effect */
    filter: sepia(20%) contrast(1.1) brightness(0.9);
    animation: gentleShimmer 4s infinite alternate;
}

.polaroid.rejected {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.polaroid.selected-kept {
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 50;
    border: 1px solid var(--accent-color);
}

@keyframes dreamyFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

@keyframes gentleShimmer {
    0% {
        filter: sepia(20%) contrast(1.05) brightness(0.95);
    }

    50% {
        filter: sepia(25%) contrast(1.1) brightness(1.05);
    }

    100% {
        filter: sepia(20%) contrast(1.05) brightness(0.95);
    }
}

/* Removed float animation for structured look */

h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
    font-weight: 400;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 500px;
}

/* CTA & Signals */
.hero-cta {
    padding: 18px 45px;
    font-size: 1.1rem;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-signals {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    background-size: cover;
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.trust-signals p {
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Common Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Samples Section */
.samples-section {
    padding: 100px 0;
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sample-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.sample-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.sample-card.disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.5;
}


.sample-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Dynamic Gallery */
.gallery-section {
    padding: 100px 20px;
    background: #0b0b0b;
    /* Darker premium background */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.gallery-card {
    border-radius: 4px;
    /* Sharp/clean corners like a frame */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
    aspect-ratio: 4/3;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid #333;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
    border-color: var(--accent-color);
    z-index: 10;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.9;
}

.gallery-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.sample-card:hover .sample-image {
    transform: scale(1.1);
}

.sample-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(10px);
    transition: transform 0.3s;
}

.sample-card:hover .sample-info {
    transform: translateY(0);
}

.sample-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.sample-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Store Section */
.store-section {
    padding: 80px 0 120px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.store-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.store-item:hover {
    transform: translateY(-10px);
}

.store-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.store-details {
    padding: 25px;
    text-align: center;
}

.store-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.store-details .price {
    display: block;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    border-color: white;
    background: white;
    color: black;
}

/* Input Section (Floating Box) */
.input-section {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.input-container-box {
    background: #111;
    border: 1px solid #333;
    padding: 50px 60px;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.input-container-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.input-container-box p {
    opacity: 0.7;
    margin-bottom: 30px;
}

.search-box {
    background: #222;
    border: 1px solid #444;
    border-radius: 60px;
    padding: 6px;
    /* Reduced outer padding */
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    transition: all 0.3s;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-left: 20px;
    /* moved inside slightly */
    margin-right: 15px;
    flex-shrink: 0;
}

input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    flex: 1;
    font-family: var(--font-body);
    outline: none;
    min-width: 0;
    /* allows flex shrink */
    padding: 10px 0;
}

.primary-btn {
    background: var(--accent-color);
    color: #050505;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    /* Slightly tighter padding */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    /* Spacing from input */
}

/* Mobile adjustments for Search Box */
@media (max-width: 600px) {
    .search-box {}

    .primary-btn {
        width: 100%;
        /* Full width button on very small screens? No, keep it inline if possible */
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
        /* If wrapped */
        display: none;
        /* Hide the big button on mobile search maybe? No, we need it. */
    }

    /* Actually, let's keep it single row but compact */
    .search-box {
        flex-wrap: nowrap;
        border-radius: 50px;
        padding: 4px;
    }

    .primary-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-top: 0;
        display: flex;
    }

    .primary-btn span {
        display: none;
        /* Hide text on small mobile, show icon only? */
    }

    .primary-btn i {
        margin: 0;
    }

    /* Wait, user wants "Refine Address". Specifically "too narrow button hangs of the size". */
    /* Let's Try: */
    .search-box {
        flex-direction: row;
        padding: 5px;
        position: relative;
    }

    input {
        font-size: 1rem;
        padding-left: 5px;
    }

    .primary-btn {
        padding: 12px 24px;
    }
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mode Switcher */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.mode-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.mode-btn.active {
    background: #333;
    color: white;
    border-color: #666;
    font-weight: 600;
}

/* Settings Toggle */
.settings-icon-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    transition: color 0.2s;
}

.settings-icon-btn:hover {
    color: var(--accent-color);
}

/* Settings Panel */
.settings-panel {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.setting-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    margin-bottom: 0;
}

/* Batch Drop Zone */
.drop-zone {
    border: 2px dashed #444;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #151515;
    margin-bottom: 30px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent-color);
    background: #1a1a1a;
}

.drop-zone h3 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
    color: #ccc;
}

/* Batch Queue controls */
.queue-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.primary-btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.queue-list {
    max-height: 300px;
    overflow-y: auto;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
}

.queue-item:last-child {
    border-bottom: none;
}

.q-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 10px;
    background: #222;
    color: #666;
}

.q-status.pending {
    color: #aaa;
}

.q-status.processing {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.q-status.done {
    color: #4cd964;
    background: rgba(76, 217, 100, 0.1);
}

.q-status.error {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

/* Mockup View in Canvas */
.mockup-view {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-base {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    z-index: 1;
}

.mockup-overlay {
    position: absolute;
    /* This needs manual tuning per mockup, simplified for demo */
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    transform: translate(-50%, -50%);
    background-size: cover;
    mix-blend-mode: multiply;
    z-index: 2;
    opacity: 0.85;
}

/* Premium Loading Log */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.console-log {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    text-align: left;
    width: 300px;
}

.log-line {
    display: block;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

/* --- Studio Mode & Commerce --- */

.studio-mode .content-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
    height: calc(100vh - 80px);
    /* Fill screen minus header */
    overflow-y: auto;
}

.studio-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 100%;
    background-color: var(--black);
}

.studio-canvas {
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--gray-medium);
    padding: 40px;
    height: 80%;
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    min-height: 500px;
    /* Ensure height for overlay */
    margin: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.canvas-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.placeholder-art {
    color: var(--gray-light);
    text-align: center;
    opacity: 0.3;
}

.placeholder-art i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Mockup Strip (Bottom of Canvas) */
.mockup-strip {
    height: 100px;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mockup-thumb {
    width: 80px;
    height: 80px;
    background: #222;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.mockup-thumb:hover,
.mockup-thumb.selected {
    border-color: var(--primary);
}

.mockup-thumb img.mask {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.mockup-thumb .art-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

.mockup-thumb span {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 0 1px 2px black;
}


/* Right Controls */
.studio-controls {
    background-color: var(--black);
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid var(--gray-dark);
}

/* Discovery Grid - Live Feed */
.discovery-section {
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.discovery-section h6 {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 200px;
    /* Limit height to prevent takeover */
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
}

.discovery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, border-color 0.2s;
    cursor: zoom-in;
}

.discovery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    z-index: 2;
}

.discovery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.discovery-item:hover img {
    opacity: 1;
}

.discovery-item .badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    pointer-events: none;
}

.control-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 15px;
}

.control-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.address-display {
    font-family: monospace;
    color: var(--gray-light);
}

/* Style Cards */
.styles-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.styles-grid-cards.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}

.style-card {
    background: #222;
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 4/3;
}

.style-card:hover {
    border-color: #666;
    transform: translateY(-2px);
}

.style-card.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.style-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.style-card.selected .style-card-image,
.style-card:hover .style-card-image {
    opacity: 1;
}

.style-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.required-star {
    color: var(--accent-color);
    margin-left: 4px;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.search-box.small {
    padding: 8px 15px;
}

.search-box.small i {
    font-size: 0.9rem;
}

.search-box.small input {
    font-size: 0.9rem;
}

.small-btn {
    padding: 8px 15px;
}


/* Commerce Panel */
.commerce-panel {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    animation: fadeIn 0.5s ease;
}

.commerce-panel h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.product-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--gray-medium);
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-row:hover {
    background: #1a1a1a;
}

.product-row.selected {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

.buy-btn {
    background: var(--primary);
    color: var(--black);
    border: none;
    padding: 15px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Download Button */
.download-section {
    padding: 20px 0;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.download-btn i {
    color: #000;
}

/* Disabled State for Start Button */
.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #444;
    color: #888;
    box-shadow: none;
}

/* Pulse Animation for Regenerate */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.pulse {
    animation: pulse-gold 2s infinite;
}

/* Scrollbar */
.queue-list::-webkit-scrollbar {
    width: 8px;
}

.queue-list::-webkit-scrollbar-track {
    background: #111;
}

.queue-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.style-selector-mini span {
    color: #666;
    font-weight: 500;
}

.styles-grid-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.styles-grid-mini.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.8);
}

.style-pill {
    padding: 8px 20px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: capitalize;
}

.style-pill:hover {
    background: #333;
}

.style-pill.selected {
    background: var(--accent-color);
    color: black;
    border-color: var(--accent-color);
    font-weight: 600;
}

.loading-pill {
    width: 100px;
    height: 38px;
    background: #222;
    animation: pulse 1.5s infinite;
}

/* Result Section */
.result-section {
    padding-bottom: 100px;
}

.status-container {
    padding: 60px 0;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

#statusText {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Split Result Checkout */
.split-layout {
    display: flex;
    gap: 50px;
    margin-bottom: 100px;
    align-items: flex-start;
}

.artwork-showcase {
    flex: 1.2;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    border: 15px solid white;
    background: white;
}

.artwork-showcase img {
    width: 100%;
    display: block;
}

.watermark {
    position: absolute;
    bottom: 0px;
    font-family: var(--font-heading);
    color: rgba(0, 0, 0, 0.15);
    font-weight: 900;
    font-size: 2rem;
    pointer-events: none;
}

.checkout-panel {
    flex: 0.8;
    background: #151515;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
}

.checkout-panel h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 5px;
}

.result-address {
    color: #888;
    margin-bottom: 30px;
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-row {
    background: #222;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.option-row:hover {
    background: #2a2a2a;
}

.option-row.selected {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    position: relative;
    flex-shrink: 0;
}

.option-row.selected .radio-circle {
    border-color: var(--accent-color);
}

.option-row.selected .radio-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--accent-color);
    border-radius: 50%;
}

.opt-info {
    flex: 1;
}

.opt-name {
    display: block;
    font-weight: 600;
}

.opt-desc {
    font-size: 0.85rem;
    color: #888;
}

.opt-price {
    font-weight: 600;
    color: var(--accent-color);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Visual Only Mockups */
.commerce-options h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-card {
    width: 300px;
}

.mockup-container {
    height: 300px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mug-mockup {
    background: transparent;
}

.frame-mockup {
    background: #f0f0f0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.mockup-mask {
    position: relative;
    z-index: 2;
    height: 100%;
    width: auto;
    pointer-events: none;
}

.mockup-art#mugArt {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-56%);
    width: 120px;
    height: 135px;
    background-size: cover;
    background-position: center;
    z-index: 1;
    mix-blend-mode: multiply;
    border-radius: 5px;
    opacity: 0.9;
}

.frame-border {
    position: absolute;
    inset: 20px;
    border: 20px solid #222;
    background: white;
    z-index: 2;
    pointer-events: none;
}

.mockup-art#frameArt {
    width: 65%;
    height: 65%;
    background-size: cover;
    background-position: center;
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 80px 0 40px;
    margin-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #666;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

/* --- New Studio Experience --- */

.experience-overlay {
    position: absolute;
    inset: 0;
    background: #111;
    z-index: 50;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.experience-overlay.hidden {
    display: none;
}

.experience-status {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid #333;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    text-align: center;
    min-width: 300px;
}

/* Grabbing Phase: Distributed Polaroids */
/* Styling removed to fix overlap issue. Using Grid layout defined above. */



/* Director Phase: Grid Alignment */
.director-grid .polaroid {
    box-shadow: 0 0 0 2px transparent;
}

.polaroid.rejected {
    filter: grayscale(100%) brightness(0.5);
    transform: scale(0.8) !important;
    opacity: 0.3;
    z-index: 0;
    transition: all 0.5s ease;
    border: 2px solid #ff4444;
    animation: shake 0.5s ease-in-out;
}

.polaroid.rejected img {
    filter: grayscale(100%) contrast(120%);
    opacity: 0.5;
}

.polaroid.selected-kept {
    z-index: 100;
    transform: scale(1.1) rotate(0deg) !important;
    border: 3px solid #4CAF50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.polaroid.selected {
    box-shadow: 0 0 0 4px var(--accent-color), 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transform: scale(1.1) !important;
}

/* Scanning Effect */
.polaroid.scanning::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bold, high contrast gold scan */
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(212, 175, 55, 0.2) 50%,
            rgba(255, 223, 0, 0.8) 95%,
            rgba(255, 255, 255, 0.9) 100%);
    transform: translateY(-100%);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
    /* Glowing edge */
    animation: scanLine 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }

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

/* Painting Phase */


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.painting-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.painting-overlay.active {
    opacity: 1;
    pointer-events: all;
    z-index: 9999;
}



/* --- Footer --- */
.studio-footer {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.7;
    border-top: 1px solid #222;
    padding-bottom: 10px;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.separator {
    margin: 0 8px;
    color: #444;
}

.footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer-credit a:hover {
    color: var(--accent-color);
}


/* --- Enhanced Effects --- */

/* Pulse Animation for searching/waiting */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    }
}

.experience-overlay.searching {
    box-shadow: inset 0 0 80px rgba(212, 175, 55, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes simpleSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Painting Brush Effect */
.painting-overlay.active {
    background: rgba(0, 0, 0, 0.7);
}

.painting-loader {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-radius: 50%;
    margin-bottom: 20px;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

/* Status Text Animated */
.experience-status {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 15px;
    min-height: 1.5em;
}


/* --- Commerce / POD --- */
.commerce-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.order-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.order-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.success-message {
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid #4cd964;
    color: #4cd964;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .studio-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }

    .studio-canvas {
        height: 60vh;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .studio-controls {
        height: auto;
        padding: 30px 20px 100px 20px;
        /* Extra bottom padding for mobile scroll */
    }

    .studio-mode .content-wrapper {
        height: auto;
        overflow: auto;
    }
}

@media (max-width: 768px) {

    /* Header */
    .main-header {
        padding: 20px 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-section {
        flex-direction: column-reverse;
        padding: 40px 0;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    h1 {
        font-size: 3rem;
    }

    .subtitle {
        margin: 0 auto 30px auto;
    }

    .hero-cta {
        margin: 0 auto 30px auto;
        justify-content: center;
    }

    .trust-signals {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        height: 300px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Input Section */
    .input-container-box {
        padding: 30px 20px;
    }

    .input-container-box h2 {
        font-size: 1.8rem;
    }

    .search-icon {
        display: none;
    }

    #landingGoBtn {
        width: 100%;
        justify-content: center;
    }

    /* Studio */
    .studio-canvas {
        height: 50vh;
        /* order: 1; Removed to keep canvas on top */
    }

    .experience-overlay h3 {
        font-size: 1.2rem;
    }

    .styles-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .polaroid-container {
        padding: 10px;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        /* Force 2 columns */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Centered Create Button */
#regenerateBtn {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    width: fit-content;
    min-width: 250px;
}

/* System Lock Overlay */
.system-lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.system-lock-overlay.hidden {
    display: none;
}

.lock-content {
    background: #111;
    border: 1px solid #333;
    padding: 60px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

.close-overlay-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-overlay-btn:hover {
    color: white;
}

@media (max-width: 600px) {
    .lock-content {
        padding: 30px 20px;
        width: 95%;
    }
}

.lock-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.lock-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.lock-message {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.lock-form {
    text-align: left;
    margin-bottom: 30px;
}

.lock-form label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lock-form input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.lock-form input:focus {
    border-color: var(--accent-color);
}

.lock-footer {
    font-size: 0.9rem;
    color: #666;
}

.lock-footer a {
    color: #aaa;
    text-decoration: underline;
}

.full-width {
    width: 100%;
    justify-content: center;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
    border-color: #ff3b30 !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 350px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.toast.error {
    border-left: 4px solid #ff3b30;
}

.toast.success {
    border-left: 4px solid #4cd964;
}

.toast.info {
    border-left: 4px solid var(--accent-color);
}

.toast-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.toast-message {
    opacity: 0.8;
    line-height: 1.4;
    font-size: 0.9rem;
}

.toast.error .toast-icon {
    color: #ff3b30;
}

.toast.success .toast-icon {
    color: #4cd964;
}

.toast.info .toast-icon {
    color: var(--accent-color);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Dream Mode / Painting Animation */
.painting-canvas {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    background: #000;
}

.dream-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;

    /* "Coming Alive" Effect */
    animation: photoCycle 12s infinite ease-in-out;
}

/* Cycle logic for 4 images */
.dream-image:nth-child(1) {
    animation-delay: 0s;
}

.dream-image:nth-child(2) {
    animation-delay: 3s;
}

.dream-image:nth-child(3) {
    animation-delay: 6s;
}

.dream-image:nth-child(4) {
    animation-delay: 9s;
}

@keyframes photoCycle {
    0% {
        opacity: 0;
        transform: scale(1);
        filter: contrast(0.8) brightness(0.8) grayscale(0.5);
    }

    10% {
        opacity: 1;
        transform: scale(1.02);
        filter: contrast(1) brightness(0.9) grayscale(0.2);
    }

    20% {
        filter: contrast(1.1) brightness(1.1) grayscale(0);
        /* Moment of clarity */
    }

    25% {
        opacity: 1;
        transform: scale(1.05);
    }

    35% {
        opacity: 0;
        transform: scale(1.08);
        /* Fade out while growing slightly */
    }

    100% {
        opacity: 0;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.faq-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.faq-item h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.4;
}

.faq-item p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

/* Style Selection Cards */
.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #ccc;
    font-size: 0.95rem;
}

.required-star {
    color: var(--accent-color);
}

.styles-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.style-card {
    background: #222;
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    /* Square cards */
}

.style-card:hover {
    border-color: #666;
    transform: translateY(-4px);
}

.style-card.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    /* transform: scale(1.02); selected shouldn't scale, just highlight */
}

.style-card.selected::after {
    content: "\f00c";
    /* check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.style-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.style-card:hover .style-card-image,
.style-card.selected .style-card-image {
    opacity: 0.9;
}

.style-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 5px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #eee;
    backdrop-filter: blur(2px);
}

.style-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}