/* PARFUMS premium presentation layer.
   This file intentionally contains no business-state selectors or score rules. */

:root {
    --parfum-ink: #08090b;
    --parfum-ink-soft: #0e1013;
    --parfum-surface: #15171a;
    --parfum-surface-raised: #1b1d21;
    --parfum-line: rgba(255, 255, 255, 0.09);
    --parfum-line-gold: rgba(218, 174, 84, 0.34);
    --parfum-gold: #d9ad52;
    --parfum-gold-bright: #edc66f;
    --parfum-gold-muted: #9a7840;
    --parfum-ivory: #f4efe6;
    --parfum-copy: #c8c2b8;
    --parfum-muted: #8d8983;
    --parfum-danger: #d77070;
    --bottom-dock-height: 76px;
    --bottom-dock-viewport-gap: 10px;
    --bottom-dock-safe-offset: calc(
        var(--bottom-dock-height) +
        var(--bottom-dock-viewport-gap) +
        env(safe-area-inset-bottom, 0px)
    );
    --dock-height: var(--bottom-dock-height);
    --content-max: 1180px;
    --focus-ring: 0 0 0 3px rgba(237, 198, 111, 0.32);
    --cinematic-shadow:
        0 30px 90px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    --bg-base: var(--parfum-ink);
    --bg-surface: var(--parfum-surface);
    --bg-surface-hover: var(--parfum-surface-raised);
    --border-subtle: var(--parfum-line);
    --text-primary: var(--parfum-ivory);
    --text-secondary: var(--parfum-copy);
    --text-muted: var(--parfum-muted);
    --accent-primary: var(--parfum-gold);
    --accent-glow: rgba(217, 173, 82, 0.12);
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    min-height: 100dvh;
    padding-bottom: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 50% -5%, rgba(217, 173, 82, 0.085), transparent 30rem),
        radial-gradient(circle at 8% 22%, rgba(74, 51, 24, 0.12), transparent 26rem),
        var(--bg-base);
    font-family: var(--font-family-body);
    overscroll-behavior-y: none;
}

body:has(.overlay.show),
body:has(.overlay[style*="display: flex"]),
body:has(.drawer-overlay.open),
body:has(.auth-gate.is-visible),
body:has(#assistantEditModal[style*="display: flex"]),
body:has(#fragellaSelectModal[style*="display: flex"]) {
    overflow: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Authentication */

.auth-gate {
    background:
        radial-gradient(circle at 50% 18%, rgba(217, 173, 82, 0.15), transparent 25rem),
        linear-gradient(180deg, #090a0c, #060709) !important;
}

.auth-gate-card {
    position: relative;
    overflow: hidden;
    border-color: var(--parfum-line-gold) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        #111216 !important;
    box-shadow: var(--cinematic-shadow) !important;
}

.auth-gate-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--parfum-gold), transparent);
    content: "";
}

.auth-gate-brand {
    color: var(--parfum-gold-bright) !important;
    font-size: 30px !important;
    letter-spacing: 0.32em !important;
}

.auth-gate-input {
    min-height: 50px;
    border-color: var(--parfum-line) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.auth-gate-primary {
    min-height: 50px;
    background: linear-gradient(135deg, #efc76e, #c79638) !important;
    color: #15110a !important;
    box-shadow: 0 10px 28px rgba(204, 153, 55, 0.2);
}

/* Header and collection */

.app-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand weather"
        "meta weather";
    gap: 2px 16px;
    max-width: none !important;
    min-height: 92px;
    padding:
        calc(env(safe-area-inset-top, 0px) + 16px)
        clamp(18px, 4vw, 36px)
        14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
    background:
        linear-gradient(180deg, rgba(8, 9, 11, 0.97), rgba(8, 9, 11, 0.89)) !important;
    backdrop-filter: blur(22px) saturate(1.15);
}

.brand-lockup {
    grid-area: brand;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.brand-mark {
    color: var(--accent-primary);
    font-size: 19px;
    filter: drop-shadow(0 0 12px rgba(217, 173, 82, 0.42));
}

.header-title {
    color: var(--parfum-ivory) !important;
    font-size: clamp(20px, 6vw, 27px) !important;
    font-weight: 400;
    letter-spacing: 0.28em !important;
    line-height: 1;
}

.header-subline {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
    color: var(--parfum-muted) !important;
    font-size: 10px;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}

.app-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--parfum-muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-health-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--parfum-muted);
}

.app-health-badge.is-online .app-health-dot {
    background: #66c98d;
    box-shadow: 0 0 7px rgba(102, 201, 141, 0.42);
}

.app-health-badge.is-offline .app-health-dot {
    background: var(--parfum-danger);
    box-shadow: 0 0 7px rgba(215, 112, 112, 0.42);
}

.weather-container {
    grid-area: weather;
    display: grid !important;
    align-self: center;
    min-width: 76px;
    min-height: 54px;
    padding: 8px 12px;
    border: 1px solid var(--parfum-line) !important;
    border-radius: 18px;
    color: inherit;
    background: rgba(255, 255, 255, 0.025) !important;
    text-align: right;
    cursor: pointer;
}

.weather-current {
    color: var(--parfum-gold-bright) !important;
    font-size: 13px !important;
}

.weather-details-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: var(--parfum-muted) !important;
    font-size: 10px !important;
}

.collection-main {
    width: min(100%, var(--content-max));
    margin: 0 auto;
}

.suggest-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    max-width: none !important;
    padding: 20px 16px 0 !important;
    gap: 9px !important;
}

.btn-suggest {
    min-height: 54px !important;
    border: 1px solid var(--parfum-line-gold) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(145deg, rgba(217, 173, 82, 0.1), rgba(255, 255, 255, 0.015)) !important;
    color: var(--parfum-ivory) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

.btn-suggest-primary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px !important;
    text-align: left;
}

.btn-suggest-primary > span:nth-child(2) {
    display: grid;
    gap: 2px;
    color: var(--parfum-ivory);
    font-family: var(--font-family-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
}

.btn-suggest-primary small {
    color: var(--parfum-gold-muted);
    font-family: var(--font-family-body);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.action-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(217, 173, 82, 0.32);
    border-radius: 50%;
    color: var(--parfum-gold-bright);
}

.action-arrow {
    color: var(--parfum-gold);
    font-size: 20px;
}

.action-square {
    width: 52px;
    padding: 0 !important;
    font-size: 19px !important;
}

.collection-toolbar {
    padding: 14px 16px 0;
}

.search-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    max-width: none !important;
    padding: 0 !important;
}

.search-icon {
    position: absolute;
    left: 15px;
    z-index: 1;
    color: var(--parfum-muted);
    font-size: 20px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    min-width: 0;
    min-height: 48px !important;
    padding: 0 15px 0 43px !important;
    border: 1px solid var(--parfum-line) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.032) !important;
    color: var(--parfum-ivory) !important;
}

.search-input::placeholder {
    color: #6e6b68;
}

.view-toggle-btn {
    min-width: 85px;
    min-height: 48px !important;
    border-color: var(--parfum-line) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.028) !important;
    color: var(--parfum-copy) !important;
}

.filters-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 14px !important;
    max-width: none !important;
    padding: 12px 0 0 !important;
}

.filter-row {
    display: flex;
    gap: 7px !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    min-height: 34px;
    padding: 7px 11px !important;
    border: 1px solid var(--parfum-line) !important;
    border-radius: 999px !important;
    color: var(--parfum-copy) !important;
    background: rgba(255, 255, 255, 0.022) !important;
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
    white-space: nowrap;
}

.filter-btn.active-cat,
.filter-btn.active-season,
.filter-btn.active-occ {
    border-color: transparent !important;
    color: #15110a !important;
    background: linear-gradient(135deg, #efc76e, #c79638) !important;
    box-shadow: 0 7px 22px rgba(204, 153, 55, 0.16) !important;
}

.sort-control {
    display: grid;
    align-self: end;
    justify-items: end;
    gap: 4px;
    min-width: 0;
    color: var(--parfum-muted);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sort-control > span {
    width: 112px;
    line-height: 1;
    text-align: left;
    pointer-events: none;
}

.sort-select {
    width: 112px;
    min-width: 112px;
    min-height: 30px !important;
    padding: 0 26px 0 10px !important;
    border-color: var(--parfum-line) !important;
    border-radius: 999px !important;
    background-color: rgba(255, 255, 255, 0.028) !important;
    color: var(--parfum-copy) !important;
    font-size: 9px !important;
}

.grid {
    padding:
        16px
        16px
        calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 12px !important;
}
@media (max-width: 767px) {
    .grid:not(.lista) .card-visual {
    aspect-ratio: 4 / 3;
    max-height: 220px;
}

.grid:not(.lista) .card-img {
    max-width: 82%;
    max-height: 190px;
}
}
.card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 20px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
        #121418 !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22) !important;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.card:active {
    transform: scale(0.985);
}

.card-visual {
    background:
        radial-gradient(circle at 50% 38%, rgba(217, 173, 82, 0.12), transparent 43%),
        #0d0e11 !important;
}

.card-visual img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 140px;
    object-fit: contain;
    filter:
        drop-shadow(0 12px 14px rgba(0, 0, 0, 0.38))
        saturate(0.94);
}

.card-category {
    color: var(--parfum-gold-muted) !important;
    font-size: 8px !important;
    letter-spacing: 0.19em !important;
}

.card-name {
    color: var(--parfum-ivory) !important;
    font-family: var(--font-family-display);
    font-size: 15px !important;
    font-weight: 500;
}

.card-rating {
    color: var(--parfum-gold) !important;
}

.use-btn-card {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(6, 7, 9, 0.76) !important;
    backdrop-filter: blur(12px);
}

/* Bottom Dock and Quick Actions */

.bottom-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 310;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    min-height: var(--bottom-dock-height);
    padding:
        8px
        max(6px, env(safe-area-inset-right, 0px))
        max(7px, env(safe-area-inset-bottom, 0px))
        max(6px, env(safe-area-inset-left, 0px));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background:
        linear-gradient(
            180deg,
            rgba(29, 30, 34, 0.98),
            rgba(8, 9, 11, 0.99)
        );
    box-shadow:
        0 -12px 34px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(24px) saturate(1.25);
}
.dock-item,
.fab-menu {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 58px !important;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 0 3px !important;
    border: 0 !important;
    border-radius: 18px !important;
    color: var(--parfum-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transform: none !important;
}

.dock-icon {
    min-height: 25px;
    font-size: 22px;
    line-height: 1;
}

.dock-label {
    color: currentColor;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.dock-item::after {
    position: absolute;
    bottom: -3px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    content: "";
}

.dock-item.is-active {
    color: var(--parfum-gold-bright) !important;
}

.dock-item.is-active::after {
    background: var(--parfum-gold);
    box-shadow: 0 0 12px rgba(217, 173, 82, 0.55);
}

.fab-menu {
    top: -15px !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 auto !important;
    border: 1px solid #f1cf83 !important;
    border-radius: 50% !important;
    color: #15110a !important;
    background: linear-gradient(145deg, #f1cc79, #bd8a31) !important;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.48),
        0 0 0 7px rgba(8, 9, 11, 0.88) !important;
}

.fab-menu .dock-label {
    position: absolute;
    top: calc(100% + 7px);
    color: var(--parfum-muted);
}

.dock-plus {
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: transform 180ms ease;
}

.fab-menu.open .dock-plus {
    transform: rotate(45deg);
}

.fab-dropdown {
    position: fixed !important;
    right: 14px !important;
    bottom: calc(var(--bottom-dock-safe-offset) + 12px) !important;
    left: 14px !important;
    z-index: 305 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: auto !important;
    max-width: 520px;
    max-height: min(
        calc(100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 24px),
        460px
    );
    margin-inline: auto;
    padding: 10px !important;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(27, 29, 33, 0.98), rgba(13, 14, 17, 0.98)) !important;
    box-shadow: var(--cinematic-shadow) !important;
    backdrop-filter: blur(24px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.98) !important;
    transform-origin: bottom center;
    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease;
}

.fab-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1) !important;
}

.fab-dropdown button {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    gap: 9px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 14px !important;
    color: var(--parfum-copy) !important;
    background: rgba(255, 255, 255, 0.028) !important;
    font-size: 12px !important;
    text-align: left;
}

.fab-dropdown button span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(217, 173, 82, 0.22);
    border-radius: 9px;
    color: var(--parfum-gold);
}

/* Account sheet */

.account-overlay {
    z-index: 420 !important;
}

.account-sheet {
    position: relative;
    width: min(100%, 560px) !important;
    padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
}

.account-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 0 20px;
}

.account-heading h2 {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: 25px;
    font-weight: 500;
}

.account-heading #accountIdentity {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--parfum-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-monogram {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--parfum-line-gold);
    border-radius: 50%;
    color: var(--parfum-gold-bright);
    background: radial-gradient(circle, rgba(217, 173, 82, 0.15), transparent);
    font-family: var(--font-family-display);
    font-size: 24px;
}

.icon-close,
.perfume-modal-close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--parfum-line);
    border-radius: 50%;
    color: var(--parfum-copy);
    background: rgba(0, 0, 0, 0.32);
    font-size: 24px;
    cursor: pointer;
}

.account-actions {
    display: grid;
grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.account-actions button {
    display: grid;
    min-height: 112px;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 12px 7px;
    border: 1px solid var(--parfum-line);
    border-radius: 16px;
    color: var(--parfum-copy);
    background: rgba(255, 255, 255, 0.028);
}

.account-actions button > span {
    color: var(--parfum-gold);
    font-size: 22px;
}

.account-actions strong {
    color: var(--parfum-ivory);
    font-size: 12px;
}

.account-actions small {
    color: var(--parfum-muted);
    font-size: 9px;
}

.account-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.account-footer-actions button {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.account-passkey-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(217, 173, 82, 0.34);
    color: var(--parfum-gold-bright);
    background: rgba(217, 173, 82, 0.055);
}

.account-passkey-compact span {
    font-size: 16px;
}

.account-signout {
    width: 100%;
    border: 1px solid rgba(215, 112, 112, 0.38);
    color: var(--parfum-danger);
    background: rgba(215, 112, 112, 0.045);
}

/* Collection analytics */

.collection-analytics-overlay {
    align-items: flex-end;
    justify-content: center;
}

.collection-analytics-modal {
    width: min(100%, 760px) !important;
    margin-bottom: var(--bottom-dock-viewport-gap);
    padding: 12px 18px 24px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.collection-analytics-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 10px 0 18px;
    border-bottom: 1px solid var(--parfum-line);
}

.collection-analytics-heading h2,
.collection-analytics-section h3,
.collection-analytics-section h4 {
    margin: 0;
    color: var(--parfum-ivory);
    font-family: var(--font-family-display);
    font-weight: 500;
}

.collection-analytics-heading h2 {
    font-size: clamp(30px, 9vw, 38px);
}

.collection-analytics-heading p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--parfum-muted);
    font-size: 13px;
}

.collection-analytics-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--parfum-line);
    border-radius: 50%;
    color: var(--parfum-copy);
    background: rgba(255, 255, 255, 0.035);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.collection-analytics-content {
    padding-top: 6px;
}

.collection-analytics-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--parfum-line);
}

.collection-analytics-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.collection-analytics-section-heading .eyebrow {
    margin-bottom: 2px;
}

.collection-analytics-section h3 {
    font-size: 23px;
}

.collection-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.collection-summary-grid article {
    display: flex;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
}

.collection-summary-grid article > span,
.collection-summary-grid small,
.collection-coverage-row small,
.collection-analytics-method {
    color: var(--parfum-muted);
    font-size: 10px;
}

.collection-summary-grid strong {
    overflow: hidden;
    color: var(--parfum-gold-bright);
    font-family: var(--font-family-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-summary-grid .collection-favorite {
    grid-column: span 2;
}

.collection-summary-grid .collection-favorite strong {
    color: var(--parfum-ivory);
    font-size: 22px;
}

.collection-coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Collection analytics — textual usage podium */
.collection-usage-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    margin-top: 20px;
}

.collection-podium-place {
    display: grid;
    min-width: 0;
    min-height: 118px;
    padding: 14px 10px;
    align-content: center;
    justify-items: center;
    gap: 6px;
    border: 1px solid var(--parfum-line);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
    text-align: center;
}

.collection-podium-place-1 {
    min-height: 142px;
    border-color: rgba(232, 187, 88, 0.68);
    background:
        linear-gradient(
            145deg,
            rgba(232, 187, 88, 0.20),
            rgba(143, 98, 28, 0.10) 58%,
            rgba(255, 255, 255, 0.025)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 184, 0.12),
        0 0 0 1px rgba(232, 187, 88, 0.06);
}

.collection-podium-place-2 {
    border-color: rgba(220, 224, 232, 0.58);
    background:
        linear-gradient(
            145deg,
            rgba(225, 229, 236, 0.16),
            rgba(150, 158, 170, 0.08) 55%,
            rgba(255, 255, 255, 0.025)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 0 1px rgba(220, 224, 232, 0.05);
}

.collection-podium-place-3 {
    border-color: rgba(198, 128, 76, 0.56);
    background:
        linear-gradient(
            145deg,
            rgba(198, 128, 76, 0.16),
            rgba(111, 63, 35, 0.09) 58%,
            rgba(255, 255, 255, 0.02)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 206, 165, 0.09),
        0 0 0 1px rgba(198, 128, 76, 0.05);
}

.collection-podium-position {
    font-size: 24px;
    line-height: 1;
}

.collection-podium-place-1 .collection-podium-position::before {
    content: "🥇";
}

.collection-podium-place-2 .collection-podium-position::before {
    content: "🥈";
}

.collection-podium-place-3 .collection-podium-position::before {
    content: "🥉";
}

.collection-podium-position {
    font-size: 0;
}

.collection-podium-place strong {
    width: 100%;
    overflow: hidden;
    color: var(--parfum-ivory);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.collection-podium-place small {
    margin-top: 10px;
    color: var(--parfum-gold-bright);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.collection-podium-place.is-empty {
    visibility: visible;
}

.collection-podium-filter select,
#collectionPodiumSeasonSelect {
    min-height: 40px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--parfum-line);
    border-radius: 999px;
    color: var(--parfum-ivory);
    background: var(--parfum-surface-raised);
}

@media (max-width: 520px) {
    .collection-usage-podium {
        gap: 7px;
    }

.collection-podium-place {
    min-height: 180px;
    padding: 10px 6px;
    overflow: hidden;
}

.collection-podium-place-1 {
    min-height: 205px;
}

.collection-podium-image {
    display: grid;
    width: 100%;
    height: 90px;
    place-items: center;
    overflow: hidden;
}

.collection-podium-place-1 .collection-podium-image {
    height: 110px;
}

.collection-podium-image .card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
}

    .collection-podium-place strong {
        font-size: 11px;
    }

    .collection-podium-place small {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;

}

.collection-coverage-list {
    display: grid;
    gap: 14px;
}

.collection-coverage-section {
    min-width: 0;
}

.collection-coverage-row {
    display: grid;
    gap: 5px;
}

.collection-coverage-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--parfum-copy);
    font-size: 13px;
}

.collection-coverage-label strong {
    color: var(--parfum-gold-bright);
    font-size: 12px;
    font-weight: 600;
}

.collection-coverage-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.collection-coverage-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b68432, #edc66f);
    box-shadow: 0 0 14px rgba(217, 173, 82, 0.24);
}

.collection-usage-grid {
    display: grid;
    gap: 12px;
}

.collection-analytics-section h4 {
    margin-bottom: 8px;
    color: var(--parfum-copy);
    font-family: var(--font-family-body);
    font-size: 12px;
    font-weight: 600;
}

.collection-usage-list {
    display: grid;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.collection-usage-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.collection-usage-list li > span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid rgba(217, 173, 82, 0.26);
    border-radius: 50%;
    color: var(--parfum-gold);
    font-size: 10px;
}

.collection-usage-list strong {
    overflow: hidden;
    color: var(--parfum-copy);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-usage-list small {
    color: var(--parfum-gold-muted);
    font-size: 10px;
    white-space: nowrap;
}

.collection-analytics-empty,
.collection-analytics-loading {
    display: grid;
    min-height: 210px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 22px;
    text-align: center;
}

.collection-analytics-empty > span {
    color: var(--parfum-gold);
    font-size: 34px;
}

.collection-analytics-empty h3 {
    margin: 0;
    color: var(--parfum-ivory);
    font-family: var(--font-family-display);
    font-size: 25px;
    font-weight: 500;
}

.collection-analytics-empty p,
.collection-analytics-empty-copy {
    margin: 0;
    color: var(--parfum-muted);
    font-size: 13px;
    line-height: 1.5;
}

.collection-analytics-method {
    margin: 18px 0 0;
    line-height: 1.45;
}

.collection-analytics-method code {
    color: var(--parfum-copy);
    font-family: monospace;
    font-size: inherit;
}

/* Shared modal surface */

.overlay {
    box-sizing: border-box;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        0
        var(--bottom-dock-safe-offset) !important;
    background: rgba(2, 3, 4, 0.82) !important;
    backdrop-filter: blur(16px) saturate(0.9) !important;
}

.modal,
.add-modal,
.event-modal {
    box-sizing: border-box;
    max-height: calc(
        100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 12px
    );
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-bottom: 0 !important;
    background:
        linear-gradient(180deg, #181a1e, #0d0f12) !important;
    box-shadow: var(--cinematic-shadow) !important;
}

.modal-handle {
    background: rgba(255, 255, 255, 0.16) !important;
}

/* Perfume detail modal */

#overlay {
    z-index: 360;
    align-items: flex-end;
    justify-content: center;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        0
        env(safe-area-inset-bottom, 0px) !important;
}

#modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(
        100dvh
        - max(12px, env(safe-area-inset-top, 0px))
        - env(safe-area-inset-bottom, 0px)
    );
    padding: 0 !important;
    overflow: hidden;
    border-radius: 28px 28px 0 0 !important;
}

#modal > #modalDynamicContent {
    position: relative;
    max-height: calc(
        100dvh
        - max(12px, env(safe-area-inset-top, 0px))
        - env(safe-area-inset-bottom, 0px)
    );
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 173, 82, 0.35) transparent;
}

#modalDynamicContent > .modal-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 9;
    width: 42px;
    transform: translateX(-50%);
}

.perfume-modal-close {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 12;
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(6, 7, 9, 0.54);
    backdrop-filter: blur(12px);
}

.perfume-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    min-height: 334px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--parfum-line);
    background:
        linear-gradient(125deg, rgba(217, 173, 82, 0.08), transparent 44%),
        #0a0c0e;
}

.perfume-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.55 !important;
    background:
    radial-gradient(
        ellipse at 31% 46%,
        rgba(237, 198, 111, 0.22) 0%,
        rgba(217, 173, 82, 0.09) 32%,
        transparent 64%
    ),
    radial-gradient(
        ellipse at 28% 42%,
        rgba(255, 244, 210, 0.08) 0%,
        transparent 38%
    ),
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 44%
    );
    content: "";
}

.perfume-hero::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.62 !important;
    background:
    radial-gradient(
        ellipse at 36% 44%,
        transparent 28%,
        rgba(3, 4, 5, 0.05) 56%,
        rgba(3, 4, 5, 0.36) 100%
    ),
    linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        transparent 24%,
        transparent 70%,
        rgba(0, 0, 0, 0.34) 100%
    );
    content: "";
    pointer-events: none;
}

.perfume-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(5, 6, 8, 0.02) 12%,
            rgba(5, 6, 8, 0.1) 38%,
            rgba(5, 6, 8, 0.42) 64%,
            rgba(7, 8, 10, 0.94) 84%,
            rgba(7, 8, 10, 0.99) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 8, 10, 0.97) 0%,
            rgba(7, 8, 10, 0.42) 17%,
            transparent 48%
        );
}

.perfume-hero-family,
.family-visual {
    background-image: url("../assets/olfactive-family-atlas.jpg");
    background-repeat: no-repeat;
    background-size: 400% 400%;
    background-position: var(--family-x) var(--family-y);
}

.perfume-hero-family {
    position: absolute;
    z-index: -2;
    top: -10%;
    bottom: -10%;
    background-image: var(
        --family-image,
        url("../assets/olfactive-family-atlas.jpg")
    );
    background-size: var(--family-image-size, 400% 400%);
    background-position: var(
        --family-image-position,
        var(--family-x) var(--family-y)
    );
    opacity: 0.66 !important;

filter:
    saturate(1.02)
    brightness(0.88)
    contrast(1.22) !important;
    mix-blend-mode: normal;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.perfume-hero-family-1 {
    right: 12%;
    left: -8%;
    -webkit-mask-image: linear-gradient(
        90deg,
        #000 0%,
        #000 36%,
        rgba(0, 0, 0, 0.82) 49%,
        rgba(0, 0, 0, 0.22) 64%,
        transparent 79%
    );
    mask-image: linear-gradient(
        90deg,
        #000 0%,
        #000 36%,
        rgba(0, 0, 0, 0.82) 49%,
        rgba(0, 0, 0, 0.22) 64%,
        transparent 79%
    );
}

.perfume-hero-family-2 {
    right: 4%;
    left: 4%;
    opacity: 0.54 !important;

filter:
    saturate(1.02)
    brightness(0.88)
    contrast(1.22);
    mix-blend-mode: normal;
    -webkit-mask-image: linear-gradient(
        124deg,
        transparent 5%,
        rgba(0, 0, 0, 0.22) 20%,
        rgba(0, 0, 0, 0.92) 36%,
        #000 49%,
        rgba(0, 0, 0, 0.82) 62%,
        rgba(0, 0, 0, 0.2) 77%,
        transparent 91%
    );
    mask-image: linear-gradient(
        124deg,
        transparent 5%,
        rgba(0, 0, 0, 0.22) 20%,
        rgba(0, 0, 0, 0.92) 36%,
        #000 49%,
        rgba(0, 0, 0, 0.82) 62%,
        rgba(0, 0, 0, 0.2) 77%,
        transparent 91%
    );
}

.perfume-hero-family-3 {
    right: 0;
    left: 15%;
    opacity: 0.44 !important;

filter:
    saturate(1.02)
    brightness(0.88)
    contrast(1.22);
    mix-blend-mode: normal;
    -webkit-mask-image: linear-gradient(
        56deg,
        transparent 15%,
        rgba(0, 0, 0, 0.14) 34%,
        rgba(0, 0, 0, 0.88) 49%,
        rgba(0, 0, 0, 0.7) 61%,
        rgba(0, 0, 0, 0.12) 75%,
        transparent 88%
    );
    mask-image: linear-gradient(
        56deg,
        transparent 15%,
        rgba(0, 0, 0, 0.14) 34%,
        rgba(0, 0, 0, 0.88) 49%,
        rgba(0, 0, 0, 0.7) 61%,
        rgba(0, 0, 0, 0.12) 75%,
        transparent 88%
    );
}

.perfume-hero--composition-2 .perfume-hero-family-2 {
    transform: translate(-3%, -2%);
}

.perfume-hero--composition-2 .perfume-hero-family-3 {
    transform: translate(4%, 3%);
}

.perfume-hero--composition-3 .perfume-hero-family-2 {
    transform: translate(3%, 2%);
}

.perfume-hero--composition-3 .perfume-hero-family-3 {
    transform: translate(-4%, -3%);
}

.perfume-hero-bottle-wrap::before {
    position: absolute;
    top: 52%;
    left: 50%;
    z-index: 0;
    width: 78%;
    height: 86%;
    background:
        radial-gradient(
            ellipse at 42% 45%,
            color-mix(
                in srgb,
                var(--hero-aura-primary, #c9a45c)
                calc(var(--hero-category-glow, 0.28) * 100%),
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--hero-aura-primary, #c9a45c)
                calc(var(--hero-category-glow, 0.28) * 46%),
                transparent
            ) 34%,
            transparent 68%
        ),
        radial-gradient(
            ellipse at 62% 42%,
            color-mix(
                in srgb,
                var(--hero-aura-secondary, #c9a45c)
                calc(var(--hero-category-glow, 0.28) * 78%),
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--hero-aura-secondary, #c9a45c)
                calc(var(--hero-category-glow, 0.28) * 36%),
                transparent
            ) 32%,
            transparent 66%
        ),
        radial-gradient(
            ellipse at 50% 68%,
            color-mix(
                in srgb,
                var(--hero-aura-tertiary, #c9a45c)
                calc(var(--hero-category-glow, 0.28) * 64%),
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--hero-aura-tertiary, #c9a45c)
                calc(var(--hero-category-glow, 0.28) * 28%),
                transparent
            ) 30%,
            transparent 64%
        );
    content: "";
    pointer-events: none;
    filter: blur(28px);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

.perfume-hero-bottle-wrap {
    position: relative;
    z-index: 3;
    display: grid;
    min-width: 0;
    place-items: end center;
    padding: 54px 2px 42px 14px;
}

.perfume-hero-bottle-wrap::after {
    position: absolute;
    right: 14%;
    bottom: 28px;
    left: 11%;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.64);
    content: "";
    filter: blur(12px);
}

.perfume-hero-bottle {
    position: relative;
    z-index: 1;
    width: min(112%, 248px);
    height: 246px;
    object-fit: contain;
    object-position: center bottom;
    filter:
        brightness(var(--hero-category-brightness, 1.06))
        contrast(1.03)
        drop-shadow(0 22px 20px rgba(0, 0, 0, 0.42))
        drop-shadow(
            0 0 22px
            rgba(
                237,
                198,
                111,
                var(--hero-category-glow, 0.28)
            )
        );
}
.perfume-hero--niche {
    --hero-category-brightness: 1.10;
    --hero-category-glow: 0.34;
}

.perfume-hero--designer {
    --hero-category-brightness: 1.05;
    --hero-category-glow: 0.26;
}

.perfume-hero--arab {
    --hero-category-brightness: 1.00;
    --hero-category-glow: 0.20;
}

.perfume-hero-placeholder {
    z-index: 1;
    display: grid;
    width: 148px;
    height: 184px;
    place-items: center;
    border: 1px solid var(--parfum-line-gold);
    border-radius: 40% 40% 20% 20%;
    color: var(--parfum-gold-bright);
    background: linear-gradient(145deg, rgba(217, 173, 82, 0.14), rgba(255, 255, 255, 0.02));
    font-family: var(--font-family-display);
    font-size: 60px;
}

.perfume-hero-copy {
    position: relative;
    z-index: 5;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 58px 18px 54px 12px;
    background:
    linear-gradient(
        90deg,
        rgba(7, 8, 10, 0) 0%,
        rgba(7, 8, 10, 0.08) 28%,
        rgba(7, 8, 10, 0.30) 72%,
        rgba(7, 8, 10, 0.52) 100%
    );
}

.perfume-brand {
    margin: 0 0 5px;
    color: var(--parfum-gold);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.perfume-hero h2 {
    margin: 0;
    color: var(--parfum-ivory);
    font-family: var(--font-family-display);
    font-size: clamp(27px, 8.5vw, 40px);
    font-weight: 500;
    line-height: 0.98;
    text-wrap: balance;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.72),
        0 0 24px rgba(0, 0, 0, 0.36);
}

.perfume-identity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.perfume-identity-chips span {
    padding: 4px 10px;
    border: 1px solid rgba(217, 173, 82, 0.28);
    border-radius: 999px;
    color: #e7ca8b;
    background: rgba(217, 173, 82, 0.1);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.perfume-rating {
    margin-top: 11px;
    color: var(--parfum-gold-bright) !important;
    font-size: 17px !important;
    letter-spacing: 3px;
}

.perfume-score {
    display: grid;
    gap: 0;
    margin-top: 8px;
}

.perfume-score small {
    color: var(--parfum-muted);
    font-size: 9px;
}

.perfume-score strong {
    color: var(--parfum-gold-bright);
    font-family: var(--font-family-display);
    font-size: 25px;
    font-weight: 500;
}

.perfume-score strong span {
    color: var(--parfum-copy);
    font-size: 15px;
}

.hero-family-key {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 7;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
}

.hero-family-key span {
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--family-accent), transparent 66%);
    border-radius: 999px;
    color: color-mix(in srgb, var(--family-accent), white 28%);
    background: rgba(5, 6, 8, 0.58);
    font-size: 8px;
    backdrop-filter: blur(8px);
}

.detail-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 !important;
    padding: 0 14px !important;
    border-bottom: 1px solid var(--parfum-line);
    background: rgba(14, 16, 19, 0.94);
    backdrop-filter: blur(18px);
}

.detail-tab {
    min-height: 52px;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--parfum-muted) !important;
    background: transparent !important;
    font-size: 10px !important;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.detail-tab.active {
    border-bottom-color: var(--parfum-gold) !important;
    color: var(--parfum-gold-bright) !important;
}

.detail-pane {
    padding: 16px 14px 6px;
}

.summary-grid {
    display: grid;
    gap: 10px;
}

.info-card {
    border: 1px solid var(--parfum-line) !important;
    border-radius: 17px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.summary-card-compact {
    align-items: center;
}

.info-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(217, 173, 82, 0.22);
    border-radius: 11px;
    color: var(--parfum-gold);
    background: rgba(217, 173, 82, 0.06);
}

.info-title {
    color: var(--parfum-gold-muted) !important;
    font-size: 9px !important;
    font-weight: 500;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
}

.info-text {
    color: var(--parfum-copy) !important;
    font-size: 13px !important;
    line-height: 1.55;
}

.section-title {
    margin-bottom: 10px;
}

.tag-list {
    gap: 6px !important;
    margin-top: 8px;
}

.tag-sm {
    padding: 6px 11px !important;
    border: 1px solid var(--parfum-line) !important;
    border-radius: 999px !important;
    color: var(--parfum-copy) !important;
    background: rgba(255, 255, 255, 0.025) !important;
    font-size: 10px !important;
    text-transform: capitalize;
}

.tag-sm.highlight {
    border-color: rgba(217, 173, 82, 0.25) !important;
    color: #e6ca8d !important;
    background: rgba(217, 173, 82, 0.08) !important;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.season-tile {
    display: grid;
    min-width: 0;
    min-height: 78px;
    align-content: center;
    gap: 5px;
    padding: 8px 5px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    text-align: center;
}

.season-tile span {
    overflow: hidden;
    color: var(--parfum-copy);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-tile strong {
    color: #a6bd67;
    font-size: 9px;
    font-weight: 500;
}

.season-tile small {
    color: var(--parfum-muted);
    font-size: 10px;
}

.occasion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.occasion-score {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1px 7px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
}

.occasion-score > span {
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--parfum-gold);
}

.occasion-score strong {
    overflow: hidden;
    color: var(--parfum-copy);
    font-size: 9px;
    font-weight: 400;
    text-overflow: ellipsis;
}

.occasion-score small {
    color: #a6bd67;
    font-size: 10px;
}

.stock-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.stock-values {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-values strong {
    position: relative;
    top: -2px;
}

.stock-heading strong {
    color: var(--parfum-gold-bright);
    font-family: var(--font-family-display);
    font-size: 15px;
    font-weight: 500;
}

.stock-heading span {
    color: var(--parfum-copy);
    font-size: 15px;
}

.stock-heading .stock-bottle {
    color: var(--parfum-gold);
    font-size: 34px;
}

.stock-card .stock-bar-visual {
    height: 8px;
    margin: 12px 0 7px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
}

.stock-card .stock-bar-fill {
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 12px color-mix(in srgb, currentColor, transparent 40%);
}

.stock-card > small {
    display: block;
    color: var(--parfum-muted);
    font-size: 9px;
    text-align: center;
}

/* Olfactive pyramid */

.notes-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 10px;
}

.notes-heading h3 {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: 22px;
    font-weight: 500;
}

.notes-heading > span {
    max-width: 120px;
    color: var(--parfum-muted);
    font-size: 8px;
    line-height: 1.4;
    text-align: right;
}

.olfactive-pyramid {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 0px 0 8px;
}

.olfactive-pyramid::before,
.olfactive-pyramid::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    width: 1px;
    background: linear-gradient(transparent, rgba(217, 173, 82, 0.45), transparent);
    content: "";
    transform-origin: top;
}

.olfactive-pyramid::before {
    left: 50%;
    transform: rotate(13deg);
}

.olfactive-pyramid::after {
    right: 50%;
    transform: rotate(-13deg);
}

.pyramid-layer {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--parfum-line);
    background:
        linear-gradient(
            140deg,
            rgba(217, 173, 82, 0.035),
            rgba(255, 255, 255, 0.018)
        ),
        rgba(11, 13, 16, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    
}
.pyramid-layer-atmosphere {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.pyramid-layer-atmosphere::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 9, 11, 0.12) 0%,
            rgba(8, 9, 11, 0.52) 62%,
            rgba(8, 9, 11, 0.82) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 9, 11, 0.08) 0%,
            rgba(8, 9, 11, 0.32) 100%
        );
    content: "";
}
.pyramid-family-layer {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    background-image: url("../assets/olfactive-family-atlas.jpg");
    background-repeat: no-repeat;
    background-size: 400% 400%;
    background-position: var(--family-x) var(--family-y);
    mix-blend-mode: screen;
    mask-image: radial-gradient(
    circle,
    black 20%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 88%
);
}
.pyramid-family-layer-1 {
    width: 82%;
    left: -18%;
    top: -24%;
    opacity: 0.34;
    filter:
        saturate(1)
        brightness(0.98)
        contrast(1.08);
}

.pyramid-family-layer-2 {
    width: 62%;
    right: 4%;
    top: -2%;
    opacity: 0.20;
    filter:
        blur(1px)
        saturate(0.94)
        brightness(0.90)
        contrast(1.04);
}

.pyramid-family-layer-3 {
    width: 52%;
    right: -12%;
    bottom: -22%;
    opacity: 0.14;
    filter:
        blur(2px)
        saturate(0.88)
        brightness(0.84)
        contrast(1.02);
}

/* Salida: más luminosa y abierta */
.pyramid-layer-top .pyramid-family-layer-1 {
    opacity: 0.48;
    filter:
        saturate(1.04)
        brightness(1.08)
        contrast(1.06);
}

.pyramid-layer-top .pyramid-family-layer-2 {
    opacity: 0.28;
    filter:
        blur(1px)
        saturate(0.98)
        brightness(0.98)
        contrast(1.03);
}

.pyramid-layer-top .pyramid-family-layer-3 {
    opacity: 0.18;
    filter:
        blur(2px)
        saturate(0.92)
        brightness(0.90);
}

/* Corazón: iluminación equilibrada */
.pyramid-layer-middle .pyramid-family-layer-1 {
    opacity: 0.39;
    filter:
        saturate(0.98)
        brightness(0.96)
        contrast(1.06);
}

.pyramid-layer-middle .pyramid-family-layer-2 {
    opacity: 0.22;
    filter:
        blur(1px)
        saturate(0.92)
        brightness(0.88);
}

.pyramid-layer-middle .pyramid-family-layer-3 {
    opacity: 0.14;
    filter:
        blur(2px)
        saturate(0.86)
        brightness(0.82);
}

/* Fondo: más oscuro, cálido y profundo */
.pyramid-layer-base .pyramid-family-layer-1 {
    opacity: 0.29;
    filter:
        saturate(0.94)
        brightness(0.84)
        contrast(1.12);
}

.pyramid-layer-base .pyramid-family-layer-2 {
    opacity: 0.16;
    filter:
        blur(1px)
        saturate(0.88)
        brightness(0.77)
        contrast(1.08);
}

.pyramid-layer-base .pyramid-family-layer-3 {
    opacity: 0.10;
    filter:
        blur(2px)
        saturate(0.82)
        brightness(0.70);
}

.pyramid-layer-top {
    width: 84%;
    margin-inline: auto;
    border-radius: 80px 80px 16px 16px;
    background:
        radial-gradient(
            circle at 28% 26%,
            rgba(237, 198, 111, 0.10),
            transparent 52%
        ),
        linear-gradient(
            140deg,
            rgba(217, 173, 82, 0.04),
            rgba(255,255,255,0.018)
        ),
        rgba(11,13,16,.90);
}

.pyramid-layer-middle {
    width: 92%;
    margin-inline: auto;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(170, 210, 120, 0.07),
            transparent 56%
        ),
        linear-gradient(
            140deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.012)
        ),
        rgba(11,13,16,.90);
}

.pyramid-layer-base {
    border-radius: 18px 18px 26px 26px;
    background:
        radial-gradient(
            circle at 70% 72%,
            rgba(140, 110, 70, 0.10),
            transparent 56%
        ),
        linear-gradient(
            140deg,
            rgba(120,90,55,0.04),
            rgba(255,255,255,0.012)
        ),
        rgba(11,13,16,.92);
}

.pyramid-layer-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 22px 6px 26px;
    color: var(--parfum-gold-bright);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pyramid-layer-heading small {
    color: var(--parfum-muted);
    font-size: 8px;
    letter-spacing: normal;
    text-transform: none;
}

.pyramid-layer-top .pyramid-layer-heading {
    padding: 11px 56px 8px;
}

.pyramid-families {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 0 6px 6px;
}

.family-accordion {
    width: 82%;
    min-width: 0;
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.family-accordion[open] {
    border-color: rgba(217, 173, 82, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 0 14px rgba(217, 173, 82, 0.05);
}

.family-accordion summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 3px 8px 3px 3px;
    cursor: pointer;
    list-style: none;
}

.family-accordion summary::-webkit-details-marker {
    display: none;
}

.family-visual {
    display: block;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(
        in srgb,
        var(--family-accent),
        transparent 60%
    );
    border-radius: 9px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.24);
}

.family-visual-neutral {
    background:
        radial-gradient(
            circle at 35% 35%,
            rgba(255,255,255,0.08),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.015)
        ),
        rgba(24, 26, 30, 0.95);

    border-color: rgba(255,255,255,0.08);

    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.30);
}

.family-accordion summary > span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.family-accordion summary strong {
    color: var(--parfum-ivory);
    font-family: var(--font-family-display);
    font-size: 14px;
    font-weight: 500;
}

.family-accordion summary small {
    color: var(--parfum-muted);
    font-size: 9px;
}

.family-chevron {
    color: var(--parfum-gold);
    transition: transform 160ms ease;
}

.family-accordion[open] .family-chevron {
    transform: rotate(180deg);
}

.family-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 2px 9px 9px 56px;
}

.family-notes span {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: var(--parfum-copy);
    background: rgba(0, 0, 0, 0.18);
    font-size: 9px;
}

/* Performance */

.performance-grid {
    display: grid;
    gap: 10px;
}

.performance-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 132px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid var(--parfum-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 50%, rgba(217, 173, 82, 0.08), transparent 35%),
        rgba(255, 255, 255, 0.024);
}

.performance-ring {
    position: relative;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #15171a 58%, transparent 60%),
        conic-gradient(
            from 220deg,
            var(--parfum-gold-bright) 0 var(--metric-progress),
            rgba(255, 255, 255, 0.075) var(--metric-progress) 76%,
            transparent 76% 100%
        );
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.performance-ring::after {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.performance-ring span {
    z-index: 1;
    color: var(--parfum-gold-bright);
    font-family: var(--font-family-display);
}

.performance-ring strong {
    font-size: 28px;
    font-weight: 500;
}

.performance-ring small {
    color: var(--parfum-muted);
    font-size: 13px;
}

.performance-copy {
    display: grid;
    gap: 5px;
}

.metric-kicker {
    color: var(--parfum-gold-muted);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.performance-copy > strong {
    color: var(--parfum-gold-bright);
    font-family: var(--font-family-display);
    font-size: 19px;
    font-weight: 500;
}

.performance-copy p {
    margin: 0;
    color: var(--parfum-copy);
    font-size: 11px;
    line-height: 1.45;
}

.metric-segments {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 3px;
    margin-top: 5px;
}

.metric-segments i {
    height: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.metric-segments i.is-filled {
    border-color: transparent;
    background: linear-gradient(90deg, #c79438, #edc66f);
    box-shadow: 0 0 7px rgba(217, 173, 82, 0.24);
}

.metric-kind {
    position: absolute;
    top: 11px;
    right: 13px;
    color: rgba(217, 173, 82, 0.24);
    font-size: 20px;
}

.best-performance {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid var(--parfum-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
}

.best-performance > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.best-performance span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
}

.best-performance i {
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--parfum-gold);
    font-style: normal;
    font-size: 20px;
}

.best-performance small {
    color: var(--parfum-muted);
    font-size: 8px;
}

.best-performance strong {
    overflow: hidden;
    color: var(--parfum-copy);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
}

.perfume-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 11;
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--parfum-line);
    background: rgba(13, 15, 18, 0.95);
    backdrop-filter: blur(18px);
}

.btn-edit-action {
    min-height: 48px;
    border: 0 !important;
    border-radius: 999px !important;
    color: #171109 !important;
    background: linear-gradient(135deg, #efc76e, #c79638) !important;
    box-shadow: 0 9px 24px rgba(204, 153, 55, 0.2);
    font-weight: 600;
}

.btn-close-modal {
    min-height: 44px;
    border: 1px solid var(--parfum-line) !important;
    border-radius: 999px !important;
    color: var(--parfum-copy) !important;
    background: rgba(255, 255, 255, 0.026) !important;
}

/* Unified perfume editor: the form is mounted into exactly one modal surface. */

#modal.is-editing {
    max-width: 680px;
}

#modal.is-editing > #modalDynamicContent {
    display: block;
    overflow-y: auto;
}

.perfume-edit-surface {
    position: relative;
    min-height: 100%;
}

.perfume-edit-surface > .modal-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 12;
    transform: translateX(-50%);
}

.perfume-edit-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 146px;
    align-items: center;
    gap: 16px;
    padding: 30px 20px 18px;
    overflow: hidden;
    border-bottom: 1px solid var(--parfum-line);
    background:
        radial-gradient(circle at 82% 18%, rgba(217, 173, 82, 0.24), transparent 35%),
        linear-gradient(135deg, #181610, #0b0d0f 68%);
}

.perfume-edit-hero::after {
    position: absolute;
    inset: auto -14% -70% 45%;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(217, 173, 82, 0.2);
    border-radius: 50%;
    content: "";
}

.perfume-edit-hero-copy {
    position: relative;
    z-index: 1;
}

.perfume-edit-hero h1 {
    margin: 0;
    color: var(--parfum-ivory);
    font-family: var(--font-family-display);
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 500;
    line-height: 0.95;
}

.perfume-edit-hero p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--parfum-muted);
    font-size: 12px;
}

.perfume-edit-hero img,
.perfume-edit-hero-mark {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 92px;
    max-height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.48));
}

.perfume-edit-hero-mark {
    display: grid;
    height: 92px;
    place-items: center;
    border: 1px solid var(--parfum-line-gold);
    border-radius: 50%;
    color: var(--parfum-gold);
    font-size: 36px;
}

.perfume-edit-family-key {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.perfume-edit-family-key span {
    padding: 4px 7px;
    border: 1px solid rgba(217, 173, 82, 0.24);
    border-radius: 999px;
    color: #e7ca8b;
    background: rgba(0, 0, 0, 0.24);
    font-size: 8px;
}

.perfume-edit-content {
    padding: 18px 14px 0;
}

.perfume-edit-content #editModalTitle {
    margin-top: 0;
}

.perfume-edit-surface .edit-premium-title {
    font-family: var(--font-family-display);
}

.perfume-edit-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    padding: 12px 0 14px;
    border-top: 1px solid var(--parfum-line);
    background: linear-gradient(180deg, rgba(13, 15, 18, 0.82), rgba(13, 15, 18, 0.98) 22%);
    backdrop-filter: blur(18px);
}

.perfume-edit-actions .edit-actions {
    margin-top: 0;
}

#editOverlay .add-modal {
    padding: 0 !important;
}

#editOverlay .perfume-edit-content {
    padding-inline: 20px;
}

/* Every fixed secondary surface shares the same dock reservation. */

.drawer-overlay,
.auth-gate {
    bottom: var(--bottom-dock-safe-offset) !important;
}

.drawer {
    height: 100% !important;
    padding-bottom: 20px !important;
}

.dev-panel {
    bottom: calc(var(--bottom-dock-safe-offset) + 12px) !important;
    max-height: calc(100dvh - var(--bottom-dock-safe-offset) - 32px) !important;
}

#eventNotificationContainer,
.event-notification,
.insight-toast {
    bottom: calc(var(--bottom-dock-safe-offset) + 12px) !important;
}

#assistantEditModal,
#fragellaSelectModal {
    inset: 0 0 var(--bottom-dock-safe-offset) 0 !important;
    box-sizing: border-box !important;
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px !important;
}

#assistantEditModal .edit-modal,
#fragellaSelectModal .edit-modal {
    box-sizing: border-box;
    max-height: calc(100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 24px) !important;
    overflow-y: auto;
}

#assistantModal .modal,
#traceModal .modal {
    max-height: calc(100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 24px) !important;
}

#traceContent,
#top10List {
    max-height: calc(100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 190px) !important;
}

/* Existing feature surfaces */

.suggest-card,
.layering-card,
.recency-item,
.edit-premium-section {
    border-color: var(--parfum-line) !important;
    background: rgba(255, 255, 255, 0.028) !important;
}

.btn-save {
    background: linear-gradient(135deg, #efc76e, #c79638) !important;
    color: #15110a !important;
}

.btn-close,
.btn-close-modal {
    border-color: var(--parfum-line) !important;
}

.chip,
.occ-filter-btn,
.theme-mode-btn,
.preset-btn,
.hemisphere-btn {
    min-height: 40px;
    border-color: var(--parfum-line) !important;
    background: rgba(255, 255, 255, 0.026) !important;
}

.chip.selected,
.occ-filter-btn.active,
.theme-mode-btn.active,
.hemisphere-btn.active {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
}
#modal.is-editing .perfume-edit-surface .chips-group .chip.selected,
#editOverlay .perfume-edit-surface .chips-group .chip.selected {
    background: var(--accent-primary) !important;
    background-image: none !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
}

/* Responsive */

@media (min-width: 700px) {
    .app-header {
        padding-inline: max(32px, calc((100vw - var(--content-max)) / 2 + 24px)) !important;
    }

    .suggest-wrap,
    .collection-toolbar {
        padding-inline: 24px !important;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: none !important;
        padding-inline: 24px !important;
    }

    .bottom-dock {
        right: auto;
        left: 50%;
        width: min(620px, calc(100vw - 32px));
        transform: translateX(-50%);
    }

    .fab-dropdown {
        width: min(520px, calc(100vw - 32px)) !important;
    }
}

@media (min-width: 960px) {
    .app-header {
        min-height: 86px;
    }

    .suggest-wrap {
        grid-template-columns: minmax(0, 1fr) 58px 58px;
        padding-top: 28px !important;
    }

    .collection-toolbar {
        display: grid;
        grid-template-columns: minmax(300px, 0.8fr) minmax(460px, 1.2fr);
        align-items: end;
        gap: 18px;
    }

    .filters-wrap {
        padding-top: 0 !important;
    }

    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        padding-top: 22px !important;
    }

    #overlay {
        align-items: center;
        padding: 26px 26px calc(var(--bottom-dock-safe-offset) + 16px) !important;
    }

    #modal {
        width: min(1120px, 96vw);
        max-width: 1120px;
        max-height: min(
            880px,
            calc(100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 32px)
        );
        border: 1px solid var(--parfum-line-gold) !important;
        border-radius: 30px !important;
    }

    #modal > #modalDynamicContent {
        display: grid;
        grid-template-columns: minmax(370px, 0.9fr) minmax(470px, 1.1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        max-height: min(
            880px,
            calc(100dvh - var(--bottom-dock-safe-offset) - env(safe-area-inset-top, 0px) - 32px)
        );
        overflow: hidden;
    }

    #modalDynamicContent > .modal-handle {
        display: none;
    }

    .perfume-modal-close {
        top: 18px;
        right: 18px;
    }

    .perfume-hero {
        grid-row: 1 / span 3;
        grid-template-columns: 1fr;
        min-height: min(880px, 92dvh);
        border-right: 1px solid var(--parfum-line);
        border-bottom: 0;
    }

    .perfume-hero-atmosphere {
        background:
            linear-gradient(0deg, #090a0c 0%, rgba(9, 10, 12, 0.84) 18%, transparent 43%),
            linear-gradient(90deg, transparent 48%, rgba(4, 5, 7, 0.54) 76%, rgba(4, 5, 7, 0.88));
    }

    .perfume-hero-family-1 {
        inset: -6% -22% 34%;
        opacity: 0.5;
        -webkit-mask-image: linear-gradient(
            180deg,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.62) 62%,
            transparent 92%
        );
        mask-image: linear-gradient(
            180deg,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.62) 62%,
            transparent 92%
        );
    }

    .perfume-hero-family-2 {
        inset: 20% -22% 15%;
        opacity: 0.42;
        -webkit-mask-image: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.48) 16%,
            rgba(0, 0, 0, 0.96) 31%,
            rgba(0, 0, 0, 0.84) 61%,
            rgba(0, 0, 0, 0.24) 78%,
            transparent 96%
        );
        mask-image: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.48) 16%,
            rgba(0, 0, 0, 0.96) 31%,
            rgba(0, 0, 0, 0.84) 61%,
            rgba(0, 0, 0, 0.24) 78%,
            transparent 96%
        );
    }

    .perfume-hero-family-3 {
        inset: 48% -22% -8%;
        opacity: 0.34;
        -webkit-mask-image: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.32) 18%,
            rgba(0, 0, 0, 0.9) 35%,
            rgba(0, 0, 0, 0.72) 67%,
            rgba(0, 0, 0, 0.2) 84%,
            transparent 100%
        );
        mask-image: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.32) 18%,
            rgba(0, 0, 0, 0.9) 35%,
            rgba(0, 0, 0, 0.72) 67%,
            rgba(0, 0, 0, 0.2) 84%,
            transparent 100%
        );
    }

    .perfume-hero-bottle-wrap {
        position: absolute;
        inset: 22% 6% auto;
        display: grid;
        padding: 0;
    }

    .perfume-hero-bottle {
        width: min(88%, 380px);
        height: 390px;
    }

    .perfume-hero-copy {
        position: absolute;
        right: 34px;
        bottom: 68px;
        left: 34px;
        justify-content: end;
        padding: 0;
    }

    .perfume-hero h2 {
        max-width: 380px;
        font-size: clamp(40px, 4vw, 58px);
    }

    .hero-family-key {
        right: 30px;
        bottom: 26px;
        left: 30px;
        justify-content: flex-start;
    }

    .detail-tabs {
        grid-column: 2;
        grid-row: 1;
    }

    .detail-pane {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
        padding: 18px 20px 10px;
        overflow-y: auto;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid > .info-card:nth-child(n + 3) {
        grid-column: 1 / -1;
    }

    .season-grid {
        gap: 8px;
    }

    .performance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .performance-card:last-child {
        grid-column: 1 / -1;
    }

    .perfume-modal-actions {
        grid-column: 2;
        grid-row: 3;
        grid-template-columns: minmax(0, 1fr) 160px;
        padding: 12px 20px 18px;
    }

    #modal.is-editing {
        width: min(760px, 96vw);
    }

    #modal.is-editing > #modalDynamicContent {
        display: block;
        overflow-y: auto;
    }

    #modal.is-editing .perfume-edit-surface {
        min-height: 0;
    }

    #modal.is-editing .perfume-edit-hero {
        grid-template-columns: minmax(0, 1fr) 136px;
        min-height: 164px;
        padding-inline: 28px;
    }

    #modal.is-editing .perfume-edit-content {
        padding: 24px 28px 0;
    }
}

@media (max-width: 390px) {
    .header-title {
        font-size: 18px !important;
    }

    .header-subline {
        margin-left: 28px;
        gap: 8px;
        font-size: 8px;
    }

    .weather-container {
        min-width: 70px;
        padding-inline: 9px;
    }

    .filters-wrap {
        grid-template-columns: 1fr;
    }

    .sort-control {
        justify-self: end;
    }

    .season-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-actions {
        grid-template-columns: 1fr;
    }

    .account-actions button {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 68px;
        justify-items: start;
        text-align: left;
    }

    .account-actions button > span {
        grid-row: 1 / span 2;
        align-self: center;
    }

    .perfume-hero {
        grid-template-columns: 45% 55%;
    }

    .perfume-hero-bottle-wrap {
        padding-left: 6px;
    }

    .perfume-hero-copy {
        padding-right: 13px;
        padding-left: 7px;
    }

    .hero-family-key {
        justify-content: flex-start;
        overflow: hidden;
    }

    .hero-family-key span {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
#suggestionModal .occ-filter-btn.active {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #000 !important;
}

.perfume-edit-surface .chip {
    color: #fff !important;
}

.perfume-edit-surface .chip.selected {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
}
.chip.selected {
    background: var(--accent-primary) !important;
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
}

@media (min-width: 720px) {
    .collection-analytics-overlay {
        align-items: center;
        padding: 24px 24px calc(var(--bottom-dock-safe-offset) + 16px) !important;
    }

    .collection-analytics-modal {
        width: min(760px, 94vw) !important;
        border-radius: 26px !important;
    }

    .collection-analytics-modal {
        width: min(760px, 94vw) !important;
        border-radius: 26px !important;
    }

    .collection-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .collection-summary-grid .collection-favorite {
        grid-column: span 1;
    }

    .collection-coverage-section {
        min-width: 0;
    }

    .collection-coverage-section + .collection-coverage-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--parfum-line);
}

    .collection-usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   ACTUALIZACIÓN OBLIGATORIA
========================================================= */

#updateRequiredOverlay {
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding:
        max(24px, env(safe-area-inset-top, 0px))
        16px
        max(24px, env(safe-area-inset-bottom, 0px));
    background: rgba(4, 10, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.update-required-modal {
    width: calc(100% - 32px);
    max-width: 420px;
    margin: auto !important;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.update-required-logo {
    width: 96px;
    height: 96px;
    margin: 2px auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 83, 0.82);
    background:
        radial-gradient(
            circle,
            rgba(212, 168, 83, 0.20) 0%,
            rgba(212, 168, 83, 0.06) 58%,
            transparent 74%
        );
    box-shadow:
        0 0 0 7px rgba(212, 168, 83, 0.05),
        0 0 36px rgba(212, 168, 83, 0.24);
    overflow: hidden;
}

.update-required-logo-image {
    width: 74px;
    height: 74px;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}


.update-required-modal h3 {
    margin: 0 0 14px;
    font-family: var(--font-family-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.update-required-intro {
    margin: -4px 0 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.update-required-release-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(212, 168, 83, 0.22);
    background:
        linear-gradient(
            180deg,
            rgba(212, 168, 83, 0.08),
            rgba(255, 255, 255, 0.02)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: left;
}

.update-required-release-label {
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.update-required-release-card .update-required-commit-title {
    padding: 0;
    margin: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.update-required-release-card .update-required-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.update-required-commit-title {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.update-required-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    white-space: pre-line;
}

.update-required-status {
    min-height: 18px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.update-required-note {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.update-required-actions {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 10px;
    margin-top: 20px;
}

.update-required-actions button {
    width: 100%;
    margin: 0;
}

#updateRequiredConfirmBtn {
    order: 2;
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow:
        0 8px 24px rgba(212, 168, 83, 0.18);
}

#updateRequiredCloseBtn {
    order: 1;
    min-height: 48px;
    border-radius: 16px;
}

body.update-required-locked {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 420px) {
    .update-required-modal {
        width: 100%;
        max-width: 380px;
        max-height: calc(
            100dvh
            - env(safe-area-inset-top, 0px)
            - env(safe-area-inset-bottom, 0px)
            - 48px
        );
        padding: 22px 18px;
        overflow-y: auto;
        border-radius: 28px;
    }

    .update-required-actions {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

/* =========================================
   IMAGE PROCESSING PREVIEW
   ========================================= */

.image-processing-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding:
        max(18px, env(safe-area-inset-top))
        18px
        max(18px, env(safe-area-inset-bottom));
    background: rgba(4, 8, 12, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.image-processing-preview {
    width: min(100%, 520px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: #10171c;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.image-processing-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.image-processing-preview-header h2 {
    margin: 3px 0 0;
}

.image-processing-preview-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--text-primary, #f2f5f4);
    background: rgba(255, 255, 255, 0.06);
    font-size: 26px;
    line-height: 1;
}

.image-processing-preview-stage {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 320px;
    place-items: center;
    overflow: hidden;
    padding: 18px;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
}

.image-processing-preview-stage.is-processed {
    background-color: #d9dee0;
    background-image:
        linear-gradient(
            45deg,
            #bcc4c7 25%,
            transparent 25%
        ),
        linear-gradient(
            -45deg,
            #bcc4c7 25%,
            transparent 25%
        ),
        linear-gradient(
            45deg,
            transparent 75%,
            #bcc4c7 75%
        ),
        linear-gradient(
            -45deg,
            transparent 75%,
            #bcc4c7 75%
        );
    background-size: 24px 24px;
    background-position:
        0 0,
        0 12px,
        12px -12px,
        -12px 0;
}

.image-processing-preview-stage.is-original {
    background: #11171b;
}

.image-processing-preview-stage img {
    display: block;
    width: 100%;
    max-width: 420px;
    max-height: 56dvh;
    object-fit: contain;
}

.image-processing-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #f4f8f7;
    background: rgba(5, 10, 13, 0.74);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-processing-preview-help,
.image-processing-preview-status {
    margin: 12px 0 0;
    text-align: center;
}

.image-processing-preview-help {
    color: var(--text-secondary, #aab7bb);
    font-size: 13px;
}

.image-processing-preview-status {
    color: var(--text-primary, #e8eeee);
    font-size: 13px;
}

.image-processing-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: 18px;
}

.image-processing-preview-actions button {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 600;
}

.image-processing-preview-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary, #eef3f1);
    background: rgba(255, 255, 255, 0.05);
}

.image-processing-preview-primary {
    border: 0;
    color: #04261e;
    background: var(--accent, #23c9a4);
}

.image-processing-preview-primary:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

@media (max-width: 600px) {
    .image-processing-preview-overlay {
        align-items: end;
        padding: 0;
    }

    .image-processing-preview {
        width: 100%;
        max-height: 94dvh;
        padding:
            18px
            16px
            max(18px, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    .image-processing-preview-stage {
        min-height: 280px;
    }
}

/* =========================================
   IMAGE PROCESSING PROGRESS
   ========================================= */

.image-processing-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: grid;
    place-items: center;
    padding:
        max(18px, env(safe-area-inset-top))
        18px
        max(18px, env(safe-area-inset-bottom));
    background: rgba(4, 8, 12, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.image-processing-progress {
    width: min(100%, 420px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: #10171c;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.image-processing-progress-title {
    margin: 4px 0 18px;
    color: var(--text-primary, #f2f5f4);
}

.image-processing-progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.image-processing-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent, #23c9a4);
    transition: width 320ms ease;
}

.image-processing-progress-label {
    margin: 12px 0 0;
    color: var(--text-secondary, #aab7bb);
    font-size: 13px;
}

@media (max-width: 600px) {
    .image-processing-progress-overlay {
        align-items: end;
        padding: 0;
    }

    .image-processing-progress {
        width: 100%;
        padding:
            22px
            18px
            max(22px, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }
}

/* Collection analytics — align season and occasion coverage columns */
.collection-coverage-grid {
    align-items: start;
}

.collection-coverage-grid > .collection-coverage-section {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
}

.collection-coverage-grid
    > .collection-coverage-section
    > .collection-analytics-section-heading {
    min-height: 76px;
    margin-bottom: 18px;
    align-items: start;
}

.collection-coverage-grid
    > .collection-coverage-section
    > .collection-analytics-section-heading
    .eyebrow {
    margin-top: 0;
}

.collection-coverage-grid
    > .collection-coverage-section
    > .collection-analytics-section-heading
    h3 {
    margin-top: 0;
    line-height: 1.1;
}

.collection-coverage-grid
    > .collection-coverage-section
    > .collection-coverage-list {
    align-self: start;
}
