/* ===================================
   PIXMAS WEB APP - MOBILE FIRST STYLES
   Extension of main Christmas theme
   =================================== */

/* ===================================
   AUTHENTICATION PAGES
   =================================== */
.auth-section {
    padding: 1rem 0 2rem;
    min-height: auto;
    display: flex;
    align-items: flex-start;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.35rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error-message,
.success-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.error-message {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #FFB3B3;
}

.success-message {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #B3FFB3;
}

.btn-primary-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-gold);
    color: var(--darker-red);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-primary-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.btn-primary-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1.5rem;
}

/* ===================================
   DASHBOARD STYLES
   =================================== */
.user-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.user-welcome h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.search-bar {
    margin-bottom: 2rem;
}

.search-bar input {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-white);
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.category-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.generations-badge {
    background: var(--accent-gold);
    color: var(--darker-red);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===================================
   GENERATION PAGE
   =================================== */
.generation-section {
    padding: 2rem 0 3rem;
}

.generation-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Horizontal Scrollable Themes Carousel (Like App) */
.themes-horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.1);
}

.themes-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.themes-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.themes-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.theme-scroll-card {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    /* Small by default */
    width: 120px;
    height: 150px;
    scroll-snap-align: center;
}

.theme-scroll-card.current {
    /* Current/selected theme is BIGGER */
    width: 280px;
    height: 350px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    scroll-snap-align: center;
}

.theme-scroll-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

.theme-scroll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.theme-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.theme-preview img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.theme-preview h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-white);
}

/* Desktop - Full Preview */

.upload-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.upload-area {
    cursor: pointer;
    position: relative;
}

.upload-area.drag-over {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-preview-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.upload-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-area h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 1rem;
}

.upload-area input[type="file"] {
    display: none;
}

.preview-area {
    position: relative;
}

.preview-area img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.btn-change {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-change:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-generate {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent-gold);
    color: var(--darker-red);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: none;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 2rem;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-container {
    text-align: center;
}

.result-image {
    margin-bottom: 2rem;
}

.result-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-gold);
    color: var(--darker-red);
    padding: 1.125rem 2.5rem;
    border-radius: 15px;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: var(--text-white);
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===================================
   AFFILIATE & JOURNALIST PAGES
   =================================== */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.affiliate-stats,
.stat-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.referral-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.referral-box h3 {
    font-family: var(--font-display);
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.referral-url-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.referral-url-container input {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-white);
    font-family: monospace;
    font-size: 0.95rem;
}

.referral-url-container button {
    background: var(--accent-gold);
    color: var(--darker-red);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-url-container button:hover {
    transform: translateY(-2px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.feature-box .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.benefits-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    line-height: 1.7;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list a {
    color: var(--accent-gold);
    text-decoration: none;
}

.benefits-list a:hover {
    text-decoration: underline;
}

.success-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
     /* Auth pages - COMPACT ABOVE FOLD */
     .hero-christmas { padding: 0.5rem 0 !important; min-height: auto !important; }
     .auth-section { padding: 0.5rem 0 1rem !important; }
     .auth-container { padding: 0.5rem !important; }
     .auth-card { padding: 1.25rem !important; margin-top: 0 !important; border-radius: 15px !important; }
     .auth-header { margin-bottom: 1rem !important; }
     .auth-icon { font-size: 2rem !important; margin-bottom: 0.25rem !important; }
     .auth-header h1 { font-size: 1.25rem !important; margin-bottom: 0.25rem !important; }
     .auth-header p { font-size: 0.8rem !important; }
     .form-group { margin-bottom: 0.75rem !important; }
     .form-group label { font-size: 0.8rem !important; margin-bottom: 0.3rem !important; }
     .form-group input { padding: 0.65rem !important; font-size: 0.875rem !important; border-radius: 8px !important; }
     .form-group small { font-size: 0.7rem !important; }
     .btn-primary-auth { padding: 0.75rem 1.25rem !important; font-size: 0.9rem !important; border-radius: 10px !important; }
     .auth-footer { padding-top: 0.75rem !important; margin-top: 0 !important; }
     .auth-footer p { font-size: 0.8rem !important; }
     .features-list { margin-top: 0.75rem !important; gap: 0.4rem !important; }
     .feature-item { font-size: 0.75rem !important; padding: 0.4rem 0.6rem !important; }
    
     /* Dashboard */
     .hero-christmas { padding: 0.75rem 0 0 !important; }
     .user-welcome { margin-bottom: 0.5rem !important; }
     .user-welcome h1 { font-size: 1.15rem !important; margin-bottom: 0.5rem !important; }
     .user-stats { gap: 0.5rem !important; margin-bottom: 0 !important; grid-template-columns: 1fr 1fr !important; }
     .categories-showcase { padding-top: 0.5rem !important; }
    .stat-card { padding: 0.5rem !important; min-width: auto !important; }
    .stat-number { font-size: 1.3rem !important; margin-bottom: 0 !important; }
    .stat-label { font-size: 0.65rem !important; }
    
     /* Categories - compact */
     .category-section { margin-bottom: 1rem !important; }
     .category-header { 
         padding: 0 !important; 
         margin-bottom: 0.5rem !important;
         display: flex !important;
         flex-direction: row !important;
         justify-content: space-between !important;
         align-items: center !important;
     }
     .category-title-wrapper {
         display: flex !important;
         align-items: center !important;
         gap: 0.4rem !important;
     }
     .category-star { font-size: 1rem !important; }
     .category-title { font-size: 0.9rem !important; white-space: nowrap !important; }
     .view-more-btn { 
         padding: 0.3rem 0.6rem !important; 
         font-size: 0.7rem !important;
         white-space: nowrap !important;
         flex-shrink: 0 !important;
     }
     
     /* Cards - NO CHANGES, keep original from styles.css */

}

/* Desktop - NUCLEAR OPTION - PORTRAIT EVERYWHERE */
@media (min-width: 769px) {
    /* FORCE GRID ON ALL CONTAINERS */
    .styles-grid, 
    .category-grid-horizontal,
    .styles-grid-category,
    section.categories-showcase .styles-grid,
    section.content-section .styles-grid,
    div.styles-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 0.75rem !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
    }
    
    /* FORCE PORTRAIT ON ALL CARDS */
    .style-card,
    .styles-grid > .style-card,
    .category-grid-horizontal > .style-card,
    .styles-grid-category > .style-card,
    div[class*="grid"] .style-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        flex-shrink: 0 !important;
    }
    
    /* FORCE PORTRAIT IMAGE HEIGHT */
    .style-image,
    .style-card .style-image,
    .styles-grid .style-image,
    .category-grid-horizontal .style-image,
    div[class*="grid"] .style-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        width: 100% !important;
    }
    
    /* FORCE TEXT STYLING */
    .style-info,
    .style-card .style-info {
        padding: 0.5rem !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .style-name,
    .style-info     .style-name {
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
     /* Dashboard & ALL cards - FIX EMPTY SPACE */
     .style-card { height: auto !important; }
     .style-image { height: 180px !important; }
     .style-info { 
         padding: 0.4rem !important; 
         min-height: auto !important;
         display: flex !important;
         align-items: center !important;
         justify-content: center !important;
     }
     .style-name { 
         font-size: 0.7rem !important; 
         line-height: 1.1 !important;
         margin: 0 !important;
         text-align: center !important;
         display: -webkit-box !important;
         -webkit-line-clamp: 2 !important;
         line-clamp: 2 !important;
         -webkit-box-orient: vertical !important;
         overflow: hidden !important;
     }
     
     /* Category page - GRID 3 COLUMNS */
     .category-grid-horizontal {
         display: grid !important;
         grid-template-columns: repeat(3, 1fr) !important;
         gap: 0.5rem !important;
     }
     
     .category-grid-horizontal .style-card {
         width: 100% !important;
     }
     
     .category-grid-horizontal .style-image {
         height: 180px !important;
     }
     
     .style-info { padding: 0.5rem !important; min-height: 42px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
     .style-name { font-size: 0.75rem !important; line-height: 1.15 !important; margin: 0 !important; text-align: center !important; }
    
    /* Generate Page - Compact */
    .theme-preview { padding: 0.6rem !important; margin-bottom: 0.6rem !important; }
    .theme-preview h1, .theme-preview h2 { font-size: 0.95rem !important; margin-bottom: 0.25rem !important; }
    .theme-preview-image { height: 90px !important; margin-top: 0.4rem !important; border-radius: 6px !important; }
    
     /* Horizontal Scroll Mobile */
     .themes-horizontal-scroll {
         padding: 1rem 0.5rem !important;
         gap: 0.5rem !important;
         justify-content: flex-start !important;
         scroll-snap-type: x mandatory !important;
         scroll-padding: 0 50% !important;
     }
     
     .theme-scroll-card {
         /* Smaller cards on mobile */
         width: 90px !important;
         height: 110px !important;
         border-radius: 10px !important;
     }
     
     .theme-scroll-card.current {
         /* Current theme bigger on mobile */
         width: 220px !important;
         height: 280px !important;
         border-width: 2px !important;
     }
     
     .theme-name-overlay {
         padding: 0.5rem !important;
         font-size: 0.85rem !important;
     }
    .upload-container { padding: 0.6rem !important; }
    .upload-area { padding: 1rem !important; min-height: 130px !important; }
    .upload-icon { font-size: 1.8rem !important; margin-bottom: 0.4rem !important; }
    .upload-preview-thumbnail { width: 80px !important; height: 80px !important; margin-bottom: 0.5rem !important; }
    .upload-area h2, .upload-area h3 { font-size: 0.9rem !important; margin-bottom: 0.2rem !important; }
    .upload-area p { font-size: 0.7rem !important; }
    .preview-area { padding: 0.5rem !important; }
    .preview-area img { max-height: 170px !important; }
    .btn-change { padding: 0.5rem 1rem !important; font-size: 0.8rem !important; margin-top: 0.5rem !important; }
    .btn-generate { padding: 0.7rem 1.2rem !important; font-size: 0.875rem !important; margin-top: 0.6rem !important; }
    
    /* Result */
    .result-container { padding: 0.6rem !important; margin-top: 0.6rem !important; }
    .result-image img { max-height: 260px !important; }
    .result-actions { gap: 0.5rem !important; margin-top: 0.6rem !important; flex-direction: row !important; }
    .btn-download, .btn-secondary { padding: 0.6rem 0.9rem !important; font-size: 0.8rem !important; flex: 1 !important; width: auto !important; }
    
    /* General */
    .content-section { padding: 0.5rem 0 !important; }
    .content-card { padding: 0.75rem !important; }
    .content-card h2 { font-size: 1.2rem !important; }
    .container { padding: 0 0.75rem !important; }
    .navbar-christmas { padding: 0.6rem 0 !important; }
    .logo-christmas { font-size: 1rem !important; }
    .logo-icon { font-size: 1.2rem !important; }
    .features-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .affiliate-stats { grid-template-columns: 1fr; }
    .referral-url-container { flex-direction: column; }
    .loading-content h2 { font-size: 1.2rem !important; }
    
    /* Nav */
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 60px; left: -100%; width: 100%; background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(10px); flex-direction: column; padding: 1.5rem; transition: left 0.3s; z-index: 999; gap: 0.75rem; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
    .nav-links.active { left: 0; }
    .desktop-only { display: none !important; }
    .mobile-nav-simple { display: flex !important; align-items: center; gap: 1rem; }
    .back-link { color: var(--text-white); text-decoration: none; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .auth-icon {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .btn-primary-auth,
    .btn-generate,
    .btn-download {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
}

/* ===================================
   SNOW ANIMATION
   =================================== */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: snowfall linear infinite;
    user-select: none;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.snow-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.snow-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.snow-toggle:active {
    transform: scale(0.95);
}

/* Snow toggle - no extra styles needed, switches between ❄️ and ☀️ */

@keyframes snowfall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0.3;
    }
}

/* ===================================
   ADDITIONAL UTILITY CLASSES
   =================================== */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 1.125rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===================================
   VIEW MORE CARD
   =================================== */
.view-more-card {
    border: 2px dashed rgba(255, 215, 0, 0.5) !important;
    background: rgba(255, 215, 0, 0.1) !important;
}

.view-more-card:hover {
    border-color: var(--accent-gold) !important;
    background: rgba(255, 215, 0, 0.2) !important;
    transform: scale(1.05) !important;
}

/* ===================================
   FAVORITE BUTTON
   =================================== */
.favorite-btn {
    transition: transform 0.2s, opacity 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.1) !important;
    opacity: 0.9;
}

.favorite-btn:active {
    transform: scale(0.9) !important;
}

/* ===================================
   VIEW MORE BUTTON IN HEADER
   =================================== */
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateX(5px);
}

.view-more-btn .arrow {
    transition: transform 0.3s;
}

.view-more-btn:hover .arrow {
    transform: translateX(3px);
}

