/* ==================================================
   PREMIUMPNG — 12 HOURLY THEMES
   --------------------------------------------------
   The theme is chosen by the attribute on <html>:
       <html data-theme="16">   → theme 16
   header.php picks it from the visitor's own clock,
   one theme per hour on a 12-hour clock:

   12:00 → 1  Classic (original)    6:00 → 15 Lavender Mist
    1:00 → 3  Ocean Breeze          7:00 → 16 Graphite Pro  (dark)
    2:00 → 4  Forest Lodge          8:00 → 17 Mint Fresh
    3:00 → 6  Royal Purple  (dark)  9:00 → 19 Electric Blue
    4:00 → 8  Neon Cyber    (dark) 10:00 → 21 Aurora Night  (dark)
    5:00 → 11 Arctic Glass         11:00 → 25 Deep Ocean    (dark)

   (same order for AM and PM)
   No attribute = theme 1 (original style).
   The theme number also picks the homepage layout
   (index.php, sections A2 and G) and the image-details
   style (section H).

   The transparent-image preview (.checkerboard-bg / canvas)
   is locked to the original look on every theme (section E).
   ================================================== */


/* ##################################################
   A. THEME 1 — CLASSIC (original style, unchanged)
   ################################################## */

:root {
    --premiumpng-primary: #d49a17;
    --premiumpng-primary-hover: #b07d09;
    --premiumpng-dark: #0a0f1d;
    --premiumpng-gray-light: #f8f9fa;
    --premiumpng-border-color: #e2e8f0;
    --premiumpng-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

body {
    font-family: var(--premiumpng-font);
    color: #2b2f3e;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 65px; /* Offset for fixed top navbar */
}

/* NAVBAR */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: #ffffff !important;
    z-index: 1030;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0a0f1d 0%, #1e293b 100%);
    border: 2px solid #d49a17;
    border-radius: 50%;
    color: #d49a17;
}

.logo-text-p { font-weight: 800; font-size: 16px; line-height: 1; }
.brand-title { font-size: 1.15rem; letter-spacing: -0.3px; }
.brand-subtitle { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2px; }
.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.72rem; }
.fs-9 { font-size: 0.65rem; }

.navbar-nav .nav-link {
    color: #4a5568;
    font-size: 0.92rem;
    font-weight: 500;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover { color: var(--premiumpng-primary); }

.navbar-nav .nav-link.active {
    color: var(--premiumpng-primary) !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--premiumpng-primary);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link.active::after { display: none; }
}

/* BUTTONS & BADGES */
.bg-premiumpng { background-color: var(--premiumpng-primary) !important; }

.btn-premiumpng {
    background-color: var(--premiumpng-primary);
    border-color: var(--premiumpng-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-premiumpng:hover {
    background-color: var(--premiumpng-primary-hover);
    border-color: var(--premiumpng-primary-hover);
}

.btn-login {
    background-color: #f8f9fa;
    border: 1px solid var(--premiumpng-border-color);
    color: #2d3748;
    font-size: 0.9rem;
}

.btn-login:hover { background-color: #edf2f7; color: #1a202c; }

.badge-cart {
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    top: 4px !important;
    left: 24px !important;
}

/* HERO */
.hero-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1507608616759-54f48f0af0ee?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    padding: 100px 0 80px 0;
    color: #ffffff;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.search-box-pill {
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 680px;
    margin: 35px auto 35px auto;
}

.search-category-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    background: none;
    border: none;
    padding-right: 15px;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}

.search-input {
    border: none;
    outline: none;
    box-shadow: none !important;
    font-size: 0.92rem;
    color: #2d3748;
    padding-left: 15px;
}

.search-input::placeholder { color: #a0aec0; font-weight: 400; }

.search-submit-btn {
    border: none;
    background: none;
    color: #4a5568;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.search-submit-btn:hover { color: var(--premiumpng-primary); }

.category-pills-container { gap: 12px; }

.category-pill {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.category-pill i { font-size: 0.9rem; opacity: 0.9; }

/* VALUE PROPS */
.value-props-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
    padding: 30px 0;
}

.prop-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.bg-prop-upload { background-color: #6366f1; }
.bg-prop-money { background-color: #22c55e; }
.bg-prop-download { background-color: #ef4444; }
.bg-prop-secure { background-color: #f97316; }

.prop-title { font-size: 0.95rem; font-weight: 700; color: #1a202c; margin-bottom: 2px; }
.prop-desc { font-size: 0.82rem; color: #718096; line-height: 1.35; margin-bottom: 0; }
.prop-divider { border-right: 1px solid #edf2f7; }

@media (max-width: 991.98px) {
    .prop-divider {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

/* COLLECTIONS */
.collections-section { padding: 45px 0 30px 0; }

.section-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.view-all-link {
    color: var(--premiumpng-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.view-all-link:hover { color: var(--premiumpng-primary-hover); text-decoration: underline; }

.grid-5-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1199.98px) { .grid-5-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .grid-5-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-5-cols { grid-template-columns: 1fr; } }

.collection-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.collection-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.collection-name { font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: 2px; line-height: 1.2; }
.collection-count { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); font-weight: 400; }

/* HOW IT WORKS */
.how-it-works-section { padding: 55px 0; background-color: #ffffff; }

.step-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0 auto 16px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bg-step-1 { background-color: #4f46e5; }
.bg-step-2 { background-color: #22c55e; }
.bg-step-3 { background-color: #eab308; }
.bg-step-4 { background-color: #a855f7; }

.step-title { font-size: 0.95rem; font-weight: 700; color: #1a202c; margin-bottom: 6px; }
.step-desc { font-size: 0.83rem; color: #718096; line-height: 1.4; max-width: 190px; margin: 0 auto; }
.step-arrow-container { display: flex; align-items: center; justify-content: center; padding-top: 15px; }
.step-arrow { color: #cbd5e1; font-size: 1.1rem; }
@media (max-width: 767.98px) { .step-arrow-container { display: none; } }

/* Checkerboard background for image preview */
.checkerboard-bg {
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.bg-purple { background-color: #7c3aed !important; }

.card { transition: transform 0.3s ease, box-shadow 0.3s ease; }

.collection-card:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.badge.bg-success { background-color: #22c55e !important; }
.badge.bg-info { background-color: #0ea5e9 !important; }


/* ##################################################
   A2. HOMEPAGE (index.php) — LAYOUT 1 (original)
   Moved here from the <style> block in index.php.
   ################################################## */

:root {

    --pp-black: #101114;
    --pp-dark: #17191e;
    --pp-dark-2: #20232a;

    --pp-text: #181a1f;
    --pp-muted: #565b65;

    --pp-border: #e8e9ed;
    --pp-bg: #f6f7f9;
    --pp-white: #ffffff;

    --pp-radius: 22px;
    --pp-radius-sm: 14px;
}

.pp-modern-hero {

    position: relative;

    min-height: 650px;

    margin: 0;

    overflow: hidden;

    background: #17191e;

    isolation: isolate;
}

.pp-modern-hero > picture {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.pp-modern-hero-bg {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;

    transform: scale(1.02);

    z-index: -3;
}

.pp-modern-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 8, 11, .92) 0%,
            rgba(7, 8, 11, .72) 38%,
            rgba(7, 8, 11, .25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 8, 11, .75) 0%,
            rgba(7, 8, 11, 0) 50%
        );

    z-index: -2;
}

.pp-modern-hero-noise {

    position: absolute;

    inset: 0;

    opacity: .08;

    background-image:
        radial-gradient(
            circle at 20% 30%,
            #fff 0 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 70% 60%,
            #fff 0 1px,
            transparent 1px
        );

    background-size:
        55px 55px,
        85px 85px;

    z-index: -1;
}

.pp-hero-inner {

    width:
        min(
            1240px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    min-height: 650px;

    display: flex;

    align-items: center;

    position: relative;

    padding: 80px 0;
}

.pp-hero-content {

    width:
        min(
            760px,
            100%
        );

    color: #fff;
}

.pp-hero-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 14px;

    margin-bottom: 22px;

    border:
        1px solid
        rgba(255,255,255,.18);

    background:
        rgba(255,255,255,.08);

    backdrop-filter: blur(14px);

    border-radius: 999px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .04em;
}

h1.pp-hero-eyebrow {
    margin-top: 0;
    line-height: 1.4;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.pp-hero-eyebrow i {
    font-size: 11px;
}

.pp-hero-title {

    margin: 0;

    font-size:
        clamp(
            46px,
            6vw,
            82px
        );

    line-height: .98;

    letter-spacing: -3px;

    font-weight: 850;

    max-width: 800px;
}

.pp-hero-title span {

    display: block;

    color:
        rgba(255,255,255,.48);
}

.pp-hero-description {

    margin: 24px 0 30px;

    max-width: 620px;

    color:
        rgba(255,255,255,.76);

    font-size: 18px;

    line-height: 1.65;
}

.pp-main-search {

    width:
        min(
            700px,
            100%
        );

    background: #fff;

    border-radius: 16px;

    padding: 7px;

    display: flex;

    align-items: center;

    box-shadow:
        0 22px 60px
        rgba(0,0,0,.25);
}

.pp-main-search-icon {

    width: 48px;

    text-align: center;

    color: #7a7d85;

    font-size: 17px;
}

.pp-main-search input {

    flex: 1;

    min-width: 0;

    border: 0;

    outline: 0;

    height: 50px;

    font-size: 15px;

    color: #15171b;

    background: transparent;
}

.pp-main-search button {

    height: 50px;

    border: 0;

    border-radius: 12px;

    padding: 0 25px;

    background: #111318;

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.pp-main-search button:hover {

    background: #2a2d34;

    transform: translateY(-1px);
}

.pp-hero-links {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 18px;
}

.pp-hero-links a {

    color:
        rgba(255,255,255,.82);

    border:
        1px solid
        rgba(255,255,255,.16);

    background:
        rgba(255,255,255,.07);

    backdrop-filter: blur(10px);

    padding: 8px 13px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition: .2s ease;
}

.pp-hero-links a:hover {

    color: #fff;

    background:
        rgba(255,255,255,.15);
}

.pp-hero-stats {

    position: absolute;

    right: 0;

    bottom: 55px;

    display: flex;

    gap: 10px;
}

.pp-stat {

    min-width: 130px;

    padding: 17px 18px;

    border:
        1px solid
        rgba(255,255,255,.13);

    background:
        rgba(15,16,20,.48);

    backdrop-filter: blur(15px);

    border-radius: 15px;

    color: #fff;
}

.pp-stat-number {

    display: block;

    font-size: 22px;

    font-weight: 800;

    letter-spacing: -.5px;
}

.pp-stat-label {

    display: block;

    margin-top: 3px;

    color:
        rgba(255,255,255,.55);

    font-size: 11px;
}

.pp-modern-section {

    padding: 92px 0;
}

.pp-modern-section.gray {

    background:
        var(--pp-bg);
}

.pp-container {

    width:
        min(
            1240px,
            calc(100% - 40px)
        );

    margin: 0 auto;
}

.pp-section-top {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 30px;

    margin-bottom: 30px;
}

.pp-section-kicker {

    color: #5f646d;

    text-transform: uppercase;

    letter-spacing: .13em;

    font-size: 11px;

    font-weight: 800;

    margin-bottom: 9px;
}

.pp-section-title-modern {

    margin: 0;

    font-size:
        clamp(
            28px,
            4vw,
            42px
        );

    letter-spacing: -1.7px;

    line-height: 1.08;

    font-weight: 820;

    color:
        var(--pp-text);
}

.pp-section-description {

    margin: 10px 0 0;

    color:
        var(--pp-muted);

    font-size: 14px;
}

.pp-view-link {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color:
        var(--pp-text);

    text-decoration: none;

    font-size: 13px;

    font-weight: 750;
}

.pp-view-link i {

    transition: .2s ease;
}

.pp-view-link:hover i {

    transform:
        translateX(4px);
}

.pp-category-scroll {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.pp-category-modern {

    position: relative;

    height: 190px;

    overflow: hidden;

    border-radius: 18px;

    text-decoration: none;

    background: #ddd;

    isolation: isolate;
}

.pp-category-modern-bg {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform .5s ease;

    z-index: -2;
}

.pp-category-modern::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.04),
            rgba(0,0,0,.72)
        );

    z-index: -1;
}

.pp-category-modern:hover
.pp-category-modern-bg {

    transform:
        scale(1.07);
}

.pp-category-modern-content {

    position: absolute;

    left: 19px;

    right: 19px;

    bottom: 18px;

    color: #fff;
}

.pp-category-modern-icon {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 12px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.15);

    backdrop-filter: blur(10px);

    font-size: 13px;
}

.pp-category-modern-name {

    font-size: 18px;

    font-weight: 800;
}

.pp-category-modern-count {

    margin-top: 4px;

    color:
        rgba(255,255,255,.68);

    font-size: 11px;
}

.pp-trending-grid {

    display: grid;

    grid-template-columns:
        1.3fr .85fr .85fr;

    grid-template-rows:
        255px 255px;

    gap: 14px;
}

.pp-feature-card {

    position: relative;

    min-width: 0;

    min-height: 0;

    overflow: hidden;

    border-radius: 18px;

    background: #e8e9eb;

    text-decoration: none;

    isolation: isolate;
}

.pp-feature-card.large {

    grid-row:
        span 2;
}

.pp-feature-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform .55s ease;

    z-index: -2;
}

.pp-feature-card:hover
.pp-feature-image {

    transform:
        scale(1.06);
}

.pp-feature-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 30%,
            rgba(0,0,0,.78) 100%
        );

    z-index: -1;
}

.pp-feature-info {

    position: absolute;

    left: 19px;

    right: 19px;

    bottom: 17px;

    color: #fff;
}

.pp-feature-badge {

    display: inline-flex;

    padding: 5px 8px;

    margin-bottom: 9px;

    border-radius: 7px;

    background:
        rgba(255,255,255,.16);

    backdrop-filter: blur(10px);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .05em;
}

.pp-feature-title {

    font-size: 15px;

    line-height: 1.3;

    font-weight: 750;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.pp-feature-card.large
.pp-feature-title {

    font-size: 22px;
}

.pp-feature-meta {

    margin-top: 7px;

    display: flex;

    gap: 12px;

    color:
        rgba(255,255,255,.65);

    font-size: 10px;
}

.pp-exclusive-section {

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(198,154,56,.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(198,154,56,.07),
            transparent 30%
        ),
        #fff;
}

.pp-exclusive-section::before {

    content: "";

    position: absolute;

    width: 380px;

    height: 380px;

    right: -180px;

    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(198,154,56,.10),
            transparent 68%
        );

    pointer-events: none;
}

.pp-exclusive-section .pp-section-kicker {

    color: #b1842f;
}

.pp-exclusive-section .pp-section-description {

    max-width: 760px;
}

.pp-exclusive-explore {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    min-width: 245px;

    padding: 14px 17px;

    border-radius: 15px;

    color: #fff;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #c69a45,
            #9a6b1e
        );

    border:
        1px solid
        rgba(255,255,255,.35);

    box-shadow:
        0 12px 28px
        rgba(145,103,32,.20);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.pp-exclusive-explore span {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .01em;
}

.pp-exclusive-explore span i {

    font-size: 13px;
}

.pp-exclusive-explore-arrow {

    font-size: 11px;

    transition:
        transform .25s ease;
}

.pp-exclusive-explore:hover {

    color: #fff;

    transform:
        translateY(-2px);

    box-shadow:
        0 17px 34px
        rgba(145,103,32,.28);

    filter:
        brightness(1.04);
}

.pp-exclusive-explore:hover
.pp-exclusive-explore-arrow {

    transform:
        translateX(4px);
}

.pp-exclusive-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr 1.35fr;

    grid-template-rows:
        245px 245px;

    gap: 14px;

    margin-top: 8px;
}

.pp-exclusive-card {

    position: relative;

    min-width: 0;

    min-height: 0;

    overflow: hidden;

    border-radius: 20px;

    background: #ece8df;

    text-decoration: none;

    isolation: isolate;

    border:
        1px solid
        rgba(184,142,47,.17);

    box-shadow:
        0 12px 32px
        rgba(25,22,16,.07);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.pp-exclusive-card.large {

    grid-column: 3;

    grid-row:
        1 / span 2;
}

.pp-exclusive-card:nth-child(2) {

    grid-column: 1;

    grid-row: 1;
}

.pp-exclusive-card:nth-child(3) {

    grid-column: 2;

    grid-row: 1;
}

.pp-exclusive-card:nth-child(4) {

    grid-column: 1;

    grid-row: 2;
}

.pp-exclusive-card:nth-child(5) {

    grid-column: 2;

    grid-row: 2;
}

.pp-exclusive-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(184,142,47,.38);

    box-shadow:
        0 20px 42px
        rgba(25,22,16,.13);
}

.pp-exclusive-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform .65s
        cubic-bezier(.2,.7,.2,1);

    z-index: -2;
}

.pp-exclusive-card:hover
.pp-exclusive-image {

    transform:
        scale(1.07);
}

.pp-exclusive-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.01) 15%,
            rgba(0,0,0,.08) 42%,
            rgba(0,0,0,.82) 100%
        );

    z-index: -1;

    pointer-events: none;
}

.pp-exclusive-card::after {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.13),
            transparent 35%,
            transparent 70%,
            rgba(205,164,77,.08)
        );

    opacity: .75;

    pointer-events: none;
}

.pp-exclusive-info {

    position: absolute;

    left: 19px;

    right: 19px;

    bottom: 18px;

    color: #fff;

    z-index: 2;
}

.pp-exclusive-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 9px;

    margin-bottom: 9px;

    border-radius: 999px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(202,157,65,.96),
            rgba(132,94,26,.94)
        );

    border:
        1px solid
        rgba(255,255,255,.20);

    box-shadow:
        0 5px 16px
        rgba(0,0,0,.20);

    backdrop-filter: blur(10px);

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .05em;

    text-transform: uppercase;
}

.pp-exclusive-title {

    font-size: 15px;

    line-height: 1.3;

    font-weight: 780;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    text-shadow:
        0 2px 10px
        rgba(0,0,0,.28);
}

.pp-exclusive-card.large
.pp-exclusive-title {

    font-size: 23px;

    line-height: 1.28;
}

.pp-exclusive-meta {

    margin-top: 7px;

    display: flex;

    gap: 12px;

    color:
        rgba(255,255,255,.72);

    font-size: 10px;
}

.pp-exclusive-license {

    margin-top: 7px;

    color:
        rgba(255,255,255,.88);

    font-size: 10px;

    line-height: 1.35;
}

.pp-exclusive-license i {

    margin-right: 4px;

    color: #e4c477;
}

.pp-exclusive-card.large::before {

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.01) 12%,
            rgba(0,0,0,.12) 40%,
            rgba(0,0,0,.88) 100%
        );
}

.pp-exclusive-card.large
.pp-exclusive-info {

    left: 24px;

    right: 24px;

    bottom: 23px;
}

.pp-exclusive-card.large
.pp-exclusive-badge {

    padding: 6px 11px;
}

.pp-type-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.pp-type-card {

    position: relative;

    min-height: 205px;

    padding: 25px;

    border-radius: 18px;

    background: #fff;

    border:
        1px solid
        var(--pp-border);

    text-decoration: none;

    color:
        var(--pp-text);

    overflow: hidden;

    transition: .25s ease;
}

.pp-type-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 18px 40px
        rgba(20,22,27,.08);
}

.pp-type-number {

    position: absolute;

    right: 17px;

    top: 13px;

    color: #f0f1f3;

    font-size: 65px;

    font-weight: 900;

    line-height: 1;
}

.pp-type-icon {

    position: relative;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #f2f3f5;

    margin-bottom: 27px;

    font-weight: 850;

    font-size: 12px;
}

.pp-type-title {

    position: relative;

    font-size: 20px;

    font-weight: 820;

    margin-bottom: 7px;
}

.pp-type-text {

    position: relative;

    color:
        var(--pp-muted);

    font-size: 12px;

    line-height: 1.6;
}

.pp-latest-grid {

    columns:
        4 240px;

    column-gap: 14px;
}

.pp-latest-item {

    break-inside: avoid;

    margin-bottom: 14px;
}

.pp-image-modern {

    display: block;

    position: relative;

    overflow: hidden;

    border-radius: 15px;

    background: #eceef1;

    text-decoration: none;

    color: #fff;
}

.pp-image-modern img {

    width: 100%;

    height: auto;

    min-height: 150px;

    display: block;

    object-fit: cover;

    transition:
        transform .5s ease;
}

.pp-image-modern:hover img {

    transform:
        scale(1.045);
}

.pp-image-modern-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 16px;

    background:
        linear-gradient(
            180deg,
            transparent 35%,
            rgba(0,0,0,.72)
        );

    opacity: 0;

    transition: .25s ease;
}

.pp-image-modern:hover
.pp-image-modern-overlay {

    opacity: 1;
}

.pp-image-modern-title {

    font-size: 13px;

    font-weight: 750;

    line-height: 1.3;
}

.pp-image-modern-meta {

    display: flex;

    justify-content: space-between;

    margin-top: 6px;

    color:
        rgba(255,255,255,.68);

    font-size: 10px;
}

.pp-image-modern-badge {

    position: absolute;

    top: 11px;

    left: 11px;

    padding: 5px 8px;

    border-radius: 7px;

    background:
        rgba(0,0,0,.48);

    backdrop-filter: blur(8px);

    font-size: 9px;

    font-weight: 800;
}

.pp-discover {

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.12),
            transparent 30%
        ),
        #15171c;

    color: #fff;

    padding: 55px;
}

.pp-discover::before {

    content: "PNG";

    position: absolute;

    right: 35px;

    bottom: -70px;

    color:
        rgba(255,255,255,.025);

    font-size: 250px;

    font-weight: 900;

    line-height: 1;
}

.pp-discover-content {

    position: relative;

    max-width: 700px;
}

.pp-discover-kicker {

    color:
        rgba(255,255,255,.5);

    text-transform: uppercase;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .14em;
}

.pp-discover-title {

    margin: 12px 0;

    font-size:
        clamp(
            30px,
            4vw,
            47px
        );

    line-height: 1.05;

    letter-spacing: -1.7px;

    font-weight: 850;
}

.pp-discover-text {

    color:
        rgba(255,255,255,.62);

    max-width: 590px;

    font-size: 14px;

    line-height: 1.7;
}

.pp-discover-buttons {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 24px;
}

.pp-discover-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 19px;

    border-radius: 11px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 750;

    transition: .2s ease;
}

.pp-discover-button.primary {

    background: #fff;

    color: #14161a;
}

.pp-discover-button.secondary {

    color: #fff;

    border:
        1px solid
        rgba(255,255,255,.17);

    background:
        rgba(255,255,255,.06);
}

.pp-discover-button:hover {

    transform:
        translateY(-2px);
}

.pp-empty-modern {

    padding: 50px 20px;

    text-align: center;

    background: #fff;

    border:
        1px dashed
        #dfe1e5;

    border-radius: 18px;

    color: #777b83;
}

.pp-empty-modern i {

    font-size: 30px;

    margin-bottom: 12px;
}

@media (max-width: 1000px) {

    .pp-category-scroll {

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

    .pp-type-grid {

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

    .pp-trending-grid {

        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            280px 280px;
    }

    .pp-feature-card.large {

        grid-column:
            span 2;

        grid-row: auto;
    }

    .pp-hero-stats {

        display: none;
    }

    .pp-exclusive-grid {

        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            280px 280px 280px;

        gap: 12px;
    }

    .pp-exclusive-card.large {

        grid-column:
            1 / span 2;

        grid-row: 1;
    }

    .pp-exclusive-card:nth-child(2) {

        grid-column: 1;

        grid-row: 2;
    }

    .pp-exclusive-card:nth-child(3) {

        grid-column: 2;

        grid-row: 2;
    }

    .pp-exclusive-card:nth-child(4) {

        grid-column: 1;

        grid-row: 3;
    }

    .pp-exclusive-card:nth-child(5) {

        grid-column: 2;

        grid-row: 3;
    }
}

@media (max-width: 700px) {

    .pp-modern-hero {

        min-height: 600px;
    }

    .pp-hero-inner {

        min-height: 600px;

        width:
            calc(100% - 28px);

        padding: 55px 0;
    }

    .pp-hero-title {

        font-size:
            clamp(
                42px,
                13vw,
                62px
            );

        letter-spacing: -2.5px;
    }

    .pp-hero-description {

        font-size: 15px;

        line-height: 1.55;
    }

    .pp-main-search {

        padding: 6px;
    }

    .pp-main-search-icon {

        display: none;
    }

    .pp-main-search input {

        padding-left: 12px;

        font-size: 14px;
    }

    .pp-main-search button {

        padding: 0 17px;
    }

    .pp-modern-section {

        padding: 62px 0;
    }

    .pp-container {

        width:
            calc(100% - 28px);
    }

    .pp-section-top {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .pp-section-title-modern {

        font-size: 31px;
    }

    .pp-category-scroll {

        grid-template-columns:
            1fr 1fr;

        gap: 9px;
    }

    .pp-category-modern {

        height: 155px;

        border-radius: 14px;
    }

    .pp-category-modern-content {

        left: 13px;

        right: 13px;

        bottom: 13px;
    }

    .pp-category-modern-icon {

        width: 29px;

        height: 29px;

        margin-bottom: 8px;
    }

    .pp-category-modern-name {

        font-size: 14px;
    }

    .pp-trending-grid {

        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            210px 210px;

        gap: 9px;
    }

    .pp-feature-card {

        border-radius: 13px;
    }

    .pp-feature-card.large {

        grid-column:
            span 2;
    }

    .pp-feature-title,
.pp-feature-card.large
    .pp-feature-title {

        font-size: 13px;
    }

    .pp-type-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 9px;
    }

    .pp-type-card {

        min-height: 175px;

        padding: 18px;

        border-radius: 14px;
    }

    .pp-type-icon {

        width: 39px;

        height: 39px;

        margin-bottom: 20px;
    }

    .pp-type-title {

        font-size: 16px;
    }

    .pp-type-text {

        font-size: 11px;
    }

    .pp-latest-grid {

        columns:
            2 150px;

        column-gap: 9px;
    }

    .pp-latest-item {

        margin-bottom: 9px;
    }

    .pp-image-modern {

        border-radius: 11px;
    }

    .pp-image-modern-overlay {

        opacity: 1;

        padding: 10px;
    }

    .pp-image-modern-title {

        font-size: 10px;
    }

    .pp-image-modern-meta {

        font-size: 8px;
    }

    .pp-exclusive-explore {

        width: 100%;

        min-width: 0;

        margin-top: 14px;

        padding: 12px 14px;
    }

    .pp-exclusive-explore span {

        font-size: 11px;
    }

    .pp-exclusive-grid {

        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            220px 180px 180px;

        gap: 9px;

        margin-top: 4px;
    }

    .pp-exclusive-card {

        border-radius: 14px;
    }

    .pp-exclusive-card.large {

        grid-column:
            1 / span 2;

        grid-row: 1;
    }

    .pp-exclusive-card:nth-child(2) {

        grid-column: 1;

        grid-row: 2;
    }

    .pp-exclusive-card:nth-child(3) {

        grid-column: 2;

        grid-row: 2;
    }

    .pp-exclusive-card:nth-child(4) {

        grid-column: 1;

        grid-row: 3;
    }

    .pp-exclusive-card:nth-child(5) {

        grid-column: 2;

        grid-row: 3;
    }

    .pp-exclusive-info {

        left: 11px;

        right: 11px;

        bottom: 11px;
    }

    .pp-exclusive-card.large
    .pp-exclusive-info {

        left: 14px;

        right: 14px;

        bottom: 14px;
    }

    .pp-exclusive-title,
.pp-exclusive-card.large
    .pp-exclusive-title {

        font-size: 13px;

        line-height: 1.3;
    }

    .pp-exclusive-badge {

        padding: 4px 7px;

        margin-bottom: 6px;

        font-size: 8px;
    }

    .pp-exclusive-meta {

        font-size: 8px;

        gap: 7px;

        margin-top: 5px;
    }

    .pp-exclusive-license {

        font-size: 8px;

        margin-top: 5px;
    }

    .pp-discover {

        padding: 32px 23px;

        border-radius: 18px;
    }

    .pp-discover-title {

        font-size: 31px;
    }
}

@media (max-width: 420px) {

    .pp-category-scroll {

        grid-template-columns:
            1fr 1fr;
    }

    .pp-type-grid {

        grid-template-columns:
            1fr 1fr;
    }

    .pp-main-search button {

        font-size: 12px;

        padding: 0 13px;
    }

    .pp-hero-links {

        gap: 6px;
    }

    .pp-hero-links a {

        padding: 7px 10px;

        font-size: 10px;
    }
}

.pp-exclusive-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 205px;
    gap: 14px;
    margin-top: 10px;
}

.pp-exclusive-card,
.pp-exclusive-card.large,
.pp-exclusive-card:nth-child(2),
.pp-exclusive-card:nth-child(3),
.pp-exclusive-card:nth-child(4),
.pp-exclusive-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    min-height: 205px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(20,22,27,.10);
}

.pp-exclusive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(20,22,27,.18);
}

.pp-exclusive-card::after {
    background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%, rgba(255,255,255,.03));
}

.pp-exclusive-card.large .pp-exclusive-title,
.pp-exclusive-title {
    font-size: 13px;
    line-height: 1.3;
}

.pp-exclusive-info {
    left: 12px;
    right: 12px;
    bottom: 12px;
}

.pp-exclusive-badge {
    padding: 4px 8px;
    margin-bottom: 7px;
    font-size: 8px;
}

.pp-exclusive-meta,
.pp-exclusive-license {
    font-size: 8px;
}

.pp-type-grid {
    gap: 16px;
}

.pp-type-card {
    min-height: 230px;
    padding: 26px;
    border: 1px solid rgba(229,57,53,.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(229,57,53,.10), transparent 38%),
        linear-gradient(145deg, #fff 0%, #fff8f8 100%);
    box-shadow: 0 10px 30px rgba(35,20,20,.055);
    isolation: isolate;
}

.pp-type-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #e53935, #ff706b);
    border-radius: 22px 0 0 22px;
    transition: width .28s ease;
}

.pp-type-card::after {
    content: "";
    position: absolute;
    width: 105px;
    height: 105px;
    right: -38px;
    bottom: -42px;
    border-radius: 50%;
    background: rgba(229,57,53,.08);
    transition: transform .35s ease, background .35s ease;
    z-index: -1;
}

.pp-type-card:hover {
    transform: translateY(-7px);
    border-color: rgba(229,57,53,.42);
    box-shadow: 0 20px 45px rgba(229,57,53,.13);
}

.pp-type-card:hover::before {
    width: 8px;
}

.pp-type-card:hover::after {
    transform: scale(1.45);
    background: rgba(229,57,53,.12);
}

.pp-type-number {
    color: rgba(229,57,53,.10);
    font-size: 64px;
}

.pp-type-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(229,57,53,.24);
    transition: transform .3s ease;
}

.pp-type-card:hover .pp-type-icon {
    transform: rotate(-3deg) scale(1.06);
}

.pp-type-title {
    position: relative;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.pp-type-text {
    position: relative;
    margin-top: 9px;
    color: #6d7077;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .pp-exclusive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, 190px);
    }

    .pp-exclusive-card,
.pp-exclusive-card.large,
.pp-exclusive-card:nth-child(2),
.pp-exclusive-card:nth-child(3),
.pp-exclusive-card:nth-child(4),
.pp-exclusive-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
        min-height: 190px;
    }
}

@media (max-width: 700px) {
    .pp-exclusive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, 170px);
        gap: 10px;
    }

    .pp-exclusive-card,
.pp-exclusive-card.large,
.pp-exclusive-card:nth-child(2),
.pp-exclusive-card:nth-child(3),
.pp-exclusive-card:nth-child(4),
.pp-exclusive-card:nth-child(5) {
        min-height: 170px;
        border-radius: 13px;
    }

    .pp-exclusive-info,
.pp-exclusive-card.large .pp-exclusive-info {
        left: 9px;
        right: 9px;
        bottom: 9px;
    }

    .pp-exclusive-title,
.pp-exclusive-card.large .pp-exclusive-title {
        font-size: 11px;
    }

    .pp-exclusive-meta,
.pp-exclusive-license {
        display: none;
    }

    .pp-type-grid {
        gap: 10px;
    }

    .pp-type-card {
        min-height: 205px;
        padding: 20px;
        border-radius: 17px;
    }

    .pp-type-card::before {
        border-radius: 17px 0 0 17px;
    }

    .pp-type-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 14px;
    }

    .pp-type-title {
        font-size: 15px;
    }

    .pp-type-text {
        font-size: 10px;
        line-height: 1.5;
    }
}


/* Navbar shadow added by script.js when the page is scrolled */
.navbar.is-scrolled {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}


/* ##################################################
   B. THEME ENGINE — default tokens (all themes except 1)
   ################################################## */

html[data-theme] {
    /* colour */
    --p: #2563eb;               /* primary / accent        */
    --ph: #1d4ed8;              /* primary hover           */
    --on-p: #ffffff;            /* text on primary         */
    --btn-bg: var(--p);
    --btn-hover-bg: var(--ph);
    --btn-shadow: none;
    --bg: #ffffff;              /* page background         */
    --surface: #ffffff;         /* cards, panels           */
    --surface-2: #f8fafc;       /* alternate sections      */
    --text: #334155;
    --heading: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --focus: rgba(37, 99, 235, 0.2);

    /* navbar */
    --nav-bg: #ffffff;
    --nav-text: #475569;
    --nav-heading: var(--heading);
    --nav-active: var(--p);
    --nav-border: 1px solid var(--border);
    --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --nav-blur: 0px;
    --nav-tt: none;
    --nav-ls: 0;
    --logo-bg: linear-gradient(135deg, #0a0f1d, #1e293b);

    /* hero */
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
    --hero-text: #ffffff;
    --hero-ts: 0 2px 12px rgba(0, 0, 0, 0.35);
    --search-bg: #ffffff;
    --search-text: #0f172a;
    --pill-bg: rgba(0, 0, 0, 0.35);
    --pill-border: rgba(255, 255, 255, 0.3);
    --pill-text: #ffffff;

    /* shape */
    --r: 12px;
    --r-pill: 999px;
    --r-search: 999px;
    --btn-r: 8px;
    --icon-r: 50%;
    --card-bw: 0px;
    --card-bc: transparent;
    --lift: -4px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.3);
    --card-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.85) 100%);

    /* type */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: var(--font);
    --head-w: 800;
    --head-ls: -0.02em;
    --head-tt: none;
    --deco-w: 40px;
    --deco-h: 3px;

    /* icon palette */
    --c1: #6366f1;
    --c2: #22c55e;
    --c3: #ef4444;
    --c4: #f97316;
}


/* ##################################################
   C. THEME ENGINE — shared themed rules (all themes except 1)
   ################################################## */

html[data-theme]:not([data-theme="1"]) {
    --premiumpng-primary: var(--p);
    --premiumpng-primary-hover: var(--ph);
    --premiumpng-border-color: var(--border);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--border);
    --bs-tertiary-bg: var(--surface-2);
    background-color: var(--bg);
}

html[data-theme]:not([data-theme="1"]) body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
}

html[data-theme]:not([data-theme="1"]) ::selection {
    background: var(--p);
    color: var(--on-p);
}

html[data-theme]:not([data-theme="1"]) :is(h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .card-title, .step-title, .prop-title) {
    font-family: var(--font-head);
    letter-spacing: var(--head-ls);
    text-transform: var(--head-tt);
}

html[data-theme]:not([data-theme="1"]) :is(.section-title, .card-title, .step-title, .prop-title) {
    color: var(--heading);
}

html[data-theme]:not([data-theme="1"]) :is(h1, h2, .section-title, .hero-title) {
    font-weight: var(--head-w);
}

/* ---------- Navbar ---------- */
html[data-theme]:not([data-theme="1"]) .navbar {
    background: var(--nav-bg) !important;
    border-bottom: var(--nav-border);
    box-shadow: var(--nav-shadow);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
}

html[data-theme]:not([data-theme="1"]) .navbar.is-scrolled {
    box-shadow: var(--nav-shadow), 0 6px 18px rgba(0, 0, 0, 0.08);
}

html[data-theme]:not([data-theme="1"]) :is(.brand-title, .navbar-brand) {
    color: var(--nav-heading);
    font-family: var(--font-head);
}

html[data-theme]:not([data-theme="1"]) .brand-subtitle { color: var(--nav-text); opacity: 0.8; }

html[data-theme]:not([data-theme="1"]) .logo-icon {
    background: var(--logo-bg);
    border-color: var(--p);
    color: var(--p);
}

html[data-theme]:not([data-theme="1"]) .navbar-nav .nav-link {
    color: var(--nav-text);
    text-transform: var(--nav-tt);
    letter-spacing: var(--nav-ls);
}

html[data-theme]:not([data-theme="1"]) .navbar-nav .nav-link:hover,
html[data-theme]:not([data-theme="1"]) .navbar-nav .nav-link.active {
    color: var(--nav-active) !important;
}

html[data-theme]:not([data-theme="1"]) .navbar-nav .nav-link.active::after {
    background: var(--nav-active);
    height: var(--deco-h);
}

/* ---------- Buttons ---------- */
html[data-theme]:not([data-theme="1"]) .bg-premiumpng { background: var(--btn-bg) !important; color: var(--on-p); }

html[data-theme]:not([data-theme="1"]) .btn-premiumpng {
    background: var(--btn-bg);
    border-color: var(--p);
    color: var(--on-p);
    border-radius: var(--btn-r);
    box-shadow: var(--btn-shadow);
    font-weight: 600;
}

html[data-theme]:not([data-theme="1"]) .btn-premiumpng:hover,
html[data-theme]:not([data-theme="1"]) .btn-premiumpng:focus-visible {
    background: var(--btn-hover-bg);
    border-color: var(--ph);
    color: var(--on-p);
    transform: translateY(-1px);
}

html[data-theme]:not([data-theme="1"]) .btn-primary {
    --bs-btn-bg: var(--p);
    --bs-btn-border-color: var(--p);
    --bs-btn-color: var(--on-p);
    --bs-btn-hover-bg: var(--ph);
    --bs-btn-hover-border-color: var(--ph);
    --bs-btn-hover-color: var(--on-p);
    --bs-btn-active-bg: var(--ph);
    --bs-btn-active-border-color: var(--ph);
    border-radius: var(--btn-r);
}

html[data-theme]:not([data-theme="1"]) .btn-login {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--heading);
    border-radius: var(--btn-r);
}

html[data-theme]:not([data-theme="1"]) .btn-login:hover {
    background: var(--surface);
    border-color: var(--p);
    color: var(--heading);
}

/* ---------- Hero ---------- */
html[data-theme]:not([data-theme="1"]) .hero-overlay { background: var(--hero-overlay); }

html[data-theme]:not([data-theme="1"]) .hero-title {
    color: var(--hero-text);
    text-shadow: var(--hero-ts);
}

html[data-theme]:not([data-theme="1"]) .hero-subtitle { color: var(--hero-text); }

html[data-theme]:not([data-theme="1"]) .search-box-pill {
    background: var(--search-bg);
    border-radius: var(--r-search);
    border: var(--card-bw) solid var(--card-bc);
    box-shadow: var(--shadow-lg);
}

html[data-theme]:not([data-theme="1"]) .search-category-btn {
    color: var(--search-text);
    border-right-color: var(--border);
}

html[data-theme]:not([data-theme="1"]) .search-input {
    color: var(--search-text);
    background: transparent;
}

html[data-theme]:not([data-theme="1"]) .search-input::placeholder { color: var(--muted); }

html[data-theme]:not([data-theme="1"]) .search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--btn-bg);
    color: var(--on-p);
    border-radius: var(--r-search);
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

html[data-theme]:not([data-theme="1"]) .search-submit-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--on-p);
    transform: scale(1.06);
}

html[data-theme]:not([data-theme="1"]) .category-pill {
    background: var(--pill-bg);
    border-color: var(--pill-border);
    color: var(--pill-text);
    border-radius: var(--r-pill);
}

html[data-theme]:not([data-theme="1"]) .category-pill:hover {
    background: var(--p);
    border-color: var(--p);
    color: var(--on-p);
}

/* ---------- Value props ---------- */
html[data-theme]:not([data-theme="1"]) .value-props-bar {
    background: var(--surface);
    border-bottom-color: var(--border);
}

html[data-theme]:not([data-theme="1"]) :is(.prop-icon-circle, .step-icon-circle) {
    border-radius: var(--icon-r);
    transition: transform 0.3s ease;
}

html[data-theme]:not([data-theme="1"]) :is(.prop-icon-circle, .step-icon-circle):hover {
    transform: translateY(-3px) rotate(-4deg);
}

html[data-theme]:not([data-theme="1"]) :is(.bg-prop-upload, .bg-step-1) { background: var(--c1); }
html[data-theme]:not([data-theme="1"]) :is(.bg-prop-money, .bg-step-2) { background: var(--c2); }
html[data-theme]:not([data-theme="1"]) :is(.bg-prop-download, .bg-step-3) { background: var(--c3); }
html[data-theme]:not([data-theme="1"]) :is(.bg-prop-secure, .bg-step-4) { background: var(--c4); }

html[data-theme]:not([data-theme="1"]) :is(.prop-desc, .step-desc) { color: var(--muted); }
html[data-theme]:not([data-theme="1"]) .prop-divider { border-color: var(--border); }

/* ---------- Sections ---------- */
html[data-theme]:not([data-theme="1"]) .collections-section { background: var(--bg); }
html[data-theme]:not([data-theme="1"]) .how-it-works-section { background: var(--surface-2); }

html[data-theme]:not([data-theme="1"]) .section-title::after {
    content: "";
    display: block;
    width: var(--deco-w);
    height: var(--deco-h);
    margin-top: 8px;
    background: var(--p);
    border-radius: var(--deco-h);
}

html[data-theme]:not([data-theme="1"]) .view-all-link { color: var(--p); }
html[data-theme]:not([data-theme="1"]) .view-all-link:hover { color: var(--ph); }
html[data-theme]:not([data-theme="1"]) .step-arrow { color: var(--p); opacity: 0.55; }

/* ---------- Collection cards ---------- */
html[data-theme]:not([data-theme="1"]) .collection-card {
    border-radius: var(--r);
    border: var(--card-bw) solid var(--card-bc);
    box-shadow: var(--shadow);
}

html[data-theme]:not([data-theme="1"]) .collection-card:hover {
    transform: translateY(var(--lift));
    box-shadow: var(--shadow-hover);
}

html[data-theme]:not([data-theme="1"]) .collection-overlay { background: var(--card-overlay); }
html[data-theme]:not([data-theme="1"]) .collection-name { font-family: var(--font-head); }

/* ---------- Generic cards ---------- */
html[data-theme]:not([data-theme="1"]) .card {
    --bs-card-bg: var(--surface);
    --bs-card-color: var(--text);
    --bs-card-border-color: var(--border);
    --bs-card-border-radius: var(--r);
    --bs-card-inner-border-radius: max(0px, calc(var(--r) - 1px));
    box-shadow: var(--shadow);
}

html[data-theme]:not([data-theme="1"]) .card:hover {
    transform: translateY(var(--lift));
    box-shadow: var(--shadow-hover);
}

/* ---------- Forms ---------- */
html[data-theme]:not([data-theme="1"]) :is(.form-control, .form-select) {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
    border-radius: var(--btn-r);
}

html[data-theme]:not([data-theme="1"]) :is(.form-control, .form-select):focus {
    border-color: var(--p);
    box-shadow: 0 0 0 0.2rem var(--focus);
}

html[data-theme]:not([data-theme="1"]) .form-check-input:checked {
    background-color: var(--p);
    border-color: var(--p);
}

/* ---------- Dark themes (6, 8, 16, 21, 25) ----------
   Only the site frame turns dark: navbar, hero, value bar and
   how-it-works. The page body stays light, so any page section
   with its own light background always keeps dark, readable text. */

/* keep the theme's dark colours for the frame */
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) {
    --dk-bg: var(--bg);
    --dk-surface: var(--surface);
    --dk-surface-2: var(--surface-2);
    --dk-text: var(--text);
    --dk-heading: var(--heading);
    --dk-muted: var(--muted);
    --dk-border: var(--border);
}

/* page body: light and readable */
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) body {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #eef0f4;
    --text: #334155;
    --heading: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --search-bg: #ffffff;
    --search-text: #0f172a;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--border);
    --bs-tertiary-bg: var(--surface-2);
}

/* dark frame areas */
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"])
    :is(.navbar, .hero-section, .value-props-bar, .how-it-works-section) {
    --bg: var(--dk-bg);
    --surface: var(--dk-surface);
    --surface-2: var(--dk-surface-2);
    --text: var(--dk-text);
    --heading: var(--dk-heading);
    --muted: var(--dk-muted);
    --border: var(--dk-border);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--border);
    --bs-tertiary-bg: var(--surface-2);
    color-scheme: dark;
    color: var(--text);
}

html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"])
    :is(.navbar, .hero-section, .value-props-bar, .how-it-works-section) :is(h1, h2, h3, h4, h5, h6, .text-dark, .text-body, .text-black, .text-body-emphasis) {
    color: var(--heading) !important;
}

html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"])
    :is(.navbar, .hero-section, .value-props-bar, .how-it-works-section) :is(.text-muted, .text-secondary, .text-body-secondary) {
    color: var(--muted) !important;
}

html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"])
    :is(.navbar, .hero-section, .value-props-bar, .how-it-works-section) :is(.bg-white, .bg-light, .bg-body, .bg-body-tertiary) {
    background-color: var(--surface) !important;
}

html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"])
    :is(.navbar, .hero-section, .value-props-bar, .how-it-works-section) :is(.border, .border-top, .border-bottom, .border-start, .border-end) {
    border-color: var(--border) !important;
}

html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .navbar .dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-color: var(--text);
    --bs-dropdown-border-color: var(--border);
    --bs-dropdown-link-color: var(--text);
    --bs-dropdown-link-hover-color: var(--heading);
    --bs-dropdown-link-hover-bg: var(--surface-2);
    --bs-dropdown-divider-bg: var(--border);
}

/* Dark navbars (dark themes + 4, 20, 23): white hamburger icon */
html:is([data-theme="4"], [data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}


/* ##################################################
   D. THE 11 COLOUR THEMES (3, 4, 6, 8, 11, 15, 16, 17, 19, 21, 25)
   ################################################## */

/* ---------- 3 · OCEAN BREEZE ---------- */
html[data-theme="3"] {
    --p: #0891b2; --ph: #0e7490;
    --bg: #f0fdff; --surface: #ffffff; --surface-2: #ecfeff;
    --text: #164e63; --heading: #083344; --muted: #5b8a99; --border: #cdeff5;
    --nav-text: #155e75;
    --hero-overlay: linear-gradient(160deg, rgba(8, 145, 178, 0.65), rgba(8, 51, 68, 0.72));
    --pill-bg: rgba(255, 255, 255, 0.15); --pill-border: rgba(255, 255, 255, 0.5);
    --r: 20px; --btn-r: 999px; --icon-r: 16px;
    --shadow: 0 8px 24px rgba(8, 145, 178, 0.12);
    --shadow-hover: 0 18px 40px rgba(8, 145, 178, 0.25);
    --font: ui-rounded, "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
    --c1: #06b6d4; --c2: #0ea5e9; --c3: #14b8a6; --c4: #3b82f6;
    --deco-w: 56px; --focus: rgba(8, 145, 178, 0.2);
}

/* ---------- 4 · FOREST LODGE ---------- */
html[data-theme="4"] {
    --p: #2f6b3a; --ph: #22502b;
    --bg: #f6f8f3; --surface: #ffffff; --surface-2: #edf2e6;
    --text: #3a4a3c; --heading: #1c2b1e; --muted: #6b7c6d; --border: #dbe4d2;
    --nav-bg: #1c2b1e; --nav-text: #d7e3cf; --nav-heading: #ffffff; --nav-active: #a7c957;
    --nav-border: none; --logo-bg: #2f6b3a;
    --hero-overlay: linear-gradient(180deg, rgba(28, 43, 30, 0.55), rgba(28, 43, 30, 0.85));
    --pill-bg: rgba(28, 43, 30, 0.5);
    --font-head: Georgia, "Times New Roman", serif; --head-w: 700; --head-ls: 0;
    --r: 6px; --btn-r: 4px; --icon-r: 8px;
    --c1: #2f6b3a; --c2: #6a994e; --c3: #a7c957; --c4: #bc6c25;
    --focus: rgba(47, 107, 58, 0.2);
}

/* ---------- 6 · ROYAL PURPLE (dark) ---------- */
html[data-theme="6"] {
    --p: #a78bfa; --ph: #c4b5fd; --on-p: #ffffff;
    --btn-bg: linear-gradient(135deg, #8b5cf6, #d946ef);
    --btn-hover-bg: linear-gradient(135deg, #7c3aed, #c026d3);
    --bg: #140d26; --surface: #1d1436; --surface-2: #180f2e;
    --text: #d8cff0; --heading: #ffffff; --muted: #9d8fc4; --border: #2e2252;
    --nav-bg: rgba(20, 13, 38, 0.9); --nav-text: #d8cff0; --nav-border: 1px solid #2e2252; --nav-blur: 12px;
    --hero-overlay: linear-gradient(180deg, rgba(76, 29, 149, 0.55), rgba(20, 13, 38, 0.92));
    --search-bg: #1d1436; --search-text: #ffffff;
    --pill-bg: rgba(167, 139, 250, 0.12); --pill-border: rgba(167, 139, 250, 0.45);
    --r: 14px; --icon-r: 12px;
    --card-bw: 1px; --card-bc: #2e2252;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 18px 40px rgba(139, 92, 246, 0.35);
    --c1: #8b5cf6; --c2: #d946ef; --c3: #6366f1; --c4: #ec4899;
    --focus: rgba(167, 139, 250, 0.25);
}

/* ---------- 8 · NEON CYBER (dark) ---------- */
html[data-theme="8"] {
    --p: #22d3ee; --ph: #67e8f9; --on-p: #000000;
    --bg: #05060a; --surface: #0b0d14; --surface-2: #080a10;
    --text: #a5b4c8; --heading: #e6faff; --muted: #6b7a90; --border: #1b2233;
    --nav-bg: rgba(5, 6, 10, 0.9); --nav-text: #a5b4c8; --nav-border: 1px solid #1b2233; --nav-blur: 10px;
    --nav-tt: uppercase; --nav-ls: 0.08em;
    --hero-overlay: repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.06) 0 1px, transparent 1px 3px),
                    linear-gradient(180deg, rgba(5, 6, 10, 0.6), rgba(5, 6, 10, 0.94));
    --hero-ts: 0 0 18px rgba(34, 211, 238, 0.7);
    --search-bg: #0b0d14; --search-text: #e6faff;
    --pill-bg: transparent; --pill-border: #22d3ee; --pill-text: #22d3ee;
    --r: 4px; --btn-r: 2px; --r-pill: 2px; --r-search: 4px; --icon-r: 4px;
    --card-bw: 1px; --card-bc: #1b2233;
    --shadow: none;
    --shadow-hover: 0 0 0 1px #22d3ee, 0 0 24px rgba(34, 211, 238, 0.45);
    --shadow-lg: 0 0 0 1px #22d3ee, 0 0 30px rgba(34, 211, 238, 0.35);
    --btn-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
    --font: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace; --font-head: var(--font);
    --head-tt: uppercase; --head-ls: 0.04em;
    --c1: #22d3ee; --c2: #a3e635; --c3: #f472b6; --c4: #facc15;
    --focus: rgba(34, 211, 238, 0.3);
}
html[data-theme="8"] :is(.prop-icon-circle, .step-icon-circle) {
    color: #000000;
    box-shadow: 0 0 16px currentColor;
}
html[data-theme="8"] .section-title { text-shadow: 0 0 12px rgba(34, 211, 238, 0.45); }

/* ---------- 11 · ARCTIC GLASS ---------- */
html[data-theme="11"] {
    --p: #0284c7; --ph: #0369a1;
    --bg: #f4f9fd; --surface: #ffffff; --surface-2: #eaf4fb;
    --text: #2c4a63; --heading: #0c2a43; --muted: #6b8aa3; --border: #d5e7f4;
    --nav-bg: rgba(255, 255, 255, 0.6); --nav-blur: 18px;
    --hero-overlay: linear-gradient(180deg, rgba(186, 230, 253, 0.25), rgba(12, 42, 67, 0.75));
    --search-bg: rgba(255, 255, 255, 0.85);
    --pill-bg: rgba(255, 255, 255, 0.18); --pill-border: rgba(255, 255, 255, 0.55);
    --r: 18px; --icon-r: 14px;
    --shadow: 0 8px 30px rgba(2, 132, 199, 0.1);
    --shadow-hover: 0 18px 40px rgba(2, 132, 199, 0.22);
    --font-head: "Century Gothic", Futura, Avenir, sans-serif; --head-w: 700;
    --c1: #38bdf8; --c2: #0ea5e9; --c3: #0891b2; --c4: #0284c7;
    --focus: rgba(2, 132, 199, 0.2);
}
html[data-theme="11"] .search-box-pill {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ---------- 15 · LAVENDER MIST ---------- */
html[data-theme="15"] {
    --p: #7c6bd6; --ph: #6553c7;
    --bg: #faf8ff; --surface: #ffffff; --surface-2: #f2eefe;
    --text: #4a4566; --heading: #26213f; --muted: #8580a3; --border: #e6e0fa;
    --hero-overlay: linear-gradient(180deg, rgba(196, 181, 253, 0.3), rgba(38, 33, 63, 0.76));
    --pill-bg: rgba(255, 255, 255, 0.16); --pill-border: rgba(255, 255, 255, 0.5);
    --r: 18px; --btn-r: 12px; --icon-r: 40%;
    --shadow: 0 10px 30px rgba(124, 107, 214, 0.1);
    --shadow-hover: 0 18px 40px rgba(124, 107, 214, 0.22);
    --font: Optima, Candara, "Segoe UI", sans-serif; --font-head: var(--font); --head-w: 600;
    --c1: #a78bfa; --c2: #8b5cf6; --c3: #818cf8; --c4: #c084fc;
    --focus: rgba(124, 107, 214, 0.2);
}

/* ---------- 16 · GRAPHITE PRO (dark) ---------- */
html[data-theme="16"] {
    --p: #f97316; --ph: #fb923c; --on-p: #ffffff;
    --bg: #18181b; --surface: #232327; --surface-2: #1e1e22;
    --text: #d4d4d8; --heading: #fafafa; --muted: #a1a1aa; --border: #34343a;
    --nav-bg: #111113; --nav-text: #d4d4d8; --nav-border: 1px solid #27272a;
    --hero-overlay: linear-gradient(180deg, rgba(17, 17, 19, 0.6), rgba(24, 24, 27, 0.95));
    --search-bg: #232327; --search-text: #fafafa;
    --pill-bg: rgba(255, 255, 255, 0.06); --pill-border: rgba(255, 255, 255, 0.2);
    --r: 8px; --btn-r: 6px; --icon-r: 10px;
    --card-bw: 1px; --card-bc: #34343a;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px #f97316;
    --font-head: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    --c1: #f97316; --c2: #eab308; --c3: #ef4444; --c4: #71717a;
    --focus: rgba(249, 115, 22, 0.25);
}

/* ---------- 17 · MINT FRESH ---------- */
html[data-theme="17"] {
    --p: #059669; --ph: #047857;
    --bg: #f3fcf8; --surface: #ffffff; --surface-2: #e3f8ef;
    --text: #2f4f44; --heading: #0f2e24; --muted: #5f8577; --border: #cdeee0;
    --hero-overlay: linear-gradient(180deg, rgba(16, 185, 129, 0.35), rgba(15, 46, 36, 0.78));
    --pill-bg: rgba(255, 255, 255, 0.15); --pill-border: rgba(255, 255, 255, 0.5);
    --r: 14px; --btn-r: 999px;
    --shadow-hover: 0 16px 34px rgba(5, 150, 105, 0.2);
    --font-head: ui-rounded, "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
    --c1: #10b981; --c2: #059669; --c3: #14b8a6; --c4: #65a30d;
    --focus: rgba(5, 150, 105, 0.2);
}

/* ---------- 19 · ELECTRIC BLUE ---------- */
html[data-theme="19"] {
    --p: #2563eb; --ph: #1d4ed8;
    --btn-bg: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --btn-hover-bg: linear-gradient(135deg, #2563eb, #1e3a8a);
    --btn-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    --bg: #f8faff; --surface: #ffffff; --surface-2: #eef3ff;
    --text: #334155; --heading: #0b1b3f; --muted: #64748b; --border: #dbe5ff;
    --hero-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.7), rgba(11, 27, 63, 0.78));
    --pill-bg: rgba(255, 255, 255, 0.14); --pill-border: rgba(255, 255, 255, 0.45);
    --r: 12px; --btn-r: 10px; --icon-r: 12px;
    --shadow-hover: 0 18px 40px rgba(37, 99, 235, 0.2);
    --c1: #2563eb; --c2: #06b6d4; --c3: #8b5cf6; --c4: #0ea5e9;
}

/* ---------- 21 · AURORA NIGHT (dark) ---------- */
html[data-theme="21"] {
    --p: #2dd4bf; --ph: #5eead4; --on-p: #ffffff;
    --btn-bg: linear-gradient(135deg, #14b8a6, #8b5cf6);
    --btn-hover-bg: linear-gradient(135deg, #0d9488, #7c3aed);
    --bg: #070b18; --surface: #0e1426; --surface-2: #0a1020;
    --text: #c3cde0; --heading: #f1f5ff; --muted: #8592ad; --border: #1c2640;
    --nav-bg: rgba(7, 11, 24, 0.85); --nav-blur: 14px; --nav-text: #c3cde0; --nav-border: 1px solid #1c2640;
    --hero-overlay: linear-gradient(120deg, rgba(45, 212, 191, 0.4), rgba(139, 92, 246, 0.45), rgba(7, 11, 24, 0.9), rgba(56, 189, 248, 0.35));
    --search-bg: #0e1426; --search-text: #f1f5ff;
    --pill-bg: rgba(255, 255, 255, 0.06); --pill-border: rgba(45, 212, 191, 0.4);
    --r: 16px; --icon-r: 30%;
    --card-bw: 1px; --card-bc: #1c2640;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 18px 40px rgba(45, 212, 191, 0.22);
    --c1: #14b8a6; --c2: #8b5cf6; --c3: #0ea5e9; --c4: #ec4899;
    --focus: rgba(45, 212, 191, 0.25);
}
html[data-theme="21"] .hero-overlay {
    background-size: 300% 300%;
    animation: pp-aurora 14s ease-in-out infinite alternate;
}
@keyframes pp-aurora {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ---------- 25 · DEEP OCEAN (dark) ---------- */
html[data-theme="25"] {
    --p: #38bdf8; --ph: #7dd3fc; --on-p: #03111f;
    --bg: #03111f; --surface: #071c33; --surface-2: #05172a;
    --text: #bcd2e8; --heading: #f0f8ff; --muted: #7f9bb8; --border: #0f2c4a;
    --nav-bg: rgba(3, 17, 31, 0.9); --nav-text: #bcd2e8; --nav-border: 1px solid #0f2c4a; --nav-blur: 12px;
    --hero-overlay: linear-gradient(180deg, rgba(3, 17, 31, 0.4), rgba(3, 17, 31, 0.95));
    --search-bg: #071c33; --search-text: #f0f8ff;
    --pill-bg: rgba(56, 189, 248, 0.1); --pill-border: rgba(56, 189, 248, 0.4);
    --r: 14px; --btn-r: 10px;
    --card-bw: 1px; --card-bc: #0f2c4a;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 18px 40px rgba(56, 189, 248, 0.2);
    --c1: #0ea5e9; --c2: #0891b2; --c3: #3b82f6; --c4: #14b8a6;
    --focus: rgba(56, 189, 248, 0.25);
}


/* ##################################################
   G. HOMEPAGE LAYOUTS (index.php)
   --------------------------------------------------
   Same number as the colour theme. Layout 1 is the
   original homepage (section A2). Each layout below is a
   mix of: hero style, section order, category style,
   trending grid, exclusive grid, format cards, fresh grid,
   discover banner, section headers and spacing.
   ################################################## */

/* Day plan (order: c=categories t=trending x=exclusive f=formats n=fresh d=discover)
    3  hero:center          cat:scroll    trend:uniform  excl:scroll   fmt:center  fresh:squares   disc:light  order:ctxfnd
    4  hero:bottom          cat:rows      trend:list     excl:feature  fmt:rows    fresh:five      disc:split  order:cntfxd
    6  hero:boxed           cat:portrait  trend:masonry  excl:dark     fmt:dark    fresh:scroll    disc:base   order:xtcnfd
    8  hero:full            cat:mosaic    trend:scroll   excl:scroll   fmt:dark    fresh:five      disc:band   order:tncfxd
   11  hero:boxed+center    cat:scroll    trend:masonry  excl:scroll   fmt:center  fresh:squares   disc:light  order:txcnfd
   15  hero:glass+center    cat:circles   trend:masonry  excl:scroll   fmt:center  fresh:captions  disc:light  order:cntfxd
   16  hero:vstats          cat:rows      trend:reverse  excl:dark     fmt:dark    fresh:squares   disc:split  order:tncfxd
   17  hero:center          cat:chips     trend:scroll   excl:feature  fmt:rows    fresh:base      disc:band   order:fctnxd
   19  hero:full            cat:scroll    trend:uniform  excl:scroll   fmt:base    fresh:five      disc:split  order:ctxfnd
   21  hero:full+center     cat:circles   trend:scroll   excl:dark     fmt:dark    fresh:scroll    disc:band   order:txcnfd
   25  hero:vstats          cat:scroll    trend:masonry  excl:dark     fmt:dark    fresh:five      disc:band   order:cntfxd
*/

/* ---------- G1. Shared homepage theming (all themes except 1) ---------- */

html[data-theme]:not([data-theme="1"]) .pp-home {
    display: flex;
    flex-direction: column;
    --pp-text: var(--heading);
    --pp-muted: var(--muted);
    --pp-border: var(--border);
    --pp-bg: var(--surface-2);
    --pp-white: var(--surface);
}

html[data-theme]:not([data-theme="1"]) .pp-home > section { order: 50; }
html[data-theme]:not([data-theme="1"]) .pp-home > .pp-sec-hero { order: 0; }

html[data-theme]:not([data-theme="1"]) .pp-section-kicker { color: var(--ink); }
html[data-theme]:not([data-theme="1"]) .pp-exclusive-section .pp-section-kicker { color: #c69a45; }
html[data-theme]:not([data-theme="1"]) .pp-view-link { color: var(--ink); }

html[data-theme]:not([data-theme="1"]) .pp-main-search { border-radius: calc(var(--btn-r) + 6px); }
html[data-theme]:not([data-theme="1"]) .pp-main-search button { background: var(--btn-bg); color: var(--on-p); border-radius: var(--btn-r); box-shadow: var(--btn-shadow); }
html[data-theme]:not([data-theme="1"]) .pp-main-search button:hover { background: var(--btn-hover-bg); }

html[data-theme]:not([data-theme="1"]) :is(.pp-category-modern, .pp-feature-card, .pp-exclusive-card, .pp-image-modern, .pp-type-card, .pp-discover) {
    border-radius: var(--r);
}

html[data-theme]:not([data-theme="1"]) :is(.pp-category-modern, .pp-feature-card, .pp-image-modern) {
    box-shadow: var(--shadow);
    border: var(--card-bw) solid var(--card-bc);
}

html[data-theme]:not([data-theme="1"]) :is(.pp-category-modern, .pp-feature-card, .pp-image-modern):hover {
    box-shadow: var(--shadow-hover);
}

/* format cards follow the theme colour instead of red */
html[data-theme]:not([data-theme="1"]) .pp-type-card {
    border-color: color-mix(in srgb, var(--p) 18%, transparent);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--p) 12%, transparent), transparent 38%),
        var(--surface);
    color: var(--heading);
}
html[data-theme]:not([data-theme="1"]) .pp-type-card::before { background: linear-gradient(180deg, var(--p), var(--ph)); }
html[data-theme]:not([data-theme="1"]) .pp-type-card::after { background: color-mix(in srgb, var(--p) 9%, transparent); }
html[data-theme]:not([data-theme="1"]) .pp-type-card:hover {
    border-color: color-mix(in srgb, var(--p) 45%, transparent);
    box-shadow: 0 20px 45px color-mix(in srgb, var(--p) 16%, transparent);
}
html[data-theme]:not([data-theme="1"]) .pp-type-card:hover::after { background: color-mix(in srgb, var(--p) 14%, transparent); }
html[data-theme]:not([data-theme="1"]) .pp-type-number { color: color-mix(in srgb, var(--p) 12%, transparent); }
html[data-theme]:not([data-theme="1"]) .pp-type-icon { background: var(--btn-bg); color: var(--on-p); box-shadow: 0 10px 22px color-mix(in srgb, var(--p) 25%, transparent); }
html[data-theme]:not([data-theme="1"]) .pp-type-text { color: var(--muted); }

html[data-theme]:not([data-theme="1"]) .pp-discover { background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--p) 30%, transparent), transparent 35%), #15171c; }
html[data-theme]:not([data-theme="1"]) .pp-discover-button.primary { background: var(--btn-bg); color: var(--on-p); }

html[data-theme]:not([data-theme="1"]) .pp-empty-modern { background: var(--surface); border-color: var(--border); color: var(--muted); border-radius: var(--r); }

/* scroll strips: thin scrollbar */
html[data-theme]:not([data-theme="1"]) :is(.pp-category-scroll, .pp-trending-grid, .pp-exclusive-grid, .pp-latest-grid) {
    scrollbar-width: thin;
    scrollbar-color: var(--p) transparent;
}

/* ---------- G2. Section order per day ---------- */

html[data-theme]:is([data-theme="3"], [data-theme="4"], [data-theme="15"], [data-theme="19"], [data-theme="25"]) .pp-home > .pp-sec-categories { order: 1; }
html[data-theme]:is([data-theme="17"]) .pp-home > .pp-sec-categories { order: 2; }
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="11"], [data-theme="16"], [data-theme="21"]) .pp-home > .pp-sec-categories { order: 3; }
html[data-theme]:is([data-theme="3"], [data-theme="4"], [data-theme="6"], [data-theme="8"], [data-theme="11"], [data-theme="15"], [data-theme="16"], [data-theme="17"], [data-theme="19"], [data-theme="21"], [data-theme="25"]) .pp-home > .pp-sec-discover { order: 6; }
html[data-theme]:is([data-theme="6"]) .pp-home > .pp-sec-exclusive { order: 1; }
html[data-theme]:is([data-theme="11"], [data-theme="21"]) .pp-home > .pp-sec-exclusive { order: 2; }
html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-home > .pp-sec-exclusive { order: 3; }
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="15"], [data-theme="16"], [data-theme="17"], [data-theme="25"]) .pp-home > .pp-sec-exclusive { order: 5; }
html[data-theme]:is([data-theme="17"]) .pp-home > .pp-sec-formats { order: 1; }
html[data-theme]:is([data-theme="3"], [data-theme="4"], [data-theme="8"], [data-theme="15"], [data-theme="16"], [data-theme="19"], [data-theme="25"]) .pp-home > .pp-sec-formats { order: 4; }
html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="21"]) .pp-home > .pp-sec-formats { order: 5; }
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="15"], [data-theme="16"], [data-theme="25"]) .pp-home > .pp-sec-fresh { order: 2; }
html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="17"], [data-theme="21"]) .pp-home > .pp-sec-fresh { order: 4; }
html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-home > .pp-sec-fresh { order: 5; }
html[data-theme]:is([data-theme="8"], [data-theme="11"], [data-theme="16"], [data-theme="21"]) .pp-home > .pp-sec-trending { order: 1; }
html[data-theme]:is([data-theme="3"], [data-theme="6"], [data-theme="19"]) .pp-home > .pp-sec-trending { order: 2; }
html[data-theme]:is([data-theme="4"], [data-theme="15"], [data-theme="17"], [data-theme="25"]) .pp-home > .pp-sec-trending { order: 3; }

/* ---------- G3. Hero ---------- */

/* Hero: bottom — themes 4 */
html[data-theme]:is([data-theme="4"]) .pp-hero-inner { align-items: flex-end; padding-bottom: 70px; }
html[data-theme]:is([data-theme="4"]) .pp-modern-hero-overlay { background: linear-gradient(0deg, rgba(7, 8, 11, .95) 0%, rgba(7, 8, 11, .55) 45%, rgba(7, 8, 11, .1) 100%); }
html[data-theme]:is([data-theme="4"]) .pp-hero-stats { bottom: auto; top: 50px; }

/* Hero: boxed — themes 6, 11 */
html[data-theme]:is([data-theme="6"], [data-theme="11"]) .pp-modern-hero { width: min(1280px, calc(100% - 32px)); margin: 18px auto 0; border-radius: calc(var(--r) + 10px); }
html[data-theme]:is([data-theme="6"], [data-theme="11"]) .pp-modern-hero,
html[data-theme]:is([data-theme="6"], [data-theme="11"]) .pp-hero-inner { min-height: 580px; }
html[data-theme]:is([data-theme="6"], [data-theme="11"]) .pp-hero-inner { width: calc(100% - 80px); }
@media (max-width: 700px) {
    html[data-theme]:is([data-theme="6"], [data-theme="11"]) .pp-modern-hero { width: calc(100% - 20px); margin-top: 10px; }
    html[data-theme]:is([data-theme="6"], [data-theme="11"]) .pp-hero-inner { width: calc(100% - 36px); }
}

/* Hero: center — themes 3, 11, 15, 17, 21 */
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-hero-inner { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-hero-content { margin: 0 auto; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-hero-description { margin-left: auto; margin-right: auto; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-main-search { margin-left: auto; margin-right: auto; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-hero-links { justify-content: center; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-hero-stats { position: static; justify-content: center; margin-top: 38px; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-modern-hero-overlay { background: radial-gradient(ellipse at center, rgba(7, 8, 11, .55) 0%, rgba(7, 8, 11, .88) 100%); }


/* Hero: full — themes 8, 19, 21 */
html[data-theme]:is([data-theme="8"], [data-theme="19"], [data-theme="21"]) .pp-modern-hero,
html[data-theme]:is([data-theme="8"], [data-theme="19"], [data-theme="21"]) .pp-hero-inner { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); }
html[data-theme]:is([data-theme="8"], [data-theme="19"], [data-theme="21"]) .pp-hero-title { font-size: clamp(50px, 8vw, 118px); letter-spacing: -4px; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="8"], [data-theme="19"], [data-theme="21"]) .pp-hero-title { letter-spacing: -2.5px; } }

/* Hero: glass — themes 15 */
html[data-theme]:is([data-theme="15"]) .pp-hero-content {
    padding: 44px;
    background: rgba(10, 12, 18, .45);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: calc(var(--r) + 6px);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
html[data-theme]:is([data-theme="15"]) .pp-modern-hero-overlay { background: linear-gradient(180deg, rgba(7, 8, 11, .2), rgba(7, 8, 11, .55)); }
@media (max-width: 700px) { html[data-theme]:is([data-theme="15"]) .pp-hero-content { padding: 26px 20px; } }


/* Hero: vstats — themes 16, 25 */
html[data-theme]:is([data-theme="16"], [data-theme="25"]) .pp-hero-stats { flex-direction: column; bottom: 50%; transform: translateY(50%); }
html[data-theme]:is([data-theme="16"], [data-theme="25"]) .pp-stat { min-width: 170px; border-left: 3px solid var(--p); }

/* ---------- G4. Section headers ---------- */

/* Section headers: accent — themes 4, 8, 19, 25 */
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="19"], [data-theme="25"]) .pp-section-top > div:first-child { border-left: 4px solid var(--p); padding-left: 18px; }

/* Section headers: center — themes 3, 11, 15, 17, 21 */
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-section-top { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"], [data-theme="17"], [data-theme="21"]) .pp-section-description { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Section headers: ruled — themes 6, 16 */
html[data-theme]:is([data-theme="6"], [data-theme="16"]) .pp-section-top { border-bottom: 1px solid var(--border); padding-bottom: 20px; }

/* ---------- G5. Spacing ---------- */

/* Spacing: airy — themes 3, 15, 21 */
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-modern-section { padding: 124px 0; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-modern-section { padding: 72px 0; } }

/* Spacing: compact — themes 4, 8, 19 */
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="19"]) .pp-modern-section { padding: 58px 0; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="19"]) .pp-modern-section { padding: 44px 0; } }

/* ---------- G6. Categories ---------- */

/* Categories: chips — themes 17 */
html[data-theme]:is([data-theme="17"]) .pp-category-scroll { display: flex; flex-wrap: wrap; gap: 12px; }
html[data-theme]:is([data-theme="17"]) .pp-category-modern { height: auto; padding: 9px 20px 9px 9px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
html[data-theme]:is([data-theme="17"]) .pp-category-modern picture,
html[data-theme]:is([data-theme="17"]) .pp-category-modern::after { display: none; }
html[data-theme]:is([data-theme="17"]) .pp-category-modern-content { position: static; display: flex; align-items: center; gap: 12px; color: var(--heading); }
html[data-theme]:is([data-theme="17"]) .pp-category-modern-icon { margin: 0; width: 40px; height: 40px; background: var(--btn-bg); color: var(--on-p); border-radius: var(--r-pill); }
html[data-theme]:is([data-theme="17"]) .pp-category-modern-name { font-size: 16px; }
html[data-theme]:is([data-theme="17"]) .pp-category-modern-count { margin: 0; color: var(--muted); font-size: 12px; }
html[data-theme]:is([data-theme="17"]) .pp-category-modern:hover { transform: translateY(-2px); border-color: var(--p); }
@media (max-width: 700px) { html[data-theme]:is([data-theme="17"]) .pp-category-scroll { gap: 8px; } html[data-theme]:is([data-theme="17"]) .pp-category-modern-name { font-size: 13px; } }

/* Categories: circles — themes 15, 21 */
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-scroll { grid-template-columns: repeat(8, 1fr); gap: 18px; }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern { height: auto; display: flex; flex-direction: column; align-items: center; background: transparent; overflow: visible; border: 0; box-shadow: none; }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern:hover:hover { box-shadow: none; }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern picture { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #ddd; box-shadow: var(--shadow); border: 3px solid var(--surface); outline: 2px solid var(--p); }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern-bg { z-index: 0; }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern::after,
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern-icon { display: none; }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern-content { position: static; margin-top: 12px; text-align: center; color: var(--heading); }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern-name { font-size: 15px; }
html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern-count { color: var(--muted); }
@media (max-width: 1000px) { html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-scroll { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-scroll { gap: 12px; } html[data-theme]:is([data-theme="15"], [data-theme="21"]) .pp-category-modern-name { font-size: 12px; } }

/* Categories: mosaic — themes 8 */
html[data-theme]:is([data-theme="8"]) .pp-category-scroll { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
html[data-theme]:is([data-theme="8"]) .pp-category-modern { height: auto; }
html[data-theme]:is([data-theme="8"]) .pp-category-modern:first-child { grid-column: span 2; grid-row: span 2; }
html[data-theme]:is([data-theme="8"]) .pp-category-modern:last-child { grid-column: span 2; }
html[data-theme]:is([data-theme="8"]) .pp-category-modern:first-child .pp-category-modern-name { font-size: 30px; }
@media (max-width: 700px) {
    html[data-theme]:is([data-theme="8"]) .pp-category-scroll { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    html[data-theme]:is([data-theme="8"]) .pp-category-modern:first-child .pp-category-modern-name { font-size: 20px; }
}

/* Categories: portrait — themes 6 */
html[data-theme]:is([data-theme="6"]) .pp-category-scroll { grid-template-columns: repeat(4, 1fr); }
html[data-theme]:is([data-theme="6"]) .pp-category-modern { height: 320px; }
html[data-theme]:is([data-theme="6"]) .pp-category-modern-name { font-size: 22px; }
@media (max-width: 1000px) { html[data-theme]:is([data-theme="6"]) .pp-category-scroll { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { html[data-theme]:is([data-theme="6"]) .pp-category-modern { height: 220px; } html[data-theme]:is([data-theme="6"]) .pp-category-modern-name { font-size: 15px; } }

/* Categories: rows — themes 4, 16 */
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-scroll { grid-template-columns: repeat(2, 1fr); }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern { height: 112px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); transition: transform .2s ease, border-color .2s ease; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern:hover { transform: translateX(4px); border-color: var(--p); }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern picture { position: relative; display: block; width: 140px; height: 100%; flex-shrink: 0; overflow: hidden; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern-bg { z-index: 0; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern::after,
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern-icon { display: none; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern-content { position: static; padding: 0 22px; color: var(--heading); }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern-count { color: var(--muted); }
@media (max-width: 700px) {
    html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-scroll { grid-template-columns: 1fr; }
    html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern { height: 88px; }
    html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-category-modern picture { width: 100px; }
}

/* Categories: scroll — themes 3, 11, 19, 25 */
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="19"], [data-theme="25"]) .pp-category-scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(210px, 23%, 290px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="19"], [data-theme="25"]) .pp-category-modern { height: 240px; scroll-snap-align: start; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="19"], [data-theme="25"]) .pp-category-scroll { grid-auto-columns: 62%; } html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="19"], [data-theme="25"]) .pp-category-modern { height: 190px; } }

/* ---------- G7. Trending ---------- */


/* Trending: list — themes 4 */
html[data-theme]:is([data-theme="4"]) .pp-trending-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 124px; }
html[data-theme]:is([data-theme="4"]) .pp-feature-card,
html[data-theme]:is([data-theme="4"]) .pp-feature-card.large { grid-column: auto; grid-row: auto; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); }
html[data-theme]:is([data-theme="4"]) .pp-feature-card picture { position: relative; display: block; width: 160px; height: 100%; flex-shrink: 0; overflow: hidden; background: #eceef1; }
html[data-theme]:is([data-theme="4"]) .pp-feature-image { z-index: 0; }
html[data-theme]:is([data-theme="4"]) .pp-feature-card::after { display: none; }
html[data-theme]:is([data-theme="4"]) .pp-feature-info { position: static; min-width: 0; padding: 0 20px; color: var(--heading); }
html[data-theme]:is([data-theme="4"]) .pp-feature-badge { background: var(--btn-bg); color: var(--on-p); }
html[data-theme]:is([data-theme="4"]) .pp-feature-title,
html[data-theme]:is([data-theme="4"]) .pp-feature-card.large .pp-feature-title { font-size: 15px; }
html[data-theme]:is([data-theme="4"]) .pp-feature-meta { color: var(--muted); }
@media (max-width: 700px) {
    html[data-theme]:is([data-theme="4"]) .pp-trending-grid { grid-template-columns: 1fr; grid-auto-rows: 96px; }
    html[data-theme]:is([data-theme="4"]) .pp-feature-card picture { width: 110px; }
}

/* Trending: masonry — themes 6, 11, 15, 25 */
html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-trending-grid { display: block; columns: 3 260px; column-gap: 14px; }
html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-feature-card { display: block; height: 240px; margin-bottom: 14px; break-inside: avoid; }
html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-feature-card:nth-child(3n+2) { height: 320px; }
html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-feature-card.large { height: 400px; }
@media (max-width: 700px) {
    html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-trending-grid { columns: 2 140px; column-gap: 9px; }
    html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-feature-card { height: 180px; margin-bottom: 9px; }
    html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-feature-card:nth-child(3n+2) { height: 230px; }
    html[data-theme]:is([data-theme="6"], [data-theme="11"], [data-theme="15"], [data-theme="25"]) .pp-feature-card.large { height: 260px; }
}

/* Trending: reverse — themes 16 */
html[data-theme]:is([data-theme="16"]) .pp-trending-grid { grid-template-columns: .85fr .85fr 1.3fr; }
html[data-theme]:is([data-theme="16"]) .pp-feature-card.large { grid-column: 3; grid-row: 1 / span 2; }
html[data-theme]:is([data-theme="16"]) .pp-feature-card:nth-child(n+6) { display: none; }
@media (max-width: 1000px) {
    html[data-theme]:is([data-theme="16"]) .pp-trending-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; }
    html[data-theme]:is([data-theme="16"]) .pp-feature-card.large { grid-column: 1 / span 2; grid-row: 1; }
}

/* Trending: scroll — themes 8, 17, 21 */
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"]) .pp-trending-grid {
    grid-template-columns: none;
    grid-template-rows: 320px;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 24%, 300px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"]) .pp-feature-card { scroll-snap-align: start; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"]) .pp-feature-card.large { grid-row: auto; grid-column: span 2; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"]) .pp-trending-grid { grid-template-rows: 240px; grid-auto-columns: 66%; } }

/* Trending: uniform — themes 3, 19 */
html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-trending-grid { grid-template-columns: repeat(5, 1fr); grid-template-rows: none; grid-auto-rows: 240px; }
html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-feature-card.large { grid-column: auto; grid-row: auto; }
html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-feature-card.large .pp-feature-title { font-size: 15px; }
@media (max-width: 1000px) { html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-trending-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { html[data-theme]:is([data-theme="3"], [data-theme="19"]) .pp-trending-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }

/* ---------- G8. Exclusive ---------- */

/* Exclusive: dark — themes 6, 16, 21, 25 */
html[data-theme]:is([data-theme="6"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-exclusive-section { background: radial-gradient(circle at 10% 10%, rgba(198, 154, 56, .22), transparent 35%), radial-gradient(circle at 90% 90%, rgba(198, 154, 56, .14), transparent 35%), #0f1014; }
html[data-theme]:is([data-theme="6"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-exclusive-section .pp-section-title-modern { color: #ffffff; }
html[data-theme]:is([data-theme="6"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-exclusive-section .pp-section-description { color: rgba(255, 255, 255, .66); }
html[data-theme]:is([data-theme="6"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-exclusive-card { box-shadow: 0 14px 34px rgba(0, 0, 0, .45); outline: 1px solid rgba(198, 154, 56, .3); }

/* Exclusive: feature — themes 4, 17 */
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-exclusive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 230px 230px; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-exclusive-card.large { grid-column: 1 / span 2; grid-row: 1 / span 2; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-exclusive-card.large .pp-exclusive-title { font-size: 26px; }
@media (max-width: 1000px) {
    html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-exclusive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 280px 180px 180px; }
    html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-exclusive-card.large { grid-row: 1; }
    html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-exclusive-card.large .pp-exclusive-title { font-size: 18px; }
}


/* Exclusive: scroll — themes 3, 8, 11, 15, 19 */
html[data-theme]:is([data-theme="3"], [data-theme="8"], [data-theme="11"], [data-theme="15"], [data-theme="19"]) .pp-exclusive-grid {
    grid-template-columns: none;
    grid-template-rows: 270px;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 26%, 320px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}
html[data-theme]:is([data-theme="3"], [data-theme="8"], [data-theme="11"], [data-theme="15"], [data-theme="19"]) .pp-exclusive-card { scroll-snap-align: start; min-height: 0; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="3"], [data-theme="8"], [data-theme="11"], [data-theme="15"], [data-theme="19"]) .pp-exclusive-grid { grid-template-rows: 220px; grid-auto-columns: 70%; } }

/* ---------- G9. Formats ---------- */

/* Formats: center — themes 3, 11, 15 */
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-type-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-type-icon { border-radius: 50%; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-type-number { right: auto; left: 17px; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-type-card::before { width: 100%; height: 5px; border-radius: 0; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-type-card:hover::before { width: 100%; height: 8px; }

/* Formats: dark — themes 6, 8, 16, 21, 25 */
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-sec-formats { background: #101114; }
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-sec-formats .pp-section-title-modern { color: #ffffff; }
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-sec-formats .pp-section-description { color: rgba(255, 255, 255, .62); }
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-type-card { background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--p) 22%, transparent), transparent 45%), #191b21; border-color: rgba(255, 255, 255, .08); color: #ffffff; }
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-type-text { color: rgba(255, 255, 255, .62); }
html[data-theme]:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .pp-type-number { color: rgba(255, 255, 255, .06); }

/* Formats: rows — themes 4, 17 */
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-grid { grid-template-columns: 1fr; gap: 10px; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-card { min-height: 0; display: grid; grid-template-columns: 70px 220px 1fr; align-items: center; gap: 22px; padding: 18px 26px; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-icon { margin: 0; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-title { margin: 0; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-text { margin: 0; padding-right: 70px; }
html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-number { top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
    html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-card { grid-template-columns: 50px 1fr; gap: 14px; padding: 16px 18px; }
    html[data-theme]:is([data-theme="4"], [data-theme="17"]) .pp-type-text { grid-column: 1 / -1; padding-right: 0; }
}

/* ---------- G10. Fresh ---------- */

/* Fresh: captions — themes 15 */
html[data-theme]:is([data-theme="15"]) .pp-latest-grid { columns: 3 260px; }
html[data-theme]:is([data-theme="15"]) .pp-image-modern { background: var(--surface); border: 1px solid var(--border); color: var(--heading); }
html[data-theme]:is([data-theme="15"]) .pp-image-modern picture { display: block; overflow: hidden; background: #eceef1; }
html[data-theme]:is([data-theme="15"]) .pp-image-modern-overlay { position: static; opacity: 1; background: none; padding: 12px 14px 14px; }
html[data-theme]:is([data-theme="15"]) .pp-image-modern-meta { color: var(--muted); }
@media (max-width: 700px) { html[data-theme]:is([data-theme="15"]) .pp-latest-grid { columns: 2 140px; } html[data-theme]:is([data-theme="15"]) .pp-image-modern-overlay { padding: 8px 10px 10px; } }

/* Fresh: five — themes 4, 8, 19, 25 */
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="19"], [data-theme="25"]) .pp-latest-grid { columns: 5 180px; column-gap: 10px; }
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="19"], [data-theme="25"]) .pp-latest-item { margin-bottom: 10px; }
html[data-theme]:is([data-theme="4"], [data-theme="8"], [data-theme="19"], [data-theme="25"]) .pp-image-modern-overlay { opacity: 1; }

/* Fresh: scroll — themes 6, 21 */
html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-latest-grid {
    columns: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(200px, 22%, 260px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}
html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-latest-item { margin: 0; scroll-snap-align: start; }
html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-image-modern { height: 290px; }
html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-image-modern picture { display: block; height: 100%; }
html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-image-modern img { height: 100%; }
html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-image-modern-overlay { opacity: 1; }
@media (max-width: 700px) { html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-latest-grid { grid-auto-columns: 60%; } html[data-theme]:is([data-theme="6"], [data-theme="21"]) .pp-image-modern { height: 220px; } }

/* Fresh: squares — themes 3, 11, 16 */
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-latest-grid { columns: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-latest-item { margin: 0; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-image-modern { aspect-ratio: 1; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-image-modern picture { display: block; height: 100%; }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-image-modern img { height: 100%; min-height: 0; }
@media (max-width: 1000px) { html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-latest-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="16"]) .pp-latest-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* ---------- G11. Discover ---------- */

/* Discover: band — themes 8, 17, 21, 25 */
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-sec-discover { padding: 0; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-sec-discover .pp-container { width: 100%; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-discover { border-radius: 0; padding: 96px 24px; text-align: center; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--p) 45%, transparent), transparent 60%), #111318; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-discover-content { margin: 0 auto; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-discover-text { margin: 0 auto; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-discover-buttons { justify-content: center; }
html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-discover::before { right: 50%; transform: translateX(50%); }
@media (max-width: 700px) { html[data-theme]:is([data-theme="8"], [data-theme="17"], [data-theme="21"], [data-theme="25"]) .pp-discover { padding: 64px 20px; } }

/* Discover: light — themes 3, 11, 15 */
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-discover { background: var(--surface); color: var(--heading); border: 1px solid var(--border); border-left: 6px solid var(--p); box-shadow: var(--shadow); }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-discover::before { color: color-mix(in srgb, var(--p) 9%, transparent); }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-discover-kicker { color: var(--p); }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-discover-title { color: var(--heading); }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-discover-text { color: var(--muted); }
html[data-theme]:is([data-theme="3"], [data-theme="11"], [data-theme="15"]) .pp-discover-button.secondary { color: var(--heading); border-color: var(--border); background: var(--surface-2); }

/* Discover: split — themes 4, 16, 19 */
html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-content { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; column-gap: 40px; }
html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-kicker,
html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-title,
html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-text { grid-column: 1; }
html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-buttons { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; margin: 0; }
@media (max-width: 900px) {
    html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-content { grid-template-columns: 1fr; }
    html[data-theme]:is([data-theme="4"], [data-theme="16"], [data-theme="19"]) .pp-discover-buttons { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 24px; }
}


/* ##################################################
   H. IMAGE DETAILS (image-details.php)
   --------------------------------------------------
   Search button, Edit Image button, Export Options panel
   and the download area follow the theme colours,
   plus one of six layouts. Theme 1 keeps the original look.
   The image preview (checkerboard) is never touched.

   solid    themes 8
   pills    themes 3, 15, 21
   dark     themes 4, 16
   outline  themes 11, 17
   ticket   themes 6
   glass    themes 19, 25
   ################################################## */

/* Readable accent colour for text/outlines on light backgrounds.
   Themes whose primary is very light get a deeper shade. */
html[data-theme] { --ink: var(--p); }
html[data-theme="6"] { --ink: #7c3aed; }
html[data-theme="8"] { --ink: #0891b2; }
html[data-theme="21"] { --ink: #0d9488; }
html[data-theme="25"] { --ink: #0284c7; }


/* ---------- H1. Shared image-details theming (all themes except 1) ---------- */

/* search button */
html[data-theme]:not([data-theme="1"]) .pp-detail-search-btn {
    background: var(--btn-bg) !important;
    color: var(--on-p) !important;
    transition: background .2s ease, filter .2s ease;
}
html[data-theme]:not([data-theme="1"]) .pp-detail-search-btn:hover { background: var(--btn-hover-bg) !important; color: var(--on-p) !important; }
html[data-theme]:not([data-theme="1"]) .pp-detail-search .input-group:focus-within { box-shadow: 0 0 0 .2rem var(--focus) !important; border-color: var(--ink) !important; }

/* edit image button */
html[data-theme]:not([data-theme="1"]) .pp-edit-btn {
    background: var(--btn-bg) !important;
    border: 1px solid transparent !important;
    color: var(--on-p) !important;
    border-radius: var(--btn-r) !important;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
html[data-theme]:not([data-theme="1"]) .pp-edit-btn:hover { background: var(--btn-hover-bg) !important; transform: translateY(-2px); }

/* export options panel */
html[data-theme]:not([data-theme="1"]) .pp-export.glass-gold-box {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--p) 14%, var(--surface)),
        color-mix(in srgb, var(--p) 5%, var(--surface)));
    border: 1px solid color-mix(in srgb, var(--p) 35%, transparent) !important;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--p) 14%, transparent);
    border-radius: var(--r) !important;
}
html[data-theme]:not([data-theme="1"]) .pp-export .fa-palette { color: var(--ink) !important; }
html[data-theme]:not([data-theme="1"]) .pp-export .btn-outline-dark {
    --bs-btn-color: var(--heading);
    --bs-btn-border-color: color-mix(in srgb, var(--heading) 70%, transparent);
    --bs-btn-hover-bg: color-mix(in srgb, var(--p) 18%, transparent);
    --bs-btn-hover-color: var(--heading);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-bg: var(--btn-bg);
    --bs-btn-active-color: var(--on-p);
    --bs-btn-active-border-color: var(--p);
}
html[data-theme]:not([data-theme="1"]) .pp-export .btn-check:checked + .btn { background: var(--btn-bg); color: var(--on-p); border-color: var(--p); }
html[data-theme]:not([data-theme="1"]) .pp-export .form-range::-webkit-slider-thumb { background-color: var(--ink); }
html[data-theme]:not([data-theme="1"]) .pp-export .form-range::-moz-range-thumb { background-color: var(--ink); }
html[data-theme]:not([data-theme="1"]) .pp-export-locked { border-radius: var(--r) !important; border-color: var(--border); }
html[data-theme]:not([data-theme="1"]) .pp-export-lock-icon { background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--ink); }

/* download area */
html[data-theme]:not([data-theme="1"]) .pp-download-box {
    background: var(--surface-2) !important;
    border-radius: var(--r) !important;
    border: 1px solid var(--border);
}
html[data-theme]:not([data-theme="1"]) .pp-download-btn {
    background: var(--btn-bg) !important;
    border: 1px solid var(--p) !important;
    color: var(--on-p) !important;
    border-radius: var(--btn-r) !important;
    box-shadow: var(--btn-shadow);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
html[data-theme]:not([data-theme="1"]) .pp-download-btn:hover,
html[data-theme]:not([data-theme="1"]) .pp-download-btn:focus-visible {
    background: var(--btn-hover-bg) !important;
    color: var(--on-p) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--p) 30%, transparent);
}

/* layout hooks: the right-hand card is already a flex column */
html[data-theme]:not([data-theme="1"]) .pp-detail-card > * { order: 30; }
html[data-theme]:not([data-theme="1"]) .pp-detail-card > :nth-child(-n+3) { order: 0; }
html[data-theme]:not([data-theme="1"]) .pp-detail-card > .pp-export,
html[data-theme]:not([data-theme="1"]) .pp-detail-card > .pp-export-locked { order: 10; }
html[data-theme]:not([data-theme="1"]) .pp-detail-card > .pp-download-box { order: 11; }

/* ---------- H2. solid ---------- */
/* Solid — accent bar on the panel, big block download button, outline edit button */
html[data-theme]:is([data-theme="8"]) .pp-export.glass-gold-box { border-left: 5px solid var(--ink) !important; }
html[data-theme]:is([data-theme="8"]) .pp-download-btn { padding-top: .85rem !important; padding-bottom: .85rem !important; font-size: 1.02rem; }
html[data-theme]:is([data-theme="8"]) .pp-edit-btn { background: transparent !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; }
html[data-theme]:is([data-theme="8"]) .pp-edit-btn:hover { background: var(--btn-bg) !important; color: var(--on-p) !important; border-color: var(--p) !important; }

/* ---------- H3. pills ---------- */
/* Pills — separated round format chips, pill buttons everywhere */
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-export .btn-group[aria-label="File format"] { gap: 6px; }
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-export .btn-group[aria-label="File format"] > .btn { border-radius: 999px !important; margin-left: 0 !important; }
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-download-btn,
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-edit-btn { border-radius: 999px !important; }
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-download-btn { box-shadow: 0 10px 24px color-mix(in srgb, var(--p) 35%, transparent); }
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-edit-btn { padding-left: 1.6rem !important; padding-right: 1.6rem !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--p) 28%, transparent); }
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-detail-search .input-group,
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-detail-search-btn { border-radius: 999px !important; }
html[data-theme]:is([data-theme="3"], [data-theme="15"], [data-theme="21"]) .pp-detail-search-btn { margin: 5px; padding-left: 1.6rem !important; padding-right: 1.6rem !important; }

/* ---------- H4. dark ---------- */
/* Dark — dark export panel and download area, uppercase download button */
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-export.glass-gold-box,
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-download-box { background: #14161b !important; border: 1px solid rgba(255, 255, 255, .08) !important; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-export .text-dark,
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-export .form-label { color: #f1f5f9 !important; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-export .text-muted,
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-download-box .text-muted { color: rgba(255, 255, 255, .62) !important; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-download-box strong { color: #ffffff; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-export .btn-outline-dark { --bs-btn-color: #e5e7eb; --bs-btn-border-color: rgba(255, 255, 255, .25); --bs-btn-hover-color: #ffffff; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-export .form-control-color { outline: 1px solid rgba(255, 255, 255, .25); }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-download-btn { text-transform: uppercase; letter-spacing: .04em; padding-top: .8rem !important; padding-bottom: .8rem !important; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-edit-btn,
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-detail-search-btn { background: #14161b !important; color: #ffffff !important; }
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-edit-btn:hover,
html[data-theme]:is([data-theme="4"], [data-theme="16"]) .pp-detail-search-btn:hover { background: #2a2d35 !important; color: #ffffff !important; }

/* ---------- H5. outline ---------- */
/* Outline — dashed export panel, outline download button that fills on hover, text-link edit button */
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-export.glass-gold-box { background: var(--surface); border: 2px dashed color-mix(in srgb, var(--ink) 55%, transparent) !important; box-shadow: none; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-download-box { background: var(--surface) !important; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-download-btn { background: transparent !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; box-shadow: none; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-download-btn:hover,
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-download-btn:focus-visible { background: var(--btn-bg) !important; color: var(--on-p) !important; border-color: var(--p) !important; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-edit-btn { background: transparent !important; color: var(--ink) !important; border: 0 !important; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-edit-btn:hover { background: transparent !important; color: var(--ink) !important; transform: none; text-decoration-thickness: 3px; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-detail-search-btn { background: var(--surface) !important; color: var(--ink) !important; border-left: 1px solid var(--border) !important; }
html[data-theme]:is([data-theme="11"], [data-theme="17"]) .pp-detail-search-btn:hover { background: var(--btn-bg) !important; color: var(--on-p) !important; }

/* ---------- H6. ticket ---------- */
/* Ticket — download area moves above the export panel, dashed ticket box, shine on the button */
html[data-theme]:is([data-theme="6"]) .pp-detail-card > .pp-download-box { order: 9; }
html[data-theme]:is([data-theme="6"]) .pp-download-box { background: var(--surface) !important; border: 2px dashed var(--border) !important; }
html[data-theme]:is([data-theme="6"]) .pp-download-btn { padding-top: .8rem !important; padding-bottom: .8rem !important; }
html[data-theme]:is([data-theme="6"]) .pp-download-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: pp-shine 3.2s ease-in-out infinite;
}
@keyframes pp-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
html[data-theme]:is([data-theme="6"]) .pp-edit-btn { min-width: 240px; padding-top: .7rem !important; padding-bottom: .7rem !important; }
html[data-theme]:is([data-theme="6"]) .pp-detail-search .input-group,
html[data-theme]:is([data-theme="6"]) .pp-detail-search-btn { border-radius: var(--btn-r) !important; }

/* ---------- H7. glass ---------- */
/* Glass — colourful frosted export panel, gradient glowing buttons */
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-export.glass-gold-box {
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--c1) 26%, transparent), transparent 55%),
        radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c4) 24%, transparent), transparent 55%),
        var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-download-btn,
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-detail-search-btn {
    background: linear-gradient(135deg, var(--c1), var(--c4)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-download-btn { box-shadow: 0 10px 28px color-mix(in srgb, var(--c1) 40%, transparent); }
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-download-btn:hover,
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-detail-search-btn:hover { background: linear-gradient(135deg, var(--c4), var(--c1)) !important; color: #ffffff !important; }
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-edit-btn { background: color-mix(in srgb, var(--c1) 14%, var(--surface)) !important; color: var(--ink) !important; border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent) !important; }
html[data-theme]:is([data-theme="19"], [data-theme="25"]) .pp-edit-btn:hover { background: linear-gradient(135deg, var(--c1), var(--c4)) !important; color: #ffffff !important; }


/* ##################################################
   I. CATEGORY ICONS + NAVBAR CATEGORY MENU
   --------------------------------------------------
   Icons live in assets/icons/categories/<slug>.svg and are
   drawn with a CSS mask, so they take the text colour and
   follow every theme (including day 1).
   ################################################## */

.pp-cat-svg {
    display: inline-block;
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: var(--pp-icon) center / contain no-repeat;
    mask: var(--pp-icon) center / contain no-repeat;
}

.category-icon .pp-cat-svg { width: 17px; height: 17px; }
.pp-category-modern-icon .pp-cat-svg { width: 18px; height: 18px; }
.pp-badge-category .pp-cat-svg { width: 12px; height: 12px; }

/* category.php heading */
.pp-category-heading { display: flex; align-items: center; gap: 14px; }
.pp-category-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(229, 57, 53, .09);
    color: #e53935;
    font-size: 22px;
}
.pp-category-heading-icon .pp-cat-svg { width: 28px; height: 28px; }
@media (max-width: 575.98px) {
    .pp-category-heading { gap: 10px; }
    .pp-category-heading-icon { width: 42px; height: 42px; border-radius: 12px; }
    .pp-category-heading-icon .pp-cat-svg { width: 22px; height: 22px; }
}

/* ---------- Themes except 1: menu, heading, category search ---------- */

html[data-theme]:not([data-theme="1"]) .pp-category-heading-icon {
    background: color-mix(in srgb, var(--p) 14%, transparent);
    color: var(--ink);
    border-radius: min(var(--r), 16px);
}

html[data-theme]:not([data-theme="1"]) .category-search button { background: var(--btn-bg); color: var(--on-p); }
html[data-theme]:not([data-theme="1"]) .category-search button:hover { background: var(--btn-hover-bg); }
html[data-theme]:not([data-theme="1"]) .category-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 .2rem var(--focus); }

html[data-theme]:not([data-theme="1"]) .premium-navbar .category-item:hover { color: var(--ink); background: color-mix(in srgb, var(--p) 10%, transparent); }
html[data-theme]:not([data-theme="1"]) .premium-navbar .category-item:hover .category-icon { color: var(--ink); background: color-mix(in srgb, var(--p) 16%, transparent); }
html[data-theme]:not([data-theme="1"]) .premium-navbar .category-item:hover .category-arrow,
html[data-theme]:not([data-theme="1"]) .premium-navbar .category-header-title i { color: var(--ink); }

/* ---------- Dark themes: readable menus inside the dark navbar ---------- */

html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .premium-dropdown {
    background: var(--surface);
    border-color: var(--border) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45) !important;
}
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar :is(.category-item, .user-dropdown-item) { color: var(--text); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar :is(.category-header-title, .user-name, .user-dropdown-header .fw-bold) { color: var(--heading); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar :is(.category-header-subtitle, .user-plan, .user-chevron, .category-arrow) { color: var(--muted); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar :is(.category-icon, .menu-icon) { background: rgba(255, 255, 255, .07); color: var(--muted); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .category-item:hover,
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .user-dropdown-item:hover { color: var(--heading); background: color-mix(in srgb, var(--p) 16%, transparent); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .category-item:hover :is(.category-icon, .category-arrow) { color: var(--p); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .category-item:hover .category-icon { background: color-mix(in srgb, var(--p) 22%, transparent); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .dropdown-divider { border-color: var(--border); opacity: 1; }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .categories-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar :is(.user-menu-button, .login-button, .premium-toggler) {
    background: var(--surface);
    border-color: var(--border) !important;
    color: var(--text);
}
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .premium-toggler span { background: var(--heading); }
html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .logout-item { color: #f87171; }
@media (max-width: 991.98px) {
    html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .navbar-collapse { background: var(--surface); border-color: var(--border); }
    html:is([data-theme="6"], [data-theme="8"], [data-theme="16"], [data-theme="21"], [data-theme="25"]) .premium-navbar .navbar-actions { border-top-color: var(--border); }
}


/* ##################################################
   J. FOOTER (includes/footer.php)
   ################################################## */

/* category links with icons (all themes) */
.pp-footer-links a.pp-footer-cat { display: inline-flex; align-items: center; gap: 9px; }
.pp-footer-cat-icon { width: 16px; height: 16px; opacity: .7; transition: opacity .18s ease; }
i.pp-footer-cat-icon { width: auto; height: auto; font-size: 13px; }
.pp-footer-cat:hover .pp-footer-cat-icon { opacity: 1; }

/* themes except 1: dark footer tinted with the theme colour */
html[data-theme]:not([data-theme="1"]) .pp-site-footer {
    --ft-accent: color-mix(in srgb, var(--p) 65%, #ffffff);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--p) 26%, transparent), transparent 42%),
        color-mix(in srgb, var(--p) 10%, #121418);
    border-top: 3px solid var(--p);
    font-family: var(--font);
}
html[data-theme]:not([data-theme="1"]) .pp-footer-brand-name,
html[data-theme]:not([data-theme="1"]) .pp-footer-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: #ffffff; }
html[data-theme]:not([data-theme="1"]) .pp-footer-brand-name span,
html[data-theme]:not([data-theme="1"]) .pp-footer-cat:hover .pp-footer-cat-icon { color: var(--ft-accent); }
html[data-theme]:not([data-theme="1"]) .pp-footer-title::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 9px;
    background: var(--ft-accent);
    border-radius: 2px;
}
html[data-theme]:not([data-theme="1"]) .pp-footer-links a:hover,
html[data-theme]:not([data-theme="1"]) .pp-footer-links a:focus-visible { color: var(--ft-accent); }
html[data-theme]:not([data-theme="1"]) .pp-footer-logo { border-radius: min(var(--r), 14px); }
html[data-theme]:not([data-theme="1"]) .pp-footer-badge { border-color: color-mix(in srgb, var(--ft-accent) 35%, transparent); border-radius: var(--r-pill); }


/* ##################################################
   K. HOMEPAGE HERO LABEL
   The small "Transparent PNG Images, Vectors & Stock Graphics"
   pill is hidden from view on every theme. It is the page's
   <h1>, so it stays in the HTML for Google and screen readers.
   ################################################## */

h1.pp-hero-eyebrow {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ##################################################
   E. LOCKED: transparent-image preview stays identical
      on every theme (checkerboard + canvas)
   ################################################## */

html[data-theme] .checkerboard-bg {
    background-color: #ffffff !important;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%) !important;
    background-size: 20px 20px !important;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px !important;
    filter: none !important;
}

html[data-theme] .checkerboard-bg :is(img, canvas),
html[data-theme] canvas {
    filter: none !important;
    mix-blend-mode: normal !important;
}


/* ##################################################
   F. ACCESSIBILITY
   ################################################## */

@media (prefers-reduced-motion: reduce) {
    html[data-theme] *,
html[data-theme] *::before,
html[data-theme] *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ##################################################
   J. NUMBERS — clean, same-height digits on every theme
   Optima/Candara (theme 15) and Georgia (theme 4) draw
   "old-style" numbers by default (the 9 hangs low).
   ################################################## */

body {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

/* Prices and totals: always a clean sans with lining, equal-width digits */
.pp-num,
.pp-buy-box .fs-3,
.pp-price-total {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    letter-spacing: -0.01em;
}

/* Price label on image cards (shop_price_tag_html in includes/shop.php) */
.pp-price-tag {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    pointer-events: none;
}
.pp-price-tag--tr { top: 10px; right: 10px; }
.pp-price-tag--bl { left: 9px; bottom: 9px; }
.pp-price-tag--exclusive { background: #d4a017; color: #ffffff; border-color: rgba(255, 255, 255, 0.3); }

/* "+" add-to-cart button on image cards (shop_cart_button_html) */
.pp-image-card,
.pp-latest-item { position: relative; }
.pp-image-card .pp-badges { right: 48px; }
.category-image-labels,
.contributor-image-labels { right: 48px !important; }
.pp-price-tag--tr2 { top: 10px; right: 50px; }

.pp-cart-add {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 6;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pp-cart-add:hover,
.pp-cart-add:focus-visible {
    background: var(--p, var(--premiumpng-primary, #d49a17));
    color: var(--on-p, #ffffff);
    transform: scale(1.08);
    outline: none;
}
.pp-cart-add.is-in-cart { background: #16a34a; color: #ffffff; border-color: transparent; }
.pp-cart-add.is-owned { background: #0f172a; color: #ffffff; cursor: default; border-color: transparent; }
.pp-cart-add.is-busy { opacity: 0.6; pointer-events: none; }
.pp-cart-add.is-added { animation: ppCartPop 0.35s ease; }
@keyframes ppCartPop { 50% { transform: scale(1.25); } }

.pp-cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    transform: translate(-50%, 20px);
    opacity: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.pp-cart-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pp-cart-toast a { color: #fcd34d; margin-left: 8px; pointer-events: auto; }
.pp-cart-add.is-free { background: #16a34a; color: #ffffff; border-color: transparent; }
.pp-cart-add.is-free:hover { background: #15803d; color: #ffffff; }
.pp-cart-add.is-in-cart:hover,
.pp-cart-add.is-in-cart:focus-visible { background: #dc2626; color: #ffffff; }
.pp-cart-add.is-plan { background: var(--p, var(--premiumpng-primary, #d49a17)); color: var(--on-p, #ffffff); border-color: transparent; }
.pp-cart-add.is-plan:hover { filter: brightness(1.1); background: var(--p, var(--premiumpng-primary, #d49a17)); color: var(--on-p, #ffffff); }
/* Similar images on the image page: smaller "+" / price */
.similar-mini-card { position: relative; }
.similar-mini-card .pp-cart-add { width: 28px; height: 28px; top: 7px; right: 7px; }
.similar-mini-card .pp-price-tag { font-size: 11px; min-height: 21px; padding: 2px 7px; left: 7px; bottom: 7px; }

/* Buy box ("Buy this image only") is a white card on every theme:
   its grey text must stay dark grey, also on the dark themes (4, 16 ...) */
html[data-theme] .pp-download-box .pp-buy-box .text-muted,
html .pp-buy-box .text-muted,
.pp-buy-box ul li {
    color: #64748b !important;
}
html[data-theme] .pp-download-box .pp-buy-box .text-dark,
.pp-buy-box .text-dark {
    color: #0f172a !important;
}


/* ##################################################
   THEMED PAGE BACKGROUNDS (every theme except 1)
   Each theme tints the light content area with its own colour
   and adds a soft glow of its colours in the empty side areas.
   ################################################## */
html[data-theme]:not([data-theme="1"]) body {
    --pp-tint: color-mix(in srgb, var(--p) 7%, #f7f8fa);
    --pp-tint-2: color-mix(in srgb, var(--p) 11%, #f1f3f6);
    --pp-glow: radial-gradient(ellipse 38% 55% at 0% 22%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 70%),
               radial-gradient(ellipse 34% 50% at 100% 78%, color-mix(in srgb, var(--c2) 14%, transparent), transparent 70%);
    --bg: var(--pp-tint);
    --surface-2: var(--pp-tint-2);
    --bs-body-bg: var(--pp-tint);
    --bs-tertiary-bg: var(--pp-tint-2);
    background-color: var(--pp-tint);
}
html[data-theme]:not([data-theme="1"]) .pp-modern-section.gray {
    background-color: var(--pp-tint-2);
    background-image: var(--pp-glow);
}
html[data-theme]:not([data-theme="1"]) .pp-explore-page {
    background-color: var(--pp-tint);
    background-image: var(--pp-glow);
    background-attachment: fixed;
}

/* each theme gets its own clearly different page colour */
html[data-theme="3"]:not([data-theme="1"]) body { --pp-tint: #e2f5f7; --pp-tint-2: #d6eff2; }
html[data-theme="4"]:not([data-theme="1"]) body { --pp-tint: #ecf1e4; --pp-tint-2: #e1e9d6; }
html[data-theme="6"]:not([data-theme="1"]) body { --pp-tint: #f0ebfa; --pp-tint-2: #e6dff7; }
html[data-theme="8"]:not([data-theme="1"]) body { --pp-tint: #eef6dc; --pp-tint-2: #e3f0c9; }
html[data-theme="11"]:not([data-theme="1"]) body { --pp-tint: #eaeef3; --pp-tint-2: #dfe5ed; }
html[data-theme="15"]:not([data-theme="1"]) body { --pp-tint: #f7ecf5; --pp-tint-2: #f0dfee; }
html[data-theme="16"]:not([data-theme="1"]) body { --pp-tint: #fbeee3; --pp-tint-2: #f6e1d0; }
html[data-theme="17"]:not([data-theme="1"]) body { --pp-tint: #e3f5ec; --pp-tint-2: #d5efe2; }
html[data-theme="19"]:not([data-theme="1"]) body { --pp-tint: #e6ebfc; --pp-tint-2: #d9e1fa; }
html[data-theme="21"]:not([data-theme="1"]) body { --pp-tint: #f5ecf2; --pp-tint-2: #eee0ea; }
html[data-theme="25"]:not([data-theme="1"]) body { --pp-tint: #e1edf8; --pp-tint-2: #d3e4f5; }
/* Aurora Night: teal + pink glows */
html[data-theme="21"]:not([data-theme="1"]) body { --pp-glow: radial-gradient(ellipse 38% 55% at 0% 22%, rgba(20, 184, 166, .18), transparent 70%), radial-gradient(ellipse 34% 50% at 100% 78%, rgba(236, 72, 153, .14), transparent 70%); }
/* tables keep the white of the card they sit in (not the page tint) */
html[data-theme]:not([data-theme="1"]) body .table {
    --bs-table-bg: transparent;
}
