:root {
    --color-ink: #0B0B0C;
    --color-ink-2: #12151d;
    --color-surface: #121214;
    --color-surface-2: #1b1f2b;
    --color-ivory: #F4F0E6;
    --color-ivory-muted: #9aa4b8;
    --color-gold: #C6A667;
    --color-gold-bright: #E8D5A3;
    --color-gold-deep: #8A7028;
    --color-rule: color-mix(in srgb, var(--color-gold) 30%, transparent);
    --color-danger: #B54A4A;
    --color-live: #3D8A62;
    --space-page: 24px;
    --radius-card: 16px;
    --radius-ctl: 12px;
    --font-ui: "Cairo", "IBM Plex Sans", system-ui, sans-serif;
    --font-ar: "Cairo", system-ui, sans-serif;
    --font-en: "IBM Plex Sans", system-ui, sans-serif;
    --gold-gradient: linear-gradient(135deg, #E8D5A3 0%, #C6A667 52%, #8A7028 100%);
    --gold-glow: 0 12px 32px color-mix(in srgb, var(--color-gold) 18%, transparent);
    --max: 1280px;

    /* Motion Lite Tokens (180ms - 320ms, GPU transform/opacity only) */
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
    --duration-fast: 180ms;
    --duration-normal: 260ms;
    --duration-reveal: 320ms;
}

@media (min-width: 768px) {
    :root { --space-page: 48px; }
}

@media (min-width: 1024px) {
    :root { --space-page: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--color-ink);
    color: var(--color-ivory);
    scroll-behavior: smooth;
}

html[dir="rtl"] { font-family: var(--font-ar); }
html[dir="ltr"] { font-family: var(--font-en); }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-ink);
    color: var(--color-ivory);
    font-family: inherit;
}

::selection {
    background: var(--color-gold);
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-gold-bright); }

img { max-width: 100%; display: block; }

button, select, input { font: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap {
    width: min(var(--max), 100%);
    margin-inline: auto;
    padding-inline: var(--space-page);
}

/* Announcement */
.announce {
    background: linear-gradient(90deg, #16140f, #1c1810 50%, #16140f);
    border-bottom: 1px solid var(--color-rule);
    font-size: 0.75rem;
}

.announce-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    padding-block: 0.55rem;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--color-gold);
    color: var(--color-ink);
}

.announce-copy { color: var(--color-gold-bright); }
.announce a { color: var(--color-gold-bright); text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--color-ink) 88%, transparent);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 14%, transparent);
    transition: background-color var(--duration-fast) var(--ease-smooth),
                border-color var(--duration-fast) var(--ease-smooth);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding-block: 0.85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand:hover { color: inherit; }

.brand-mark {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-gold) 40%, transparent);
}

.brand-mark-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.brand-text { min-width: 0; }

.wordmark {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--color-ivory);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    line-height: 1.15;
}

.wordmark-primary {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.wordmark-secondary {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-ivory-muted);
}

.wordmark-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.14rem 0.45rem;
    border: 1px solid var(--color-rule);
    color: var(--color-gold-bright);
    background: color-mix(in srgb, var(--color-gold) 10%, transparent);
}

.brand-sub {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: var(--color-ivory-muted);
}


/* Hybrid Premium Brand Portal — first viewport */
.hybrid-hero {
    position: relative;
    margin: 0 0 2rem;
    padding: 1.75rem 1.25rem 1.9rem;
    border: 1px solid var(--color-rule);
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--color-gold) 16%, transparent), transparent 55%),
        radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, var(--color-gold-deep) 18%, transparent), transparent 50%),
        linear-gradient(165deg, #141822, #0c0e13 72%);
}

.hybrid-hero-glow {
    pointer-events: none;
    position: absolute;
    inset: -20% auto auto 35%;
    width: 42%;
    height: 70%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-gold) 22%, transparent), transparent 70%);
    opacity: 0.55;
    animation: hybrid-glow-drift 9s var(--ease-smooth) infinite alternate;
}

.hybrid-hero-inner {
    position: relative;
    z-index: 1;
}

.hybrid-hero-identity {
    display: grid;
    gap: 1.35rem 1.75rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hybrid-hero {
        padding: 2.25rem 2rem 2.4rem;
    }
    .hybrid-hero-identity {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 2rem 2.5rem;
    }
}

.hybrid-hero-marks {
    position: relative;
    width: min(100%, 14rem);
    margin-inline: auto;
    animation: hybrid-rise 0.7s var(--ease-luxury) both;
}

.hybrid-hero-photo {
    display: block;
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.hybrid-hero-photo--fallback {
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--color-gold) 45%, transparent);
    background: var(--color-ink);
    box-shadow: var(--gold-glow);
}

.hybrid-hero-tughra {
    position: absolute;
    inset-block-end: -0.15rem;
    inset-inline-start: -0.35rem;
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.45));
    animation: hybrid-tughra-in 0.85s var(--ease-luxury) 0.12s both;
}

@media (min-width: 768px) {
    .hybrid-hero-tughra {
        width: 96px;
        height: 96px;
        inset-inline-start: -0.6rem;
    }
}

.hybrid-hero-copy {
    text-align: center;
    animation: hybrid-rise 0.75s var(--ease-luxury) 0.08s both;
}

@media (min-width: 768px) {
    .hybrid-hero-copy {
        text-align: start;
    }
}

.hybrid-hero-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold-bright);
}

.hybrid-hero-name {
    margin: 0;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ivory);
}

.hybrid-hero-name-alt {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--color-ivory-muted);
}

.hybrid-hero-expertise {
    margin: 0.85rem 0 0;
    max-width: 36rem;
    margin-inline: auto;
    color: var(--color-ivory-muted);
    font-size: 1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hybrid-hero-expertise {
        margin-inline: 0;
    }
}

.hybrid-hero-product {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .hybrid-hero-product {
        justify-content: flex-start;
    }
}

.hybrid-hero-product-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.hybrid-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    justify-content: center;
    margin-top: 1.35rem;
}

@media (min-width: 768px) {
    .hybrid-hero-cta {
        justify-content: flex-start;
    }
}

.hybrid-hero-wa {
    align-self: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold-bright);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.hybrid-hero-wa:hover {
    color: var(--color-ivory);
}

/* Secondary discovery (search demoted below hybrid brand) */
.hero--discover {
    text-align: center;
    padding-block: 0.35rem 1.75rem;
}

.hero-discover-title {
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    line-height: 1.35;
    color: var(--color-ivory);
}

.hero-discover-title .gold-text {
    display: inline;
}

@keyframes hybrid-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes hybrid-tughra-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes hybrid-glow-drift {
    from { transform: translate3d(0, 0, 0); opacity: 0.4; }
    to { transform: translate3d(-8%, 6%, 0); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
    .hybrid-hero-glow,
    .hybrid-hero-marks,
    .hybrid-hero-copy,
    .hybrid-hero-tughra {
        animation: none !important;
    }
}

/* Legacy founder strip (kept for any residual references) */

/* Founder / brand authority strip */
.brand-founder {
    margin: 1.75rem 0 2.25rem;
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--color-rule);
    border-radius: 20px;
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--color-gold) 14%, transparent), transparent 55%),
        linear-gradient(160deg, #12151d, #0d0f14 70%);
}

.brand-founder-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.75rem;
}

.brand-founder-identity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: min(100%, 36rem);
    flex: 1;
}

.brand-founder-photo,
.brand-founder-monogram {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

/* Monogram fallback only — circular crop */
.brand-founder-monogram {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-ink);
    box-shadow: var(--gold-glow);
    border: 1px solid color-mix(in srgb, var(--color-gold) 45%, transparent);
}

/* Baked circle + gold ring + glow — do not re-crop; keep square box */
.brand-founder-photo {
    display: block;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.brand-founder-monogram .brand-mark-img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
}

.brand-founder-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold-bright);
}

.brand-founder-name {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
}

.brand-founder-name-alt {
    display: inline-block;
    margin-inline-start: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-ivory-muted);
}

.brand-founder-lede {
    margin: 0.55rem 0 0.75rem;
    max-width: 42rem;
    color: var(--color-ivory-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.brand-founder-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-founder-traits li {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--color-rule);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-ivory);
    background: color-mix(in srgb, var(--color-surface) 80%, transparent);
}

.brand-founder-cta {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.brand-founder-phone {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-ivory-muted);
}

.apps-grid-single {
    grid-template-columns: 1fr;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .apps-grid:not(.apps-grid-single) {
        grid-template-columns: 1fr 1fr;
    }
}

.app-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--color-rule);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.app-card.featured-app {
    background:
        radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--color-gold) 12%, transparent), transparent 50%),
        linear-gradient(160deg, #171b26, #11141c);
}

.app-details h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.store-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-rule);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    background: color-mix(in srgb, var(--color-gold) 10%, transparent);
}

.store-pill:hover {
    color: var(--color-ink);
    background: var(--color-gold);
}

.app-icon-wrap {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--color-ink);
    border: 1px solid var(--color-rule);
    flex-shrink: 0;
}

.app-badge {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold-bright);
}

.site-nav { flex: 1; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-ivory-muted);
}

.nav-list a[aria-current="page"] { color: var(--color-gold-bright); }

.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-ctl);
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: inherit;
}

.btn-ghost {
    background: var(--color-surface-2);
    border-color: color-mix(in srgb, var(--color-ivory) 10%, transparent);
    color: var(--color-ivory-muted);
}

.btn-ghost:hover { color: var(--color-ivory); background: #1d1e24; }

.cta,
.btn-gold {
    background: var(--gold-gradient);
    color: var(--color-ink);
    border: 0;
}

.cta:hover,
.btn-gold:hover { color: var(--color-ink); filter: brightness(1.08); }

.btn-block { width: 100%; }

/* Ticker */
.ticker {
    background: var(--color-ink-2);
    border-bottom: 1px solid color-mix(in srgb, var(--color-ivory) 7%, transparent);
    font-size: 0.75rem;
    color: var(--color-ivory-muted);
}

.ticker-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.5rem;
    padding-block: 0.5rem;
}

.ticker-live {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-gold-bright);
    font-weight: 700;
}

.dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--color-live);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

.ticker-rates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.15rem;
}

.ticker-rates b { color: var(--color-ivory); font-weight: 700; }
.ticker-up { color: var(--color-live); font-weight: 600; }
.ticker-note { opacity: 0.7; }

/* Page */
.page {
    flex: 1;
    width: min(var(--max), 100%);
    margin-inline: auto;
    padding: 2.5rem var(--space-page) 4.5rem;
}

.page-wide { width: min(var(--max), 100%); }

.hero {
    text-align: center;
    padding-block: 1rem 2rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--color-rule);
    background: color-mix(in srgb, var(--color-gold) 10%, transparent);
    color: var(--color-gold-bright);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero h1,
.page-title {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    line-height: 1.25;
    color: var(--color-ivory);
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    color: var(--color-ivory-muted);
    max-width: 38rem;
    margin: 0 auto 1.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.lede-start { margin-inline: 0; text-align: start; }

/* Search */
.search-panel {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0.85rem;
    background: var(--color-surface);
    border: 1px solid color-mix(in srgb, var(--color-ivory) 10%, transparent);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 48px rgb(0 0 0 / 0.55);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-form .field { flex: 1 1 12rem; }

.search-form input,
.search-form select,
.calc-grid input,
.calc-grid select {
    width: 100%;
    background: var(--color-ink);
    color: var(--color-ivory);
    border: 1px solid color-mix(in srgb, var(--color-ivory) 12%, transparent);
    border-radius: var(--radius-ctl);
    padding: 0.8rem 0.95rem;
}

.search-form input:focus,
.search-form select:focus,
.calc-grid input:focus,
.calc-grid select:focus {
    outline: 1px solid var(--color-gold);
    border-color: var(--color-gold);
}

.search-form button[type="submit"] {
    background: var(--gold-gradient);
    color: var(--color-ink);
    border: 0;
    border-radius: var(--radius-ctl);
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.chips,
.search-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid color-mix(in srgb, var(--color-ivory) 8%, transparent);
    font-size: 0.75rem;
    color: var(--color-ivory-muted);
}

.chip,
.chip-link {
    display: inline-flex;
    border: 1px solid var(--color-rule);
    color: var(--color-gold);
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    border-radius: var(--radius-card);
}

/* Active chip styling */
.chip.is-active {
    background: var(--gold-gradient);
    color: var(--color-ink);
    border-color: var(--color-gold);
}

/* Smart Recommendation Engine chips */
.pinterest-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-rule);
    color: var(--color-gold);
    background: var(--color-ink-2);
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    border-radius: var(--radius-card);
    margin-right: 0.4rem;
    gap: 0.3rem;
}

.pinterest-chip.active {
    background: var(--gold-gradient);
    color: var(--color-ink);
    border-color: var(--color-gold);
}

.pinterest-chip .chip-thumb-wrapper img {
    width: 24px;
    height: auto;
    border-radius: 50%;
}

.pinterest-chip .chip-fallback-icon {
    font-size: 0.9rem;
}


.chip-link {
    background: var(--color-ink-2);
    color: var(--color-ivory-muted);
    border-color: color-mix(in srgb, var(--color-ivory) 10%, transparent);
}

.chip-link:hover { color: var(--color-ivory); background: #1c1d22; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--color-ivory) 10%, transparent);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, color-mix(in srgb, var(--color-surface-2) 85%, #10131a), var(--color-surface));
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.02rem, 2.3vw, 1.22rem);
    color: var(--color-ivory);
}

.section-head .muted {
    margin: 0.3rem 0 0;
}

.content-section {
    margin-block: 1.6rem 0;
}

.section-title {
    margin: 0;
    font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    color: var(--color-ivory);
}

.section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--color-ivory-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.muted, .meta { color: var(--color-ivory-muted); font-size: 0.88rem; }

.banner {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-rule);
    background: color-mix(in srgb, var(--color-gold) 8%, transparent);
    color: var(--color-gold-bright);
    font-size: 0.8rem;
}

.empty { color: var(--color-ivory-muted); }

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.card-grid-item { min-width: 0; }
.card-grid-item > .card { height: 100%; }

@media (min-width: 700px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }
}

@media (min-width: 1360px) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@supports (column-count: 2) {
    .card-grid-masonry {
        display: block;
        column-count: 1;
        column-gap: 1rem;
    }

    .card-grid-masonry .card-grid-item {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .card-grid-masonry .card-grid-item > .card {
        height: auto;
        min-height: 0;
    }

    @media (min-width: 700px) {
        .card-grid-masonry {
            column-count: 2;
            column-gap: 1.1rem;
        }
    }

    @media (min-width: 1024px) {
        .card-grid-masonry {
            column-count: 3;
            column-gap: 1.2rem;
        }
    }

    @media (min-width: 1360px) {
        .card-grid-masonry { column-count: 4; }
    }
}

.card {
    background: var(--color-surface);
    border: 1px solid color-mix(in srgb, var(--color-ivory) 9%, transparent);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: color-mix(in srgb, var(--color-gold) 60%, transparent);
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
}

.thumb,
.silhouette {
    aspect-ratio: 4 / 3;
    min-height: 220px;
    background: linear-gradient(160deg, #F6F5F0 0%, #ECE9E1 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    isolation: isolate;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.laser-grid {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-gold) 18%, transparent);
}

.card-grid-masonry .silhouette {
    aspect-ratio: auto;
    min-height: 0;
}

.laser-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        color-mix(in srgb, var(--color-gold-deep) 7%, transparent) 0 1px,
        transparent 1px 18px
    );
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.preview-canvas {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--color-gold-deep) 20%, #d9d2c2);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.65rem 0.5rem;
    box-sizing: border-box;
}

.preview-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 18%, rgb(212 175 55 / 0.08) 0, transparent 44%);
    pointer-events: none;
}

.preview-media {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(0.96) contrast(1.04);
}

.card-grid-masonry .preview-canvas {
    height: auto;
    max-height: none;
}

.card-grid-masonry .preview-media {
    height: auto;
    max-height: none;
}

/* Legacy class kept for non-card surfaces; design-card no longer emits it (PACKET-017). */
.preview-protected {
    position: absolute;
    inset-block-start: 0.6rem;
    inset-inline-end: 0.65rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-gold-deep) 18%, transparent);
    background: rgb(255 255 255 / 0.9);
    color: #775629;
    padding: 0.15rem 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

/* ============================================================
   PACKET-017 — Design-card image chrome (full cards only)
   Top-left: شائع · Bottom-left: ❤️+likes · Bottom strip: © copyright
   Does NOT apply to .category-section strips (PACKET-016).
   ============================================================ */
.card .tag-popular {
    top: 0.45rem;
    left: 0.45rem;
    right: auto;
    bottom: auto;
    z-index: 3;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5c4210;
    background: linear-gradient(135deg, #f7e7a8 0%, #d4af37 48%, #c9a227 100%);
    border: 1px solid color-mix(in srgb, #8a6a18 35%, transparent);
    box-shadow: 0 1px 3px rgb(90 60 10 / 0.18);
    pointer-events: none;
}

.card .card-likes {
    position: absolute;
    left: 0.4rem;
    bottom: 1.55rem; /* sit above copyright strip; keep gold piece clear */
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.12rem 0.38rem 0.12rem 0.28rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.88);
    border: 1px solid rgb(0 0 0 / 0.06);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #3a3a3a;
    pointer-events: none;
}

.card .card-likes__heart {
    font-size: 0.72rem;
    line-height: 1;
}

.card .card-likes__count {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.mark {
    font-size: clamp(1.4rem, 3.1vw, 2rem);
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.mark-caption {
    margin-top: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-gold-deep) 65%, #7d7568);
    font-family: ui-monospace, monospace;
}

/* Design-card copyright strip (PACKET-017 exact owner string; CDR not CAR) */
.card .watermark {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: none;
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    text-align: center;
    color: #5a5248;
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--color-gold-deep) 18%, transparent);
    background: rgb(255 255 255 / 0.82);
    border-radius: 0;
    padding: 0.22rem 0.35rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[dir="rtl"] .card .watermark {
    justify-content: center;
}

/* Fallback for any non-card .watermark emitters */
.watermark {
    position: absolute;
    inset-block-end: 0.6rem;
    inset-inline: 0.65rem;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    transform: none;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #847562;
    border: 1px solid color-mix(in srgb, var(--color-gold-deep) 22%, transparent);
    background: rgb(255 255 255 / 0.76);
    border-radius: 999px;
    padding: 0.14rem 0.45rem;
}

html[dir="rtl"] .watermark {
    justify-content: flex-start;
}

.tag {
    position: absolute;
    padding: 0.15rem 0.4rem;
    font-size: 0.62rem;
    border-radius: var(--radius-card);
    background: rgb(255 255 255 / 0.95);
    color: #5c421c;
    border: 1px solid color-mix(in srgb, var(--color-gold-deep) 24%, transparent);
    backdrop-filter: blur(2px);
}

.tag-start { inset-block-start: 0.65rem; inset-inline-start: 0.65rem; }
.tag-end { inset-block-end: 0.65rem; inset-inline-end: 0.65rem; color: #2f7e54; }

.card-body {
    padding: 1rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.card-body h2,
.card-body h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--color-ivory);
}

.card-price {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    text-align: end;
}

.card-price small {
    display: block;
    font-weight: 500;
    color: var(--color-ivory-muted);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid color-mix(in srgb, var(--color-ivory) 8%, transparent);
}

.card-actions .cta {
    font-size: 0.75rem;
    padding: 0.55rem 0.5rem;
    text-align: center;
}

.path-grid,
.plan-grid,
.feature-grid {
    display: grid;
    gap: 1rem;
}

.path-grid { grid-template-columns: 1fr; margin-block: 1.5rem; }

@media (min-width: 700px) {
    .path-grid { grid-template-columns: 1fr 1fr; }
    .plan-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.path-tile,
.panel,
.plan {
    background: var(--color-surface);
    border: 1px solid color-mix(in srgb, var(--color-ivory) 9%, transparent);
    border-radius: var(--radius-card);
    padding: 1.35rem;
}

.path-tile h2,
.plan h2 {
    margin: 0 0 0.4rem;
    color: var(--color-gold);
    font-size: 1.05rem;
}

.plan-featured {
    border-color: var(--color-gold);
    background: #191e2b;
    position: relative;
    box-shadow: var(--gold-glow);
}

.plan-badge {
    position: absolute;
    inset-block-start: -0.55rem;
    inset-inline-start: 1rem;
    background: var(--color-gold);
    color: var(--color-ink);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
}

.price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-gold-bright);
    margin: 0.4rem 0 1rem;
}

.price small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-ivory-muted);
}

.plan ul {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--color-ivory-muted);
}

.plan li { margin: 0 0 0.45rem; }

.workshop-hero {
    background: linear-gradient(90deg, #171b26, #12151e);
    border: 1px solid color-mix(in srgb, var(--color-ivory) 9%, transparent);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

.workshop-hero h1 { margin-top: 0.75rem; }

.calc-panel {
    max-width: 46rem;
    margin-inline: auto;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgb(0 0 0 / 0.55);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .calc-grid { grid-template-columns: 1fr 1fr; }
}

.calc-grid label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-ivory-muted);
    margin-bottom: 0.4rem;
}

.calc-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    background: #0c0e14;
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-card);
}

.calc-result #calcWeight {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.app-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, #161a25, #0f1118);
    border-radius: 24px;
}

.app-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    padding: 1px;
    border-radius: 6px;
    background: var(--gold-gradient);
}

.app-icon span {
    display: grid;
    place-items: center;
    height: 100%;
    background: var(--color-ink);
    font-size: 1.4rem;
}

.feature-grid .panel h3 {
    margin: 0 0 0.35rem;
    color: var(--color-gold-bright);
    font-size: 0.9rem;
}

.feature-grid .panel p { margin: 0; font-size: 0.75rem; }

.app-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.site-footer {
    border-top: 1px solid color-mix(in srgb, var(--color-ivory) 8%, transparent);
    background: #0c0c0d;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 2rem;
    color: var(--color-ivory-muted);
    font-size: 0.8rem;
}

.footer-nav,
.locale-switch,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social {
    margin-top: 0.85rem;
    font-size: 0.72rem;
}

.footer-social a {
    color: var(--color-gold-bright);
    border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 35%, transparent);
}

.footer-social a:hover {
    color: var(--color-ivory);
}

.locale-switch a.is-active {
    color: var(--color-gold);
    outline: 1px solid var(--color-gold);
    padding: 0.12rem 0.4rem;
}

.section-rule {
    border: 0;
    border-top: 1px solid var(--color-rule);
    margin-block: 2rem;
}

.dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgb(0 0 0 / 0.78);
}

.dialog.is-open { display: grid; }

.dialog-card {
    width: min(26rem, 100%);
    background: var(--color-surface);
    border: 1px solid color-mix(in srgb, var(--color-ivory) 12%, transparent);
    border-radius: var(--radius-card);
    padding: 1.25rem;
}

.deep-link-url {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.8rem;
    background: #0d0f15;
    border: 1px solid color-mix(in srgb, var(--color-ivory) 10%, transparent);
    border-radius: var(--radius-ctl);
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    word-break: break-all;
    color: var(--color-gold-bright);
}

.view-mode {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.view-mode .chip.is-active {
    background: color-mix(in srgb, var(--color-gold) 20%, transparent);
    color: var(--color-gold-bright);
    border-color: var(--color-rule);
}

.skip-link {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: -3rem;
    z-index: 60;
    padding: 0.4rem 0.7rem;
    background: var(--color-gold);
    color: var(--color-ink);
    font-weight: 700;
    font-size: 0.8rem;
}

.skip-link:focus {
    top: 0.75rem;
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dialog-head h2 { margin: 0; font-size: 1rem; }

.dialog-close {
    background: none;
    border: 0;
    color: var(--color-ivory-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

/* CAD / Laser Inspector Luxury Styling */
.dialog-card.inspector-card {
    width: min(54rem, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #0d0f14;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.12);
}

.inspector-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-ctl, 6px);
}

.inspector-zoom-group,
.inspector-contrast-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.inspector-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-ivory);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inspector-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-bright);
    background: rgba(212, 175, 55, 0.1);
}

.inspector-btn.is-active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
    color: var(--color-gold-bright);
    font-weight: 600;
}

.inspector-zoom-level {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--color-gold-bright);
    min-width: 3rem;
    text-align: center;
}

.inspector-viewport {
    position: relative;
    width: 100%;
    height: 52vh;
    min-height: 280px;
    background: radial-gradient(circle at 50% 50%, #151820 0%, #08090c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-ctl, 6px);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inspector-viewport:active {
    cursor: grabbing;
}

.inspector-canvas {
    position: relative;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.inspector-img {
    max-width: 82%;
    max-height: 44vh;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.3));
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

/*
 * REMOVED: clean black-on-white CAD invert (is-cad-mode).
 * That silhouette was trivially screenshot → auto-vectorize.
 * Ghost mode = translucent path on dark + always-on IP shield.
 */
.inspector-canvas.is-ghost-path {
    background: transparent;
}

.inspector-canvas.is-ghost-path .inspector-img {
    opacity: 0.38;
    mix-blend-mode: screen;
    filter:
        drop-shadow(0 0 10px rgba(212, 175, 55, 0.55))
        contrast(0.88)
        brightness(1.15)
        saturate(0.75);
}

.inspector-grid-overlay {
    position: absolute;
    inset: -200%;
    width: 500%;
    height: 500%;
    pointer-events: none;
    background-size: 20px 20px;
    background-image:
        linear-gradient(to right, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
}

.inspector-canvas.is-ghost-path .inspector-grid-overlay {
    background-size: 14px 14px;
    background-image:
        linear-gradient(to right, rgba(212, 175, 55, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.12) 1px, transparent 1px);
}

/* Always-on anti-trace / anti-clean-screenshot shield */
.inspector-ip-shield {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.inspector-noise {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: soft-light;
}

.inspector-moire {
    position: absolute;
    inset: -20%;
    opacity: 0.18;
    background:
        repeating-linear-gradient(
            12deg,
            transparent 0,
            transparent 3px,
            rgba(212, 175, 55, 0.35) 3px,
            rgba(212, 175, 55, 0.35) 4px
        ),
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 5px,
            rgba(0, 0, 0, 0.45) 5px,
            rgba(0, 0, 0, 0.45) 6px
        );
    mix-blend-mode: overlay;
}

.inspector-watermark {
    position: absolute;
    inset: -40%;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='120'%3E%3Ctext x='12' y='48' fill='%23d4af37' fill-opacity='0.55' font-family='sans-serif' font-size='15' font-weight='700' transform='rotate(-28 40 60)'%3EGold Name Pro · Preview Only%3C/text%3E%3Ctext x='12' y='88' fill='%23d4af37' fill-opacity='0.4' font-family='sans-serif' font-size='13' transform='rotate(-28 40 60)'%3E%D8%A7%D8%B3%D9%85%D9%83 %D8%B0%D9%87%D8%A8 · %D9%85%D8%B9%D8%A7%D9%8A%D9%86%D8%A9%3C/text%3E%3C/svg%3E");
    background-size: 280px 120px;
    background-repeat: repeat;
}

.inspector-canvas.is-ghost-path ~ .inspector-ip-shield .inspector-noise,
.inspector-viewport:has(.is-ghost-path) .inspector-noise {
    opacity: 0.34;
}

.inspector-viewport:has(.is-ghost-path) .inspector-moire {
    opacity: 0.28;
}

.inspector-viewport:has(.is-ghost-path) .inspector-watermark {
    opacity: 0.38;
}

.inspector-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-badge {
    font-size: 0.75rem;
    color: var(--color-gold-bright);
    letter-spacing: 0.02em;
}

/* Luxury Action Buttons */
.btn-luxury-inspect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-ctl, 6px);
    color: var(--color-gold-bright, #F5D77F);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-luxury-inspect:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.12) 100%);
    border-color: var(--color-gold, #D4AF37);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

.btn-whatsapp-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: var(--radius-ctl, 6px);
    color: #25D366;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp-share:hover {
    background: rgba(37, 211, 102, 0.22);
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

/* Viral Multi-Channel Share System */
.btn-viral-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius-ctl, 6px);
    color: var(--color-gold-bright, #F5D77F);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 175, 55, 0.12);
}

.btn-viral-share:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.38) 0%, rgba(212, 175, 55, 0.18) 100%);
    border-color: var(--color-gold, #D4AF37);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.share-dialog-card {
    width: min(32rem, 94vw);
    background: #0e1117;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 24px rgba(212, 175, 55, 0.12);
    border-radius: var(--radius-card, 12px);
    padding: 1.5rem;
}

.share-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 0.65rem;
    margin: 1.25rem 0;
}

.share-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-ctl, 6px);
    color: var(--color-ivory);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.share-channel-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.share-channel-btn.share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
    color: #25D366;
}

.share-channel-btn.share-telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
    color: #0088cc;
}

.share-channel-btn.share-x:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.share-channel-btn.share-facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    color: #1877f2;
}

.share-channel-btn.share-pinterest:hover {
    background: rgba(230, 0, 35, 0.2);
    border-color: #e60023;
    color: #e60023;
}

.share-copy-section {
    margin: 1rem 0;
}

.share-copy-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.share-textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: #06070a;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-ctl, 6px);
    color: var(--color-gold-bright);
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
    resize: none;
}

.share-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.share-copy-action {
    align-self: flex-end;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.share-copy-action.is-copied {
    background: #25D366;
    border-color: #25D366;
    color: #000000;
}

.share-dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.name-hero {
    display: grid;
    gap: 1.25rem;
}

.name-hero > .card {
    height: auto;
}

.name-hero > .card .silhouette {
    aspect-ratio: 1 / 1;
    min-height: 320px;
    padding: 1.25rem;
}

.name-hero > .card .preview-canvas {
    padding: 1rem;
}

@media (min-width: 800px) {
    .name-hero { grid-template-columns: minmax(0, 22rem) 1fr; align-items: start; }
}

@media (max-width: 720px) {
    .header-actions .btn-ghost { display: none; }
    .nav-list { font-size: 0.75rem; }
    .silhouette { padding: 0.55rem; }
    .preview-protected {
        font-size: 0.52rem;
        letter-spacing: 0.06em;
    }
    .card .watermark {
        font-size: 0.42rem;
        letter-spacing: 0.01em;
        padding: 0.18rem 0.25rem;
    }
    .card .card-likes {
        bottom: 1.35rem;
        font-size: 0.62rem;
    }
}


/* ==========================================================================
   ROYAL OBSIDIAN & IMPERIAL GOLD: LIVE GOLD RATES & PINTEREST MASONRY UI
   ========================================================================== */

.rates-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* SMART APP BANNER */
.smart-app-banner {
    background: linear-gradient(135deg, rgba(20, 20, 24, 0.95), rgba(30, 26, 18, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.smart-app-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.smart-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.smart-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold-bright);
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.smart-banner-text {
    flex: 1 1 320px;
}

.smart-banner-text h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-ivory);
}

.smart-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-ivory-muted);
}

.banner-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}

/* HERO & MARKET PULSE */
.rates-hero {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 3rem auto;
}

.rates-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    background: rgba(18, 18, 20, 0.85);
    border: 1px solid var(--color-rule);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--color-ivory-muted);
    margin-bottom: 1.25rem;
}

.pulse-marker {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 10px #22C55E;
}

.rates-status-txt {
    font-weight: 700;
    color: var(--color-gold-bright);
}

.rates-time-stamp {
    opacity: 0.75;
    font-size: 0.8rem;
}

.rates-main-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #FFF, var(--color-gold-bright) 70%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.rates-subtitle {
    font-size: 1.05rem;
    color: var(--color-ivory-muted);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

/* CURRENCY SELECTOR BAR */
.currency-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-ctl);
    max-width: 680px;
    margin: 0 auto;
}

.currency-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-ivory-muted);
    padding-inline: 0.5rem;
}

.currency-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.currency-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-ivory);
    transition: all 0.2s ease;
}

.currency-chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--color-gold-bright);
}

.currency-chip.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
    color: var(--color-gold-bright);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

/* KARAT CARDS GRID */
.karat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.karat-card {
    background: rgba(18, 18, 20, 0.85);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.karat-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 55, 0.15);
}

.karat-hero-card {
    background: linear-gradient(145deg, rgba(26, 24, 20, 0.95), rgba(18, 18, 20, 0.95));
    border: 2px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(212, 175, 55, 0.25);
}

.popular-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gold-gradient);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html[dir="ltr"] .popular-ribbon {
    right: auto;
    left: 20px;
}

.karat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.karat-badge {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-ivory);
}

.karat-hero-badge {
    color: var(--color-gold-bright);
    font-size: 1.25rem;
}

.purity-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--color-ivory-muted);
}

.karat-price-row {
    margin-bottom: 0.75rem;
}

.price-val {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-gold-bright);
    letter-spacing: -0.02em;
}

.hero-val {
    font-size: 2.15rem;
    color: #FFF;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--color-ivory-muted);
    margin-inline-start: 0.35rem;
}

.karat-desc {
    font-size: 0.85rem;
    color: var(--color-ivory-muted);
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.karat-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.change-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.quick-calc-btn {
    background: none;
    border: 1px solid var(--color-rule);
    border-radius: 6px;
    color: var(--color-ivory);
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-calc-btn:hover, .hero-calc-btn {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold-bright);
}

/* INTERACTIVE CALCULATOR SECTION */
.calculator-section {
    margin-bottom: 4rem;
}

.calc-box {
    background: linear-gradient(145deg, #131316, #18181D);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-card);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.calc-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-heading {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--color-ivory);
}

.calc-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-ivory-muted);
}

.calc-currency-badge {
    padding: 0.4rem 0.9rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    font-weight: 700;
    color: var(--color-gold-bright);
    font-size: 0.9rem;
}

.calc-interactive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 860px) {
    .calc-interactive-grid {
        grid-template-columns: 1.15fr 1fr;
    }
}

.field-group {
    margin-bottom: 1.5rem;
}

.field-lbl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-ivory);
}

.hint-pill {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--color-gold-bright);
}

.calc-select, .calc-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-ctl);
    color: var(--color-ivory);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-select:focus, .calc-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.quick-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.weight-chip {
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--color-ivory);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weight-chip:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold-bright);
}

/* SUMMARY COLUMN */
.summary-card {
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-ctl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.summary-card-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-gold-bright);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.sum-label {
    color: var(--color-ivory-muted);
}

.sum-value {
    font-weight: 700;
    color: var(--color-ivory);
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.summary-total-box {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.total-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-ivory-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.total-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.total-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-gold-bright);
}

.total-curr {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-ivory);
}

.total-disclaimer {
    display: block;
    font-size: 0.75rem;
    color: var(--color-ivory-muted);
    margin-top: 0.4rem;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.w-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* MARKET GUIDE & FAQ */
.gold-guide-section {
    margin-bottom: 4rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-card);
    padding: 1.75rem;
}

.guide-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-gold-bright);
}

.guide-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.65rem 0;
    color: var(--color-ivory);
}

.guide-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-ivory-muted);
}

/* BOTTOM LUXURY BANNER */
.bottom-conversion-banner {
    background: radial-gradient(circle at top, rgba(30, 26, 18, 0.95), rgba(12, 12, 14, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-card);
    padding: clamp(2rem, 5vw, 3.5rem) 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-chip-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--color-gold);
    border-radius: 9999px;
    color: var(--color-gold-bright);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.bottom-banner-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #FFF;
    margin: 0 0 1rem 0;
}

.bottom-banner-desc {
    max-width: 680px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-ivory-muted);
}

.bottom-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1rem;
}

/* PINTEREST-STYLE GALLERY */
.jewelry-hero {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.hero-kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    margin-bottom: 1rem;
}

.jewelry-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
    color: var(--color-ivory);
}

.jewelry-hero-desc {
    font-size: 1.05rem;
    color: var(--color-ivory-muted);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.jewelry-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.jewelry-search-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.pinterest-filter-section {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2.5rem;
}

.filter-headline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-gold-bright);
}



/* PINTEREST MASONRY MULTI-COLUMN */
.pinterest-masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 580px) {
    .pinterest-masonry-grid { column-count: 2; }
}

@media (min-width: 900px) {
    .pinterest-masonry-grid { column-count: 3; }
}

@media (min-width: 1200px) {
    .pinterest-masonry-grid { column-count: 4; }
}

.pinterest-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.pinterest-item .card {
    background: rgba(18, 18, 20, 0.9);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pinterest-item .card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
}

.pinterest-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(18, 18, 20, 0.5);
    border: 1px dashed var(--color-rule);
    border-radius: var(--radius-card);
    margin-bottom: 3rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.jewelry-app-banner {
    background: linear-gradient(135deg, rgba(22, 20, 16, 0.9), rgba(14, 14, 16, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    margin-bottom: 4rem;
}

.jewelry-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: var(--color-ivory);
}

.banner-text p {
    margin: 0;
    color: var(--color-ivory-muted);
}

/* ==========================================================================
   20 APP CATEGORIES & PINTEREST CHIPS LUXURY STYLING
   Obsidian Black & Imperial Gold Identity
   ========================================================================== */

@keyframes luxuryShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-container {
    position: relative;
    background: linear-gradient(
        90deg, 
        rgba(18, 21, 29, 0.9) 0%, 
        rgba(27, 31, 43, 0.9) 50%, 
        rgba(18, 21, 29, 0.9) 100%
    );
    background-size: 200% 100%;
    animation: luxuryShimmer 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    overflow: hidden;
}

/* Visible by default — never hide category thumbs behind JS-only opacity gates. */
.chip-thumb-img,
.home-cat-img {
    opacity: 1;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-thumb-img.is-fallback,
.home-cat-img.is-fallback {
    opacity: 0.92;
    filter: saturate(0.85);
}

/* Pinterest Chips Scrollable Container */
.filter-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.filter-count-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--color-rule);
}

.pinterest-chips-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.4rem 0.2rem 0.8rem;
}

.pinterest-chips-scroll-container::-webkit-scrollbar {
    display: none;
}

.pinterest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.65rem;
    align-items: center;
}

.pinterest-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.15rem 0.45rem 0.75rem;
    background: #0E1015;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: #EDEDED;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

html[dir="rtl"] .pinterest-chip {
    padding: 0.45rem 0.75rem 0.45rem 1.15rem;
}

.chip-thumb-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: #181A20;
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chip-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.chip-avatar-all {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0E1015;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.chip-fallback-icon {
    font-size: 0.82rem;
    line-height: 1;
}

.pinterest-chip:hover {
    background: #181B22;
    border-color: rgba(212, 175, 55, 0.6);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.15);
}

.pinterest-chip.active {
    background: linear-gradient(135deg, #D4AF37 0%, #E8D5A3 50%, #AA8022 100%) !important;
    color: #0B0D11 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45), 0 0 8px rgba(255, 255, 255, 0.3) !important;
    font-weight: 800 !important;
}

.pinterest-chip.active .chip-avatar-all {
    background: #0B0D11;
    color: #D4AF37;
}

/* Homepage Category Showcase Grid */
.home-categories-section {
    margin-block: 2.5rem 1.5rem;
}

.section-head-luxury {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.luxury-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--color-ivory);
    margin: 0.4rem 0 0.5rem;
    line-height: 1.2;
}

.luxury-section-desc {
    color: var(--color-ivory-muted);
    font-size: 0.95rem;
    max-width: 38rem;
    margin: 0;
    line-height: 1.6;
}

.luxury-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .home-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .home-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .home-categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.home-cat-card {
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 22, 0.9);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease, 
                box-shadow 0.35s ease;
}

.home-cat-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.25);
}

.home-cat-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: radial-gradient(circle at center, #1c1f28 0%, #0d0e12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
}

.home-cat-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.home-cat-card:hover .home-cat-img {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.35));
}

.home-cat-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(11, 11, 12, 0.55) 85%,
        rgba(11, 11, 12, 0.85) 100%
    );
    pointer-events: none;
}

.home-cat-badge {
    position: absolute;
    top: 0.6rem;
    inset-inline-end: 0.6rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(11, 11, 12, 0.75);
    border: 1px solid var(--color-rule);
    color: var(--color-gold-bright);
    backdrop-filter: blur(8px);
}

.home-cat-content {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.home-cat-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-ivory);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-cat-card:hover .home-cat-title {
    color: var(--color-gold-bright);
}

.home-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-ivory-muted);
    transition: color 0.2s ease;
}

.home-cat-card:hover .home-cat-cta {
    color: var(--color-gold);
}

html[dir="rtl"] .arrow-icon {
    transform: scaleX(-1);
    display: inline-block;
}

/* ==========================================================================
   MOTION LITE (PACKET-011) — Zero External Bundles, 60fps Native CSS/JS
   ========================================================================== */

/* 1. Subtle Film Grain (Fixed, 3.5% Opacity, Non-blocking) */
.luxury-grain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 140px 140px;
    mix-blend-mode: overlay;
}

/* 2. Minimal Custom Cursor (Desktop Pointer: Fine Only) */
@media (hover: hover) and (pointer: fine) {
    html.has-motion-cursor {
        cursor: none;
    }
    html.has-motion-cursor a,
    html.has-motion-cursor button,
    html.has-motion-cursor input,
    html.has-motion-cursor select,
    html.has-motion-cursor textarea,
    html.has-motion-cursor [role="button"],
    html.has-motion-cursor .card {
        cursor: none;
    }
}

.motion-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-gold-bright, #E8D5A3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: opacity var(--duration-fast) ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 8px rgba(232, 213, 163, 0.8);
    transform: translate(-50%, -50%);
    will-change: transform;
}

.motion-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width var(--duration-fast) var(--ease-luxury),
                height var(--duration-fast) var(--ease-luxury),
                border-color var(--duration-fast) ease,
                background-color var(--duration-fast) ease,
                opacity var(--duration-fast) ease;
    backdrop-filter: blur(1px);
    transform: translate(-50%, -50%);
    will-change: transform;
}

.motion-cursor-ring.is-hover {
    width: 48px;
    height: 48px;
    border-color: var(--color-gold, #C6A667);
    background-color: rgba(212, 175, 55, 0.08);
}

.motion-cursor-ring.is-card-hover {
    width: 64px;
    height: 64px;
    border-color: var(--color-gold-bright, #E8D5A3);
    background-color: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

/* 3. Card Micro-Interactions (GPU Scale 1.025 + Subtle Gold Shimmer) */
.card, .pinterest-item .card, .home-cat-card, .karat-card {
    position: relative;
    transition: transform var(--duration-normal) var(--ease-smooth),
                border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
    will-change: transform;
}

.card:hover, .pinterest-item .card:hover, .home-cat-card:hover, .karat-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: color-mix(in srgb, var(--color-gold) 65%, transparent);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(212, 175, 55, 0.15);
}

.card::after, .pinterest-item .card::after, .home-cat-card::after, .karat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(232, 213, 163, 0.06) 48%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(232, 213, 163, 0.06) 52%,
        transparent 65%
    );
    background-size: 250% 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transition: opacity var(--duration-fast) ease;
    border-radius: inherit;
}

.card:hover::after, .pinterest-item .card:hover::after, .home-cat-card:hover::after, .karat-card:hover::after {
    opacity: 1;
    animation: goldShimmerLite 1.2s var(--ease-luxury) forwards;
}

@keyframes goldShimmerLite {
    0% { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}

/* 4. Lightweight Scroll Reveal (IntersectionObserver Driven) */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-reveal) var(--ease-smooth),
                transform var(--duration-reveal) var(--ease-smooth);
    will-change: opacity, transform;
}

.reveal-item.is-revealed {
    opacity: 1;
    transform: none;
}

/* 5. Reduced Motion Hard Override */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 6. Card Hover Quick-Share Button & Full Image Display (Pinterest Style) */
.card-hover-share-btn {
    position: absolute;
    inset-block-start: 2.35rem;
    inset-inline-start: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background: rgba(14, 17, 23, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--color-gold-bright, #E8D5A3);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s var(--ease-luxury), transform 0.22s var(--ease-luxury), background 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card:hover .card-hover-share-btn,
.pinterest-item:hover .card-hover-share-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-hover-share-btn:hover {
    background: var(--gold-gradient);
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

/* Ensure images are never cropped or cut off — Pure contain across all grid views */
.preview-media,
.thumb img {
    object-fit: contain !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: auto !important;
    display: block !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

/* Anti-copy / Anti-drag protection on preview areas */
.preview-canvas,
.silhouette {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* 7. Professional Theme Switcher Pill (System / Dark / Light) */
.theme-switch-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(18, 20, 26, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 9999px;
    padding: 3px;
    gap: 3px;
    flex-shrink: 0;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #8C94A6;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.theme-btn:hover {
    color: #F4F0E6;
    background: rgba(255, 255, 255, 0.08);
}

.theme-btn.is-active {
    background: rgba(212, 175, 55, 0.18);
    color: #F59E0B;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Light Mode Luxury Palette and Inversions */
[data-theme="light"] {
    --color-ink: #F9F8F5;
    --color-ink-2: #F1EFEA;
    --color-surface: #FFFFFF;
    --color-surface-2: #F5F2EB;
    --color-ivory: #1C1917;
    --color-ivory-muted: #57534E;
    --color-rule: rgba(181, 147, 74, 0.28);
    --gold-glow: 0 8px 24px rgba(198, 166, 103, 0.16);
}

[data-theme="light"] body {
    background-color: var(--color-ink);
    color: var(--color-ivory);
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(181, 147, 74, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .theme-switch-pill {
    background: #FFFFFF;
    border-color: #D1D5DB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-btn {
    color: #9CA3AF;
}

[data-theme="light"] .theme-btn:hover {
    color: #111827;
    background: #F3F4F6;
}

[data-theme="light"] .theme-btn.is-active {
    background: #F3F4F6;
    color: #D97706;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card {
    background: #FFFFFF;
    border-color: rgba(181, 147, 74, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card-body h2,
[data-theme="light"] .card-body h3 {
    color: #18181B;
}

[data-theme="light"] .card-body .meta {
    color: #71717A;
}

[data-theme="light"] .chip {
    background: #FFFFFF;
    border-color: #D4AF37;
    color: #78350F;
}

[data-theme="light"] .pinterest-chip {
    background: #FFFFFF;
    border-color: #E5E7EB;
    color: #374151;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pinterest-chip.active {
    background: var(--gold-gradient);
    color: #000000;
}

[data-theme="light"] .site-footer {
    background: #EFECE6;
    border-top: 1px solid rgba(181, 147, 74, 0.25);
    color: #3F3F46;
}

[data-theme="light"] .ticker-bar {
    background: #EAE6DC;
    border-bottom: 1px solid rgba(181, 147, 74, 0.22);
}

[data-theme="light"] .search-panel {
    background: #FFFFFF;
    border-color: rgba(181, 147, 74, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-form input,
[data-theme="light"] .search-form select {
    background: #F8F7F4;
    color: #18181B;
    border-color: #D1D5DB;
}

/* ============================================================
   PACKET-015/016 — Category section strips
   RTL header · 5-col · white plane · pure gold thumbs
   PACKET-016: no شائع/likes chrome · soft watermark · hover heart
   ============================================================ */

.category-sections-band {
    background: #ffffff;
    color: #1a1a1a;
    width: 100%;
    margin: 1.25rem 0 0;
    padding: 1.5rem 0 2rem;
    border-block: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.18);
}

.category-sections-band__inner {
    width: min(100% - 1.5rem, 26.5rem);
    margin-inline: auto;
    padding-inline: 0.75rem;
}

@media (min-width: 768px) {
    .category-sections-band__inner {
        width: min(100% - 2rem, 32rem);
        padding-inline: 1rem;
    }
}

@media (min-width: 1200px) {
    /* Keep 5 cols dense (not sparse 8+) — comfortable centered strip */
    .category-sections-band__inner {
        width: min(100% - 2rem, 34rem);
    }
}

.category-section {
    margin: 0 0 1.55rem;
    background: transparent;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    min-height: 1.5rem;
}

.category-section__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-family: var(--font-ar), "Cairo", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[dir="ltr"] .category-section__title {
    font-family: var(--font-en), "IBM Plex Sans", system-ui, sans-serif;
    font-weight: 600;
}

.category-section__view-all {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: #6b6b6b;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--duration-fast) var(--ease-smooth),
                color var(--duration-fast) var(--ease-smooth);
}

.category-section__view-all:hover,
.category-section__view-all:focus-visible {
    color: #1a1a1a;
    opacity: 0.72;
}

.category-section__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 0.55rem;
    row-gap: 0.85rem;
    align-items: center;
    justify-items: center;
    background: transparent;
}

.category-section__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0.1rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

.category-section__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-section__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.category-section__item:hover img,
.category-section__item:focus-visible img {
    opacity: 0.92;
}

.category-section__item img.is-fallback {
    opacity: 0.45;
    object-fit: contain;
    padding: 18%;
}

.category-section__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c6a667;
    background: transparent;
}

/* Soft official «حمزة المشرقي» watermark (~13% opacity; UX + anti-trace, not DRM)
   SVG-only: companion hamza_almashrqi_signature_sm.webp was never on disk (PACKET-016). */
.category-section__wm {
    position: absolute;
    inset: 12% 8% 18% 8%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0.13;
    background-image: var(--wm-svg);
    background-repeat: no-repeat;
    background-position: center 58%;
    background-size: 88% auto;
    mix-blend-mode: multiply;
}

/* Favorite heart — hidden at rest; soft reveal on hover/focus; no counts */
.category-section__fav {
    position: absolute;
    inset-block-start: 0.2rem;
    inset-inline-end: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    color: rgba(140, 110, 55, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.category-section__item:hover .category-section__fav,
.category-section__item:focus-visible .category-section__fav {
    opacity: 0.42;
}

.category-section__fav svg {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
}

/* Soft client-side IP protect (not DRM) — preview images only */
.category-section__grid img,
.category-section__wm,
.preview-media,
.thumb img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .category-section__item img,
    .category-section__fav,
    .category-section__view-all {
        transition: none;
    }
}

/* Touch: very soft resting heart so affordance exists without clutter */
@media (hover: none) {
    .category-section__fav {
        opacity: 0.14;
    }
}

/* Hamza Al-Mashrqi official tughra (personal brand — distinct from Gold Name mark) */
.about-tughra-wrap {
    display: block;
    flex-shrink: 0;
    max-width: min(100%, 20rem);
}

.about-tughra {
    display: block;
    width: 100%;
    height: auto;
    max-height: 8.5rem;
    object-fit: contain;
}

@media (max-width: 640px) {
    .about-tughra-wrap {
        max-width: min(100%, 16rem);
    }

    .about-tughra {
        max-height: 6.5rem;
    }
}

