@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #1a1a2e;
    --surface-color: #16213e;
    --primary-color: #ffbf40;
    --text-color: #ffffff;
    --reverse-text-color: #000000;
    --text-secondary: #b0b0b0;
    --reverse-text-secondary: #353434;
    --accent-color: #ffee80;
    --reverse-accent-color: #4b4100;
    --danger-color: #ff7644;
    --reverse-danger-color: #531600;
    --glass-bg: rgba(26, 26, 46, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Cinzel', serif;
    --gold: #d4af37;
    --body-gradient-one: #1a1a2e;
    --body-gradient-two: #16213e;
    --body-gradient-three: #0f3460;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--body-gradient-one) 0%, var(--body-gradient-two) 50%, var(--body-gradient-three) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100vw;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

/* ... (skip unchanged) ... */

/* Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

button {
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    outline: none;
}

/* App Shell */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(22, 33, 62, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    gap: 10px;
}

/* Add padding to body/app to account for fixed header */
#app {
    padding-top: 56px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-icon {
    height: 40px;
    width: auto;
    margin-right: 8px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Credits Display - in header */
.nav-credits {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    color: #4caf50;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: auto;
}

.nav-credits:hover {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.2));
    border-color: rgba(76, 175, 80, 0.5);
}

#credit-balance {
    min-width: 20px;
    text-align: center;
}

/* Mobile Navigation - Slide-out Menu */
#main-nav {
    position: fixed;
    top: 56px;
    right: -280px;
    width: 260px;
    height: calc(100vh - 56px);
    background: rgba(22, 33, 62, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction: column;
    padding: 20px 0;
    transition: right 0.3s ease;
    z-index: 101;
    border-left: 1px solid var(--glass-border);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

#main-nav.hidden {
    display: flex !important;
    right: -280px;
}

#main-nav.open {
    right: 0;
}

#main-nav button {
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 16px 24px;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s, padding-left 0.2s;
}

#main-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

#main-nav button.logout-btn {
    color: var(--danger-color);
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
#main-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--reverse-text-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px var(--gold);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    width: 100%;
    margin-top: 0.5rem;
    white-space: nowrap;
}

/* Cards */
.card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

/* Grid for Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.tool-card {
    background: linear-gradient(145deg, var(--surface-color), #2a2a2a);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid var(--glass-border);
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-card h3 {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.info-btn:hover {
    background: var(--primary-color);
    color: var(--reverse-text-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.tool-icon {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
    display: block;
}

/* Project List */
.project-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--surface-color);
    margin-bottom: 10px;
    border-radius: 8px;
}

.project-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    background: #333;
}

.project-info {
    flex: 1;
}

.project-title {
    font-weight: 600;
    display: block;
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Loader */
.loader {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-animate {
    animation: fadeIn 0.3s ease-out;
}

.color-swatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
    min-width: 60px;
}

.color-swatch-container.active {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--gold);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 4px;
}

.color-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999 !important; /* Force top */
    display: none; /* Hidden by default, toggled by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.05); 
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8)); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)); 
        opacity: 0.8; 
    }
}

/* Loading Facts Display */
.loading-facts {
    margin-top: 30px;
    max-width: 500px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fact-text {
    font-size: 1.1rem;
    color: var(--gold);
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fact-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.fact-course {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.fact-course.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* Result Item */
.result-item {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.results-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.results-grid-2 .result-item {
    margin-bottom: 0;
}

/* Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    margin-top: -6px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}

/* Sticky Footer */
#sticky-footer {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* LANDING PAGE STYLES (Bijou Vision AI) */
.landing-container {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    padding: 80px 20px;
}

.landing-header {
    text-align: center;
    margin-bottom: 70px;
}

.brand {
    font-size: clamp(2.5rem, 10vw, 5em);
    font-weight: 600;
    letter-spacing: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    /*text-transform: uppercase;*/
    text-shadow: 0 0 40px var(--gold);
    font-family: 'Playfair Display', 'Georgia', serif;
    position: relative;
    z-index: 1;
}

.tagline {
    color: #b8a9d6;
    font-size: 1.3em;
    font-weight: 300;
    letter-spacing: 4px;
    font-style: italic;
    font-family: 'Playfair Display', 'Georgia', serif;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 150px 20px;
    position: relative;
    overflow: hidden;
    background-image: url('../../images/BV_background1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 30, 0.4); /* Lighter overlay to see image */
    z-index: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5em);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--text-color) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5em;
    color: #b8a9d6;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-cta {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--gold), var(--accent-color));
    color: var(--reverse-text-color);
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--gold);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px var(--gold);
}

/* TOAST NOTIFICATIONS */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
    min-width: 300px;
}

.toast.success { border-left: 4px solid #4caf50; }
.toast.error { border-left: 4px solid #ff4444; }
.toast.info { border-left: 4px solid #2196f3; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* FEATURES SECTION */
.features-section {
    padding: 100px 20px;
    background: var(--body-gradient-two);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 8vw, 3.5em);
    margin-bottom: 80px;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    text-shadow: 0 0 20px rgba(193, 155, 245, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 24px;
    border: 1px solid rgba(193, 155, 245, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(193, 155, 245, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-box:hover {
    transform: translateY(-15px);
    border-color: rgba(193, 155, 245, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

.feature-icon {
    font-size: clamp(3rem, 10vw, 4em);
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(193, 155, 245, 0.4));
    transition: transform 0.4s;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    position: relative;
}

#app {
    height: 100vh;
}

.feature-desc {
    color: var(--accent-color);
    line-height: 1.7;
    font-size: 1.1em;
    position: relative;
    min-height: 135px;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* Always add transition for smooth effects */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
}

.feature-image:hover {
    /* Lifts the image slightly */
    transform: translateY(-5px) scale(1.02); 
    
    /* Enhances the glow when hovered */
    box-shadow: 0 10px 30px var(--reverse-accent-color); 
    
    cursor: pointer; /* Change cursor to indicate interactivity */
    transform: rotateY(0deg) rotateX(0deg);
}
.feature-image-container {
    margin-top: 20px;
    /* Use padding to create space for the border effect */
    padding: 5px; 
    
    /* 3D Effect: Subtle shadow */
    box-shadow: 0 0 15px rgba(179, 137, 255, 0.5), /* Purple glow matching BIJOUVISION */
                0 0 5px rgba(255, 215, 0, 0.4);   /* Gold/Yellow accent */
    
    /* The main image itself (img element inside this container) */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Very light, subtle white line */
    border-radius: 8px; /* Slightly rounded corners */

    display: flex;
    justify-content: center;
   
    /* Sets up the 3D space */
    perspective: 1000px;
    
    /* Example: Give it a slight default tilt */
    transform: rotateY(5deg) rotateX(2deg); 
    
    /* Ensure smooth movement */
    transition: transform 0.5s ease-out;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 120px 20px;
    background: linear-gradient(to bottom, #0f0f1e, #0a0a0a);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.testimonial-text {
    font-size: 1.2em;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: 'Playfair Display', serif;
}

.testimonial-author {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-role {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* JDMIS ABOUT SECTION */
.jdmis-section {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 1) 100%);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.jdmis-content {
    max-width: 800px;
    margin: 0 auto;
}

.jdmis-logo {
    margin-bottom: 20px;
}

.jdmis-logo img {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.jdmis-logo-img {
    max-width: 280px;
    height: auto;
}

.jdmis-image {
    margin: 30px auto;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.jdmis-image img {
    width: 100%;
    height: auto;
    display: block;
}

.jdmis-title {
    font-size: 2.2em;
    color: var(--gold);
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 2px;
}

.jdmis-text {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.jdmis-text strong {
    color: var(--text-color);
}

.jdmis-cta {
    margin-top: 35px;
}

.jdmis-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1em;
    padding: 12px 30px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.jdmis-link:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* FOOTER */
.landing-footer {
    background: var(--bg-color);
    padding: 50px 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: auto;
}

.footer-brand-name {
    font-size: 1.3em;
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 1px;
}

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

.footer-nav a, .footer-nav button {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1em;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    padding: 0;
}

.footer-nav a:hover, .footer-nav button:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.copyright a {
    color: var(--gold);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85em;
    font-style: italic;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .jdmis-section {
        padding: 60px 20px;
    }
    
    .jdmis-title {
        font-size: 1.8em;
    }
    
    .jdmis-text {
        font-size: 1em;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

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

.footer-links a, .footer-links button {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s;
    font-size: 1.1em;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3em;
    }
    .section-title {
        font-size: 2.5em;
    }
    .hero-section {
        padding: 100px 20px;
    }
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-top: 60px;
    perspective: 1500px;
}

/* Flip Card Container */
.tier-card-container {
    position: relative;
    perspective: 1500px;
}

.tier-card-container.featured-container {
    z-index: 2;
}

.tier-card-container.featured-container .tier-card-flipper {
    transform: scale(1.05);
}

.tier-card-container.featured-container.flipped .tier-card-flipper {
    transform: scale(1.05) rotateY(180deg);
}

.tier-card-flipper {
    position: relative;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.tier-card-container.flipped .tier-card-flipper {
    transform: rotateY(180deg);
}

.tier-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(193, 155, 245, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.tier-card-front {
    position: relative;
    z-index: 2;
}

.tier-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

/* Ensure proper z-index during flip for featured container */
.tier-card-container.featured-container .tier-card-front {
    z-index: 2;
}

.tier-card-container.featured-container.flipped .tier-card-front {
    z-index: 1;
}

.tier-card-container.featured-container.flipped .tier-card-back {
    z-index: 2;
}

/* Plan-specific glow colors */
.tier-card-container[data-plan="spark"] .tier-card {
    box-shadow: 0 0 40px rgba(255, 191, 64, 0.15);
}
.tier-card-container[data-plan="spark"]:hover .tier-card,
.tier-card-container[data-plan="spark"].flipped .tier-card {
    border-color: rgba(255, 191, 64, 0.5);
    box-shadow: 0 20px 60px rgba(255, 191, 64, 0.35);
}

.tier-card-container[data-plan="lumiere"] .tier-card {
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.15);
}
.tier-card-container[data-plan="lumiere"]:hover .tier-card,
.tier-card-container[data-plan="lumiere"].flipped .tier-card {
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow: 0 20px 60px rgba(100, 200, 255, 0.35);
}

.tier-card-container[data-plan="radiance"] .tier-card {
    box-shadow: 0 0 40px rgba(212, 165, 255, 0.2);
}
.tier-card-container[data-plan="radiance"]:hover .tier-card,
.tier-card-container[data-plan="radiance"].flipped .tier-card {
    border-color: rgba(212, 165, 255, 0.6);
    box-shadow: 0 20px 60px rgba(212, 165, 255, 0.45);
}

.tier-card-container[data-plan="infinite"] .tier-card {
    box-shadow: 0 0 40px rgba(255, 100, 150, 0.15);
}
.tier-card-container[data-plan="infinite"]:hover .tier-card,
.tier-card-container[data-plan="infinite"].flipped .tier-card {
    border-color: rgba(255, 100, 150, 0.5);
    box-shadow: 0 20px 60px rgba(255, 100, 150, 0.35);
}

/* Hover lift effect */
.tier-card-container:hover {
    transform: translateY(-10px);
}

.tier-card-container.featured-container:hover {
    transform: translateY(-10px);
}

.tier-card-container.featured-container:not(.flipped):hover .tier-card-flipper {
    transform: scale(1.05);
}

.tier-card-container.featured-container.flipped .tier-card-flipper,
.tier-card-container.featured-container.flipped:hover .tier-card-flipper {
    transform: scale(1.05) rotateY(180deg);
}

/* Plan Icon Styles */
.plan-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px currentColor);
}

.tier-card-container[data-plan="spark"] .plan-icon {
    filter: drop-shadow(0 0 20px rgba(255, 191, 64, 0.7));
}
.tier-card-container[data-plan="lumiere"] .plan-icon {
    filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.7));
}
.tier-card-container[data-plan="radiance"] .plan-icon {
    filter: drop-shadow(0 0 20px rgba(212, 165, 255, 0.7));
}
.tier-card-container[data-plan="infinite"] .plan-icon {
    filter: drop-shadow(0 0 20px rgba(255, 100, 150, 0.7));
}

/* Plan Image Container */
.plan-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    flex-shrink: 0;
}

.plan-image {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 16px;
}

.tier-card-container[data-plan="spark"] .plan-image {
    box-shadow: 0 0 25px rgba(255, 191, 64, 0.3);
}
.tier-card-container[data-plan="lumiere"] .plan-image {
    box-shadow: 0 0 25px rgba(100, 200, 255, 0.3);
}
.tier-card-container[data-plan="radiance"] .plan-image {
    box-shadow: 0 0 25px rgba(212, 165, 255, 0.3);
}
.tier-card-container[data-plan="infinite"] .plan-image {
    box-shadow: 0 0 25px rgba(255, 100, 150, 0.3);
}

/* Plan Usage Text */
.plan-usage-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.4;
    padding: 8px 5px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Flip Indicator */
.flip-indicator {
    text-align: center;
    color: var(--primary-color);
    font-size: 0.85em;
    padding: 10px 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.flip-indicator:hover {
    opacity: 1;
}

/* Legacy tier-card styles - kept for back panel */
.tier-card-back:hover {
    background: rgba(255, 255, 255, 0.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--reverse-accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Helvetica', sans-serif;
}

.gem-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tier-name {
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
    color: var(--primary-color);
    font-family: 'Playfair Display', 'Georgia', serif;
}

.tier-essence {
    color: var(--accent-color);
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.price-section {
    text-align: center;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(193, 155, 245, 0.2);
    border-bottom: 1px solid rgba(193, 155, 245, 0.2);
    flex-shrink: 0;
}

.price-amount {
    font-size: clamp(2.5rem, 8vw, 3.5em);
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1;
    color: var(--accent-color);
    font-family: 'Playfair Display', 'Georgia', serif;
}

.currency {
    font-size: 0.35em;
    vertical-align: super;
    opacity: 0.8;
}

.credits {
    color: var(--primary-color);
    font-size: 0.9em;
    letter-spacing: 2px;
    font-weight: 300;
    margin-top: 10px;
    text-transform: uppercase;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.features-list {
    list-style: none;
    margin: 5px 0;
    line-height:1.1;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.features-list li {
    color: var(--accent-color);
    padding: 5px 0;
    font-size: 0.9em;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
}

.features-list li::before {
    content: '◆';
    color: var(--primary-color);
    margin-right: 16px;
    font-size: 1em;
    opacity: 0.8;
}

.select-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--accent-color);
    background: transparent;
    font-size: 0.95em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: auto;
    font-family: 'Playfair Display', serif;
    border-radius: 8px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.select-btn:hover {
    background: var(--accent-color);
    color: var(--reverse-accent-color);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(193, 155, 245, 0.5);
}

.featured-card {
    border: 2px solid rgba(212, 165, 255, 0.5);
}

.featured-card .select-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 25px rgba(212, 165, 255, 0.3);
}

.featured-card .select-btn:hover {
    background: var(--accent-color);
}

.disclaimer {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-top: 60px;
    letter-spacing: 1px;
    font-style: italic;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-modal-content {
    text-align: center;
}

#info-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .tier-card-container.featured-container .tier-card-flipper {
        transform: scale(1);
    }
    
    .tier-card-container.featured-container.flipped .tier-card-flipper,
    .tier-card-container.featured-container.flipped:hover .tier-card-flipper {
        transform: scale(1) rotateY(180deg);
    }
    
    .tier-card-container.featured-container:not(.flipped):hover .tier-card-flipper {
        transform: scale(1);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5em;
    }
    
    .section-title {
        font-size: 2.8em;
    }
}

/* Small Tablet / Large Phone (481px - 768px) */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('../../images/BV_background1.jpg');
        padding: 100px 20px;
    }

    .landing-container {
        padding: 40px 15px;
    }
    
    .hero-section {
        padding: 80px 15px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .brand {
        font-size: 2.8em;
        letter-spacing: 6px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tier-card-container.featured-container .tier-card-flipper {
        transform: scale(1);
    }
    
    .tier-card-container.featured-container.flipped .tier-card-flipper,
    .tier-card-container.featured-container.flipped:hover .tier-card-flipper {
        transform: scale(1) rotateY(180deg);
    }
    
    .tier-card-container.featured-container:not(.flipped):hover .tier-card-flipper {
        transform: scale(1);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 30px;
    }
}

/* Mobile Navigation and Header */
@media (max-width: 600px) {
    .app-header {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo-icon {
        height: 40px;
        margin-right: 6px;
    }
    
    #main-nav {
        gap: 4px;
    }
    
    #main-nav button {
        font-size: 1.5rem;
        padding: 5px 6px;
    }
    
    .nav-credits {
        padding: 4px 8px;
        font-size: 1rem;
        gap: 2px;
    }
    
    #app {
        padding-top: 52px;
    }
}

/* Very small screens - hide text labels, show icons */
@media (max-width: 400px) {
    .logo {
        font-size: 0;
    }
    
    .logo-icon {
        height: 30px;
        margin-right: 0;
    }
    
    #main-nav button {
        font-size: 1.5rem;
        padding: 4px 5px;
    }
    
    .nav-credits {
        padding: 3px 6px;
        font-size: 1rem;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .brand {
        font-size: 2em;
        letter-spacing: 4px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-cta {
        padding: 15px 30px;
        font-size: 1em;
        width: 100%;
    }

    .feature-box {
        padding: 30px 20px;
    }

    .feature-icon {
        font-size: 3em;
    }

    .price-amount {
        font-size: 3.5em;
    }

    .tier-card {
        padding: 30px 20px;
    }
}
/* RESULTS GRID */
/* RESULTS GRID */
#results-container {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.results-grid-1 {
    grid-template-columns: 1fr;
}

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

.result-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #2a2a2a;
    aspect-ratio: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.resolution-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.resolution-1k {
    background: rgba(212, 175, 55, 0.85);
    color: #1a1a1a;
}

.resolution-2k {
    background: rgba(186, 104, 200, 0.9);
}

.resolution-4k {
    background: rgba(0, 173, 181, 0.9);
}

.result-item:hover {
    transform: scale(1.03);
    z-index: 2;
}

.result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.result-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: space-around;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.result-item:hover .result-actions {
    opacity: 1;
}

.result-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
}


.result-actions button:hover {
    color: #d4af37;
}

/* Theme Specific Styles */
.main-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ba68c8, #ff4081, #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(3rem, 15vw, 6em);
    margin-top: 10px;
    line-height: 1.1;
    padding: 0 10px;
    font-size:5rem;
}

.sparkle-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    max-width: 100%;
}

.logo-img {
    display: block;
    margin: 0 auto;
}

.sparkle {
    position: absolute;
    animation: sparkle 2s infinite ease-in-out;
    color: #ff4081;
    pointer-events: none;
}

.s1 { top: -10%; left: 15%; animation-delay: 0s; font-size: 2em; }
.s2 { top: 20%; right: -10%; animation-delay: 0.6s; font-size: 1.7em; }
.s3 { bottom: -10%; left: 20%; animation-delay: 1.2s; font-size: 1.9em; }
.s4 { top: 50%; right: -5%; animation-delay: 0.3s; font-size: 1.5em; }
.s5 { bottom: 10%; right: 90%; animation-delay: 0.9s; font-size: 1.3em; }

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.4) rotate(180deg); }
}

/* Auth Container Style */
.auth-container {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
}

.auth-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========================================
   FAVORITES FEATURE STYLES
   ======================================== */

/* Main Favorites Button on Home Page */
.btn-favorites-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 2px solid var(--gold);
    border-radius: 16px;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-favorites-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-favorites-main:hover::before {
    left: 100%;
}

.btn-favorites-main:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(255, 215, 0, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.favorites-icon {
    font-size: 1.5rem;
    animation: pulse-star 2s ease-in-out infinite;
}

@keyframes pulse-star {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.favorites-text {
    flex: 1;
    text-align: center;
}

.favorites-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-favorites-main:hover .favorites-arrow {
    transform: translateX(5px);
}

/* Favorite Button in Modal */
.btn-favorite {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #888;
    border-radius: 25px;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-favorite.is-favorited {
    background: linear-gradient(135deg, var(--gold), #ffd700);
    border-color: var(--gold);
    color: #1a1a1a;
}

.btn-favorite .star-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-favorite:hover .star-icon {
    transform: scale(1.2) rotate(15deg);
}

.btn-favorite.is-favorited .star-icon {
    animation: star-pop 0.4s ease;
}

@keyframes star-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4) rotate(20deg); }
    100% { transform: scale(1); }
}

/* Favorites Modal */
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.favorites-modal.show {
    opacity: 1;
    visibility: visible;
}

.favorites-modal-content {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 95%;
    height: 95%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.favorites-modal.show .favorites-modal-content {
    transform: scale(1) translateY(0);
}

#favorites-grid-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    flex-shrink: 0;
}

.favorites-header h2 {
    margin: 0;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.favorites-header .close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.favorites-header .close-btn:hover {
    color: var(--text-color);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.favorite-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.favorite-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.favorite-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-star {
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-star.is-favorited {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold);
}

.no-favorites {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-favorites p:first-child {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Result Item Favorite Star */
.result-actions .favorite-star-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.result-actions .favorite-star-btn:hover {
    color: var(--gold);
    transform: scale(1.2);
}

.result-actions .favorite-star-btn.is-favorited {
    color: var(--gold);
}

/* Favorites Image Viewer (built into modal) */
.favorites-image-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
}

.favorites-image-viewer .viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.favorites-image-viewer .back-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorites-image-viewer .back-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.favorites-image-viewer .unfav-btn {
    background: linear-gradient(135deg, var(--gold), #ffd700);
    border: none;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.favorites-image-viewer .unfav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.favorites-image-viewer .viewer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.favorites-image-viewer .viewer-content img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.favorites-image-viewer .viewer-content p {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    text-align: center;
    max-width: 80%;
}

.favorites-image-viewer .viewer-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    justify-content: center;
}

.favorites-image-viewer .viewer-actions button {
    min-width: 140px;
}

/* Responsive adjustments for favorites */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .favorites-header {
        padding: 15px 20px;
    }
    
    .favorites-header h2 {
        font-size: 1.2rem;
    }
    
    .btn-favorites-main {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .favorites-image-viewer .viewer-actions {
        flex-direction: column;
        padding: 15px;
    }
    
    .favorites-image-viewer .viewer-actions button {
        width: 100%;
    }
}

/* CREDIT SYSTEM BREAKDOWN */
.credit-system-container {
    margin-top: 60px;
    text-align: center;
    padding: 0 10px;
}

.credit-system-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: var(--text-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.credit-system-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 10px auto 0;
}

.credit-tiers {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.credit-tier-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(193, 155, 245, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credit-tier-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.05);
}

.credit-cost {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.model-name {
    font-size: 1.1em;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.model-details {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95em;
    font-family: var(--font-main);
}

.release-date {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    opacity: 0.7;
    font-style: italic;
}

.featured-credit {
    border: 1px solid var(--gold);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(26, 26, 46, 0.8));
    transform: scale(1.05);
    z-index: 1;
}

.featured-credit:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

/* Responsive for Credit System */
@media (max-width: 768px) {
    .credit-tiers {
        flex-direction: column;
        align-items: center;
    }
    
    .credit-tier-item {
        width: 100%;
        max-width: 100%;
    }
    
    .featured-credit {
        transform: scale(1);
    }
    
    .featured-credit:hover {
        transform: translateY(-8px);
    }
}

/* Result Title Styles */
.result-title {
    padding: 6px 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.result-title:hover {
    color: var(--primary-color);
}

.modal-title {
    cursor: pointer;
    transition: color 0.2s;
}

.modal-title:hover {
    color: var(--primary-color);
}

/* ==================== CURRENCY SELECTOR ==================== */ 

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.pricing-header .section-title {
    margin-bottom: 0;
}

.plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.plans-header h2 {
    margin-bottom: 0;
}

.currency-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-selector-wrapper {
    position: relative;
}

.currency-selector {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid var(--gold);
    border-radius: 25px;
    padding: 10px 40px 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    min-width: 110px;
    text-align: center;
}

.currency-selector:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.currency-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.currency-selector-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--gold);
    pointer-events: none;
}

.currency-selector option {
    background: var(--surface-color);
    color: var(--text-color);
    padding: 10px;
}

/* Price Animation */
.price-amount {
    transition: all 0.3s ease;
}

.price-updating {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.15s ease-out;
}

.price-updated {
    animation: pricePopIn 0.3s ease-out;
}

@keyframes pricePopIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Currency label for mobile */
.currency-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: none;
}

@media (max-width: 768px) {
    .pricing-header {
        flex-direction: column;
        text-align: center;
    }
    
    .plans-header {
        flex-direction: column;
        text-align: center;
    }
    
    .currency-selector-container {
        justify-content: center;
    }
    
    .currency-label {
        display: block;
    }
}

/* ==================== GALLERY STYLES ==================== */

.gallery-view {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-header h2 {
    margin: 0;
    color: var(--gold);
    font-family: var(--font-heading);
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.column-toggle {
    display: flex;
    background: var(--surface-color);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.col-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.col-btn.active {
    background: var(--gold);
    color: #1a1a2e;
}

.gallery-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sort Control */
.sort-control {
    margin-right: auto;
}

.sort-control select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.sort-control select:hover,
.sort-control select:focus {
    border-color: var(--gold);
}

.sort-control select option {
    background: var(--surface-color);
    color: var(--text-color);
}

/* Lazy Loading Images */
img.lazy,
video.lazy {
    background: var(--surface-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

img.lazy[src*="icon-192"],
video.lazy[src*="icon-192"] {
    object-fit: contain;
    padding: 20%;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    gap: 15px;
    min-height: 200px;
}

.gallery-grid.cols-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

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

.gallery-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.gallery-item-star {
    color: var(--gold);
    font-size: 1.2rem;
}

.gallery-item.is-favorited {
    border: 2px solid var(--gold);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.gallery-empty p:first-child {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.gallery-empty .btn-primary {
    margin-top: 20px;
}

.gallery-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
}

.gallery-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.hidden {
    display: none !important;
}

.gallery-modal-content {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: var(--gold);
    color: #1a1a2e;
}

/* Gallery Slider (Similar to share.php) */
.gallery-modal-slider {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 100px; /* Extra padding for overlay */
    min-height: 300px;
    max-height: 70vh;
    background: #0a0a12;
    position: relative;
    overflow: hidden;
}

.gallery-modal-slider .comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-slider .comparison-container.no-original .img-original,
.gallery-modal-slider .comparison-container.no-original .slider-handle,
.gallery-modal-slider .comparison-container.no-original .label-original {
    display: none;
}

.gallery-modal-slider .comparison-container.no-original .img-generated,
.gallery-modal-slider .comparison-container.no-original .video-generated {
    clip-path: none !important;
}

.gallery-modal-slider .img-original,
.gallery-modal-slider .video-original {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.gallery-modal-slider .img-generated,
.gallery-modal-slider .video-generated {
    position: relative;
    z-index: 2;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    clip-path: inset(0 0 0 50%);
}

.gallery-modal-slider .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--gold);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.gallery-modal-slider .slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.gallery-modal-slider .slider-handle::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a2e;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 3px;
}

.gallery-modal-slider .image-label {
    position: absolute;
    bottom: 10px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
}

.gallery-modal-slider .label-original {
    left: 10px;
    color: var(--text-secondary);
}

.gallery-modal-slider .label-generated {
    right: 10px;
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* Gallery Floating Info Overlay */
.gallery-modal-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 70%, rgba(0, 0, 0, 0.7) 90%, transparent 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 20px 20px;
    z-index: 20;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-modal-info-overlay.collapsed {
    transform: translateY(calc(100% - 40px));
}

.gallery-modal-info-overlay.collapsed .info-overlay-content {
    opacity: 0;
    pointer-events: none;
}

.info-overlay-toggle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--gold);
    border-radius: 15px 15px 0 0;
    color: var(--gold);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 21;
}

.info-overlay-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
}

.gallery-modal-info-overlay.collapsed .info-overlay-toggle .toggle-icon {
    transform: rotate(180deg);
}

.info-overlay-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.info-overlay-content {
    transition: opacity 0.3s ease;
}

.info-overlay-content h3 {
    margin: 0 0 8px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.info-overlay-content .gallery-modal-prompt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 6px;
    line-height: 1.4;
    max-height: 50px;
    overflow-y: auto;
}

.info-overlay-content .gallery-modal-project {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.7;
}

.info-overlay-content .gallery-modal-public-toggle {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Modal Info */
.gallery-modal-info {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    max-height: 30vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.gallery-modal-info h3 {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: var(--font-heading);
}

.gallery-modal-prompt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 8px;
    line-height: 1.5;
    max-height: 60px;
    overflow-y: auto;
}

.gallery-modal-project {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

/* Gallery Public Toggle */
.gallery-modal-public-toggle {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.public-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.public-checkbox-label:hover {
    color: var(--text-primary);
}

.public-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.public-checkbox-text {
    user-select: none;
}

/* Gallery Modal Actions */
.gallery-modal-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px 20px;
    flex-wrap: wrap;
}

.gallery-modal-actions button {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gallery-modal-actions button.is-favorited {
    background: var(--gold);
    color: #1a1a2e;
}

.gallery-modal-actions button.is-favorited .star-icon {
    color: #1a1a2e;
}

@media (max-width: 600px) {
    .gallery-modal-actions {
        flex-direction: column;
    }
    
    .gallery-modal-actions button {
        min-width: 100%;
    }
}

/* Writing Assistant Popup */
.wa-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wa-popup.hidden {
    display: none !important;
}

.wa-popup-content {
    background: var(--surface-color);
    border: 1px solid var(--gold);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.wa-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.wa-popup-header h3 {
    margin: 0;
    color: var(--gold);
    font-size: 1.1rem;
}

.wa-popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wa-popup-close:hover {
    color: var(--gold);
}

.wa-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.wa-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.wa-field {
    margin-bottom: 15px;
}

.wa-field label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.wa-field label small {
    text-transform: none;
    color: #666;
}

.wa-names-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wa-name-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.wa-name-chip:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.wa-name-chip.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    font-weight: 600;
}

.wa-editable {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-color);
    min-height: 20px;
    transition: background 0.2s ease;
}

.wa-editable:hover {
    background: rgba(212, 175, 55, 0.1);
}

.wa-editable.wa-multiline {
    min-height: 60px;
    line-height: 1.5;
}

.wa-row {
    display: flex;
    gap: 15px;
}

.wa-half {
    flex: 1;
}

.wa-bg-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 6px;
    color: #aaa;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-bg-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.gallery-item-badge {
    font-size: 0.9rem;
    margin-left: 4px;
}

/* Public Gallery Styles */
.community-gallery-btn-container {
    margin-top: 25px;
}

.community-gallery-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #c4a052 100%);
    color: #1a1a2e;
    font-weight: 600;
    padding: 15px 35px;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.community-gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.public-gallery-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.public-gallery-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--gold);
}

.gallery-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    margin-bottom: 15px;
}

.gallery-item-designer {
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.9;
    margin-top: 2px;
}

.gallery-modal-designer {
    color: var(--gold);
    font-size: 0.9rem;
    margin: 5px 0 0;
}

.public-gallery-cta {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.public-gallery-cta p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.public-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 60vh;
}

.public-image-container img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Spotlight Section */
.spotlight-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, transparent 100%);
}

.spotlight-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

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

@media (max-width: 600px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.spotlight-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.spotlight-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.spotlight-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.spotlight-item:hover img {
    transform: scale(1.1);
}

.spotlight-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-item:hover .spotlight-item-overlay {
    opacity: 1;
}

.spotlight-item-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-designer {
    color: var(--gold);
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.spotlight-cta {
    margin-top: 20px;
}

.spotlight-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Spotlight Modal */
.spotlight-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spotlight-modal.hidden {
    display: none;
}

.spotlight-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.spotlight-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.spotlight-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.spotlight-modal-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.spotlight-modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.spotlight-modal-info {
    padding: 20px;
    text-align: center;
}

.spotlight-modal-info h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 0 0 10px;
    font-family: var(--font-heading);
}

.spotlight-modal-prompt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 10px;
    line-height: 1.5;
    max-height: 60px;
    overflow-y: auto;
}

.spotlight-modal-designer {
    color: var(--gold);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.spotlight-modal-actions {
    display: flex;
    gap: 15px;
    padding: 0 20px 20px;
    justify-content: center;
}

.spotlight-modal-actions button {
    flex: 1;
    max-width: 200px;
}

@media (max-width: 600px) {
    .spotlight-modal-actions {
        flex-direction: column;
    }
    
    .spotlight-modal-actions button {
        max-width: 100%;
    }
}

/* Modal Actions Bar with Dropdowns */
.modal-actions-bar {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
    align-items: center;
}

.modal-actions-bar .btn-favorite {
    padding: 12px 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 12px 20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 160px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    margin-bottom: 8px;
    overflow: hidden;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-menu button:hover {
    background: rgba(212, 175, 55, 0.15);
}

.dropdown-menu button:not(:last-child) {
    border-bottom: 1px solid var(--glass-border);
}
