* { margin: 0; padding: 0; box-sizing: border-box; }

/* :root color tokens now live in one place — see "SPORTS PHOTOGRAPHY HOMEPAGE"
   :root further down, which is the one that actually wins the cascade. Two
   earlier full re-declarations of the same custom properties (an older purple
   theme, then a cyan/lime one) used to sit above it, fully shadowed. --gold
   was the one variable only the first of those defined, so its value was
   carried into the surviving :root before removing this one. */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Arial, 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; }

#gallery-view {
    padding-top: 0.25rem;
}

#back-to-albums {
    background: rgba(255,255,255,0.08); color: var(--txt); border: 1px solid rgba(255,255,255,0.12); padding: 0.7rem 1.05rem;
    border-radius: 999px; cursor: pointer; font-size: 0.95rem; margin-bottom: 1.1rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    -webkit-tap-highlight-color: transparent;
}
#back-to-albums:hover { background: rgba(108,92,231,0.18); border-color: rgba(108,92,231,0.45); transform: translateY(-1px); }

.album-page-heading {
    max-width: 980px;
    margin: 0 auto 1.4rem;
    text-align: center;
    transition: margin 0.25s ease, min-height 0.25s ease;
}

.album-kicker {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

#gallery-view h2 {
    max-width: 920px;
    margin: 0 auto 0.9rem;
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    line-height: 1.05;
    text-align: center;
    color: #fff;
    text-wrap: balance;
}

.album-meta {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.album-meta:empty { display: none; }

.album-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.07);
    color: var(--txt-dim);
    font-size: 0.86rem;
    font-weight: 600;
}

.album-photographers {
    display:flex; justify-content:center; align-items:center; gap:.5rem; flex-wrap:wrap;
    margin-top:.75rem;
}
.album-photographers:empty { display:none; }
.album-photographers-label { color:var(--txt-mute); font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }

/* Free download banner — muncul bila photographer/admin tandakan album free
   atau paid-with-preview. Pakai warna hijau untuk free penuh, biru untuk preview. */
.free-album-banner {
    margin: 1rem auto 0;
    padding: .8rem 1.1rem;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.4;
    max-width: 720px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.free-album-banner.free-mode-free {
    background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(5,150,105,.12));
    border: 1px solid rgba(16,185,129,.45);
    color: #6ee7b7;
}
.free-album-banner.free-mode-preview {
    background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(37,99,235,.10));
    border: 1px solid rgba(59,130,246,.42);
    color: #93c5fd;
}
.free-album-banner strong { color: #fff; margin-right: .25rem; }

/* Free download button (lightbox) — green CTA supaya nampak lain dari pay button */
.free-btn { font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 16px rgba(16,185,129,.35); }
.free-btn:hover { background: linear-gradient(135deg, #059669, #047857) !important; }
.free-btn:active { transform: translateY(1px); }
.album-photographer-chip {
    display:inline-flex; align-items:center; gap:.45rem; min-height:34px; padding:.3rem .65rem .3rem .35rem;
    border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(15,18,25,.78);
    color:#fff; backdrop-filter:blur(12px); box-shadow:0 5px 18px rgba(0,0,0,.16);
}
.album-photographer-chip i { width:25px; height:25px; border-radius:50%; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#6c5ce7,#22c55e); color:#fff; font-style:normal; font-size:.63rem; font-weight:900; }
.album-photographer-chip i img { width:100%; height:100%; object-fit:cover; }
.album-photographer-chip b { font-size:.76rem; }
.album-photographer-chip small { color:#aeb8b5; font-size:.64rem; }

.gallery-cover-hero {
    display: none;
    position: relative;
    width: 100%;
    max-width: 1180px;
    aspect-ratio: 16 / 8.2;
    margin: 0 auto 1.45rem;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.11);
    background: #101018;
    box-shadow: 0 26px 70px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.gallery-cover-hero.is-visible { display: block; }

.gallery-cover-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
}

.gallery-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,7,10,0.82) 0%, rgba(7,7,10,0.52) 36%, rgba(7,7,10,0.12) 72%),
        linear-gradient(to top, rgba(7,7,10,0.88), rgba(7,7,10,0.08) 60%, rgba(7,7,10,0.24));
    pointer-events: none;
}

.gallery-cover-hero.is-visible {
    margin-bottom: 0;
}

.gallery-cover-hero.is-visible + .album-page-heading {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: clamp(9.5rem, 17vw, 13.5rem);
    margin: clamp(-19rem, -21vw, -12.4rem) auto 1.65rem;
    padding: clamp(1.4rem, 3.2vw, 2.55rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    pointer-events: none;
}

.gallery-cover-hero.is-visible + .album-page-heading .album-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    margin-bottom: 0.7rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(245,196,81,0.34);
    border-radius: 999px;
    background: rgba(7,7,10,0.42);
    color: #ffe08a;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gallery-cover-hero.is-visible + .album-page-heading #album-title {
    max-width: min(980px, 92%);
    margin: 0 0 0.9rem;
    text-align: left;
    font-size: clamp(2.45rem, 5.5vw, 5.15rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 4px 26px rgba(0,0,0,0.62);
}

#gallery-view.album-title-long .gallery-cover-hero.is-visible + .album-page-heading,
#gallery-view.album-title-xlong .gallery-cover-hero.is-visible + .album-page-heading {
    min-height: clamp(12rem, 20vw, 16rem);
    margin: clamp(-22rem, -25vw, -15rem) auto 1.75rem;
}

#gallery-view.album-title-long .gallery-cover-hero.is-visible + .album-page-heading #album-title {
    max-width: min(1040px, 94%);
    font-size: clamp(2.25rem, 4.9vw, 4.6rem);
    line-height: 1;
}

#gallery-view.album-title-xlong .gallery-cover-hero.is-visible + .album-page-heading #album-title {
    max-width: min(1080px, 95%);
    font-size: clamp(2rem, 4.45vw, 4.15rem);
    line-height: 1.02;
    margin-bottom: 0.8rem;
}

.gallery-cover-hero.is-visible + .album-page-heading .album-meta {
    justify-content: flex-start;
}

.gallery-cover-hero.is-visible + .album-page-heading .album-meta span {
    border-color: rgba(255,255,255,0.18);
    background: rgba(8,8,13,0.46);
    color: rgba(255,255,255,0.88);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bulk-bar,
.gallery-toolbar {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    #back-to-albums {
        margin-bottom: 0.9rem;
        padding: 0.62rem 0.9rem;
        font-size: 0.88rem;
    }

    .album-page-heading {
        margin-bottom: 1rem;
        text-align: left;
    }

    .album-kicker,
    #gallery-view h2 {
        text-align: left;
    }

    #gallery-view h2 {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
    }

    .album-meta {
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .album-meta span {
        min-height: 31px;
        font-size: 0.78rem;
        padding: 0.38rem 0.62rem;
    }

    .gallery-cover-hero {
        aspect-ratio: 4 / 3.25;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .gallery-cover-hero.is-visible {
        margin-bottom: 0;
    }

    .gallery-cover-hero.is-visible + .album-page-heading {
        min-height: clamp(10.5rem, 48vw, 14rem);
        margin: clamp(-14.5rem, -58vw, -11.5rem) auto 2.8rem;
        padding: 1.05rem;
    }

    .gallery-cover-hero.is-visible + .album-page-heading .album-kicker {
        min-height: 27px;
        margin-bottom: 0.55rem;
        padding: 0.3rem 0.56rem;
        font-size: 0.66rem;
    }

    .gallery-cover-hero.is-visible + .album-page-heading #album-title {
        max-width: 100%;
        margin-bottom: 0.72rem;
        font-size: clamp(1.9rem, 8.8vw, 3rem);
        line-height: 1.02;
    }

    #gallery-view.album-title-long .gallery-cover-hero.is-visible + .album-page-heading,
    #gallery-view.album-title-xlong .gallery-cover-hero.is-visible + .album-page-heading {
        min-height: clamp(12.25rem, 58vw, 16rem);
        margin: clamp(-16.5rem, -65vw, -12.6rem) auto 2.8rem;
    }

    #gallery-view.album-title-long .gallery-cover-hero.is-visible + .album-page-heading #album-title,
    #gallery-view.album-title-xlong .gallery-cover-hero.is-visible + .album-page-heading #album-title {
        font-size: clamp(1.62rem, 7.5vw, 2.55rem);
        line-height: 1.04;
        margin-bottom: 0.68rem;
    }
}

/* Albums Grid */
#albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* Section dividers (Marathon / Futsal / ...) - full-width grid items that break
   the row so each category's cards stay visually grouped, not mixed together. */
.album-section-heading {
    grid-column: 1 / -1;
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    margin-top: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem; font-weight: 700; color: var(--txt);
    letter-spacing: -0.01em;
}
.album-section-heading:first-child { margin-top: 0; }
.album-section-count { font-size: 0.8rem; font-weight: 500; color: var(--txt-dim); }

.album-card {
    background: rgba(18,18,30,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s, border-color 0.35s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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; }
.album-coverage-line { margin-top:.42rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#b8c8c2 !important; font-size:.75rem !important; }

/* ===== GALLERY IMAGE CARDS — Premium ===== */
#images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.35rem; }

.image-card {
    background: var(--card); border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.3s;
    user-select: none; contain: layout style paint; cursor: pointer;
}
.image-card:hover { 
    transform: translateY(-5px); border-color: rgba(108,92,231,0.45); 
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,92,231,0.15);
}

.image-wrapper { 
    position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #0b0b10; 
}

.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block;
    user-select: none; -webkit-user-drag: none;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease;
}
.image-wrapper img.thumb-loaded { opacity: 1; }
.image-card:hover .image-wrapper img { transform: scale(1.04); }

.image-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.25s ease;
}
.image-card:hover .image-wrapper::after { opacity: 1; }

.photo-credit {
    position:absolute; top:8px; left:8px; z-index:4; display:inline-block;
    max-width:calc(100% - 16px); padding:.15rem .5rem; border-radius:999px;
    background:rgba(8,12,18,.65); color:#fff; font-size:.7rem; font-weight:600; line-height:1.4;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none;
}
/* Hasil face search: label "Padanan kuat" duduk atas kiri, jadi nama turun ke bawahnya. */
.image-wrapper:has(.match-badge) .photo-credit { top:34px; }
.lightbox-photographer { margin:.35rem 0 .7rem; }
.lightbox-photographer .photo-credit { position:static; max-width:100%; background:rgba(255,255,255,.07); box-shadow:none; pointer-events:auto; }
.cart-item-credit { margin-top:3px; color:#91a39d; font-size:.7rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Cart button is visible on every thumbnail for direct purchase. */
.image-cart-actions {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3;
    opacity: 1; transition: opacity 0.25s ease;
    display: flex; align-items: flex-end; justify-content: center; padding: 0.75rem;
    pointer-events: auto;
}

/* Mobile cart — show on tap */
@media (max-width: 768px) {
    #images-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .image-card:hover { transform: none; box-shadow: none; }
    .image-card:hover .image-wrapper img { transform: none; }
    .image-wrapper:active .image-wrapper img { transform: scale(1.02); }
    .album-photographers { justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; padding:0 .1rem .25rem; scrollbar-width:none; }
    .album-photographers::-webkit-scrollbar { display:none; }
    .album-photographers-label,.album-photographer-chip { flex:0 0 auto; }
    .photo-credit { top:7px; left:7px; }
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff; border: none; padding: 0.6rem 1rem; border-radius: 10px;
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
    position: relative; z-index: 4;
}
.add-to-cart-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6); }
.add-to-cart-btn:active { transform: scale(0.97); }

.image-wrapper.in-cart .add-to-cart-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Free-download variant: butang .add-to-cart-btn tukar jadi direct download
   untuk album PERCUMA PENUH. Class ditambah oleh applyFreeFullResCardUI() di
   app.js — padankan warna hijau supaya jelas bezanya dengan cart button. */
.add-to-cart-btn.free-download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}
.add-to-cart-btn.free-download-btn:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.65);
}
.image-wrapper.in-cart .add-to-cart-btn.free-download-btn {
    /* Override in-cart green supaya free-download kekal warna hijau sendiri. */
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Image info line */
.image-name { 
    padding: 0.6rem 0.75rem 0.3rem; font-size: 0.8rem; color: #b0b6c1; text-align: center; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
    font-weight: 500; letter-spacing: 0.01em;
}

/* Album name below image */
.image-album { 
    padding: 0 0.75rem 0.65rem; font-size: 0.72rem; color: var(--txt-mute); text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Fade-in animation */
@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; }

/* 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); }

.find-face-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    box-shadow: 0 4px 16px rgba(0,184,148,0.4);
}
.find-face-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0,184,148,0.55);
}

.cart-add-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;
}

#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; }
    .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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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-color: var(--bg);
    background-image: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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. The animation-name itself
   comes from the later `.album-card { animation: fadeInUp ... }` rule below (it
   wins on source order at equal specificity); these :nth-child rules stay live
   because animation-delay is a separate sub-property with higher specificity here. */
.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: 100%; max-height: 260px; border-radius: 12px; display: block; object-fit: contain; }
#face-preview-wrap { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.face-preview-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.face-boxes { position: absolute; inset: 0; pointer-events: none; }
.face-choice { position: absolute; pointer-events: auto; border: 2px solid #facc15; background: rgba(250,204,21,.12); border-radius: 9px; cursor: pointer; min-width: 28px; min-height: 28px; box-shadow: 0 0 0 2px rgba(0,0,0,.38); }
.face-choice::after { content: attr(data-label); position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); background: #111827; color: #fff; border-radius: 999px; padding: 3px 7px; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.face-choice.selected { border-color: #22c55e; background: rgba(34,197,94,.20); box-shadow: 0 0 0 3px rgba(34,197,94,.30); }
.face-choice.selected::after { content: attr(data-selected-label); background: #15803d; }
.face-detect-status { margin: .25rem 0 0; font-size: .88rem; line-height: 1.45; color: #d1d5db; }
.face-detect-status.success { color: #86efac; }
.face-detect-status.error { color: #fca5a5; }
#face-search-go:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#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);
    pointer-events: none;
}

/* SMART POLISH — album cards animation */
.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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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: rgba(18,18,30,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05); 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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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 - 1 column on phone */
    .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; }
}

/* ALBUM-FIRST HOMEPAGE — runner sees event galleries in the first viewport. */
.hero.hero-compact {
    min-height: 455px;
    padding-top: 6rem;
    padding-bottom: 2rem;
    align-items: center;
}
.hero.hero-compact::after {
    width: min(25vw, 300px);
    bottom: 1.5rem;
    aspect-ratio: 4 / 4.6;
}
.hero-content::before { margin-bottom: .7rem; }
.hero-compact .hero-subtitle,
.hero-subtitle { margin-bottom: .9rem; }
.hero-event-search { margin-bottom: .8rem; }

/* Payment and cart UI live here, not inline in index.html, so the visual
   system stays maintainable and cached with the rest of the homepage. */
.payment-loader,.checkout-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(7,7,10,.68); backdrop-filter:blur(6px); }
.loader-content,.checkout-box { width:100%; max-width:380px; padding:24px; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:#fff; color:#1a1a2e; text-align:center; box-shadow:0 18px 50px rgba(0,0,0,.35); }
.spinner { width:50px; height:50px; margin:0 auto 20px; border:4px solid #f3f4f6; border-top-color:#667eea; border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.cart-fab { position:fixed; right:18px; bottom:24px; z-index:900; display:flex; align-items:center; justify-content:center; gap:8px; min-width:104px; height:50px; padding:0 17px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:linear-gradient(135deg,#7c5cff,#6246e5); color:#fff; cursor:pointer; box-shadow:0 10px 30px rgba(98,70,229,.4); transition:transform .2s ease,box-shadow .2s ease; }
.cart-fab:hover { transform:translateY(-2px); box-shadow:0 14px 34px rgba(98,70,229,.5); }
.cart-fab:focus-visible { outline:3px solid #d9d0ff; outline-offset:3px; }
.cart-fab-icon { font-size:20px; line-height:1; }
.cart-fab-label { font-size:13px; font-weight:800; letter-spacing:.01em; }
.cart-badge { position:absolute; top:-4px; right:-4px; display:flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#ff4757; color:#fff; font-size:12px; font-weight:700; }
.cart-drawer-backdrop { position:fixed; inset:0; z-index:950; pointer-events:none; background:rgba(7,7,10,.68); opacity:0; transition:opacity .25s; backdrop-filter:blur(6px); }.cart-drawer-backdrop.active { pointer-events:auto; opacity:1; }
.cart-drawer { position:fixed; top:0; right:0; bottom:0; z-index:960; display:flex; flex-direction:column; width:430px; max-width:94vw; overflow:hidden; transform:translateX(100%); border-left:1px solid rgba(255,255,255,.08); background:#0f1020; color:#f8fafc; box-shadow:-18px 0 60px rgba(0,0,0,.45); transition:transform .28s ease; }.cart-drawer.active { transform:translateX(0); }
.cart-head { display:flex; align-items:center; justify-content:space-between; padding:18px; border-bottom:1px solid rgba(255,255,255,.09); background:linear-gradient(135deg,rgba(102,126,234,.18),rgba(118,75,162,.12)); }.cart-head h3 { margin:0; font-size:20px; }.cart-count-text,.cart-item-meta { color:#a7adca; font-size:12px; }
.cart-close,.checkout-close,.cart-item-remove { border:0; cursor:pointer; }.cart-close { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); color:#e5e7eb; font-size:20px; }.checkout-close { position:absolute; top:14px; right:16px; background:transparent; color:#777; font-size:20px; }
.cart-items { flex:1; min-height:0; overflow-y:auto; padding:14px; background:linear-gradient(180deg,#111225,#0f1020); }.cart-item { display:grid; grid-template-columns:72px minmax(0,1fr) 36px; gap:12px; align-items:center; padding:10px; margin-bottom:10px; border:1px solid rgba(255,255,255,.08); border-radius:16px; background:rgba(255,255,255,.055); }.cart-item img { width:72px; height:72px; border:1px solid rgba(255,255,255,.12); border-radius:12px; object-fit:cover; }.cart-item-name { overflow:hidden; color:#f8fafc; font-size:14px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.cart-item-remove { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08); color:#fb7185; font-size:18px; }
.cart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:280px; padding:34px 22px; border:1px dashed rgba(255,255,255,.16); border-radius:18px; background:rgba(255,255,255,.035); color:#a7adca; text-align:center; }.cart-foot { padding:16px 18px calc(16px + env(safe-area-inset-bottom,0px)); border-top:1px solid rgba(255,255,255,.09); background:#090a16; }.cart-total-row { display:flex; align-items:center; justify-content:space-between; padding:12px 0 8px; color:#cbd5e1; }.cart-total-row strong { color:#fff; font-size:26px; }.cart-bulk-note { margin:4px 0 12px; padding:8px 10px; border:1px solid rgba(34,197,94,.18); border-radius:10px; color:#86efac; font-size:12px; }
.cart-checkout-btn,.checkout-pay-btn { width:100%; border:0; border-radius:14px; padding:14px; background:linear-gradient(135deg,#22c55e,#16a34a); color:#fff; cursor:pointer; font-size:16px; font-weight:700; }.cart-checkout-btn:disabled { background:#303449; color:#8087a8; cursor:not-allowed; }.cart-clear-btn { width:100%; padding:8px; border:0; border-radius:10px; background:transparent; color:#a7adca; cursor:pointer; }
.checkout-box { position:relative; text-align:left; }.checkout-box h3 { margin:0 0 4px; }.checkout-sub { margin:0 0 16px; color:#777; font-size:13px; }.checkout-box label { display:block; margin:10px 0 4px; font-size:13px; font-weight:600; }.checkout-box input,.promo-row input { width:100%; padding:11px; border:1px solid #ddd; border-radius:8px; font:inherit; }.checkout-error { min-height:18px; margin-top:8px; color:#ff4757; font-size:13px; }.promo-row { display:flex; gap:6px; margin:8px 0; }.promo-row input { flex:1; padding:8px 10px; text-transform:uppercase; }.promo-row button { padding:8px 14px; border:0; border-radius:8px; background:#667eea; color:#fff; cursor:pointer; }.promo-msg { min-height:16px; margin:2px 0 6px; font-size:12px; }.promo-msg.ok,.promo-discount-row { color:#2ecc71; }.promo-msg.err { color:#ff4757; }.promo-discount-row,.cart-subtotal-row { display:flex; align-items:center; justify-content:space-between; font-size:13px; }.cart-subtotal-row { color:#888; text-decoration:line-through; }
.checkout-delivery-note { display:flex; gap:10px; align-items:flex-start; margin:0 0 14px; padding:11px 12px; border:1px solid #b8dfca; border-radius:10px; background:#effaf4; color:#174c32; }
.checkout-delivery-note > span { font-size:18px; line-height:1.2; }
.checkout-delivery-note strong,.checkout-delivery-note small { display:block; }
.checkout-delivery-note strong { font-size:13px; }
.checkout-delivery-note small { margin-top:3px; color:#42715a; font-size:11px; line-height:1.45; }
.loader-content p { margin:0; line-height:1.5; }
.loader-content small { color:#667085; }
.hero-search-hint { margin: -.2rem 0 .7rem; color: rgba(255,255,255,.62); font-size: .78rem; line-height: 1.4; text-align: center; }
.sport-type-row { margin-bottom: .65rem; }
.hero-stats { width: min(560px, 100%); }
.hero-stat { padding: .65rem .85rem; }
.hero-stat-num { font-size: 1.25rem; }
.events-section {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding-top: 1.25rem;
}
.albums-header { display: grid; gap: .25rem; }
.events-kicker {
    color: var(--accent);
    font: 900 .68rem/1 'Inter', sans-serif;
    letter-spacing: .16em;
}
.albums-header p {
    max-width: 620px;
    color: #aebdb8;
    font-size: .92rem;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .hero.hero-compact::after { display: none; }
}

@media (max-width: 768px) {
    .hero.hero-compact {
        min-height: 330px;
        padding: 4.7rem 1rem 1.15rem;
        align-items: center;
        background-position: center, center, 58% center, center;
    }
    .hero-content::before { display: none; }
    .hero-compact .hero-title,
    .hero-title {
        font-size: clamp(2rem, 10.5vw, 3.15rem);
        margin-bottom: .55rem;
    }
    .hero-compact .hero-subtitle,
    .hero-subtitle {
        display: none;
    }
    .sport-type-row,
    .hero-stats { display: none; }
    .hero-event-search { margin: .75rem 0 0; }
    .hero-search-hint { max-width: 310px; margin: .35rem auto 0; font-size: .72rem; }
    .events-section { padding-top: 1rem; }
    .albums-header { margin-bottom: .7rem; }
    .albums-header p { font-size: .82rem; }
    .event-link-row { margin-bottom: .65rem; }
    .category-filter { margin-bottom: .8rem; }
}

/* 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(183,255,66,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;
}

/* SEO CONTENT + INTERNAL LINKS */
.events-section { scroll-margin-top: 90px; }
.event-link-row,
.seo-link-grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 auto 1.25rem;
    padding: 0 1rem;
}
.event-link-row a,
.seo-link-grid a {
    color: var(--txt);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.event-link-row a:hover,
.seo-link-grid a:hover {
    border-color: rgba(108,92,231,0.5);
    background: rgba(108,92,231,0.16);
    transform: translateY(-1px);
}
.popular-events-section,
.seo-content-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.popular-events-section { text-align: center; }
.section-intro {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    color: var(--txt-dim);
    line-height: 1.7;
}
.seo-content-inner {
    background: rgba(18,18,30,0.42);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: clamp(1.25rem, 3vw, 2.4rem);
    box-shadow: 0 16px 44px rgba(0,0,0,0.22);
}
.seo-content-inner h2 {
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.seo-content-inner p {
    color: var(--txt-dim);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 0 1rem;
}

@media (max-width: 600px) {
    .faq-section { padding: 3rem 1rem; }
    .faq-item summary { font-size: 0.92rem; padding: 1rem 1.2rem; }
    .popular-events-section,
    .seo-content-section { padding: 3rem 1rem; }
    .event-link-row,
    .seo-link-grid { justify-content: flex-start; }
}

/* 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: rgba(18,18,30,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius);
    padding: 2rem 1.5rem; position: relative; transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.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: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1.1rem; color: var(--txt-dim); margin-bottom: 0.5rem; }
.pricing-price {
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, 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;
}
/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS (2026 glassmorphism era)
   ═══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════════════════════════════════
   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; left: 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.thumb-loaded,
.image-card:not(.loading) img { filter: none; }

/* ═══════════════════════════════════════════════
   CRISP THUMBNAIL IMAGE LOADING
   ═══════════════════════════════════════════════ */
.image-card img {
    filter: none !important;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.image-card img.thumb-loading,
.image-card img.thumb-loaded {
    filter: none !important;
    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;
    justify-content: space-around; align-items: center;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 10; /* mesti bawah cart (950+) */
}
.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; }
    /* Naik atas bottom nav, sebaris dengan butang WhatsApp */
    .cart-fab { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ═══════════════════════════════════════════════
   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;
    pointer-events: none;
}
.fav-badge .fav-btn { pointer-events: auto; }

/* ═══════════════════════════════════════════════
   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;
}

/* ═══════════════════════════════════════════════
   LANDING V2 — RACE TECH FIRST IMPRESSION
   ═══════════════════════════════════════════════ */

body {
    background:
        linear-gradient(180deg, #050607 0%, #071014 42%, #050607 100%),
        repeating-linear-gradient(90deg, rgba(35,232,255,0.04) 0 1px, transparent 1px 96px);
    background-attachment: fixed;
}

.site-header {
    background: rgba(5, 6, 7, 0.72);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
    max-width: 1180px;
    padding: 1rem 1.25rem;
}

.nav-brand {
    color: var(--txt);
    background: none;
    -webkit-text-fill-color: currentColor;
    letter-spacing: 0;
}

.nav-links a {
    color: #b7c5cc;
    letter-spacing: 0;
}

.nav-links a:hover { color: var(--accent); }
.nav-links .runner-hub-link {
    padding: 0.52rem 0.8rem;
    border: 1px solid rgba(183,255,66,0.42);
    border-radius: 999px;
    background: rgba(183,255,66,0.08);
    color: var(--accent);
}
.nav-links .runner-hub-link:hover {
    background: var(--accent);
    color: #102008;
}

.hero.hero-compact {
    min-height: 620px;
    display: grid;
    align-items: end;
    padding: 7rem 1.25rem 3rem;
    text-align: left;
    background-image:
        linear-gradient(90deg, rgba(5,6,7,0.96) 0%, rgba(5,6,7,0.82) 38%, rgba(5,6,7,0.34) 66%, rgba(5,6,7,0.64) 100%),
        linear-gradient(180deg, rgba(5,6,7,0.06) 0%, #050607 100%),
        var(--hero-image, none);
    background-size: cover;
    background-position: center 42%;
}

.hero::before {
    background:
        linear-gradient(180deg, transparent 0%, rgba(5,6,7,0.32) 42%, #050607 100%),
        repeating-linear-gradient(112deg, transparent 0 22px, rgba(35,232,255,0.08) 23px, transparent 24px 148px);
    opacity: 1;
}

.hero-track-lines {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    pointer-events: none;
    background:
        linear-gradient(100deg, transparent 0 14%, rgba(35,232,255,0.34) 14.2%, transparent 14.6% 28%, rgba(183,255,66,0.25) 28.2%, transparent 28.5%),
        linear-gradient(90deg, rgba(255,77,61,0.28), transparent 38%);
    clip-path: polygon(0 58%, 100% 16%, 100% 100%, 0 100%);
    opacity: 0.58;
}

.hero.hero-compact::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: max(2rem, calc((100vw - 1180px) / 2));
    bottom: 3.5rem;
    width: min(34vw, 420px);
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(35,232,255,0.24);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(5,6,7,0.02), rgba(5,6,7,0.30)),
        var(--hero-side-image, var(--hero-image, none));
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 80px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.07) inset;
    opacity: 0.78;
    transform: perspective(900px) rotateY(-8deg) rotateZ(1deg);
}

.hero-content {
    width: min(1120px, 100%);
    max-width: 1120px;
    margin: 0 auto;
}

.hero-compact .hero-subtitle,
.hero-subtitle {
    max-width: 620px;
    color: #d7e3e8;
    font-size: 1.12rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.hero-event-search {
    width: min(640px, 100%);
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    margin: 0 0 1.4rem;
    padding: 0.35rem;
    background: rgba(9, 17, 20, 0.72);
    border: 1px solid rgba(35,232,255,0.28);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-search-icon {
    display: grid;
    place-items: center;
    height: 44px;
    color: var(--accent);
    font-size: 1.5rem;
}

.hero-event-search input,
#album-search {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 0.9rem;
    border: 0;
    outline: 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--txt);
    font: 600 1rem/1.2 'Inter', sans-serif;
    letter-spacing: 0;
}

.hero-event-search input::placeholder { color: #8b9aa2; }

.hero-event-search:focus-within {
    border-color: rgba(183,255,66,0.72);
    box-shadow: 0 0 0 4px rgba(183,255,66,0.10), 0 20px 62px rgba(0,0,0,0.5);
}

.hero-stats {
    width: min(640px, 100%);
    justify-content: flex-start;
    gap: 0;
    margin-top: 0.8rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(5, 6, 7, 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-stat {
    flex: 1;
    align-items: flex-start;
    padding: 1rem 1.1rem;
}

.hero-stat-num {
    color: var(--txt);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.55rem;
    letter-spacing: 0;
}

.hero-stat-label {
    color: #8ba0aa;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    align-self: stretch;
    height: auto;
    background: rgba(255,255,255,0.08);
}

main {
    max-width: 1180px;
    margin: 0 auto;
}

.events-section {
    position: relative;
    margin-top: -1.4rem;
    padding: 0 1.25rem 2rem;
}

.albums-header {
    text-align: left;
    margin: 0 0 1rem;
}

.albums-header h2,
.section-title {
    text-align: left;
    color: var(--txt);
    background: none;
    -webkit-text-fill-color: currentColor;
    letter-spacing: 0;
}

.albums-header h2 { font-size: 1.65rem; }

.event-link-row {
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 1rem;
}

.event-link-row a,
.seo-link-grid a {
    border-radius: 8px;
    border-color: rgba(35,232,255,0.20);
    background: rgba(12,18,21,0.76);
}

.event-link-row a:hover,
.seo-link-grid a:hover {
    border-color: rgba(35,232,255,0.55);
    background: rgba(35,232,255,0.10);
}

.category-filter {
    justify-content: flex-start;
    margin: 0 0 1.25rem;
}

.category-filter button {
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
    color: #b7c5cc;
}

.category-filter button:hover,
.category-filter button.active {
    background: rgba(35,232,255,0.13);
    border-color: rgba(35,232,255,0.62);
    color: var(--txt);
}

#albums {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1rem;
}

.trust-strip {
    max-width: 1180px;
    padding: 1.5rem 1.25rem 2.5rem;
}

.trust-item {
    border-radius: 8px;
    background: rgba(11,16,19,0.72);
    border-color: rgba(255,255,255,0.08);
}

.trust-item:hover {
    border-color: rgba(183,255,66,0.36);
    box-shadow: 0 12px 30px rgba(0,0,0,0.24);
}

.popular-events-section,
.seo-content-section,
.how-section,
.pricing-section,
.faq-section {
    max-width: 1180px;
}

.popular-events-section,
.seo-content-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.seo-content-inner,
.step-card,
.pricing-card,
.faq-item {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .hero.hero-compact {
        min-height: 560px;
        padding: 5.4rem 1rem 2rem;
        text-align: left;
        background-position: 56% center;
    }

    .hero.hero-compact::after {
        display: none;
    }

    .hero-compact .hero-title,
    .hero-title {
        font-size: 2.45rem;
        line-height: 1.02;
    }

    .hero-compact .hero-subtitle,
    .hero-subtitle { font-size: 1rem; }

    .hero-event-search { grid-template-columns: 38px 1fr; }

    .hero-search-icon {
        height: 42px;
        font-size: 1.25rem;
    }

    .hero-event-search input,
    #album-search {
        height: 44px;
        font-size: 0.92rem !important;
        text-align: left;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stat { padding: 0.85rem 0.75rem; }
    .hero-stat-num { font-size: 1.18rem; }
    .hero-stat-label { font-size: 0.62rem; }
    .hero-stat-divider { display: none; }

    .events-section {
        margin-top: -0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .albums-header h2,
    .section-title { text-align: left; }

    #albums { grid-template-columns: 1fr; }

    .trust-strip {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ═══════════════════════════════════════════════
   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;
}

/* appended sports redesign */

/* ═══════════════════════════════════════════════
   SPORTS PHOTOGRAPHY HOMEPAGE — ACTION REBRAND
   Broadens Ohmaishoot beyond marathon/running into futsal + sport events.
   ═══════════════════════════════════════════════ */
:root {
    --bg: #030405;
    --bg-soft: #081013;
    --card: #0d1417;
    --card-hover: #111c20;
    --border: rgba(255,255,255,0.10);
    --border-glow: rgba(183,255,66,0.24);
    --txt: #f7fff7;
    --txt-dim: #aebbb7;
    --txt-mute: #70807d;
    --accent: #b7ff42;
    --accent2: #23e8ff;
    --race-coral: #ff4d3d;
    --court-orange: #ff9f1c;
    --gold: #f5c451;
    --radius: 10px;
}

body {
    background:
        radial-gradient(circle at 78% 8%, rgba(183,255,66,0.10), transparent 32%),
        radial-gradient(circle at 18% 12%, rgba(35,232,255,0.09), transparent 36%),
        linear-gradient(180deg, #030405 0%, #071114 48%, #030405 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 96px);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 72%);
}

.site-header {
    background: rgba(3, 4, 5, 0.78);
    border-bottom: 1px solid rgba(183,255,66,0.16);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.navbar { max-width: 1680px; padding: 0.95rem 44px; }

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.nav-brand::after {
    content: 'SPORTS';
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    background: rgba(183,255,66,0.14);
    border: 1px solid rgba(183,255,66,0.32);
    color: var(--accent);
    font: 800 0.62rem/1 'Inter', sans-serif;
    letter-spacing: 0.14em;
}
.nav-links a {
    color: #c1cbc8;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}
.nav-links a:hover { color: var(--accent); }

.hero.hero-compact {
    min-height: 650px;
    display: grid;
    align-items: end;
    padding: 7.25rem 1.25rem 3.4rem;
    text-align: left;
    background-image:
        linear-gradient(90deg, rgba(3,4,5,0.98) 0%, rgba(3,4,5,0.84) 38%, rgba(3,4,5,0.26) 66%, rgba(3,4,5,0.70) 100%),
        linear-gradient(180deg, rgba(3,4,5,0.04) 0%, #030405 100%),
        var(--hero-image, none);
    background-size: cover, cover, cover, cover;
    background-position: center, center, center 36%, center 42%;
}

.hero::before {
    background:
        linear-gradient(180deg, transparent 0%, rgba(3,4,5,0.34) 46%, #030405 100%),
        repeating-linear-gradient(116deg, transparent 0 18px, rgba(183,255,66,0.095) 19px, transparent 20px 140px);
    opacity: 1;
}

.hero-track-lines {
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    pointer-events: none;
    /* The wide coral-red wash this used to have here clashed with the site's
       lime/cyan palette and washed out the stat numbers sitting on top of it —
       dropped in favour of just the lime/cyan diagonal accents + lane marks. */
    background:
        linear-gradient(102deg, transparent 0 12%, rgba(183,255,66,0.46) 12.2%, transparent 12.7% 27%, rgba(35,232,255,0.34) 27.2%, transparent 27.7%),
        repeating-linear-gradient(90deg, transparent 0 94px, rgba(255,255,255,0.08) 95px, transparent 96px 192px);
    clip-path: polygon(0 56%, 100% 10%, 100% 100%, 0 100%);
    opacity: 0.55;
}

.hero.hero-compact::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: max(1.25rem, calc((100vw - 1220px) / 2));
    bottom: 3.35rem;
    width: min(34vw, 430px);
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(183,255,66,0.26);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(3,4,5,0.02), rgba(3,4,5,0.30)),
        var(--hero-side-image, var(--hero-image, none));
    background-size: cover;
    background-position: center 35%;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
    opacity: 0.82;
    transform: perspective(900px) rotateY(-8deg) rotateZ(1.2deg);
}

/* Matches the 44px effective left/right inset that .events-section ends up
   with below (main's own 24px padding + events-section's own 20px padding
   stacked) — without this, the hero content and the "Galeri Aksi Terkini"
   heading below it visibly don't line up on wide screens. */
.hero-content { width: min(1680px, 100%); max-width: 1680px; margin: 0 auto; padding: 0 44px; }
.hero-content::before {
    content: 'ACTION PHOTO SEARCH · FUTSAL · RUNNING · EVENTS';
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(183,255,66,0.34);
    border-radius: 999px;
    background: rgba(8,14,12,0.72);
    color: var(--accent);
    font: 900 0.74rem/1 'Inter', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-compact .hero-title,
.hero-title {
    max-width: 760px;
    font-size: clamp(3.2rem, 7.2vw, 6.35rem);
    line-height: 0.88;
    margin-bottom: 1rem;
    letter-spacing: -0.055em;
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-wrap: balance;
    text-transform: uppercase;
    text-shadow: 0 18px 46px rgba(0,0,0,0.58);
}

.hero-compact .hero-title::after,
.hero-title::after {
    content: '';
    display: block;
    width: min(360px, 46vw);
    height: 5px;
    margin-top: 0.78rem;
    background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
    transform: skewX(-18deg);
}

.hero-compact .hero-subtitle,
.hero-subtitle {
    max-width: 680px;
    color: #dce8e3;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.62;
    margin-bottom: 1.35rem;
}

.hero-event-search {
    width: min(680px, 100%);
    grid-template-columns: 48px 1fr;
    margin: 0 0 1.35rem;
    padding: 0.36rem;
    background: rgba(3, 8, 9, 0.78);
    border: 1px solid rgba(183,255,66,0.34);
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.09);
}
.hero-search-icon { color: var(--accent); font-size: 1.55rem; }
.hero-event-search input,
#album-search {
    height: 48px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
}
.hero-event-search input::placeholder { color: #8f9e98; }
.hero-event-search:focus-within {
    border-color: rgba(183,255,66,0.82);
    box-shadow: 0 0 0 4px rgba(183,255,66,0.11), 0 22px 68px rgba(0,0,0,0.54);
}

.hero-stats {
    width: min(680px, 100%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    background: rgba(3, 7, 8, 0.58);
}
.hero-stat-num { color: var(--accent); font-size: 1.62rem; }
.hero-stat-label { color: #93a29d; font-weight: 900; letter-spacing: 0.12em; }

/* Widened from 1220px — text sections (how-it-works, pricing, FAQ) each carry
   their own narrower max-width + auto margins, so they stay readable and
   centered regardless; only width-hungry sections like the album grid actually
   gain the extra room. On a 1920px screen this cut empty side margins from
   ~394px down to ~140px and let the gallery grid go from 4 to 5-6 columns. */
main { max-width: 1680px; }
.events-section { margin-top: -1.2rem; padding: 0 1.25rem 2rem; }
.albums-header { text-align: left; margin: 0 0 1rem; }
.albums-header h2,
.section-title { text-align: left; color: #fff; background: none; -webkit-text-fill-color: currentColor; }
.albums-header h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); text-transform: uppercase; letter-spacing: -0.04em; }
.albums-header h2::after,
.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    margin-top: 0.65rem;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: skewX(-18deg);
}

.event-link-row { justify-content: flex-start; padding: 0; margin-bottom: 1rem; }
.event-link-row a,
.seo-link-grid a {
    border-radius: 999px;
    border-color: rgba(183,255,66,0.22);
    background: rgba(10,16,14,0.78);
    color: #d7e4df;
    font-weight: 800;
}
.event-link-row a:hover,
.seo-link-grid a:hover {
    border-color: rgba(183,255,66,0.62);
    background: rgba(183,255,66,0.11);
    color: #fff;
}

.category-filter { justify-content: flex-start; margin: 0 0 1.25rem; }
.category-filter button {
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.11);
    color: #b7c5c0;
    font-weight: 800;
}
.category-filter button:hover,
.category-filter button.active {
    background: rgba(183,255,66,0.13);
    border-color: rgba(183,255,66,0.62);
    color: #fff;
}

#albums { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.05rem; }
.album-card {
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(14,22,20,0.96), rgba(5,8,9,0.98));
    border: 1px solid rgba(183,255,66,0.16);
    box-shadow: 0 12px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.06);
}
.album-card:hover {
    transform: translateY(-5px);
    border-color: rgba(183,255,66,0.48);
    box-shadow: 0 22px 56px rgba(0,0,0,0.48), 0 0 0 1px rgba(183,255,66,0.13);
}
/* Taller than the old 16/10.4 — the photo is the product here, so it should
   dominate the card instead of splitting roughly 50/50 with the text below. */
.album-thumbnail { aspect-ratio: 4 / 3.1; background: linear-gradient(135deg, rgba(183,255,66,0.10), transparent 34%), linear-gradient(180deg, #111a1e, #07090a); }
.album-thumbnail::after { opacity: 1; background: linear-gradient(180deg, rgba(3,4,5,0.16) 0%, transparent 40%, rgba(3,4,5,0.76) 100%); }
.album-thumbnail .album-badge,
.album-badge {
    border-radius: 999px;
    background: rgba(183,255,66,0.94) !important;
    color: #061006;
    font-weight: 900;
    text-transform: uppercase;
}
.album-badge-new { border-radius: 999px; background: var(--race-coral); color: #fff; }
.album-photo-count { border-radius: 999px; background: rgba(3,4,5,0.72) !important; border: 1px solid rgba(255,255,255,0.14); }
.album-info { padding: 1.1rem; }
.album-info h3 {
    letter-spacing: -0.015em; line-height: 1.18; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.album-meta-line {
    display: flex; align-items: center; gap: 0.3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--txt-dim); font-size: 0.82rem; margin: 0.25rem 0;
}
.album-cta { color: var(--accent); font-weight: 900; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }
.album-card:hover .album-cta { color: var(--accent2); }

.trust-strip { max-width: 1220px; padding: 1.45rem 1.25rem 2.5rem; }
.trust-item { border-radius: 10px; background: rgba(8,13,12,0.76); border-color: rgba(255,255,255,0.09); }
.trust-item:hover { border-color: rgba(183,255,66,0.38); box-shadow: 0 12px 34px rgba(0,0,0,0.28); }
.trust-icon { filter: saturate(1.25); }

.pricing-card,
.step-card,
.faq-item,
.seo-content-inner {
    border-radius: 10px;
    border-color: rgba(183,255,66,0.12);
}

@media (max-width: 768px) {
    .hero.hero-compact {
        min-height: 590px;
        padding: 5.2rem 1rem 2.2rem;
        background-position: center, center, 58% center, center;
    }
    .hero.hero-compact::after { display: none; }
    .hero-content::before { font-size: 0.62rem; letter-spacing: 0.10em; }
    .hero-compact .hero-title,
    .hero-title { font-size: clamp(2.65rem, 15vw, 4rem); line-height: 0.9; }
    .hero-event-search { grid-template-columns: 40px 1fr; }
    .hero-event-search input,
    #album-search { height: 44px; font-size: 0.9rem !important; text-align: left; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
    .hero-stat { padding: 0.82rem 0.7rem; }
    .hero-stat-num { font-size: 1.15rem; }
    .hero-stat-label { font-size: 0.58rem; }
    .hero-stat-divider { display: none; }
    .events-section { padding-left: 1rem; padding-right: 1rem; }
    #albums { grid-template-columns: 1fr; }
}

/* SPORTS REDESIGN PATCH — visual refinements after browser QA */
.sport-type-row {
    width: min(680px, 100%);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.35rem 0 1rem;
}
.sport-type-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.36rem 0.64rem;
    border: 1px solid rgba(183,255,66,0.26);
    border-radius: 999px;
    background: rgba(183,255,66,0.08);
    color: #dfffd0;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero.hero-compact::after {
    background:
        linear-gradient(180deg, rgba(3,4,5,0.02), rgba(3,4,5,0.20)),
        radial-gradient(circle at 24% 20%, rgba(183,255,66,0.34), transparent 18%),
        linear-gradient(135deg, rgba(183,255,66,0.16), transparent 36%),
        var(--hero-side-image, var(--hero-image, none));
    background-size: cover, cover, cover, cover, cover;
    background-position: center, center, center, center 35%, center 42%;
}
.hero.hero-compact::after {
    outline: 1px solid rgba(255,255,255,0.08);
}
.album-thumbnail .album-thumb-container:empty::before,
.album-thumbnail .album-thumb-container.skeleton::before {
    content: 'OHMAISHOOT ACTION';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.42);
    font: 900 0.75rem/1 'Inter', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 24% 22%, rgba(183,255,66,0.18), transparent 24%),
        repeating-linear-gradient(115deg, transparent 0 18px, rgba(183,255,66,0.08) 19px, transparent 20px 112px);
}
.seo-content-section {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
}
.seo-content-inner {
    background: rgba(8,13,12,0.72);
    border: 1px solid rgba(183,255,66,0.12);
    border-radius: 12px;
    padding: clamp(1.35rem, 3vw, 2.25rem);
}
.seo-content-inner h2 { color: #fff; }
.seo-content-inner p {
    color: #c8d6d1;
    line-height: 1.78;
}
@media (max-width: 768px) {
    .sport-type-row { gap: 0.4rem; margin-bottom: 0.9rem; }
    .sport-type-row span { font-size: 0.62rem; min-height: 27px; }
}

/* ═══════════════════════════════════════════════
   HAMBURGER MENU + MOBILE NAV OVERLAY
   ═══════════════════════════════════════════════ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    width: 36px;
    height: 36px;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--txt);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    transform-origin: center;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    /* Keep the page dimmed, but below the sticky header's stacking context
       so mobile menu links remain tappable. */
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-overlay.active { opacity: 1; }

@media (max-width: 768px) {
    .hamburger-btn { display: flex; }

    /* Slide-in nav menu from right */
    .site-header .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 80vw);
        height: 100vh;
        height: 100dvh;
        background: rgba(3, 4, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(183,255,66,0.16);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }
    .site-header .nav-links.open {
        display: flex;
        transform: translateX(0);
    }
    .site-header .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        letter-spacing: 0.06em;
    }
    .site-header .nav-links a:last-child { border-bottom: none; }
    .site-header .nav-links .runner-hub-link {
        margin-bottom: 0.5rem;
        padding: 1rem;
        border: 1px solid rgba(183,255,66,0.42);
        border-radius: 8px;
        background: rgba(183,255,66,0.08);
        color: var(--accent);
    }
    .mobile-overlay { display: block; pointer-events: none; }
    .mobile-overlay.active { pointer-events: auto; }

    /* Hero — reduce height, tighter spacing */
    .hero.hero-compact {
        min-height: auto;
        padding: 5rem 1rem 1.8rem;
    }
    .hero-content::before {
        font-size: 0.58rem;
        padding: 0.3rem 0.55rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.75rem;
    }
    .hero-compact .hero-title,
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 0.95;
        margin-bottom: 0.75rem;
    }
    .hero-compact .hero-title::after,
    .hero-title::after {
        width: min(200px, 50vw);
        height: 3px;
        margin-top: 0.5rem;
    }
    .hero-compact .hero-subtitle,
    .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    .hero-event-search {
        margin-bottom: 1rem;
    }
    .hero-stats {
        margin-top: 0.6rem;
    }
    .hero-stat { padding: 0.7rem 0.5rem; }
    .hero-stat-num { font-size: 1.05rem; }
    .hero-stat-label { font-size: 0.55rem; }

    /* Trust strip — 2 cols then stack */
    .trust-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        padding: 1rem;
    }
    .trust-item {
        padding: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .trust-icon { font-size: 1.5rem; }
    .trust-item strong { font-size: 0.82rem; }
    .trust-item span { font-size: 0.72rem; }

    /* Pricing cards — 2 columns */
    .pricing-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .pricing-card {
        padding: 1.2rem 0.8rem;
    }
    .pricing-card h3 { font-size: 0.9rem; }
    .pricing-card .price { font-size: 1.8rem; }

    /* How section — stack steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .step-card { padding: 1.5rem 1.2rem; }

    /* FAQ tighter */
    .faq-section { padding: 2rem 1rem; }
    .faq-item summary { padding: 1rem 1.2rem; font-size: 0.92rem; }
    .faq-item p { padding: 0 1.2rem 1rem; font-size: 0.88rem; }

    /* SEO content section */
    .seo-content-section { padding-left: 1rem; padding-right: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .seo-content-inner { padding: 1.2rem; }
    .seo-content-inner h2 { font-size: 1.3rem; }
    .seo-content-inner p { font-size: 0.88rem; line-height: 1.65; }

    /* Popular events */
    .popular-events-section { padding: 1.5rem 1rem; }
    .section-title { font-size: 1.5rem; }
    .seo-link-grid { gap: 0.5rem; }
    .seo-link-grid a { padding: 0.7rem 1rem; font-size: 0.82rem; }

    /* Footer */
    .site-footer .footer-content {
        padding: 2rem 1rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-col h3 { font-size: 1.1rem; }
    .footer-col p { font-size: 0.85rem; }

    /* Albums section header */
    .albums-header h2 { font-size: 1.5rem; }
    .albums-header h2::after { width: 80px; height: 3px; margin-top: 0.5rem; }

    /* Event link row — scrollable */
    .event-link-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .event-link-row a {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    /* Category filter — scrollable row */
    .category-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    .category-filter button {
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 0.45rem 0.9rem;
    }
}

/* Extra small phones (<380px) */
@media (max-width: 380px) {
    .hero.hero-compact { padding: 4.5rem 0.8rem 1.5rem; }
    .hero-compact .hero-title { font-size: 1.85rem; }
    .hero-compact .hero-subtitle { font-size: 0.85rem; }
    .trust-strip { grid-template-columns: 1fr; }
    .pricing-cards { grid-template-columns: 1fr; }
    .hero-stat-num { font-size: 0.95rem; }
    .hero-stat-label { font-size: 0.5rem; }
    .sport-type-row span { font-size: 0.58rem; padding: 0.25rem 0.5rem; min-height: 24px; }
}


/* FACE SEARCH HERO — Photohawk-style but Ohmaishoot-owned */
.face-scan-hero {
    max-width: 1180px;
    margin: -0.25rem auto 1.25rem;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background:
        radial-gradient(circle at 12% 15%, rgba(236,72,153,0.22), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(59,130,246,0.20), transparent 30%),
        linear-gradient(135deg, rgba(18,18,30,0.92), rgba(33,20,58,0.86));
    box-shadow: 0 18px 55px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.face-scan-hero::after {
    content: '';
    position: absolute;
    inset: -40% -20% auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 62%);
    transform: rotate(18deg);
    pointer-events: none;
}
.face-scan-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.face-scan-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .45rem;
    padding: .32rem .62rem;
    border-radius: 999px;
    background: rgba(16,185,129,0.13);
    border: 1px solid rgba(16,185,129,0.35);
    color: #86efac;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.face-scan-pill::before {
    content: '';
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.9);
}
.face-scan-copy h3 {
    margin: 0 0 .35rem;
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    letter-spacing: -.03em;
    color: #fff;
}
.face-scan-copy p {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    font-size: .92rem;
}
/* "Still indexing" variant — amber tone, distinct from the ready-state green
   pill above, plus a progress bar so the wait doesn't read as broken/stuck. */
.face-scan-processing {
    border-color: rgba(245, 158, 11, 0.35);
    background:
        radial-gradient(circle at 12% 15%, rgba(245,158,11,0.16), transparent 28%),
        linear-gradient(135deg, rgba(18,18,30,0.92), rgba(58,40,20,0.7));
}
.face-scan-processing .face-scan-pill {
    background: rgba(245,158,11,0.14);
    border-color: rgba(245,158,11,0.4);
    color: #fcd34d;
}
.face-scan-processing .face-scan-pill::before {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245,158,11,.9);
    animation: face-scan-pulse 1.4s ease-in-out infinite;
}
@keyframes face-scan-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}
.face-scan-progress-bar {
    margin-top: .7rem;
    width: 100%;
    max-width: 420px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    overflow: hidden;
}
.face-scan-progress-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width .4s ease;
}
.face-scan-mini-steps {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
}
.face-scan-mini-steps span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .34rem .62rem;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    font-weight: 700;
}
.face-scan-primary-btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    border: 0;
    border-radius: 16px;
    padding: 1rem 1.35rem;
    min-width: 210px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #f97316, #ec4899 48%, #8b5cf6);
    box-shadow: 0 14px 32px rgba(236,72,153,.34), 0 0 0 1px rgba(255,255,255,.12) inset;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.face-scan-primary-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 18px 42px rgba(236,72,153,.45), 0 0 0 1px rgba(255,255,255,.18) inset;
}
.face-scan-primary-btn:active { transform: translateY(0) scale(.99); }

.album-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-top: .75rem;
}
.album-face-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: .32rem .58rem;
    border-radius: 999px;
    color: #baf7ff;
    background: rgba(35,232,255,.12);
    border: 1px solid rgba(35,232,255,.28);
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Promo popup — reuses .face-modal-close for the X button, otherwise its own
   look (warmer gold/pink gradient) so it reads as "promo", not "face scan". */
.promo-popup {
    position: fixed; inset: 0; z-index: 2100;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.promo-popup-box {
    position: relative;
    max-width: 440px; width: 100%;
    padding: 2rem;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(212,168,83,.35);
    background:
        radial-gradient(circle at 15% 0%, rgba(236,72,153,.20), transparent 36%),
        radial-gradient(circle at 90% 100%, rgba(212,168,83,.16), transparent 40%),
        linear-gradient(180deg, #1a1a24, #111119);
    box-shadow: 0 24px 80px rgba(0,0,0,.62);
}
.promo-popup-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-bottom: .6rem; padding: .3rem .7rem;
    border-radius: 999px; background: rgba(212,168,83,.14); border: 1px solid rgba(212,168,83,.4);
    color: #d4a853; font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.promo-popup-box h2 {
    color: #fff; margin: 0 0 .4rem;
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.7rem);
}
.promo-popup-desc { color: #aaa; font-size: .92rem; margin: 0 0 1rem; }
/* Clean vertical price list, not a wrapping grid — with 5 tiers a
   repeat(auto-fit) grid split 4+1, leaving one box stretched alone on its
   own row. A fixed-column list never wraps unevenly. */
.promo-popup-tiers {
    display: flex; flex-direction: column;
    border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1rem;
}
.promo-tier-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem .9rem;
}
.promo-tier-row + .promo-tier-row { border-top: 1px solid rgba(255,255,255,.07); }
.promo-tier-label { color: #94a3b8; font-size: .82rem; }
.promo-tier-price { color: #fff; font-size: .96rem; font-weight: 800; }
.promo-popup-code {
    margin: 0 0 1.1rem; padding: .6rem .9rem;
    border-radius: 10px; background: rgba(236,72,153,.10); border: 1px solid rgba(236,72,153,.3);
    color: #f9a8d4; font-size: .88rem;
}
.promo-popup-code strong { color: #fff; letter-spacing: .04em; }
.promo-popup-cta {
    width: 100%; padding: .9rem 1.2rem; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #d4a853, #c9952e);
    color: #17130a; font-weight: 800; font-size: .96rem; cursor: pointer;
    box-shadow: 0 10px 24px rgba(212,168,83,.25);
}
.promo-popup-cta:hover { filter: brightness(1.06); }
@media (max-width: 480px) {
    .promo-popup-box { padding: 1.5rem 1.25rem; }
}

.face-modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.face-modal-box {
    max-width: 520px;
    border-color: rgba(168,85,247,.30);
    background:
        radial-gradient(circle at 20% 0%, rgba(168,85,247,.20), transparent 34%),
        linear-gradient(180deg, #1a1a24, #111119);
    box-shadow: 0 24px 80px rgba(0,0,0,.62);
}
.face-modal-box h2 {
    font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.45rem, 4vw, 2rem);
}
.face-modal-desc {
    max-width: 410px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}
.face-upload-btn {
    min-width: 185px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    box-shadow: 0 10px 24px rgba(59,130,246,.25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.face-upload-btn:hover {
    background: linear-gradient(135deg, #a855f7, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(59,130,246,.34);
}
.face-selfie-btn {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 10px 24px rgba(236,72,153,.24);
}
.face-selfie-btn:hover {
    background: linear-gradient(135deg, #fb923c, #db2777);
    box-shadow: 0 14px 32px rgba(236,72,153,.34);
}
#face-step-loading p::after {
    content: ' Jangan tutup skrin ini — biasanya siap dalam beberapa saat.';
    display: block;
    margin-top: .45rem;
    color: rgba(255,255,255,.52);
    font-size: .82rem;
}

@media (max-width: 768px) {
    .face-scan-hero {
        margin: -0.35rem 0 1rem;
        padding: 1rem;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .face-scan-copy h3 { font-size: 1.18rem; }
    .face-scan-copy p { font-size: .86rem; }
    .face-scan-mini-steps { gap: .4rem; }
    .face-scan-mini-steps span { font-size: .72rem; }
    .face-scan-primary-btn {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        font-size: 1.02rem;
    }
    .album-face-btn {
        width: 100%;
        min-height: 48px;
        font-size: .96rem;
    }
    .face-modal {
        align-items: flex-end;
        padding: .75rem;
    }
    .face-modal-box {
        max-width: none;
        border-radius: 20px;
        padding: 1.45rem 1rem 1.25rem;
    }
    .face-btn-row {
        flex-direction: column;
    }
    .face-upload-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Final homepage hierarchy override: galleries must enter the first viewport. */
.hero.hero-compact { min-height:455px; padding:6rem 1.25rem 2rem; align-items:center; }
.hero.hero-compact::after { width:min(25vw,300px); bottom:1.5rem; aspect-ratio:4 / 4.6; }
.hero-compact .hero-title,.hero-title { max-width:650px; font-size:clamp(2.75rem,5.4vw,4.85rem); }
.hero-content::before { margin-bottom:.7rem; }
.hero-compact .hero-subtitle,.hero-subtitle { margin-bottom:.9rem; }
.hero-event-search { margin-bottom:.8rem; }.sport-type-row { margin-bottom:.65rem; }
.hero-search-hint { width:min(680px,100%); max-width:680px; margin:-.2rem 0 .7rem; text-align:center; }
.hero-stats { width:min(560px,100%); }.hero-stat { padding:.65rem .85rem; }.hero-stat-num { font-size:1.25rem; }
.events-section { position:relative; z-index:3; margin-top:0; padding-top:1.25rem; }
.albums-header { display:grid; gap:.25rem; }.events-kicker { color:var(--accent); font:900 .68rem/1 'Inter',sans-serif; letter-spacing:.16em; }.albums-header p { max-width:620px; color:#aebdb8; font-size:.92rem; line-height:1.5; }
@media (max-width:1000px) { .hero.hero-compact::after { display:none; } }
/* Close the empty-space gap opened by the wider hero-content column: enlarge the tilted photo so it fills the freed right-side space instead of floating as a small card in a big void. */
@media (min-width:1001px) {
    .hero.hero-compact::after {
        width: clamp(420px, 44vw, 640px);
        aspect-ratio: 4 / 3.3;
        right: clamp(60px, calc(74vw - 925px), 520px);
    }
}
@media (max-width:768px) {
    .hero.hero-compact { min-height:330px; padding:4.7rem 1rem 1.15rem; align-items:center; }
    .hero-content::before,.hero-compact .hero-subtitle,.hero-subtitle,.sport-type-row,.hero-stats { display:none; }
    .hero-compact .hero-title,.hero-title { font-size:clamp(2rem,10.5vw,3.15rem); margin-bottom:.55rem; }
    .hero-event-search { margin:.75rem 0 0; }.hero-search-hint { max-width:310px; margin:.35rem auto 0; font-size:.72rem; }.events-section { padding-top:1rem; }.albums-header { margin-bottom:.7rem; }.albums-header p { font-size:.82rem; }.event-link-row { margin-bottom:.65rem; }.category-filter { margin-bottom:.8rem; }
}

/* ===== CONSENT BANNER ===== */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.consent-content {
    max-width: 600px;
    margin: 0 auto;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.consent-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.consent-content p {
    margin: 0 0 15px 0;
}

.consent-content a {
    color: #4a9eff;
    text-decoration: underline;
}

.consent-content a:hover {
    color: #6bb3ff;
}

.consent-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #4a9eff;
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: #3a8eef;
}

.btn-secondary {
    background: transparent;
    color: #999;
    border: 1px solid #444;
}

.btn-secondary:hover {
    border-color: #666;
    color: #bbb;
}

@media (max-width: 640px) {
    .consent-banner {
        padding: 15px;
    }

    .consent-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: rgba(10, 10, 15, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--txt-dim);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: var(--txt);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--txt-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 12px;
    color: var(--txt-mute);
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 40px;
        padding: 30px 15px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-section h4 {
        font-size: 13px;
    }
}

/* Deep-link highlight for shared photos. The photographer dashboard's
   "Share" button links to /album/<slug>?photo=<id>; when a buyer opens
   that link, the matching photo tile scrolls into view with a brief
   accent ring so they know which shot was sent. */
.photo-deep-link-highlight {
    outline: 3px solid #4f46e5;
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(79, 70, 229, .2);
    animation: photo-deep-link-pulse 1.2s ease-in-out 3;
}
@keyframes photo-deep-link-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(79, 70, 229, .2); }
    50%      { box-shadow: 0 0 0 12px rgba(79, 70, 229, .35); }
}

/* FACE SEARCH: BELI SEMUA GAMBAR SAYA */
.face-buy-all { max-width:420px; margin:1rem auto 0; padding:14px 16px; border:1px solid rgba(34,197,94,0.45); border-radius:14px; background:rgba(34,197,94,0.1); text-align:left; }
.face-buy-all-row { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.face-buy-all-label { font-size:.95rem; font-weight:600; }
.face-buy-all-was { font-size:.85rem; opacity:.7; text-decoration:line-through; }
.face-buy-all-total { font-size:1.6rem; font-weight:800; color:#22c55e; }
.face-buy-all-save { font-size:.85rem; font-weight:700; color:#22c55e; }
.face-buy-all-btn { width:100%; margin-top:10px; border:0; border-radius:12px; padding:14px; background:linear-gradient(135deg,#22c55e,#16a34a); color:#fff; font-size:1rem; font-weight:700; cursor:pointer; }
.face-buy-all-note { margin:8px 0 0; font-size:.75rem; opacity:.75; text-align:center; }
/* Free-album variant: kad info ringkas tanpa butang bayar / harga. Border & bg
   lebih lembut sebab tak ada CTA jual. */
.face-buy-all.face-buy-all-free {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.08);
    text-align: center;
}
.face-buy-all.face-buy-all-free .face-buy-all-label {
    color: #22c55e;
    font-size: 1rem;
}
.face-buy-all-note-free {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.85;
}

/* LIGHTBOX RINGKAS: tinggal gambar preview + nama fail sahaja.
   Disorok (bukan dibuang) sebab app.js masih rujuk elemen ni. */
#lightbox-info > div:first-child,
#slideshow-progress,
#lightbox-counter,
#lightbox-photographer,
#lightbox-price,
#lightbox-contact { display: none !important; }

/* Butang kegemaran (❤️) pada thumbnail tak diperlukan. Disorok, bukan dibuang,
   sebab app.js masih pasang handler klik pada .fav-btn setiap kad. */
.image-wrapper .fav-badge { display: none; }
/* Butang "⭐ Favorites" tak berguna lagi bila ❤️ disorok. app.js set
   style.display bila album dibuka, jadi perlu !important. */
#fav-filter-btn { display: none !important; }

/* TAPIS IKUT MASA (graf bar + slider dua hujung) */
.time-filter-btn { padding:.5rem .9rem; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(255,255,255,.06); color:inherit; font-weight:600; font-size:.85rem; cursor:pointer; white-space:nowrap; }
.time-filter-btn.active { border-color:#f59e0b; background:rgba(245,158,11,.16); color:#fbbf24; }
.time-filter-panel { max-width:1180px; margin:0 auto 1.25rem; padding:16px 18px 14px; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(12,16,24,.92); }
.tf-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; font-size:.92rem; }
.tf-summary { margin-top:4px; font-size:.85rem; color:rgba(255,255,255,.7); }
.tf-summary b { color:#fbbf24; font-size:1rem; }
.tf-close { border:0; background:none; color:inherit; font-size:1.1rem; line-height:1; cursor:pointer; opacity:.6; padding:4px; }
.tf-close:hover { opacity:1; }
.tf-bars { display:flex; align-items:flex-end; gap:3px; height:72px; padding:0 9px; overflow:hidden; }
.tf-bars span { flex:1 1 0; min-width:0; border-radius:3px 3px 0 0; background:rgba(255,255,255,.16); cursor:pointer; transition:background .15s; }
.tf-bars span:hover { background:rgba(255,255,255,.32); }
.tf-bars span.in { background:#f59e0b; }
.tf-bars span.in:hover { background:#fbbf24; }
.tf-range { position:relative; height:22px; margin-top:2px; }
.tf-range input[type=range] { position:absolute; left:0; right:0; top:0; width:100%; margin:0; background:none; pointer-events:none; -webkit-appearance:none; appearance:none; height:22px; }
.tf-range input[type=range]::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:rgba(255,255,255,.14); }
.tf-range input[type=range]:last-child::-webkit-slider-runnable-track { background:transparent; }
.tf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; pointer-events:auto; width:18px; height:18px; margin-top:-7px; border-radius:50%; background:#f59e0b; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.4); cursor:grab; }
.tf-range input[type=range]::-moz-range-track { height:4px; border-radius:2px; background:rgba(255,255,255,.14); }
.tf-range input[type=range]:last-child::-moz-range-track { background:transparent; }
.tf-range input[type=range]::-moz-range-thumb { pointer-events:auto; width:16px; height:16px; border-radius:50%; background:#f59e0b; border:2px solid #fff; cursor:grab; }
.tf-axis { display:flex; justify-content:space-between; padding:0 2px; margin-top:2px; font-size:.75rem; color:rgba(255,255,255,.5); }
.tf-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px; }
.tf-note { flex:1 1 260px; margin:0; font-size:.78rem; line-height:1.4; color:rgba(255,255,255,.55); }
.tf-actions { display:flex; gap:8px; margin-left:auto; }
.tf-reset,.tf-apply { padding:.55rem 1.1rem; border-radius:10px; font-weight:700; font-size:.85rem; cursor:pointer; }
.tf-reset { border:1px solid rgba(255,255,255,.2); background:transparent; color:inherit; }
.tf-reset:hover { background:rgba(255,255,255,.06); }
.tf-apply { border:0; background:#f59e0b; color:#1a1204; }
.tf-apply:hover { background:#fbbf24; }
.tenant-storefront .site-header {
    border-bottom-color: color-mix(in srgb, var(--brand-primary, #6366f1) 45%, transparent);
}
.tenant-storefront .nav-brand {
    color: var(--brand-primary, #6366f1);
}
.tenant-storefront .hero {
    background-image: linear-gradient(115deg, color-mix(in srgb, var(--brand-primary, #6366f1) 20%, #050607) 0%, #050607 72%);
}
.tenant-storefront .hero-title {
    text-wrap: balance;
}
.tenant-storefront .hero-action-primary {
    background: var(--brand-primary, #6366f1);
}
.tenant-storefront .events-section {
    border-top-color: color-mix(in srgb, var(--brand-primary, #6366f1) 25%, transparent);
}
.tenant-storefront .events-kicker {
    color: var(--brand-accent, #16a34a);
}

/* ── Photographer storefront: simple portfolio shell ── */
.tenant-simple-storefront { --tenant-ink: #17211d; --tenant-muted: #68766e; --tenant-line: #e2e8e2; background: #f7f8f6; color: var(--tenant-ink); }
.tenant-simple-storefront .site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--tenant-line); box-shadow: 0 4px 18px rgba(20,42,30,.06); backdrop-filter: blur(14px); }
.tenant-simple-storefront .navbar { min-height: 76px; max-width: 1240px; }
.tenant-simple-storefront .nav-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--tenant-ink); font-size: 1.04rem; font-weight: 750; letter-spacing: -.02em; }
.tenant-simple-storefront .nav-brand img { width: 34px; height: 34px !important; margin-right: 2px !important; border-radius: 50%; object-fit: cover; }
.tenant-simple-storefront .nav-brand::after, .tenant-simple-storefront .nav-brand[data-simple-brand]::after { content: none !important; display: none !important; }
.tenant-simple-storefront .nav-links { gap: 28px; }
.tenant-simple-storefront .nav-links a { color: #55635b; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.tenant-simple-storefront .nav-links a:hover { color: var(--brand-primary, #347357); }
.tenant-simple-storefront .hero.hero-compact { min-height: 560px; padding: 7.5rem 1.25rem 4rem; background-image: linear-gradient(90deg, rgba(8,15,12,.84) 0%, rgba(8,15,12,.54) 48%, rgba(8,15,12,.18) 100%), linear-gradient(180deg, rgba(8,15,12,.06), rgba(8,15,12,.72)), var(--hero-side-image, var(--hero-image, none)); background-size: cover; background-position: center; }
.tenant-simple-storefront .hero::before, .tenant-simple-storefront .hero-track-lines, .tenant-simple-storefront .hero.hero-compact::after, .tenant-simple-storefront .hero-content::before { display: none; }
.tenant-simple-storefront .hero-content { width: min(1180px, 100%); padding: 0 30px; }
.tenant-simple-storefront .hero-compact .hero-title, .tenant-simple-storefront .hero-title { max-width: 680px; margin-bottom: .8rem; color: #fff; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .95; text-transform: none; letter-spacing: -.06em; }
.tenant-simple-storefront .hero-subtitle { max-width: 520px; margin-bottom: 1.35rem; color: rgba(255,255,255,.82); font-size: 1.06rem; }
.tenant-simple-storefront .hero-event-search { max-width: 560px; margin: 0 0 .9rem; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.12); }
.tenant-simple-storefront .hero-event-search input { color: #fff; }
.tenant-simple-storefront .hero-event-search input::placeholder { color: rgba(255,255,255,.72); }
.tenant-simple-storefront .hero-search-hint, .tenant-simple-storefront .hero-action-secondary, .tenant-simple-storefront .hero-category-panel, .tenant-simple-storefront .hero-stats { display: none !important; }
.tenant-simple-storefront .hero-actions { margin-top: .3rem; }
.tenant-simple-storefront .hero-action-primary { padding: .85rem 1.2rem; border-radius: 8px; background: var(--brand-primary, #347357); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.tenant-simple-storefront main { background: #f7f8f6; }
.tenant-simple-storefront .events-section { max-width: 1240px; padding: 4.5rem 30px 5rem; border-top: 0; }
.tenant-simple-storefront .albums-header { margin-bottom: 1.5rem; text-align: left; }
.tenant-simple-storefront .events-kicker { color: var(--brand-primary, #347357); font-size: .7rem; letter-spacing: .18em; }
.tenant-simple-storefront .albums-header h2 { color: var(--tenant-ink); font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.tenant-simple-storefront .albums-header p { color: var(--tenant-muted); }
.tenant-simple-storefront .event-link-row { display: none; }
.tenant-simple-storefront .trust-strip, .tenant-simple-storefront .mobile-nav { display: none !important; }
.tenant-simple-storefront #popular-events, .tenant-simple-storefront #pricing, .tenant-simple-storefront #faq, .tenant-simple-storefront #race-photo-search-malaysia, .tenant-simple-storefront .how-section { display: none !important; }
.tenant-simple-storefront .site-footer .footer-section:nth-child(2), .tenant-simple-storefront .site-footer .footer-section:nth-child(3) { display: none; }
.tenant-simple-storefront .site-footer .footer-content { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
.tenant-simple-storefront .site-footer { background: #17211d; border-top: 0; }
.tenant-simple-storefront .site-footer a { color: #d5e2d8; }
.tenant-simple-storefront .site-footer p, .tenant-simple-storefront .site-footer li { color: #aebdb2; }

/* Final storefront polish: calm, premium gallery cards and clearer contact actions. */
.tenant-simple-storefront #albums {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
}
.tenant-simple-storefront .album-card {
    overflow: hidden;
    border: 1px solid #dfe8e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 48, 37, .07);
    transform: none;
}
.tenant-simple-storefront .album-card:hover {
    border-color: color-mix(in srgb, var(--brand-primary, #347357) 45%, #dfe8e1);
    box-shadow: 0 16px 32px rgba(23, 48, 37, .13);
    transform: translateY(-4px);
}
.tenant-simple-storefront .album-thumbnail {
    aspect-ratio: 16 / 10;
    background: #edf3ee;
}
.tenant-simple-storefront .album-thumbnail::after {
    background: linear-gradient(180deg, rgba(3, 4, 5, .04), transparent 45%, rgba(3, 4, 5, .64));
}
.tenant-simple-storefront .album-info {
    padding: 1rem 1.05rem 1.05rem;
}
.tenant-simple-storefront .album-info h3 {
    color: #173025;
    font-size: 1rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: -.015em;
}
.tenant-simple-storefront .album-meta-line,
.tenant-simple-storefront .album-coverage-line {
    color: #72847a;
    font-size: .78rem;
}
.tenant-simple-storefront .album-card-actions {
    align-items: center;
    border-top: 1px solid #edf1ed;
    margin-top: .75rem;
    padding-top: .75rem;
}
.tenant-simple-storefront .album-cta {
    color: var(--brand-primary, #347357);
    font-size: .72rem;
    letter-spacing: .06em;
}
.tenant-simple-storefront .album-face-chip {
    color: #708378;
    font-size: .7rem;
}
.tenant-simple-storefront .site-footer .footer-section:last-child p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .9rem;
}
.tenant-simple-storefront .site-footer .footer-section:last-child p:last-child a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .75rem;
    border: 1px solid rgba(213, 226, 216, .24);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tenant-simple-storefront .site-footer .footer-section:last-child p:last-child a:hover {
    border-color: rgba(213, 226, 216, .55);
    background: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}
@media (max-width: 700px) {
    .tenant-simple-storefront .navbar { min-height: 64px; }
    .tenant-simple-storefront .nav-links { gap: 16px; }
    .tenant-simple-storefront .nav-links a { font-size: .68rem; }
    .tenant-simple-storefront .hero.hero-compact { min-height: 500px; padding: 6rem 1rem 2.5rem; }
    .tenant-simple-storefront .hero-content { padding: 0 14px; }
    .tenant-simple-storefront .hero-compact .hero-title { font-size: clamp(2.4rem, 13vw, 4rem); }
    .tenant-simple-storefront .events-section { padding: 3rem 16px 4rem; }
    .tenant-simple-storefront #albums { grid-template-columns: 1fr; }
}
.gallery-cover-choice { border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; background: var(--bg); color: var(--text); cursor: pointer; text-align: left; }
.gallery-cover-choice.selected { border-color: var(--accent, #16a34a); box-shadow: 0 0 0 2px rgba(22,163,74,.2); }
.gallery-cover-choice img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.gallery-cover-choice span { display: block; padding: .35rem; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Next-level photographer storefront: stronger hierarchy without extra sections. */
.tenant-simple-storefront {
    --storefront-paper: #f5f8f5;
    --storefront-ink: #10261d;
    --storefront-muted: #6d8175;
    --storefront-line: #dbe6de;
    --brand-primary: #347357 !important;
    --brand-accent: #b8dca4 !important;
}
.tenant-simple-storefront .navbar {
    border-bottom: 1px solid rgba(16, 38, 29, .08);
    box-shadow: 0 6px 24px rgba(16, 38, 29, .04);
}
.tenant-simple-storefront .nav-inner {
    max-width: 1280px;
    padding-inline: 28px;
}
.tenant-simple-storefront .nav-brand {
    color: var(--storefront-ink) !important;
    font-size: 1.05rem;
    letter-spacing: -.025em;
}
.tenant-simple-storefront .nav-links a {
    color: var(--storefront-muted);
    font-weight: 700;
    letter-spacing: .08em;
    transition: color .2s ease;
}
.tenant-simple-storefront .nav-links a:hover,
.tenant-simple-storefront .nav-links a:focus-visible {
    color: var(--brand-primary, #347357);
}
.tenant-simple-storefront .hero.hero-compact {
    min-height: min(710px, calc(100vh - 72px));
    background-position: center 38%;
}
.tenant-simple-storefront .hero.hero-compact::before {
    background: linear-gradient(90deg, rgba(4, 12, 9, .86) 0%, rgba(4, 12, 9, .56) 43%, rgba(4, 12, 9, .18) 100%);
}
.tenant-simple-storefront .hero-content {
    max-width: 1280px;
    width: 100%;
}
.tenant-simple-storefront .hero-compact .hero-title {
    max-width: 760px;
    font-size: clamp(3rem, 6.2vw, 6.25rem);
    letter-spacing: -.075em;
    text-wrap: balance;
}
.tenant-simple-storefront .hero-subtitle {
    font-size: 1.08rem;
    letter-spacing: .01em;
}
.tenant-simple-storefront .hero-event-search {
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
}
.tenant-simple-storefront .hero-action-primary {
    border-radius: 10px;
    background: var(--brand-primary, #347357) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.tenant-simple-storefront .hero-action-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}
.tenant-simple-storefront main {
    background: var(--storefront-paper);
}
.tenant-simple-storefront .events-section {
    max-width: 1280px;
    padding-top: 5.25rem;
    padding-bottom: 5.5rem;
}
.tenant-simple-storefront .albums-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--storefront-line);
}
.tenant-simple-storefront .albums-header h2 {
    margin: .35rem 0 0;
    color: var(--storefront-ink);
    font-size: clamp(1.8rem, 3.3vw, 2.85rem);
    text-transform: none;
}
.tenant-simple-storefront .albums-header p {
    max-width: 360px;
    margin: 0;
    text-align: right;
}
.tenant-simple-storefront .album-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tenant-simple-storefront .album-thumbnail .album-badge,
.tenant-simple-storefront .album-thumbnail .album-photo-count {
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.tenant-simple-storefront .site-footer {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}
.tenant-simple-storefront .site-footer .footer-content {
    max-width: 1280px;
    gap: 4rem;
}
.tenant-simple-storefront .site-footer h4 {
    color: #fff;
    letter-spacing: -.02em;
}
.tenant-simple-storefront .site-footer .footer-bottom {
    max-width: 1280px;
    margin-inline: auto;
}
@media (max-width: 700px) {
    .tenant-simple-storefront .nav-inner { padding-inline: 16px; }
    .tenant-simple-storefront .hero.hero-compact { min-height: 620px; }
    .tenant-simple-storefront .hero-compact .hero-title { font-size: clamp(2.7rem, 14vw, 4.5rem); }
    .tenant-simple-storefront .albums-header { display: block; }
    .tenant-simple-storefront .albums-header p { margin-top: .65rem; text-align: left; }
    .tenant-simple-storefront .site-footer .footer-content { gap: 2rem; }
}

/* Modern finishing touches: reduce legacy visual noise and sharpen interaction states. */
.tenant-simple-storefront {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.tenant-simple-storefront .nav-brand img,
.tenant-simple-storefront .nav-brand .tenant-logo {
    border: 1px solid rgba(52, 115, 87, .16);
    box-shadow: 0 3px 12px rgba(16, 38, 29, .1);
}
.tenant-simple-storefront .hero-actions {
    border-top: 0 !important;
    padding-top: 0 !important;
}
.tenant-simple-storefront .hero-action-primary {
    min-height: 44px;
    padding-inline: 1.1rem;
    font-weight: 800;
    letter-spacing: .01em;
}
.tenant-simple-storefront .hero-event-search:focus-within {
    border-color: rgba(184, 220, 164, .9);
    box-shadow: 0 0 0 4px rgba(184, 220, 164, .18), 0 14px 40px rgba(0,0,0,.22);
}
.tenant-simple-storefront .events-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.tenant-simple-storefront .events-kicker::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-primary, #347357);
}
.tenant-simple-storefront .album-thumbnail .album-badge,
.tenant-simple-storefront .album-thumbnail .album-photo-count {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.tenant-simple-storefront .album-card:focus-within {
    outline: 3px solid rgba(52, 115, 87, .28);
    outline-offset: 3px;
}
.tenant-simple-storefront .site-footer .footer-section:first-child p {
    max-width: 360px;
}
.tenant-simple-storefront a:focus-visible,
.tenant-simple-storefront button:focus-visible,
.tenant-simple-storefront input:focus-visible {
    outline: 3px solid rgba(52, 115, 87, .38);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .tenant-simple-storefront *,
    .tenant-simple-storefront *::before,
    .tenant-simple-storefront *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Premium album experience: keep the public gallery focused on the cover,
   title and photos instead of leaving the hidden album index space behind. */
.tenant-simple-storefront.album-open main { max-width: none; padding: 0 0 4rem; }
.tenant-simple-storefront.album-open #gallery-view { max-width: 1360px; margin: 0 auto; padding: 1rem clamp(1rem, 2.8vw, 2.5rem) 3.5rem; border-radius: 0 0 24px 24px; background: linear-gradient(145deg, #101018 0%, #0b0b12 100%); box-shadow: 0 22px 70px rgba(17, 28, 22, .16); }
.tenant-simple-storefront.album-open #back-to-albums { margin: 0 0 1rem; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: rgba(255,255,255,.86); font-size: .8rem; font-weight: 750; }
.tenant-simple-storefront.album-open #back-to-albums:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.13); }
.tenant-simple-storefront.album-open .gallery-cover-hero { max-width: none; margin-bottom: 0; border-color: rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.tenant-simple-storefront.album-open .gallery-cover-hero.is-visible + .album-page-heading { max-width: none; margin-bottom: 1.9rem; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.tenant-simple-storefront.album-open .album-page-heading #album-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: -.045em; }
.tenant-simple-storefront.album-open .album-meta span { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); }
.tenant-simple-storefront.album-open .site-header { box-shadow: 0 8px 28px rgba(18,40,28,.08); }
.tenant-simple-storefront.album-open .nav-brand { letter-spacing: .01em; }
@media (max-width:700px) {
    .tenant-simple-storefront.album-open #gallery-view { padding: .75rem .75rem 2.5rem; border-radius: 0 0 16px 16px; }
    .tenant-simple-storefront.album-open .gallery-cover-hero { aspect-ratio: 4 / 3; border-radius: 14px; }
    .tenant-simple-storefront.album-open .gallery-cover-hero.is-visible + .album-page-heading { margin-bottom: 1.25rem; padding-inline: .65rem; }
}

/* Gallery page: link to the race page ("N other photographers at …"). */
.album-race-link {
    display: flex; flex-direction: column; gap: 2px;
    margin: 12px 0 0; padding: 12px 16px; max-width: 560px;
    border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 12px;
    color: inherit; text-decoration: none;
    background: rgba(183, 255, 66, 0.06);
    transition: border-color .12s ease, background .12s ease;
}
.album-race-link:hover { border-color: var(--accent, #b7ff42); background: rgba(183, 255, 66, 0.10); }
.album-race-kicker { font-weight: 800; font-size: .95rem; }
.album-race-cta { font-size: .85rem; opacity: .8; }
.tenant-simple-storefront .album-race-link { background: transparent; }

/* Cart with several photographers: each one's subtotal at their own prices. */
.cart-photographer-split { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .25rem; font-size: .85rem; opacity: .9; }
.cart-photographer-split li { display: flex; justify-content: space-between; gap: .75rem; }
