* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #07070a;
    --bg-soft: #0e0e14;
    --card: #14141c;
    --card-hover: #1a1a24;
    --border: #23232e;
    --border-glow: #2f2f3f;
    --txt: #f5f5f7;
    --txt-dim: #9a9aa8;
    --txt-mute: #6a6a78;
    --accent: #6c5ce7;
    --accent2: #a855f7;
    --gold: #f5c451;
    --radius: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background-image: radial-gradient(circle at 20% 0%, rgba(108,92,231,0.08), transparent 40%),
                      radial-gradient(circle at 80% 10%, rgba(168,85,247,0.06), transparent 35%);
    background-attachment: fixed;
}

::selection { background: rgba(108,92,231,0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

header {
    padding: 2rem 1rem; text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid #333;
}

header h1 { font-size: 2rem; font-weight: 700; letter-spacing: 2px; }

main { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }

#back-to-albums {
    background: #3a86ff; color: white; border: none; padding: 0.75rem 1.5rem;
    border-radius: 8px; cursor: pointer; font-size: 1rem; margin-bottom: 1.5rem;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent;
}
#back-to-albums:hover { background: #2667cc; }
#gallery-view h2 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }

/* Albums Grid */
#albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.album-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s, border-color 0.35s;
    border: 1px solid var(--border);
}
.album-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,92,231,0.4); border-color: transparent; }

 .album-thumbnail {
     width: 100%; aspect-ratio: 16/9; background: var(--bg-soft);
     display: flex; align-items: center; justify-content: center; overflow: hidden;
     position: relative;
 }
 .album-thumbnail .album-thumb-container {
     width: 100%; height: 100%; position: relative;
 }
 .album-thumbnail .album-thumb-container.skeleton {
     background: linear-gradient(90deg, var(--border) 25%, var(--border-glow) 50%, var(--border) 75%);
     background-size: 800px 100%;
     animation: shimmer 1.5s infinite ease-in-out;
 }
.album-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.album-card:hover .album-thumbnail img { transform: scale(1.06); }
.album-info { padding: 1.25rem; }
.album-info h3 { font-family: 'Sora', sans-serif; font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--txt); letter-spacing: -0.01em; }
.album-info p { color: var(--txt-dim); font-size: 0.85rem; }

/* Images Grid & Watermark */
#images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.image-card {
    background: var(--card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s, border-color 0.25s;
    user-select: none; will-change: transform; contain: layout style paint;
}
.image-card:hover { transform: translateY(-4px); border-color: rgba(108,92,231,0.5); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }

.image-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #0d0d0d; }

.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block;
    user-select: none; -webkit-user-drag: none; pointer-events: auto;
}

.cart-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.25s ease;
    display: flex; align-items: flex-end; justify-content: center; padding: 0.75rem;
    pointer-events: none;
}

.image-wrapper:hover .cart-overlay {
    opacity: 1; pointer-events: auto;
}

/* Mobile: Always show cart button */
@media (max-width: 768px) {
    .cart-overlay {
        opacity: 1; pointer-events: auto;
        background: rgba(0, 0, 0, 0.5);
    }
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white; border: none; padding: 0.75rem 1rem; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
    position: relative;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.6);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.image-wrapper.in-cart .add-to-cart-btn {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* Checkmark animation for added-to-cart */
.add-to-cart-btn.added::after {
    content: '✓';
    position: absolute;
    right: 8px;
    animation: checkmark-pop 0.5s ease-out;
}

@keyframes checkmark-pop {
    0% { opacity: 1; transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(20deg); }
    100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
}

.grid-watermark {
    position: absolute; bottom: 6px; right: 8px;
    color: rgba(255, 255, 255, 0.55); font-weight: 700; font-size: 0.7rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); letter-spacing: 0.05em;
    white-space: nowrap; pointer-events: none;
}

.image-name { padding: 0.75rem; font-size: 0.85rem; color: #ccc; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Loaders & Errors */
.loader { text-align: center; padding: 3rem 1rem; color: #888; }
.spinner {
    width: 40px; height: 40px; border: 4px solid #333; border-top-color: #3a86ff;
    border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: rgba(255, 59, 48, 0.1); border: 1px solid #ff3b30; color: #ff3b30; padding: 1rem; border-radius: 8px; margin: 1rem 0; text-align: center; }
.empty { text-align: center; padding: 3rem 1rem; color: #666; }

/* Search */
.search-container { display: flex; gap: 0.6rem; max-width: 500px; margin: 1rem auto 0; flex-wrap: wrap; }
.search-container input {
    flex: 1; padding: 0.95rem 1.1rem; background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; color: var(--txt); font-size: 1rem; min-width: 200px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-container input::placeholder { color: var(--txt-mute); }
.search-container input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108,92,231,0.18); }
.search-container button {
    padding: 0.95rem 1.4rem; border: none; border-radius: 12px; cursor: pointer; font-weight: 600;
    font-family: inherit; transition: all 0.2s;
}
#search-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; box-shadow: 0 4px 16px rgba(108,92,231,0.35); }
#search-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(108,92,231,0.5); }
#search-btn:disabled { background: var(--border); color: var(--txt-mute); cursor: not-allowed; box-shadow: none; }
#clear-search { background: var(--card); color: var(--txt-dim); border: 1px solid var(--border); }
#clear-search:hover { background: var(--card-hover); color: var(--txt); }
.search-results-info { text-align: center; padding: 1rem; color: var(--txt-dim); font-size: 0.9rem; }

/* Lightbox */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000;
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
#lightbox.active { opacity: 1; }
#lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); }

#lightbox-content {
    position: relative; max-width: 95vw; max-height: 95vh; display: flex;
    flex-direction: column; align-items: center; transform: scale(0.9); transition: transform 0.3s ease;
}
#lightbox.active #lightbox-content { transform: scale(1); }

#lightbox-image-container { position: relative; display: inline-block; max-width: 100%; max-height: 70vh; }
#lightbox-img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; transition: opacity 0.3s ease; }
#lightbox-img.loading-hires { animation: pulse-hires 1.8s ease-in-out infinite; }
@keyframes pulse-hires { 0%, 100% { opacity: 0.72; } 50% { opacity: 0.92; } }
#lightbox-hires-spinner {
    position: absolute; bottom: 12px; right: 12px;
    width: 28px; height: 28px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: rgba(255,255,255,0.9);
    border-radius: 50%; animation: spin 0.7s linear infinite;
    display: none; pointer-events: none; z-index: 10;
}
#lightbox-img.loading-hires ~ #lightbox-hires-spinner { display: block; }

#lightbox-watermark {
    position: absolute; pointer-events: none; z-index: 5;
    max-width: 40%; max-height: 25%;
    transition: opacity 0.5s ease;
}
/* Position: center (default) */
#lightbox-watermark.wm-center { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-20deg); }
#lightbox-watermark.wm-topright { top: 3%; right: 3%; }
#lightbox-watermark.wm-topleft { top: 3%; left: 3%; }
#lightbox-watermark.wm-bottomright { bottom: 3%; right: 3%; }
#lightbox-watermark.wm-bottomleft { bottom: 3%; left: 3%; }

#lightbox-info { text-align: center; margin-top: 1rem; color: #fff; padding: 0 1rem; }
#lightbox-counter { color: #888; font-size: 0.85rem; margin-bottom: 0.25rem; }
#lightbox-name { font-size: 1.1rem; margin-bottom: 0.25rem; font-weight: 600; }
#lightbox-price { color: #ffd700; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
#lightbox-contact { color: #ccc; font-size: 0.85rem; margin-bottom: 1rem; }

.lightbox-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.whatsapp-btn, .order-btn {
    display: inline-block; padding: 0.95rem 1.6rem; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 0.95rem; transition: all 0.25s cubic-bezier(0.22,1,0.36,1); text-align: center; font-family: inherit;
}
.whatsapp-btn { background: #25D366; color: white; box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.whatsapp-btn:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(37,211,102,0.45); }

.order-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white;
    box-shadow: 0 4px 16px rgba(108,92,231,0.4);
}
.order-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(108,92,231,0.6); }

#lightbox-close {
    position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff;
    font-size: 2.5rem; cursor: pointer; z-index: 1001; line-height: 1; padding: 0.5rem;
}
#lightbox-close:hover { color: #ff3b30; }

#lightbox-prev, #lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1);
    border: none; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 0.75rem 0.5rem;
    border-radius: 8px; z-index: 1001; transition: background 0.3s;
}
#lightbox-prev { left: -60px; }
#lightbox-next { right: -60px; }
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(58, 134, 255, 0.3); }

footer { text-align: center; padding: 2rem 1rem; color: #666; border-top: 1px solid #222; margin-top: 3rem; }

/* Mobile */
@media (max-width: 768px) {
    header h1 { font-size: 1.5rem; }
    #images-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
    .image-name { font-size: 0.75rem; padding: 0.5rem; }
    .grid-watermark { font-size: 0.8rem; bottom: 5%; }
    #lightbox-watermark { max-width: 50%; max-height: 20%; }
    #lightbox-prev, #lightbox-next { display: none; }
    .lightbox-buttons { flex-direction: column; width: 100%; }
    .whatsapp-btn, .order-btn { width: 100%; padding: 1rem; }
    .search-container { flex-direction: column; }
}
/* ===== NEW HOMEPAGE STYLES ===== */

/* NAVBAR */
.site-header {
    background: rgba(7,7,10,0.7); backdrop-filter: blur(20px) saturate(180%);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border);
}
.navbar {
    max-width: 1400px; margin: 0 auto; padding: 0.4rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 30%, var(--accent2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--txt-dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--txt); }

/* HERO */
.hero {
    position: relative; padding: 6rem 2rem 5rem; text-align: center; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    background-image: url('https://lh3.googleusercontent.com/drive-storage/AJQWtBMRRxb-MP3XTttX6k0VXGkTYMSN2jKxO02uhFKqN_2Vc8CEoUwb4BleW-uRHnSBg0rbZ1G2d9xQIgUVpWS1kB8ECXDVNpEjAszuAkSf2bM8c4CAyA=w1600');
    background-size: cover; background-position: center 30%;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: rgba(5,5,15,0.7);
}
.hero-content { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero-title {
    font-family: 'Sora', sans-serif; font-size: 3.2rem; font-weight: 800;
    margin-bottom: 1rem; line-height: 1.1; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 40%, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.15rem; color: var(--txt-dim); margin-bottom: 2rem; line-height: 1.6; }
.hero-search { max-width: 560px; margin: 0 auto; }
.hero-hint { color: var(--txt-mute); font-size: 0.9rem; margin-top: 1rem; }

/* HOW IT WORKS */
.how-section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-family: 'Sora', sans-serif; text-align: center; font-size: 2.2rem; margin-bottom: 3rem; color: var(--txt); letter-spacing: -0.02em; }
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.step-card {
    background: linear-gradient(160deg, var(--card), var(--bg-soft));
    border-radius: var(--radius); padding: 2.5rem 2rem 2rem; text-align: center;
    border: 1px solid var(--border); position: relative;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s, box-shadow 0.35s;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(108,92,231,0.5); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.step-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 38px; background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; box-shadow: 0 6px 18px rgba(108,92,231,0.5);
}
.step-icon { font-size: 2.8rem; margin: 0.5rem 0 1rem; }
.step-card h3 { font-family: 'Sora', sans-serif; font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--txt); }
.step-card p { color: var(--txt-dim); font-size: 0.95rem; line-height: 1.6; }

/* SITE FOOTER */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 5rem; }
.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-col h3 { font-family: 'Sora', sans-serif; font-size: 1.3rem; margin-bottom: 1rem; background: linear-gradient(135deg, #fff, var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--txt); font-weight: 600; }
.footer-col p { color: var(--txt-dim); font-size: 0.9rem; line-height: 1.7; }
.footer-col a {
    color: var(--txt-dim); text-decoration: none; display: inline-block;
    margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 1.5rem; text-align: center;
    color: var(--txt-mute); font-size: 0.85rem;
}

/* Albums section heading */
#albums { padding-top: 1rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero { padding: 3rem 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
}

/* Album label in search results */
.image-album {
    padding: 0 0.75rem 0.5rem; font-size: 0.75rem; color: #3a86ff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* BULK SELECT BAR */
.bulk-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: #1a1a1a; border: 1px solid #333; border-radius: 10px;
    padding: 1rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.bulk-toggle { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; color: #fff; font-weight: 500; }
.bulk-toggle input { width: 18px; height: 18px; cursor: pointer; }
.bulk-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#bulk-count { color: #3a86ff; font-weight: 600; }
#bulk-total-price { color: #ffd700; font-weight: 700; }

/* Selectable image card */
.image-card.selectable { cursor: pointer; }
.image-card.selected { outline: 3px solid #3a86ff; }
.image-card .select-check {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
    background: rgba(255,255,255,0.9); border-radius: 50%; display: none;
    align-items: center; justify-content: center; font-size: 1rem; z-index: 5;
}
.image-card.select-mode .select-check { display: flex; }
.image-card.selected .select-check { background: #3a86ff; color: #fff; }

@media (max-width: 768px) {
    .bulk-bar { flex-direction: column; align-items: stretch; }
    .bulk-actions { justify-content: space-between; }
}

/* CATEGORY FILTER */
.category-filter {
    display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
    margin-bottom: 2rem; padding: 0 1rem;
}
.category-filter button {
    background: #1a1a1a; color: #ccc; border: 1px solid #333;
    padding: 0.5rem 1.25rem; border-radius: 20px; cursor: pointer;
    font-size: 0.9rem; transition: all 0.2s;
}
.category-filter button:hover { border-color: #3a86ff; color: #fff; }
.category-filter button.active { background: #3a86ff; color: #fff; border-color: #3a86ff; }

/* SEARCH-FIRST HERO IMPROVEMENTS */
.hero-search { max-width: 600px; margin: 1.5rem auto 0; gap: 0.75rem; }
.hero-search input {
    font-size: 1.2rem !important; padding: 1.1rem 1.25rem !important;
    border-width: 2px !important; text-align: center;
}
.hero-search input:focus { box-shadow: 0 0 0 4px rgba(58,134,255,0.25); }
.hero-search #search-btn {
    font-size: 1.1rem !important; padding: 1.1rem 1.5rem !important;
    white-space: nowrap; box-shadow: 0 4px 15px rgba(58,134,255,0.4);
}
.hero-clear {
    background: none; border: 1px solid #555; color: #ccc;
    padding: 0.5rem 1.25rem; border-radius: 20px; cursor: pointer;
    margin-top: 1rem; font-size: 0.85rem; transition: all 0.2s;
}
.hero-clear:hover { border-color: #ff3b30; color: #ff3b30; }

@media (max-width: 768px) {
    .hero-search { flex-direction: column; }
    .hero-search input, .hero-search #search-btn { width: 100%; }
}

/* RICHER ALBUM CARDS */
.album-thumbnail .album-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    background: #3a86ff; color: #fff; padding: 0.25rem 0.75rem;
    border-radius: 14px; font-size: 0.75rem; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.album-thumbnail .album-photo-count {
    position: absolute; bottom: 10px; right: 10px; z-index: 3;
    background: rgba(0,0,0,0.7); color: #fff; padding: 0.25rem 0.65rem;
    border-radius: 14px; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(4px);
}
.album-location { color: #aaa; font-size: 0.85rem; margin: 0.15rem 0; }
.album-date { color: #888; font-size: 0.8rem; margin: 0.15rem 0; }
.album-cta {
    display: inline-block; margin-top: 0.5rem; color: #3a86ff;
    font-weight: 600; font-size: 0.9rem; transition: transform 0.2s;
}
.album-card:hover .album-cta { transform: translateX(4px); }

/* ── POLISH PASS (palette consistency + legibility + entrance) ── */
/* Align off-palette colors to design tokens */
.album-cta { color: var(--accent2); }
.album-card:hover .album-cta { color: var(--accent); }
.album-location { color: var(--txt-dim); }
.album-date { color: var(--txt-mute); }

/* Scrim behind overlay chips so badge + count stay legible on bright photos */
.album-thumbnail::after {
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(7,7,10,0.35) 0%, transparent 22%, transparent 68%, rgba(7,7,10,0.45) 100%);
    opacity: 0; transition: opacity 0.35s;
}
.album-card:hover .album-thumbnail::after { opacity: 1; }

/* Crisper chips */
.album-thumbnail .album-badge {
    letter-spacing: 0.01em; box-shadow: 0 2px 10px rgba(0,0,0,0.4); backdrop-filter: blur(8px);
}

/* Staggered entrance — cards fade up on first paint */
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.album-card { animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.album-card:nth-child(1) { animation-delay: 0.02s; }
.album-card:nth-child(2) { animation-delay: 0.06s; }
.album-card:nth-child(3) { animation-delay: 0.10s; }
.album-card:nth-child(4) { animation-delay: 0.14s; }
.album-card:nth-child(5) { animation-delay: 0.18s; }
.album-card:nth-child(6) { animation-delay: 0.22s; }
.album-card:nth-child(n+7) { animation-delay: 0.26s; }
@media (prefers-reduced-motion: reduce) { .album-card { animation: none; } }

/* HELPFUL EMPTY SEARCH STATE */
.empty-search {
    grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem;
    max-width: 480px; margin: 0 auto;
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.6; }
.empty-search h3 { font-size: 1.3rem; color: #fff; margin-bottom: 0.5rem; }
.empty-search p { color: #aaa; margin-bottom: 1rem; }
.empty-tips {
    list-style: none; text-align: left; display: inline-block;
    background: #1a1a1a; border: 1px solid #333; border-radius: 12px;
    padding: 1.25rem 1.5rem; margin: 0 auto;
}
.empty-tips li { color: #ccc; padding: 0.4rem 0; font-size: 0.9rem; }

/* SEARCH RESULTS "FOUND" FEELING */
.search-results-info.found {
    background: linear-gradient(135deg, rgba(58,134,255,0.15), rgba(37,211,102,0.15));
    border: 1px solid rgba(58,134,255,0.4); border-radius: 12px;
    padding: 1.25rem; color: #fff; font-size: 1rem; margin-bottom: 1.5rem;
    grid-column: 1 / -1; text-align: center;
}
.search-results-info.found strong { color: #4ade80; font-size: 1.15rem; }

/* LIGHTBOX NEARBY IMAGES STRIP */
.lightbox-strip {
    display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 1rem;
    padding: 0.5rem; max-width: 90vw; scrollbar-width: thin;
}
.lightbox-strip::-webkit-scrollbar { height: 6px; }
.lightbox-strip::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.strip-thumb {
    width: 60px; height: 60px; border-radius: 6px; object-fit: cover;
    cursor: pointer; flex-shrink: 0; opacity: 0.6; transition: all 0.2s;
    border: 2px solid transparent;
}
.strip-thumb:hover { opacity: 1; }
.strip-thumb.active { opacity: 1; border-color: #3a86ff; }

/* FACE SCAN BUTTON & DIVIDER */
.hero-divider { display: flex; align-items: center; gap: 1rem; max-width: 400px; margin: 1.5rem auto; color: var(--txt-mute); }
.hero-divider::before, .hero-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.hero-divider span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; }
.face-scan-btn {
    background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; border: none;
    padding: 1rem 2rem; border-radius: 14px; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 20px rgba(139,92,246,0.4); transition: all 0.3s;
    max-width: 400px; width: 100%;
}
.face-scan-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(139,92,246,0.6); }

/* FACE MODAL */
.face-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.face-modal-box {
    background: #1a1a1a; border: 1px solid #333; border-radius: 16px;
    padding: 2rem; max-width: 460px; width: 100%; text-align: center; position: relative;
}
.face-modal-box h2 { color: #fff; margin-bottom: 0.5rem; }
.face-modal-desc { color: #aaa; font-size: 0.9rem; margin-bottom: 1.5rem; }
.face-modal-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    color: #888; font-size: 1.5rem; cursor: pointer;
}
.face-modal-close:hover { color: #fff; }
.face-upload-btn {
    display: inline-block; background: #3a86ff; color: #fff; padding: 1rem 2rem;
    border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 1rem;
}
.face-upload-btn:hover { background: #2667cc; }
.face-btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.face-selfie-btn { background: #2a2a3a; }
.face-selfie-btn:hover { background: #3a3a4a; }
#face-preview { max-width: 200px; max-height: 200px; border-radius: 12px; margin: 1rem auto; display: block; object-fit: cover; }
#face-preview-wrap { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
#face-preview-wrap .order-btn, #face-preview-wrap .btn-secondary { width: 100%; max-width: 250px; }
.face-step .spinner { margin: 1rem auto; }
.face-error { color: #ff6b6b; font-size: 0.9rem; margin-top: 1rem; }

/* FACE MATCH CONFIDENCE BADGE */
.match-badge {
    position: absolute; top: 8px; left: 8px; z-index: 4;
    background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff;
    padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.72rem;
    font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* SMART POLISH - fade-in & skeleton */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.image-card { animation: fadeInUp 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.album-card { animation: fadeInUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }

.image-wrapper img { opacity: 0; transition: opacity 0.5s ease; }
.image-wrapper img.loaded, .image-wrapper img[src] { opacity: 1; }

/* shimmer skeleton */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.album-thumbnail .loader, .skeleton {
    background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
    background-size: 800px 100%; animation: shimmer 1.4s infinite;
}

/* spinner premium */
.spinner { border-color: var(--border) !important; border-top-color: var(--accent) !important; }

/* smooth scroll */
html { scroll-behavior: smooth; }

/* premium glow on hero search focus */
.hero-search input:focus { box-shadow: 0 0 0 4px rgba(108,92,231,0.25), 0 8px 30px rgba(108,92,231,0.2); }

/* badge refinements */
.album-badge { background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; }
.match-badge { background: linear-gradient(135deg, var(--accent2), var(--accent)) !important; }
.album-photo-count { backdrop-filter: blur(8px); background: rgba(7,7,10,0.6) !important; }

/* ALBUM FACE SCAN BUTTON */
.album-face-btn {
    background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; border: none;
    padding: 0.7rem 1.3rem; border-radius: 12px; font-size: 0.92rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 4px 14px rgba(108,92,231,0.35); white-space: nowrap;
}
.album-face-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,92,231,0.55); }

/* HERO TRUST STATS */
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
    margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num {
    font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.8rem; color: var(--txt-mute); margin-top: 0.2rem; letter-spacing: 0.03em; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--border); }
.hero-social-proof { margin-top: 2rem; color: rgba(255,255,255,0.55); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }

/* TRUST STRIP */
.trust-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    max-width: 1200px; margin: 0 auto; padding: 2rem;
}
.trust-item {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
    background: linear-gradient(160deg, var(--card), rgba(108,92,231,0.04));
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.trust-item:hover { border-color: rgba(108,92,231,0.4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(108,92,231,0.12); }
.trust-icon { font-size: 1.8rem; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--txt); margin-bottom: 0.15rem; }
.trust-item span { font-size: 0.82rem; color: var(--txt-dim); }

@media (max-width: 1024px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .trust-strip { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stats { gap: 1rem; }
}

/* ALBUMS SECTION HEADER */
.albums-header { text-align: center; margin: 1rem 0 2rem; }
.albums-header h2 {
    font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 40%, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.albums-header p { color: var(--txt-dim); font-size: 1rem; }

/* ===== MOBILE POLISH (comprehensive) ===== */
@media (max-width: 600px) {
    /* Navbar */
    .navbar { padding: 0.9rem 1rem; }
    .nav-brand { font-size: 1.2rem; }

    /* Hero - tighter, punchier */
    .hero { padding: 3rem 1.2rem 2.5rem; }
    .hero-title { font-size: 2rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-search { gap: 0.6rem; }
    .hero-search input { font-size: 1.05rem !important; padding: 1rem !important; }
    .hero-search #search-btn { font-size: 1.05rem !important; padding: 1rem !important; }

    /* Bigger touch targets */
    .face-scan-btn { padding: 1rem 1.5rem; font-size: 1rem; width: 100%; }
    .hero-divider { max-width: 100%; }

    /* Hero stats - compact row */
    .hero-stats { gap: 0.75rem; margin-top: 2rem; }
    .hero-stat-num { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.72rem; }
    .hero-stat-divider { height: 28px; }

    /* Main padding */
    main { padding: 1rem; }

    /* Albums header */
    .albums-header h2 { font-size: 1.5rem; }
    .albums-header p { font-size: 0.9rem; }

    /* Albums - single column, bigger tap area */
    #albums { grid-template-columns: 1fr; gap: 1rem; }
    .album-info { padding: 1rem; }
    .album-info h3 { font-size: 1.1rem; }

    /* Image grid - 2 columns on phone */
    #images-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .image-name { font-size: 0.75rem; padding: 0.5rem; }

    /* Category filter - scrollable row */
    .category-filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 0.5rem 0.5rem; -webkit-overflow-scrolling: touch; }
    .category-filter button { flex-shrink: 0; }

    /* Section title */
    .section-title { font-size: 1.6rem; margin-bottom: 2rem; }

    /* Steps - tighter */
    .how-section { padding: 3rem 1rem; }
    .step-card { padding: 2rem 1.5rem 1.5rem; }

    /* Lightbox - fullscreen friendly */
    #lightbox-content { max-width: 100vw; max-height: 100vh; padding: 0 0.5rem; }
    #lightbox-img { max-height: 60vh; }
    #lightbox-close { top: -42px; right: 8px; font-size: 2.2rem; }
    .lightbox-buttons { flex-direction: column; width: 100%; gap: 0.6rem; }
    .whatsapp-btn, .order-btn { width: 100%; padding: 1rem; }
    #lightbox-name { font-size: 1rem; }
    #lightbox-strip { gap: 0.4rem; }
    .strip-thumb { width: 50px; height: 50px; }

    /* Bulk bar - stack */
    .bulk-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.9rem; }
    .album-face-btn { width: 100%; }
    .bulk-actions { justify-content: space-between; flex-wrap: wrap; }

    /* Face modal */
    .face-modal-box { padding: 1.5rem; }
    .face-modal-box h2 { font-size: 1.3rem; }
    #face-preview { max-width: 160px; max-height: 160px; }

    /* Footer - stack center */
    .footer-content { padding: 2.5rem 1.5rem; gap: 1.5rem; text-align: center; }

    /* Search results found banner */
    .search-results-info.found { font-size: 0.9rem; padding: 1rem; }
}

/* Extra small phones */
@media (max-width: 380px) {
    .hero-title { font-size: 1.7rem; }
    #images-grid { gap: 0.4rem; }
    .hero-stat-num { font-size: 1.2rem; }
    .hero-stats { gap: 0.5rem; }
}

/* Touch devices - remove hover lift (avoid sticky hover) */
@media (hover: none) {
    .album-card:active { transform: scale(0.98); }
    .image-card:active { transform: scale(0.97); }
    .album-card:hover, .image-card:hover { transform: none; }
}

/* COMPACT HERO (event-focused) */
.hero-compact { padding: 2rem 2rem 1.5rem; }
.hero-compact .hero-title { font-size: 2.1rem; margin-bottom: 0.5rem; }
.hero-compact .hero-subtitle { font-size: 1rem; margin-bottom: 1.2rem; }
.hero-compact .hero-search { max-width: 460px; }
.hero-compact .hero-search input { font-size: 1rem !important; padding: 0.85rem 1rem !important; }
.hero-compact .hero-search #search-btn { font-size: 1rem !important; padding: 0.85rem 1.3rem !important; }

/* Face scan as subtle link (not big button) */
.face-scan-link {
    background: none; border: none; color: var(--accent2); cursor: pointer;
    font-family: inherit; font-size: 0.95rem; font-weight: 600; margin-top: 1rem;
    padding: 0.5rem; transition: color 0.2s; text-decoration: underline; text-underline-offset: 3px;
}
.face-scan-link:hover { color: #c4b5fd; }

/* Face scan as PRIMARY CTA (bib search removed — face scan is now the main way to find photos) */
.hero-face-cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 560px; margin: 1.5rem auto 0; }
.face-scan-primary {
    width: 100%; max-width: 440px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; border: none; border-radius: 16px; cursor: pointer;
    font-family: inherit; font-size: 1.25rem; font-weight: 700;
    padding: 1.25rem 1.5rem; letter-spacing: 0.01em;
    box-shadow: 0 6px 24px rgba(108,92,231,0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}
.face-scan-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(108,92,231,0.55); }
.face-scan-primary:active { transform: translateY(0); }
/* Gentle attention pulse on the primary CTA (the main action) */
@keyframes ctaPulse { 0%,100% { box-shadow: 0 6px 24px rgba(108,92,231,0.45); } 50% { box-shadow: 0 6px 30px rgba(108,92,231,0.7); } }
.face-scan-primary { animation: ctaPulse 2.8s ease-in-out infinite; }
.face-scan-primary:hover { animation: none; }
@media (prefers-reduced-motion: reduce) { .face-scan-primary { animation: none; } }

/* Browse Events Button - Secondary CTA */
.browse-events-btn {
    width: 100%; max-width: 440px;
    background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(168, 85, 247, 0.4);
    color: #fff; border-radius: 16px; cursor: pointer;
    font-family: inherit; font-size: 1.1rem; font-weight: 600;
    padding: 1rem 1.5rem; letter-spacing: 0.01em;
    transition: all 0.2s;
}
.browse-events-btn:hover {
    background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168,85,247,0.3);
}
.browse-events-btn:active { transform: translateY(0); }

.face-scan-hint { color: var(--txt-mute); font-size: 0.9rem; margin: 0; line-height: 1.5; max-width: 420px; }

/* Tighter stats */
.hero-compact .hero-stats { margin-top: 1.75rem; }

@media (max-width: 600px) {
    .hero-compact { padding: 2.5rem 1.2rem 2rem; }
    .hero-compact .hero-title { font-size: 1.9rem; }
}

/* FAQ SECTION */
.faq-section { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(108,92,231,0.4); }
.faq-item summary {
    padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 1rem;
    color: var(--txt); list-style: none; display: flex; justify-content: space-between;
    align-items: center; gap: 1rem; transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.5rem; color: var(--accent2); flex-shrink: 0;
    transition: transform 0.25s; font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent2); }
.faq-item p {
    padding: 0 1.5rem 1.25rem; color: var(--txt-dim); font-size: 0.95rem; line-height: 1.65;
}

@media (max-width: 600px) {
    .faq-section { padding: 3rem 1rem; }
    .faq-item summary { font-size: 0.92rem; padding: 1rem 1.2rem; }
}

/* PRICING SECTION */
.pricing-section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.pricing-subtitle { color: var(--txt-dim); margin-bottom: 3rem; font-size: 1.05rem; }
.pricing-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.pricing-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem 1.5rem; position: relative; transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(108,92,231,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.pricing-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(108,92,231,0.3); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    padding: 0.2rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    white-space: nowrap;
}
.pricing-qty { font-family: 'Sora', sans-serif; font-size: 1.1rem; color: var(--txt-dim); margin-bottom: 0.5rem; }
.pricing-price {
    font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}
.pricing-price span { font-size: 1rem; -webkit-text-fill-color: var(--txt-dim); }
.pricing-note { color: var(--txt-mute); font-size: 0.85rem; margin-bottom: 1.5rem; min-height: 1.5rem; }
.pricing-cta {
    display: block; width: 100%; padding: 0.875rem; border: none; border-radius: 10px;
    font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.25s;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    box-shadow: 0 4px 14px rgba(108,92,231,0.35); text-decoration: none; text-align: center;
}
.pricing-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,92,231,0.5); }
.pricing-cta.outline {
    background: none; border: 1px solid var(--border); color: var(--txt-dim); box-shadow: none;
}
.pricing-cta.outline:hover { border-color: var(--accent); color: var(--accent2); box-shadow: none; }
.pricing-saving { color: #4ade80; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; }

@media (max-width: 1024px) {
    .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pricing-section { padding: 3rem 1rem; }
    .pricing-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .pricing-price { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════
   THEME: Light Mode
   ═══════════════════════════════════════════════ */
[data-theme="light"] {
    --bg: #f8f9fc;
    --bg-soft: #eef0f6;
    --card: #ffffff;
    --card-hover: #f0f2f8;
    --border: #e0e2ea;
    --border-glow: #d0d2e0;
    --txt: #1a1a2e;
    --txt-dim: #5a5a72;
    --txt-mute: #8a8a9a;
    --accent: #6c5ce7;
    --accent2: #8b5cf6;
    --gold: #d4a017;
}
[data-theme="light"] body {
    background-image: radial-gradient(circle at 20% 0%, rgba(108,92,231,0.04), transparent 40%),
                      radial-gradient(circle at 80% 10%, rgba(168,85,247,0.03), transparent 35%);
}
[data-theme="light"] .image-card,
[data-theme="light"] .album-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
[data-theme="light"] .image-card:hover,
[data-theme="light"] .album-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.10); }

/* Theme Toggle Button */
.theme-toggle {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border);
    color: var(--txt); font-size: 1.3rem; cursor: pointer;
    z-index: 999; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.theme-toggle:hover { transform: scale(1.1); background: var(--card-hover); }

/* ═══════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════ */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--border-glow) 50%, var(--border) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: var(--radius);
}
.image-card.loading .image-wrapper {
    background: var(--card);
    position: relative; overflow: hidden;
}
.image-card.loading .image-wrapper::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(90deg, var(--border) 25%, var(--border-glow) 50%, var(--border) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}
.image-card.loading img { filter: blur(8px) saturate(0.3); }

/* ═══════════════════════════════════════════════
   BADGE "BARU" UNTUK ALBUM TERKINI (7 hari)
   ═══════════════════════════════════════════════ */
.album-badge-new {
    position: absolute; top: 10px; right: 10px; z-index: 4;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; padding: 0.3rem 0.75rem;
    border-radius: 99px; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.03em; text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(16,185,129,0.35);
    animation: badgePulse 2s infinite ease-in-out;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(16,185,129,0.35); }
    50% { box-shadow: 0 2px 20px rgba(16,185,129,0.55); }
}

/* ═══════════════════════════════════════════════
   SCROLL-TO-TOP FAB
   ═══════════════════════════════════════════════ */
#scroll-top-btn {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 1000;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(20,20,28,0.9); border: 1px solid var(--border);
    color: var(--txt-dim); font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
#scroll-top-btn:hover {
    color: #fff; transform: translateY(-3px);
    border-color: rgba(108,92,231,0.5);
    box-shadow: 0 8px 24px rgba(108,92,231,0.2);
}
#scroll-top-btn.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* ═══════════════════════════════════════════════
   SKELETON ALBUM CARD (loading placeholder)
   ═══════════════════════════════════════════════ */
.skeleton-album-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
}
.skeleton-album-card .skel-thumb {
    aspect-ratio: 16/9; background: linear-gradient(90deg, var(--border) 25%, var(--border-glow) 50%, var(--border) 75%);
    background-size: 800px 100%; animation: shimmer 1.5s infinite ease-in-out;
}
.skeleton-album-card .skel-body { padding: 1.25rem; }
.skeleton-album-card .skel-line {
    height: 14px; border-radius: 6px; margin-bottom: 0.65rem;
    background: linear-gradient(90deg, var(--border) 25%, var(--border-glow) 50%, var(--border) 75%);
    background-size: 800px 100%; animation: shimmer 1.5s infinite ease-in-out;
}
.skeleton-album-card .skel-line:first-child { width: 70%; height: 18px; }
/* ═══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════ */
#whatsapp-float {
    position: fixed; bottom: 6rem; right: 2rem; z-index: 999;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25D366; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
#whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.image-card.loading img.blur-loaded,
.image-card:not(.loading) img { filter: none; }

/* ═══════════════════════════════════════════════
   BLUR-UP IMAGE LOADING
   ═══════════════════════════════════════════════ */
.image-card img {
    transition: filter 0.5s ease, opacity 0.5s ease;
}
.image-card img.blur-loading {
    filter: blur(10px) saturate(0.5);
    opacity: 0.6;
}
.image-card img.blur-loaded {
    filter: blur(0) saturate(1);
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX ZOOM
   ═══════════════════════════════════════════════ */
.lightbox-img-wrapper {
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    cursor: zoom-in; transition: cursor 0.2s;
}
.lightbox-img-wrapper.zoomed { cursor: zoom-out; overflow: auto; }
.lightbox-img-wrapper.zoomed #lightbox-img {
    transform: scale(2.5); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.zoom-indicator {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.7); color: #fff; padding: 6px 14px;
    border-radius: 20px; font-size: 0.75rem; pointer-events: none; opacity: 0;
    transition: opacity 0.3s;
}
.lightbox-img-wrapper.zoomed .zoom-indicator { opacity: 1; }

/* ═══════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════ */
.mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 8px 16px; z-index: 998;
    justify-content: space-around; align-items: center;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mobile-nav button {
    background: none; border: none; color: var(--txt-dim);
    font-size: 0.7rem; display: flex; flex-direction: column;
    align-items: center; gap: 4px; cursor: pointer; padding: 6px 12px;
    border-radius: 12px; transition: all 0.2s;
}
.mobile-nav button.active { color: var(--accent); background: rgba(108,92,231,0.1); }
.mobile-nav button .nav-icon { font-size: 1.3rem; }
@media (max-width: 768px) {
    .mobile-nav { display: flex; }
    body { padding-bottom: 80px; }
    .theme-toggle { bottom: 90px; }
    .site-header .nav-links { display: none; }
}

/* ═══════════════════════════════════════════════
   SHARE BUTTON
   ═══════════════════════════════════════════════ */
.share-btn {
    background: var(--card); border: 1px solid var(--border);
    color: var(--txt-dim); font-size: 1rem; padding: 8px 16px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.share-btn:hover { background: var(--card-hover); color: var(--txt); border-color: var(--border-glow); }
.share-btn.copied { color: #22c55e; border-color: #22c55e; }

/* ═══════════════════════════════════════════════
   FAVORITE BUTTON
   ═══════════════════════════════════════════════ */
.fav-btn {
    background: none; border: none; font-size: 1.4rem; cursor: pointer;
    padding: 4px; transition: transform 0.2s; color: var(--txt-mute);
}
.fav-btn:hover { transform: scale(1.2); }
.fav-btn.favorited { color: #ef4444; }
.fav-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: rgba(0,0,0,0.6); border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════
   SORT/FILTER BAR
   ═══════════════════════════════════════════════ */
.gallery-toolbar {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-bottom: 1rem; padding: 8px 0;
}
.gallery-toolbar select {
    background: var(--card); color: var(--txt); border: 1px solid var(--border);
    padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; cursor: pointer;
}
.sort-count { color: var(--txt-dim); font-size: 0.85rem; margin-left: auto; }

/* ═══════════════════════════════════════════════
    SHARE BUTTON
    ═══════════════════════════════════════════════ */
#toast-msg {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; padding: 12px 24px;
    border-radius: 12px; z-index: 9999; font-size: 0.9rem;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 30px rgba(108,92,231,0.3);
    pointer-events: none;
}
#toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast-msg:not(.show) { opacity: 0; transform: translateX(-50%) translateY(10px); }

/* ═══════════════════════════════════════════════
   SLIDESHOW INDICATOR
   ═══════════════════════════════════════════════ */
.slideshow-toggle {
    background: var(--card); border: 1px solid var(--border);
    color: var(--txt-dim); font-size: 0.85rem; padding: 6px 12px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.slideshow-toggle.active { color: #22c55e; border-color: #22c55e; }
.slideshow-progress {
    position: absolute; bottom: 0; left: 0; height: 3px;
    background: var(--accent); transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════
   PAGINATION CONTROLS
   ═══════════════════════════════════════════════ */
.pagination-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--txt);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}
.pagination-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--card);
    color: var(--txt-dim);
}
.page-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--txt);
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
}
.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: bold;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#pagination-info {
    margin-bottom: 15px;
    color: var(--txt-dim);
    font-size: 0.9rem;
}
