/* ==========================================================================
   SNOW BUNNY COLLECTION - ENHANCED UX DESIGN
   Modern, clean, and professional styling
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --accent: #38bdf8;
    --accent-light: #7dd3fc;
    
    --bg-dark: #0a0a12;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-elevated: #16161f;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.4);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMATED BACKGROUND
   ========================================================================== */

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    -webkit-animation: float 20s ease-in-out infinite;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    -webkit-animation-delay: -7s;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation-delay: -14s;
    animation-delay: -14s;
    opacity: 0.2;
}

@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    25% { -webkit-transform: translate(30px, -30px) scale(1.05); transform: translate(30px, -30px) scale(1.05); }
    50% { -webkit-transform: translate(-20px, 20px) scale(0.95); transform: translate(-20px, 20px) scale(0.95); }
    75% { -webkit-transform: translate(20px, 10px) scale(1.02); transform: translate(20px, 10px) scale(1.02); }
}

@keyframes float {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    25% { -webkit-transform: translate(30px, -30px) scale(1.05); transform: translate(30px, -30px) scale(1.05); }
    50% { -webkit-transform: translate(-20px, 20px) scale(0.95); transform: translate(-20px, 20px) scale(0.95); }
    75% { -webkit-transform: translate(20px, 10px) scale(1.02); transform: translate(20px, 10px) scale(1.02); }
}

/* ==========================================================================
   SNOW ANIMATION
   ========================================================================== */

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1rem;
    -webkit-animation: snowfall linear infinite;
    animation: snowfall linear infinite;
    opacity: 0;
}

.snowflake:nth-child(1) { left: 5%; -webkit-animation-duration: 15s; animation-duration: 15s; -webkit-animation-delay: 0s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 15%; -webkit-animation-duration: 18s; animation-duration: 18s; -webkit-animation-delay: 2s; animation-delay: 2s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 30%; -webkit-animation-duration: 12s; animation-duration: 12s; -webkit-animation-delay: 4s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 45%; -webkit-animation-duration: 20s; animation-duration: 20s; -webkit-animation-delay: 1s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 55%; -webkit-animation-duration: 16s; animation-duration: 16s; -webkit-animation-delay: 3s; animation-delay: 3s; font-size: 0.8rem; }
.snowflake:nth-child(6) { left: 70%; -webkit-animation-duration: 14s; animation-duration: 14s; -webkit-animation-delay: 5s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 80%; -webkit-animation-duration: 19s; animation-duration: 19s; -webkit-animation-delay: 0.5s; animation-delay: 0.5s; }
.snowflake:nth-child(8) { left: 92%; -webkit-animation-duration: 17s; animation-duration: 17s; -webkit-animation-delay: 2.5s; animation-delay: 2.5s; font-size: 1.1rem; }

@-webkit-keyframes snowfall {
    0% { -webkit-transform: translateY(0) rotate(0deg); transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { -webkit-transform: translateY(100vh) rotate(720deg); transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes snowfall {
    0% { -webkit-transform: translateY(0) rotate(0deg); transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { -webkit-transform: translateY(100vh) rotate(720deg); transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    padding: 40px 0 20px;
}

.header-content {
    text-align: center;
}

.logo-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo-icon-wrapper {
    position: relative;
}

.logo-icon {
    font-size: 3rem;
    display: block;
    -webkit-animation: bounce 2s ease-in-out infinite;
    animation: bounce 2s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

@-webkit-keyframes bounce {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

@keyframes bounce {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

.logo-text h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    background: -webkit-linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.logo-subtitle {
    display: block;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.header-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 16px 0;
}

/* ==========================================================================
   HEADER BUTTONS (NEW)
   ========================================================================== */

.header-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 12px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.telegram-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.sister-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sister-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.badge-text { color: var(--text-muted); }
.badge-link { color: var(--primary-light); }

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-bar {
    padding: 20px 0;
    margin-bottom: 20px;
}

.stats-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 30px;
    padding: 16px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.stat-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-timer {
    font-size: 0.7rem;
    color: var(--warning);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.free-clicks-stat.depleted .stat-number {
    color: var(--error);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.toolbar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.search-box-wrapper {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 250px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 80px 14px 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-input::-webkit-input-placeholder {
    color: var(--text-muted);
}

.search-input::-moz-placeholder {
    color: var(--text-muted);
}

.search-input:-ms-input-placeholder {
    color: var(--text-muted);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-hint {
    position: absolute;
    right: 16px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: inherit;
    border: none;
}

.toolbar-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.view-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
}

.view-btn {
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.sort-select {
    padding: 14px 40px 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==========================================================================
   RESULTS INFO
   ========================================================================== */

.results-info {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--text-primary);
}

/* ==========================================================================
   CREATOR GRID
   ========================================================================== */

.creator-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.creator-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.creator-grid.list-view .creator-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.creator-grid.list-view .card-image {
    width: 120px;
    min-width: 120px;
}

.creator-grid.list-view .card-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* ==========================================================================
   CREATOR CARD
   ========================================================================== */

.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-animation: fadeInUp 0.4s ease forwards;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

@-webkit-keyframes fadeInUp {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

.creator-card:hover {
    border-color: var(--border-hover);
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect ratio - Firefox compatible */
    overflow: hidden;
    background: -webkit-linear-gradient(315deg, var(--bg-elevated), var(--bg-card));
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}

.creator-card:hover .card-image img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: -webkit-linear-gradient(315deg, var(--success), #059669);
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    z-index: 2;
    -webkit-animation: pulse 2s ease-in-out infinite;
    animation: pulse 2s ease-in-out infinite;
}

@-webkit-keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.creator-card:hover .card-overlay {
    opacity: 1;
}

.access-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
}

.creator-card:hover .access-btn {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.access-btn:hover {
    background: var(--primary-dark);
}

.access-btn svg {
    width: 18px;
    height: 18px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.access-btn:hover svg {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}

.card-info {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-stat {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
}

.card-stat svg {
    color: var(--text-muted);
}

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    padding-bottom: 100%; /* Firefox compatible */
    background: -webkit-linear-gradient(left, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    -webkit-animation: shimmer 1.5s infinite;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 16px;
}

.skeleton-title,
.skeleton-meta {
    height: 16px;
    background: -webkit-linear-gradient(left, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    -webkit-animation: shimmer 1.5s infinite;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-title {
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-meta {
    width: 50%;
}

@-webkit-keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   ERROR STATE
   ========================================================================== */

.error-state {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.error-state h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
}

.error-state p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}

.retry-btn {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 40px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

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

.footer-logo {
    font-size: 2rem;
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .logo-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .header-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-content {
        gap: 20px;
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .toolbar {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .toolbar-actions {
        width: 100%;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    
    .search-hint {
        display: none;
    }
    
    .creator-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-stats {
        font-size: 0.75rem;
        gap: 10px;
    }
    
    .footer-grid {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 1200px) {
    .creator-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .creator-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .snowflake,
    .gradient-orb {
        display: none;
    }
}

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-elevated: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: rgba(139, 92, 246, 0.2);
    --border-hover: rgba(139, 92, 246, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .bg-effects { opacity: 0.3; }
[data-theme="light"] .gradient-orb { opacity: 0.2; }
[data-theme="light"] .snowflake { color: rgba(139, 92, 246, 0.3); }

body {
    -webkit-transition: background 0.3s ease, color 0.3s ease;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   THEME TOGGLE & FAVORITES BUTTONS
   ========================================================================== */
.theme-toggle-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: var(--text-primary);
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    -webkit-transform: rotate(15deg);
    transform: rotate(15deg);
}
.theme-toggle-btn svg { width: 20px; height: 20px; }

.favorites-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}
.favorites-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}
.favorites-btn svg { width: 18px; height: 18px; color: var(--error); }
.favorites-btn .fav-count {
    background: var(--error);
    color: white;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   AD BANNERS - SIDE BY SIDE
   ========================================================================== */
.ad-banner-header,
.ad-banner-bottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px 20px;
}
.ad-banner-bottom { margin: 30px 0 20px; }

.ad-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.ad-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.ad-wrapper:hover {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    border-color: var(--border-hover);
}
.ad-wrapper a { display: block; line-height: 0; }
.ad-wrapper img { border-radius: var(--radius-sm); }

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Inline ad card */
.ad-card-inline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    grid-column: span 2;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.ad-card-inline:hover { border-color: var(--border-hover); -webkit-transform: scale(1.02); transform: scale(1.02); }
.ad-card-inline a { display: block; line-height: 0; }
.ad-card-inline img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.ad-card-inline .ad-label { margin-top: 10px; }

@media (min-width: 1024px) { .ad-card-inline { grid-column: span 3; } }
@media (min-width: 1200px) { .ad-card-inline { grid-column: span 4; } }
@media (min-width: 1600px) { .ad-card-inline { grid-column: span 5; } }

/* Sidebar sticky ad */
.sidebar-ad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    display: none;
}
.sidebar-ad-container.visible { display: block; -webkit-animation: slideInRight 0.5s ease; animation: slideInRight 0.5s ease; }
.sidebar-ad-container.hidden { display: none; }
@-webkit-keyframes slideInRight { from { -webkit-transform: translateX(100%); transform: translateX(100%); opacity: 0; } to { -webkit-transform: translateX(0); transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.sidebar-ad-sticky {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 15px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.sidebar-ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--text-secondary);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.sidebar-ad-close:hover { background: var(--error); border-color: var(--error); color: white; }
.sidebar-ad-close svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
    .sidebar-ad-container { display: none !important; }
    .ad-row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   FILTER TABS
   ========================================================================== */
.filter-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-family: inherit;
}
.filter-tab:hover { background: var(--bg-card-hover); border-color: var(--border-hover); color: var(--text-primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.filter-tab svg { width: 16px; height: 16px; }
.filter-tab .tab-badge { background: rgba(255, 255, 255, 0.2); padding: 2px 8px; border-radius: 100px; font-size: 0.75rem; }
.filter-tab.active .tab-badge { background: rgba(255, 255, 255, 0.3); }

/* ==========================================================================
   CARD ACTION BUTTONS
   ========================================================================== */
.card-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    z-index: 3;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.creator-card:hover .card-actions { opacity: 1; }

.preview-btn,
.fav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
    color: white;
}
.preview-btn:hover { background: var(--primary); -webkit-transform: scale(1.1); transform: scale(1.1); }
.fav-btn:hover, .fav-btn.active { background: var(--error); -webkit-transform: scale(1.1); transform: scale(1.1); }
.preview-btn svg, .fav-btn svg { width: 18px; height: 18px; }

/* Adjust NEW badge when actions visible */
.creator-card:hover .new-badge { top: 60px; }

/* ==========================================================================
   CLEAR FILTERS BUTTON
   ========================================================================== */
.clear-filters-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.clear-filters-btn:hover { background: var(--error); border-color: var(--error); color: white; }
.clear-filters-btn svg { width: 14px; height: 14px; }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty-state {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.empty-icon { font-size: 4rem; opacity: 0.5; margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--text-primary); }
.empty-state p { margin: 0; color: var(--text-secondary); }

/* ==========================================================================
   PREVIEW MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.modal-overlay.visible { display: -webkit-box; display: -ms-flexbox; display: flex; opacity: 1; }

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-overlay.visible .modal-container { -webkit-transform: scale(1); transform: scale(1); }

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: white;
    z-index: 10;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.modal-close:hover { background: var(--error); -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }

.modal-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow-y: auto;
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: var(--bg-elevated);
}
.modal-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.modal-fav-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: white;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.modal-fav-btn:hover, .modal-fav-btn.active { background: var(--error); -webkit-transform: scale(1.1); transform: scale(1.1); }
.modal-fav-btn svg { width: 24px; height: 24px; }

.modal-info { padding: 24px; }
.modal-title { margin: 0 0 16px; font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.modal-stats { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 24px; margin-bottom: 20px; }
.modal-stat { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; color: var(--text-secondary); }
.modal-stat svg { width: 18px; height: 18px; color: var(--text-muted); }
.modal-stat .view-count { color: var(--primary); font-weight: 600; }

.modal-ad-banner { margin: 20px 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }

.modal-actions { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px; margin-top: 20px; }
.modal-btn {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: none;
}
.modal-btn-primary { background: var(--primary); color: white; }
.modal-btn-primary:hover { background: var(--primary-dark); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.modal-btn-secondary { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); }
.modal-btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.modal-btn svg { width: 18px; height: 18px; }

@media (min-width: 600px) {
    .modal-content { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
    .modal-image-wrapper { width: 50%; padding-bottom: 50%; }
    .modal-info { width: 50%; padding: 30px; }
}

@media (max-width: 599px) {
    .modal-actions { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    -webkit-animation: toastSlideIn 0.3s ease;
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
}
.toast.removing { -webkit-animation: toastSlideOut 0.3s ease forwards; animation: toastSlideOut 0.3s ease forwards; }
@-webkit-keyframes toastSlideIn { from { -webkit-transform: translateX(100%); transform: translateX(100%); opacity: 0; } to { -webkit-transform: translateX(0); transform: translateX(0); opacity: 1; } }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@-webkit-keyframes toastSlideOut { from { -webkit-transform: translateX(0); transform: translateX(0); opacity: 1; } to { -webkit-transform: translateX(100%); transform: translateX(100%); opacity: 0; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.toast-icon { width: 32px; height: 32px; border-radius: 50%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -ms-flex-negative: 0; flex-shrink: 0; }
.toast-icon svg { width: 18px; height: 18px; }
.toast-success .toast-icon { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.2); color: var(--error); }
.toast-info .toast-icon { background: rgba(139, 92, 246, 0.2); color: var(--primary); }
.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.toast-message { font-size: 0.9rem; color: var(--text-primary); }

@media (max-width: 599px) {
    .toast-container { top: auto; bottom: 20px; right: 10px; left: 10px; }
    .toast { max-width: 100%; }
}

/* Adjust back-to-top when sidebar ad is visible */
.sidebar-ad-container.visible ~ .back-to-top,
body:has(.sidebar-ad-container.visible) .back-to-top { bottom: 150px; }

/* ==========================================================================
   NAKEDLY.AI BANNER AD
   ========================================================================== */
.nakedly-ad {
    padding: 0 !important;
    overflow: hidden;
}

.nakedly-banner {
    display: block;
    width: 300px;
    height: 100px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
    border: 1px solid #333;
}

.nakedly-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://file2.nakedly.ai/public/files/77e3165e5a2997f9b8d386ba71ee6118_75.jpg') center/cover no-repeat;
    opacity: 0.3;
    animation: nakedlyZoom 6s ease-in-out infinite alternate;
    z-index: 1;
}

.nakedly-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.95) 90%);
    z-index: 2;
}

.nakedly-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 15px;
    box-sizing: border-box;
}

.nakedly-title {
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.nakedly-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #ff0055;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    animation: nakedlySlideIn 0.8s 0.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nakedly-btn {
    display: inline-block;
    margin-top: 12px;
    background: #ff0055;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    animation: nakedlySlideIn 0.8s 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275), nakedlyPulse 1.5s infinite alternate;
    box-shadow: 0 0 10px #ff0055;
}

@keyframes nakedlyZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes nakedlySlideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes nakedlyPulse {
    0% { box-shadow: 0 0 5px #ff0055, 0 0 10px #ff0055; background-color: #ff0055; }
    100% { box-shadow: 0 0 20px #ff0055, 0 0 30px #ff0055; background-color: #ff3377; }
}

@media (max-width: 768px) {
    .nakedly-banner {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS - CLEANER UI
   ========================================================================== */
@media (max-width: 480px) {
    /* Simplified Header */
    .site-header {
        padding: 20px 0 15px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .header-tagline {
        display: none; /* Hide tagline on mobile */
    }
    
    /* Compact Header Buttons */
    .header-buttons {
        gap: 8px;
    }
    
    .telegram-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .telegram-btn span {
        display: none; /* Show only icon */
    }
    
    .favorites-btn {
        padding: 8px 12px;
    }
    
    .favorites-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
    }
    
    .sister-badge {
        display: none; /* Hide on small mobile */
    }
    
    /* Compact Stats Bar */
    .stats-bar {
        padding: 10px 0;
    }
    
    .stats-content {
        padding: 12px 15px;
        gap: 0;
        justify-content: space-around;
    }
    
    .stat-item {
        flex: 1;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-timer {
        font-size: 0.6rem;
    }
    
    /* Single Column Cards */
    .creator-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 10px;
    }
    
    /* Larger, Cleaner Cards */
    .creator-card {
        border-radius: 16px;
    }
    
    .card-image {
        aspect-ratio: 4/5;
    }
    
    .card-info {
        padding: 16px;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .card-stats {
        font-size: 0.85rem;
        gap: 16px;
    }
    
    /* Compact Filter Tabs */
    .filter-tabs {
        padding: 12px 10px;
        gap: 6px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .filter-tab svg {
        width: 14px;
        height: 14px;
    }
    
    .filter-tab span:not(.tab-badge) {
        display: none; /* Hide text, show only icons */
    }
    
    .filter-tab .tab-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    /* Compact Toolbar */
    .toolbar {
        padding: 10px;
        gap: 10px;
    }
    
    .search-box-wrapper {
        padding: 10px 14px;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .sort-select {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Hide View Toggle on Mobile */
    .view-toggle {
        display: none;
    }
    
    /* Results Info */
    .results-info {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* Inline Ads - Full Width */
    .ad-card-inline {
        grid-column: span 1 !important;
        padding: 15px;
    }
    
    /* Back to Top - Smaller */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    /* Footer - Compact */
    .site-footer {
        padding: 25px 0 20px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-name {
        font-size: 0.95rem;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .filter-tab {
        padding: 6px 10px;
    }
}

/* ==========================================================================
   UX IMPROVEMENTS - PROFESSIONAL DESIGN
   ========================================================================== */

/* --- SMOOTH SCROLLING & PERFORMANCE --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- BETTER FOCUS STATES FOR ACCESSIBILITY --- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* --- IMPROVED CARD HOVER EFFECTS --- */
.creator-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- BETTER IMAGE LOADING --- */
.card-image img {
    transition: transform 0.5s ease, opacity 0.3s ease;
    will-change: transform;
}

.creator-card:hover .card-image img {
    transform: scale(1.05);
}

/* --- SKELETON LOADING ANIMATION IMPROVEMENT --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-image,
.skeleton-title,
.skeleton-meta {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --- IMPROVED BUTTON INTERACTIONS --- */
.access-btn,
.modal-btn,
.telegram-btn,
.filter-tab,
.retry-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.access-btn::after,
.modal-btn-primary::after,
.telegram-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.access-btn:active::after,
.modal-btn-primary:active::after,
.telegram-btn:active::after {
    width: 300px;
    height: 300px;
}

/* --- IMPROVED SEARCH INPUT --- */
.search-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 0, 175, 240), 0.15);
}

/* --- TOAST IMPROVEMENTS --- */
.toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- MODAL IMPROVEMENTS --- */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- BETTER SPACING & VISUAL HIERARCHY --- */
.site-main {
    min-height: calc(100vh - 200px);
}

/* --- STATS BAR IMPROVEMENTS --- */
.stat-item {
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- FILTER TABS SCROLL INDICATOR --- */
.filter-tabs {
    position: relative;
}

.filter-tabs::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--bg-dark));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-tabs.has-scroll::after {
    opacity: 1;
}

/* --- IMPROVED CARD INFO SECTION --- */
.card-info {
    position: relative;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- FAVORITE BUTTON ANIMATION --- */
.fav-btn.active svg {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- BACK TO TOP BUTTON IMPROVEMENTS --- */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
}

/* --- AD BANNER IMPROVEMENTS --- */
.ad-banner-header,
.ad-banner-bottom {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.ad-banner-header:hover,
.ad-banner-bottom:hover {
    opacity: 1;
}

/* --- EMPTY STATE IMPROVEMENTS --- */
.empty-state {
    animation: fadeIn 0.5s ease;
}

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

/* --- FOOTER LINK HOVER --- */
.footer-link {
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   DESKTOP OPTIMIZATIONS
   ========================================================================== */
@media (min-width: 1024px) {
    /* Larger click targets */
    .creator-card {
        cursor: pointer;
    }
    
    /* Better grid spacing */
    .creator-grid {
        gap: 24px;
    }
    
    /* Hover preview hint */
    .card-overlay {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .creator-card:hover .card-overlay {
        opacity: 1;
    }
    
    /* Smoother card actions */
    .card-actions {
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .creator-card:hover .card-actions {
        transform: translateY(0);
    }
}

/* ==========================================================================
   ENHANCED MOBILE UX
   ========================================================================== */
@media (max-width: 480px) {
    /* Tap-friendly sizes (minimum 44px touch targets) */
    .filter-tab,
    .view-btn,
    .fav-btn,
    .preview-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better thumb reach - important actions at bottom */
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    /* Reduce motion for performance */
    .gradient-orb {
        animation: none;
        opacity: 0.2;
    }
    
    /* Faster transitions on mobile */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Full-width buttons in modal */
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
    
    /* Larger touch areas for card */
    .creator-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Show card actions always on mobile (no hover) */
    .card-actions {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Simpler card hover effect on mobile */
    .creator-card:active {
        transform: scale(0.98);
    }
    
    .creator-card:hover {
        transform: none;
    }
    
    /* Better scroll momentum */
    .filter-tabs,
    .creator-grid {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection on interactive elements */
    button, a, .creator-card {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Hide decorative elements for performance */
    .snowflake {
        display: none;
    }
    
    /* Compact modal on mobile */
    .modal-container {
        max-height: 95vh;
        margin: 10px;
        border-radius: 20px;
    }
    
    .modal-image-wrapper {
        padding-bottom: 60%;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    /* Sticky search on scroll (optional - adds convenience) */
    .toolbar {
        position: sticky;
        top: 0;
        z-index: 50;
        background: var(--bg-dark);
        margin: 0 -10px;
        padding: 12px 10px;
        border-bottom: 1px solid var(--border);
    }
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */
.creator-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.creator-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   PRINT STYLES (for sharing)
   ========================================================================== */
@media print {
    .bg-effects,
    .snow-container,
    .ad-banner-header,
    .ad-banner-bottom,
    .ad-card-inline,
    .sidebar-ad-container,
    .back-to-top,
    .toast-container {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
