
/* ========================================================================
   CLARICE & LEO — HOMELIST / CASA DOS SONHOS
   STYLE SYSTEM V7 — MOBILE-FIRST • ROMANTIC GOLD + BLUSH • STACY AURORA
   ======================================================================== */

/* ------------------------------------------------------------------------
   01. DESIGN TOKENS
   ------------------------------------------------------------------------ */
:root {
    color-scheme: light;

    --bg: #fffaf7;
    --bg-soft: #fff7f3;
    --bg-warm: #fbf2e7;
    --bg-cream: #f9efdf;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(255, 249, 245, 0.86);
    --surface-glass: rgba(255, 255, 255, 0.66);

    --text: #2f2825;
    --text-strong: #201a18;
    --text-soft: #786a65;
    --text-faint: #a4948f;

    --gold-950: #4b3514;
    --gold-900: #5f451d;
    --gold-800: #765525;
    --gold-700: #926c31;
    --gold-600: #ad8540;
    --gold-500: #c49b52;
    --gold-400: #d9b976;
    --gold-300: #ead09f;
    --gold-200: #f3dfbb;
    --gold-100: #fbefd8;

    --pink-950: #7a234a;
    --pink-900: #922f59;
    --pink-800: #a83c67;
    --pink-700: #bd4e79;
    --pink-600: #d0648d;
    --pink-500: #df7ca0;
    --pink-400: #ec9fba;
    --pink-300: #f4bed0;
    --pink-200: #f9d9e4;
    --pink-100: #fdebf1;

    --rose: #e16995;
    --rose-hot: #f06f9e;
    --rose-soft: #ffdbe7;

    --lavender-700: #7b5ca9;
    --lavender-600: #8d6abc;
    --lavender-500: #a184cc;
    --lavender-300: #cbb8e8;
    --lavender-100: #f0e9fb;

    --success: #658767;
    --success-strong: #48694b;
    --success-soft: #edf6ed;

    --warning: #b17b3d;
    --warning-soft: #fff0d8;

    --danger: #af5261;
    --danger-strong: #8f3d4a;
    --danger-soft: #fff0f2;

    --info: #6d7da6;
    --info-soft: #eef2ff;

    --line: rgba(100, 74, 58, 0.11);
    --line-strong: rgba(100, 74, 58, 0.2);
    --pink-line: rgba(208, 100, 141, 0.22);
    --gold-line: rgba(173, 133, 64, 0.22);

    --shadow-xs: 0 3px 12px rgba(72, 46, 35, 0.07);
    --shadow-sm: 0 8px 26px rgba(72, 46, 35, 0.09);
    --shadow-md: 0 18px 48px rgba(72, 46, 35, 0.13);
    --shadow-lg: 0 28px 80px rgba(72, 46, 35, 0.17);
    --shadow-pink: 0 16px 42px rgba(208, 100, 141, 0.2);
    --shadow-gold: 0 18px 48px rgba(173, 133, 64, 0.18);
    --shadow-stacy: 0 22px 70px rgba(122, 92, 169, 0.24);

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-2xl: 38px;
    --radius-pill: 999px;

    --sidebar-width: 300px;
    --topbar-height: 74px;
    --bottom-nav-height: 78px;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.2, .85, .25, 1.25);
    --ease-soft: cubic-bezier(.2, .75, .25, 1);

    --fast: 160ms;
    --normal: 260ms;
    --slow: 560ms;
}

/* ------------------------------------------------------------------------
   02. RESET / GLOBAL
   ------------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 190, 208, .38), transparent 34%),
        radial-gradient(circle at 92% 4%, rgba(234, 208, 159, .34), transparent 34%),
        radial-gradient(circle at 74% 84%, rgba(203, 184, 232, .26), transparent 30%),
        linear-gradient(145deg, #fffaf7 0%, #fff7f2 36%, #faf1e5 100%);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -10;
}

body::before {
    inset: -20%;
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 111, 158, .12), transparent 20%),
        radial-gradient(circle at 78% 12%, rgba(217, 185, 118, .15), transparent 23%),
        radial-gradient(circle at 58% 74%, rgba(161, 132, 204, .11), transparent 25%);
    filter: blur(10px);
    transform: translate3d(0,0,0);
    animation: ambientDrift 24s ease-in-out infinite alternate;
}

body::after {
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(118, 85, 37, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 85, 37, .025) 1px, transparent 1px),
        radial-gradient(circle at 22% 30%, rgba(255,255,255,.55) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 20%, rgba(255,255,255,.6) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 64%, rgba(255,255,255,.5) 0 1px, transparent 2px);
    background-size: 44px 44px, 44px 44px, 120px 120px, 150px 150px, 180px 180px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 55%, transparent 100%);
    animation: backgroundPan 34s linear infinite;
}

::selection {
    background: var(--pink-200);
    color: var(--pink-950);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    flex: 0 0 auto;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid rgba(223, 124, 160, .3);
    outline-offset: 3px;
}

textarea {
    resize: vertical;
}

/* ------------------------------------------------------------------------
   03. APP VIEWPORT
   ------------------------------------------------------------------------ */
.app-viewport {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

/* ------------------------------------------------------------------------
   04. MOBILE TOPBAR
   ------------------------------------------------------------------------ */
.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    height: calc(var(--topbar-height) + env(safe-area-inset-top));
    padding:
        calc(10px + env(safe-area-inset-top))
        max(14px, env(safe-area-inset-right))
        10px
        max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,246,242,.8));
    border-bottom: 1px solid rgba(208,100,141,.11);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 8px 30px rgba(67,45,37,.05);
    animation: topbarEnter .65s var(--ease-out) both;
}

.mobile-topbar::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223,124,160,.42), rgba(217,185,118,.36), transparent);
}

.mobile-topbar__brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-topbar__title {
    min-width: 0;
}

.mobile-topbar__title h1 {
    margin: 2px 0 0;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.05rem, 4.8vw, 1.32rem);
    letter-spacing: -.04em;
    line-height: 1;
    white-space: nowrap;
}

.mobile-topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pink-800);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mobile-topbar__badge svg,
.mobile-topbar__badge [data-lucide="heart"] {
    width: 12px;
    height: 12px;
    fill: var(--pink-400);
    color: var(--pink-700);
    animation: tinyHeartBeat 2.2s ease-in-out infinite;
}

.mobile-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------------------
   05. BUTTON PRIMITIVES
   ------------------------------------------------------------------------ */
.icon-button,
.icon-chip,
.sidebar-budget__edit,
.modal-sheet__close,
.stacy-sheet__close,
.product-action,
.favorite-button,
.search-bar__clear {
    position: relative;
    display: inline-grid;
    place-items: center;
    color: var(--text-soft);
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--normal) var(--ease-out),
        color var(--normal) ease,
        background var(--normal) ease,
        border-color var(--normal) ease,
        box-shadow var(--normal) ease;
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 15px;
}

.icon-button svg,
.icon-chip svg {
    width: 19px;
    height: 19px;
}

.icon-button:hover,
.icon-chip:hover,
.sidebar-budget__edit:hover,
.modal-sheet__close:hover,
.stacy-sheet__close:hover,
.product-action:hover {
    transform: translateY(-2px);
    color: var(--pink-800);
    border-color: var(--pink-line);
    background: rgba(255,250,252,.94);
    box-shadow: var(--shadow-sm);
}

.icon-button:active,
.icon-chip:active,
.product-action:active,
.favorite-button:active {
    transform: scale(.93);
    transition-duration: 90ms;
}

.icon-button--accent {
    color: #fff;
    border-color: rgba(223,124,160,.2);
    background:
        linear-gradient(135deg, var(--pink-700), var(--pink-500) 60%, #efa8c1);
    box-shadow:
        0 10px 28px rgba(208,100,141,.25),
        inset 0 1px 0 rgba(255,255,255,.26);
}

.icon-button--accent::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(223,124,160,.15);
    animation: softRing 3.2s ease-out infinite;
}

.icon-button--accent:hover {
    color: #fff;
    background:
        linear-gradient(135deg, var(--pink-800), var(--pink-500));
    box-shadow: var(--shadow-pink);
}

/* ------------------------------------------------------------------------
   06. SIDEBAR / DRAWER
   ------------------------------------------------------------------------ */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 110;
    width: min(88vw, var(--sidebar-width));
    height: 100vh;
    height: 100dvh;
    padding:
        max(18px, env(safe-area-inset-top))
        16px
        max(18px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
        linear-gradient(180deg, rgba(255,252,250,.98), rgba(255,245,240,.97));
    border-right: 1px solid rgba(208,100,141,.12);
    box-shadow: 30px 0 80px rgba(61,40,34,.16);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    transform: translateX(-104%);
    visibility: hidden;
    transition:
        transform .48s var(--ease-out),
        visibility .48s;
}

.sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background:
        linear-gradient(90deg,
            var(--pink-700),
            var(--pink-400),
            var(--gold-400),
            var(--lavender-500),
            var(--pink-700));
    background-size: 240% 100%;
    animation: gradientRibbon 7s linear infinite;
}

.sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar__close {
    display: inline-grid;
}

/* ------------------------------------------------------------------------
   07. BRAND
   ------------------------------------------------------------------------ */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand__icon {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: white;
    background:
        linear-gradient(135deg, var(--gold-900), var(--gold-500) 58%, var(--pink-500));
    box-shadow:
        0 12px 28px rgba(118,85,37,.22),
        inset 0 1px 0 rgba(255,255,255,.28);
    isolation: isolate;
    overflow: hidden;
}

.brand__icon::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -1;
    background: conic-gradient(
        from 0deg,
        transparent 0 28%,
        rgba(255,255,255,.48) 33%,
        transparent 38% 100%
    );
    animation: iconShine 5s linear infinite;
}

.brand__icon svg {
    width: 23px;
    height: 23px;
}

.brand__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__text strong {
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: 1.06rem;
    letter-spacing: -.025em;
}

.brand__text span {
    margin-top: 4px;
    color: var(--text-faint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------------
   08. COUPLE CARD — HEARTS
   ------------------------------------------------------------------------ */
.couple-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(223,124,160,.18);
    background:
        linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,239,245,.78)),
        radial-gradient(circle at 90% 0%, rgba(244,190,208,.36), transparent 34%);
    box-shadow:
        0 14px 36px rgba(122,35,74,.08),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.couple-card::before {
    content: "♥";
    position: absolute;
    z-index: -1;
    right: -12px;
    top: -32px;
    color: rgba(236,159,186,.2);
    font-size: 9rem;
    line-height: 1;
    transform: rotate(16deg);
    animation: heartFloat 7s ease-in-out infinite;
}

.couple-card::after {
    content: "";
    position: absolute;
    z-index: -2;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    right: -90px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(234,208,159,.38), transparent 68%);
    animation: auraPulse 6s ease-in-out infinite alternate;
}

.couple-card__avatars {
    display: flex;
    align-items: center;
    margin-bottom: 13px;
}

.avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    border: 3px solid rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(75,53,20,.14);
}

.avatar--clarice {
    background:
        linear-gradient(135deg, #d76f9b, #f0a8c1);
}

.avatar--leo {
    margin-left: -8px;
    background:
        linear-gradient(135deg, var(--gold-900), var(--gold-500));
}

.couple-card__heart {
    z-index: 3;
    width: 30px;
    height: 30px;
    margin: 0 -5px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink-800);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(223,124,160,.2);
    box-shadow: 0 7px 20px rgba(208,100,141,.18);
    animation: heartBubble 2.6s ease-in-out infinite;
}

.couple-card__heart svg {
    width: 17px;
    height: 17px;
    fill: var(--pink-500);
}

.couple-card__eyebrow {
    color: var(--pink-700);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.couple-card h2 {
    margin: 3px 0 5px;
    color: var(--text-strong);
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    font-style: italic;
}

.couple-card__ampersand {
    color: var(--pink-600);
}

.couple-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: .82rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------------------
   09. SIDEBAR NAVIGATION
   ------------------------------------------------------------------------ */
.sidebar-nav,
.category-list {
    display: grid;
    gap: 6px;
}

.sidebar-nav__item,
.category-list__item {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: var(--text-soft);
    background: transparent;
    border-radius: 14px;
    text-align: left;
    font-size: .88rem;
    font-weight: 700;
    transition:
        transform var(--normal) var(--ease-out),
        color var(--normal) ease,
        background var(--normal) ease,
        box-shadow var(--normal) ease;
}

.sidebar-nav__item:hover,
.category-list__item:hover {
    transform: translateX(4px);
    color: var(--pink-900);
    background: rgba(253,235,241,.72);
}

.sidebar-nav__item.is-active {
    color: var(--pink-900);
    background:
        linear-gradient(135deg, rgba(253,235,241,.95), rgba(255,249,245,.94));
    box-shadow:
        inset 0 0 0 1px rgba(223,124,160,.15),
        var(--shadow-xs);
}

.sidebar-nav__icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(244,190,208,.18);
}

.sidebar-nav__icon svg {
    width: 17px;
    height: 17px;
}

.sidebar-nav__counter {
    min-width: 27px;
    height: 24px;
    margin-left: auto;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius-pill);
    color: var(--pink-800);
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(223,124,160,.16);
    font-size: .72rem;
    font-weight: 800;
}

.sidebar-section {
    display: grid;
    gap: 8px;
}

.sidebar-section__header {
    padding: 0 8px;
    color: var(--text-faint);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.category-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(223,124,160,.07);
}

.category-dot--kitchen { background: #d29a56; }
.category-dot--organizing { background: #b990cc; }
.category-dot--furniture { background: #94704a; }
.category-dot--decoration { background: #e38eab; }
.category-dot--utility { background: #87a4bb; }
.category-dot--bathroom { background: #7eb8b3; }

/* ------------------------------------------------------------------------
   10. SIDEBAR BUDGET / SIGNATURE
   ------------------------------------------------------------------------ */
.sidebar-budget {
    margin-top: auto;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 18px;
    border: 1px solid rgba(173,133,64,.15);
    background:
        linear-gradient(145deg, rgba(255,255,255,.78), rgba(251,239,216,.54));
    box-shadow: var(--shadow-xs);
}

.sidebar-budget__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--gold-900), var(--gold-500));
    box-shadow: 0 8px 18px rgba(118,85,37,.18);
}

.sidebar-budget__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-budget__content span {
    color: var(--text-faint);
    font-size: .68rem;
    font-weight: 700;
}

.sidebar-budget__content strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: .94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-budget__edit {
    width: 34px;
    height: 34px;
    margin-left: auto;
    flex: 0 0 auto;
    border-radius: 11px;
}

.creator-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-faint);
    font-size: .7rem;
}

.creator-signature strong {
    color: var(--gold-800);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    background:
        radial-gradient(circle at 0 40%, rgba(223,124,160,.14), transparent 34%),
        rgba(35,25,22,.38);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity .35s ease, visibility .35s;
}

.sidebar.is-open + .sidebar-overlay,
.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------------------------------------
   11. MAIN CONTENT
   ------------------------------------------------------------------------ */
.main-content {
    width: 100%;
    min-height: 100vh;
    padding:
        14px
        max(14px, env(safe-area-inset-right))
        calc(var(--bottom-nav-height) + 38px + env(safe-area-inset-bottom))
        max(14px, env(safe-area-inset-left));
}

/* ------------------------------------------------------------------------
   12. HERO
   ------------------------------------------------------------------------ */
.mobile-hero {
    margin-bottom: 14px;
    animation: riseIn .72s .08s var(--ease-out) both;
}

.mobile-hero__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(18px, 5vw, 26px);
    border-radius: 28px;
    border: 1px solid rgba(223,124,160,.18);
    background:
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,238,245,.78) 48%, rgba(251,239,216,.7)),
        radial-gradient(circle at 100% 0%, rgba(244,190,208,.58), transparent 38%);
    box-shadow:
        0 20px 58px rgba(122,35,74,.1),
        inset 0 1px 0 rgba(255,255,255,.84);
}

.mobile-hero__card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    right: -110px;
    top: -125px;
    border-radius: 50%;
    background:
        conic-gradient(from 40deg,
            rgba(223,124,160,.12),
            rgba(217,185,118,.25),
            rgba(161,132,204,.14),
            rgba(223,124,160,.12));
    filter: blur(4px);
    animation: heroOrb 11s linear infinite;
}

.mobile-hero__card::after {
    content: "♥  ·  ♥";
    position: absolute;
    right: 22px;
    bottom: 14px;
    color: rgba(208,100,141,.15);
    font-size: 1.15rem;
    letter-spacing: .28em;
    animation: heartTrail 4s ease-in-out infinite;
}

.mobile-hero__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mobile-hero__title-group {
    min-width: 0;
}

.mobile-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    color: var(--pink-800);
    background: rgba(253,235,241,.82);
    border: 1px solid rgba(223,124,160,.14);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.mobile-hero__badge svg {
    width: 14px;
    height: 14px;
    animation: sparkleSpin 4s linear infinite;
}

.mobile-hero h2 {
    max-width: 680px;
    margin: 0;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.55rem, 7vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.mobile-hero h2 span {
    display: inline;
    background:
        linear-gradient(90deg, var(--pink-800), var(--pink-500), var(--gold-600));
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGradientFlow 8s ease-in-out infinite;
}

.mobile-hero__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 17px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--pink-700), var(--gold-500));
    box-shadow: var(--shadow-pink);
    animation: homeFloat 4.5s ease-in-out infinite;
}

.mobile-hero__icon svg {
    width: 24px;
    height: 24px;
}

.mobile-hero__actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.mobile-hero__btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-primary-sm,
.btn-text,
.search-price-button,
.text-button,
.stacy-suggestion {
    position: relative;
    border-radius: 14px;
    transition:
        transform var(--normal) var(--ease-out),
        box-shadow var(--normal) ease,
        background var(--normal) ease,
        color var(--normal) ease,
        border-color var(--normal) ease;
}

.mobile-hero__btn {
    min-height: 46px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .86rem;
    font-weight: 800;
}

.mobile-hero__btn--primary,
.btn-primary,
.btn-primary-sm {
    color: #fff;
    background:
        linear-gradient(135deg, var(--gold-900), var(--gold-600));
    box-shadow:
        0 11px 26px rgba(118,85,37,.2),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.mobile-hero__btn--ai {
    color: var(--pink-900);
    border: 1px solid rgba(223,124,160,.22);
    background:
        linear-gradient(135deg, rgba(253,235,241,.9), rgba(240,233,251,.88));
    box-shadow: 0 10px 26px rgba(161,132,204,.1);
}

.mobile-hero__btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-primary-sm:hover,
.search-price-button:hover,
.stacy-suggestion:hover {
    transform: translateY(-2px);
}

.mobile-hero__btn--primary:hover,
.btn-primary:hover,
.btn-primary-sm:hover {
    box-shadow: var(--shadow-gold);
}

.mobile-hero__btn--ai:hover {
    box-shadow: var(--shadow-pink);
}

/* ------------------------------------------------------------------------
   13. STATS CAROUSEL
   ------------------------------------------------------------------------ */
.stats-carousel {
    margin: 0 -14px 16px;
    overflow: hidden;
}

.stats-carousel__track {
    display: flex;
    gap: 10px;
    padding: 2px 14px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

.stats-carousel__track::-webkit-scrollbar {
    display: none;
}

.stat-card {
    position: relative;
    min-width: 154px;
    flex: 0 0 154px;
    min-height: 88px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255,255,255,.87), rgba(255,249,245,.73));
    box-shadow: var(--shadow-xs);
    animation: cardIn .72s var(--ease-out) both;
}

.stat-card:nth-child(2) { animation-delay: .06s; }
.stat-card:nth-child(3) { animation-delay: .12s; }
.stat-card:nth-child(4) { animation-delay: .18s; }

.stat-card::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -38px;
    top: -38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,190,208,.16), transparent 70%);
}

.stat-card__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
}

.stat-card__icon svg {
    width: 19px;
    height: 19px;
}

.stat-card__icon--pink {
    color: var(--pink-800);
    background: var(--pink-100);
}

.stat-card__icon--purple {
    color: var(--lavender-700);
    background: var(--lavender-100);
}

.stat-card__icon--green {
    color: var(--success-strong);
    background: var(--success-soft);
}

.stat-card__icon--orange {
    color: var(--warning);
    background: var(--warning-soft);
}

.stat-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stat-card__content span {
    color: var(--text-faint);
    font-size: .68rem;
    font-weight: 700;
}

.stat-card__content strong {
    margin-top: 1px;
    overflow: hidden;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: .98rem;
    letter-spacing: -.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------------
   14. CONTROLS
   ------------------------------------------------------------------------ */
.controls-section {
    position: relative;
    z-index: 30;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(100,74,58,.08);
    background: rgba(255,255,255,.54);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(70,46,35,.05);
}

.search-bar {
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 6px 20px rgba(65,43,35,.05);
    transition:
        border-color var(--normal) ease,
        box-shadow var(--normal) ease,
        transform var(--normal) var(--ease-out);
}

.search-bar:focus-within {
    transform: translateY(-1px);
    border-color: rgba(223,124,160,.34);
    box-shadow:
        0 0 0 4px rgba(223,124,160,.08),
        0 10px 28px rgba(122,35,74,.08);
}

.search-bar__icon {
    width: 18px;
    height: 18px;
    margin-left: 14px;
    color: var(--pink-600);
}

.search-bar input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 10px;
    color: var(--text-strong);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: .92rem;
}

.search-bar input::placeholder {
    color: var(--text-faint);
}

.search-bar__clear {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.quick-chips {
    margin: 10px -12px 2px;
    padding: 2px 12px 6px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.quick-chips::-webkit-scrollbar {
    display: none;
}

.quick-filter {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    color: var(--text-soft);
    background: rgba(255,255,255,.76);
    font-size: .76rem;
    font-weight: 800;
}

.quick-filter svg {
    width: 14px;
    height: 14px;
}

.quick-filter:hover {
    color: var(--pink-800);
    border-color: var(--pink-line);
    background: var(--pink-100);
}

.quick-filter.is-active {
    color: white;
    border-color: transparent;
    background:
        linear-gradient(135deg, var(--pink-700), var(--pink-500));
    box-shadow: 0 8px 20px rgba(208,100,141,.19);
}

.list-meta-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.list-meta-bar__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.list-meta-bar__title {
    color: var(--text-strong);
    font-weight: 800;
    font-size: .85rem;
}

.list-meta-bar__info small {
    margin-top: 1px;
    color: var(--text-faint);
    font-size: .69rem;
}

.list-meta-bar__buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-chip {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.view-switcher {
    padding: 3px;
    display: inline-flex;
    border-radius: 13px;
    background: rgba(242,233,227,.74);
    border: 1px solid var(--line);
}

.view-switcher__button {
    width: 31px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--text-faint);
    background: transparent;
    transition: all var(--normal) var(--ease-out);
}

.view-switcher__button svg {
    width: 15px;
    height: 15px;
}

.view-switcher__button.is-active {
    color: var(--pink-800);
    background: white;
    box-shadow: var(--shadow-xs);
}

.text-button {
    margin-top: 10px;
    padding: 7px 10px;
    color: var(--pink-800);
    background: transparent;
    font-size: .74rem;
    font-weight: 800;
}

/* ------------------------------------------------------------------------
   15. DROPDOWNS / FILTER SHEETS
   ------------------------------------------------------------------------ */
.dropdown-menu {
    position: absolute;
    z-index: 80;
    right: 10px;
    top: calc(100% - 6px);
    width: min(230px, calc(100vw - 40px));
    padding: 8px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,252,250,.97);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transform-origin: top right;
    animation: menuPop .24s var(--ease-out) both;
}

.dropdown-menu--wide {
    width: min(340px, calc(100vw - 30px));
}

.sort-option {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border-radius: 11px;
    color: var(--text-soft);
    background: transparent;
    text-align: left;
    font-size: .79rem;
    font-weight: 700;
}

.sort-option:hover,
.sort-option.is-active {
    color: var(--pink-900);
    background: var(--pink-100);
}

.filter-group {
    padding: 9px;
}

.filter-group + .filter-group {
    border-top: 1px solid var(--line);
}

.filter-group__title {
    display: block;
    margin-bottom: 8px;
    color: var(--text-faint);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.checkbox-options {
    display: grid;
    gap: 7px;
}

.checkbox-options label {
    min-height: 38px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 11px;
    color: var(--text-soft);
    background: rgba(255,255,255,.55);
    font-size: .78rem;
    font-weight: 700;
}

.checkbox-options input {
    accent-color: var(--pink-600);
}

.dropdown-menu__actions {
    padding: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------------
   16. PRODUCTS GRID
   ------------------------------------------------------------------------ */
.products-container {
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
}

.product-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(100,74,58,.09);
    background:
        linear-gradient(145deg, rgba(255,255,255,.93), rgba(255,249,246,.86));
    box-shadow:
        0 12px 38px rgba(67,45,37,.08),
        inset 0 1px 0 rgba(255,255,255,.92);
    transform: translateZ(0);
    transition:
        transform .38s var(--ease-out),
        box-shadow .38s ease,
        border-color .38s ease;
    animation: productRise .62s var(--ease-out) both;
}

.product-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0;
    background:
        linear-gradient(135deg, rgba(253,235,241,.3), transparent 45%, rgba(251,239,216,.25));
    transition: opacity .35s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(223,124,160,.18);
    box-shadow:
        0 22px 58px rgba(85,49,54,.13),
        0 6px 22px rgba(173,133,64,.08);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card--featured {
    border-color: rgba(223,124,160,.27);
    box-shadow:
        0 14px 44px rgba(208,100,141,.12),
        inset 0 0 0 1px rgba(255,255,255,.55);
}

.product-card--featured::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background:
        linear-gradient(90deg, transparent, var(--pink-500), var(--gold-400), transparent);
    background-size: 180% 100%;
    animation: shimmerLine 4s linear infinite;
}

.product-card.is-purchased {
    opacity: .9;
}

.product-card.is-purchased .product-card__media::after {
    content: "✓ comprado";
    position: absolute;
    inset: auto 12px 12px auto;
    padding: 6px 9px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: rgba(72,105,75,.88);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .03em;
    backdrop-filter: blur(8px);
}

.product-card.is-image-searching {
    pointer-events: none;
}

.product-card.is-image-searching::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    background:
        linear-gradient(110deg,
            transparent 25%,
            rgba(255,255,255,.62) 44%,
            transparent 62%);
    background-size: 220% 100%;
    animation: loadingSweep 1.2s linear infinite;
}

/* ------------------------------------------------------------------------
   17. PRODUCT MEDIA
   ------------------------------------------------------------------------ */
.product-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(244,190,208,.36), transparent 32%),
        radial-gradient(circle at 78% 70%, rgba(234,208,159,.34), transparent 38%),
        linear-gradient(145deg, #fff7f4, #f8eedf);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .8s var(--ease-out),
        filter .35s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.045);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--gold-600);
}

.product-card__placeholder::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0));
    animation: placeholderAura 4s ease-in-out infinite;
}

.product-card__placeholder svg {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    stroke-width: 1.5;
    animation: packageFloat 3.8s ease-in-out infinite;
}

.product-card__badge {
    position: absolute;
    left: 11px;
    top: 11px;
    max-width: calc(100% - 66px);
    min-height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.68);
    box-shadow: 0 5px 16px rgba(45,30,26,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .63rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__badge svg {
    width: 12px;
    height: 12px;
}

.product-card__badge--priority {
    color: var(--pink-900);
    background:
        linear-gradient(135deg, rgba(255,240,246,.94), rgba(255,249,241,.9));
    border-color: rgba(223,124,160,.18);
    box-shadow: 0 7px 20px rgba(208,100,141,.14);
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 39px;
    height: 39px;
    border-radius: 14px;
    color: var(--pink-700);
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(223,124,160,.14);
    box-shadow: 0 7px 20px rgba(122,35,74,.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.favorite-button svg {
    width: 18px;
    height: 18px;
    transition:
        transform .3s var(--ease-spring),
        fill .25s ease,
        color .25s ease;
}

.favorite-button:hover {
    color: var(--rose-hot);
    transform: translateY(-2px) scale(1.04);
    background: #fff5f8;
    box-shadow: var(--shadow-pink);
}

.favorite-button.is-favorite {
    color: var(--pink-800);
    border-color: rgba(223,124,160,.24);
    background:
        linear-gradient(145deg, #fff7fa, #ffeaf1);
    box-shadow:
        0 8px 24px rgba(208,100,141,.22),
        inset 0 1px 0 rgba(255,255,255,.8);
    animation: favoriteGlow 2.8s ease-in-out infinite;
}

.favorite-button.is-favorite svg {
    fill: var(--pink-500);
    transform: scale(1.07);
    filter: drop-shadow(0 3px 5px rgba(208,100,141,.22));
}

.favorite-button.is-favorite::before,
.favorite-button.is-favorite::after {
    content: "♥";
    position: absolute;
    pointer-events: none;
    color: var(--pink-400);
    opacity: 0;
}

.favorite-button.is-favorite::before {
    font-size: 8px;
    right: -4px;
    top: 2px;
    animation: miniHeartBurst 2.6s ease-in-out infinite;
}

.favorite-button.is-favorite::after {
    font-size: 6px;
    left: -3px;
    bottom: 4px;
    animation: miniHeartBurst 2.6s .8s ease-in-out infinite;
}

/* ------------------------------------------------------------------------
   18. PRODUCT BODY
   ------------------------------------------------------------------------ */
.product-card__body {
    padding: 15px 15px 14px;
}

.product-card__store {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-bottom: 7px;
}

.product-card__store > span:first-child {
    color: var(--gold-700);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.new-product-badge {
    max-width: 46%;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    color: var(--lavender-700);
    background: var(--lavender-100);
    border: 1px solid rgba(161,132,204,.14);
    font-size: .59rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card__title {
    margin: 0;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.22;
    letter-spacing: -.025em;
}

.product-card__description {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: .78rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card__seller {
    margin: 7px 0 0;
    color: var(--text-faint);
    font-size: .69rem;
}

.product-card__seller strong {
    color: var(--text-soft);
}

.product-card__price {
    margin-top: 12px;
    padding: 11px 12px;
    display: grid;
    gap: 1px;
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(251,239,216,.72), rgba(255,255,255,.75));
    border: 1px solid rgba(173,133,64,.13);
}

.product-card__price-label {
    color: var(--gold-700);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.product-card__price strong {
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: 1.1rem;
    letter-spacing: -.035em;
}

.product-card__price small {
    color: var(--text-faint);
    font-size: .65rem;
}

.product-card__price--unknown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-faint);
    background:
        linear-gradient(135deg, rgba(255,245,247,.8), rgba(255,255,255,.82));
    border-color: rgba(208,100,141,.13);
    font-size: .68rem;
}

.search-price-button {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    color: var(--pink-800);
    background: var(--pink-100);
    border: 1px solid rgba(223,124,160,.14);
    font-size: .64rem;
    font-weight: 800;
}

.search-price-button svg {
    width: 13px;
    height: 13px;
}

.product-image-credit {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--text-faint);
    font-size: .58rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-card__footer {
    margin-top: 12px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-top: 1px solid var(--line);
}

.product-action {
    width: 36px;
    height: 34px;
    border-radius: 11px;
}

.product-action svg {
    width: 16px;
    height: 16px;
}

.product-action--check {
    color: var(--success-strong);
    background: var(--success-soft);
    border-color: rgba(101,135,103,.14);
}

.product-action--danger {
    margin-left: auto;
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(175,82,97,.14);
}

/* ------------------------------------------------------------------------
   19. LIST VIEW
   ------------------------------------------------------------------------ */
.products-grid.is-list {
    grid-template-columns: 1fr;
}

.products-grid.is-list .product-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
}

.products-grid.is-list .product-card__media {
    aspect-ratio: auto;
    min-height: 100%;
}

.products-grid.is-list .product-card__body {
    min-width: 0;
}

/* ------------------------------------------------------------------------
   20. EMPTY STATE
   ------------------------------------------------------------------------ */
.empty-state {
    padding: 38px 20px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(223,124,160,.2);
    background: rgba(255,255,255,.58);
}

.empty-state__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--pink-700);
    background:
        linear-gradient(145deg, var(--pink-100), var(--lavender-100));
    box-shadow: var(--shadow-sm);
    animation: emptyFloat 4s ease-in-out infinite;
}

.empty-state h3 {
    margin: 0;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
}

.empty-state p {
    margin: 6px auto 0;
    max-width: 420px;
    color: var(--text-soft);
    font-size: .82rem;
}

/* ------------------------------------------------------------------------
   21. MOBILE BOTTOM NAV
   ------------------------------------------------------------------------ */
.mobile-bottom-nav {
    position: fixed;
    z-index: 90;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: 66px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.72);
    background:
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,246,242,.84));
    box-shadow:
        0 18px 54px rgba(52,34,30,.18),
        inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.mobile-bottom-nav__item {
    min-width: 0;
    min-height: 52px;
    padding: 5px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    color: var(--text-faint);
    background: transparent;
    font-size: .58rem;
    font-weight: 800;
    transition:
        color var(--normal) ease,
        background var(--normal) ease,
        transform var(--normal) var(--ease-out);
}

.mobile-bottom-nav__item svg {
    width: 19px;
    height: 19px;
}

.mobile-bottom-nav__item.is-active {
    color: var(--pink-800);
    background: rgba(253,235,241,.74);
}

.mobile-bottom-nav__item:active {
    transform: scale(.92);
}

.mobile-bottom-nav__add {
    display: grid;
    place-items: center;
}

.mobile-bottom-nav__add-btn {
    position: relative;
    width: 54px;
    height: 54px;
    margin-top: -24px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--pink-700), var(--gold-500));
    border: 4px solid rgba(255,250,247,.94);
    box-shadow:
        0 13px 30px rgba(208,100,141,.28),
        0 6px 18px rgba(173,133,64,.14);
    animation: fabFloat 3.8s ease-in-out infinite;
}

.mobile-bottom-nav__add-btn svg {
    width: 23px;
    height: 23px;
}

/* ------------------------------------------------------------------------
   22. STACY FLOATING BUTTON — DESKTOP/TABLET
   ------------------------------------------------------------------------ */
.stacy-floating-btn {
    position: fixed;
    z-index: 85;
    right: 18px;
    bottom: 22px;
    min-height: 52px;
    padding: 0 16px;
    display: none;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    color: #fff;
    background:
        linear-gradient(135deg, #8c5fb2, #c36aa6 55%, #e49d8b);
    box-shadow:
        0 16px 42px rgba(123,92,169,.28),
        inset 0 1px 0 rgba(255,255,255,.26);
    font-weight: 800;
}

.stacy-floating-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: inherit;
    background:
        conic-gradient(
            from 0deg,
            rgba(161,132,204,.24),
            rgba(240,111,158,.34),
            rgba(217,185,118,.22),
            rgba(161,132,204,.24));
    filter: blur(8px);
    animation: stacyHaloSpin 8s linear infinite;
}

.stacy-floating-btn svg {
    width: 19px;
    height: 19px;
    animation: sparkleSpin 5s linear infinite;
}

/* ------------------------------------------------------------------------
   23. MODAL OVERLAYS
   ------------------------------------------------------------------------ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 10px max(10px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 50% 100%, rgba(223,124,160,.16), transparent 35%),
        rgba(33,24,21,.4);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    animation: overlayIn .28s ease both;
}

.modal-sheet {
    width: min(100%, 620px);
    max-height: calc(100dvh - 34px);
    overflow: auto;
    border-radius: 28px 28px 22px 22px;
    border: 1px solid rgba(255,255,255,.72);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,243,.97));
    box-shadow: 0 30px 90px rgba(47,32,28,.24);
    animation: sheetUp .46s var(--ease-out) both;
}

.modal-sheet--sm {
    width: min(100%, 440px);
}

.modal-sheet__handle,
.stacy-sheet__handle {
    width: 42px;
    height: 5px;
    margin: 8px auto 4px;
    border-radius: var(--radius-pill);
    background: rgba(90,66,58,.16);
}

.modal-sheet__header {
    padding: 12px 17px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.modal-sheet__header h3 {
    margin: 0;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
}

.modal-sheet__close,
.stacy-sheet__close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.modal-sheet__form,
.modal-sheet__body {
    padding: 16px;
}

.modal-sheet__body p {
    margin: 0;
    color: var(--text-soft);
    font-size: .86rem;
}

.modal-sheet__actions {
    padding: 12px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

/* ------------------------------------------------------------------------
   24. FORM FIELDS
   ------------------------------------------------------------------------ */
.form-field {
    display: grid;
    gap: 6px;
}

.form-field + .form-field,
.form-row + .form-field,
.form-field + .form-row,
.form-row + .form-row,
.form-field + .form-switch,
.form-switch + .modal-sheet__actions {
    margin-top: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form-field label,
.form-switch label {
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select,
.stacy-input-bar textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    color: var(--text-strong);
    background: rgba(255,255,255,.88);
    transition:
        border-color var(--normal) ease,
        box-shadow var(--normal) ease,
        background var(--normal) ease;
}

.form-field input,
.form-field select {
    height: 46px;
    padding: 0 12px;
    border-radius: 13px;
}

.form-field textarea {
    min-height: 76px;
    padding: 11px 12px;
    border-radius: 13px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.stacy-input-bar textarea:focus {
    border-color: rgba(223,124,160,.4);
    box-shadow: 0 0 0 4px rgba(223,124,160,.08);
    background: white;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.stacy-input-bar textarea::placeholder {
    color: var(--text-faint);
}

.form-switch {
    min-height: 50px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    background: rgba(253,235,241,.45);
    border: 1px solid rgba(223,124,160,.1);
}

.form-switch input {
    width: 42px;
    height: 23px;
    accent-color: var(--pink-600);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    min-height: 44px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 800;
}

.btn-secondary {
    color: var(--text-soft);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.78);
}

.btn-danger {
    color: #fff;
    background:
        linear-gradient(135deg, var(--danger-strong), var(--danger));
    box-shadow: 0 10px 24px rgba(175,82,97,.2);
}

.btn-primary-sm {
    min-height: 34px;
    padding: 0 11px;
    font-size: .72rem;
    font-weight: 800;
}

.btn-text {
    min-height: 34px;
    padding: 0 10px;
    color: var(--text-soft);
    background: transparent;
    font-size: .72rem;
    font-weight: 800;
}

/* ------------------------------------------------------------------------
   25. BUDGET PREVIEW
   ------------------------------------------------------------------------ */
.budget-progress-preview {
    margin-top: 15px;
    padding: 13px;
    border-radius: 16px;
    border: 1px solid rgba(173,133,64,.13);
    background:
        linear-gradient(135deg, rgba(251,239,216,.56), rgba(255,255,255,.78));
}

.budget-progress-preview__bar {
    height: 9px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: rgba(118,85,37,.1);
}

.budget-progress-preview__fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            var(--gold-700),
            var(--gold-400),
            var(--pink-500));
    background-size: 180% 100%;
    box-shadow: 0 0 14px rgba(223,124,160,.18);
    transition: width .7s var(--ease-out);
    animation: budgetFlow 5s linear infinite;
}

.budget-progress-preview__labels {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-faint);
    font-size: .68rem;
}

/* ------------------------------------------------------------------------
   26. STACY SHEET — FULL DESIGN
   ------------------------------------------------------------------------ */
.modal-overlay--stacy {
    z-index: 240;
    background:
        radial-gradient(circle at 50% 100%, rgba(161,132,204,.22), transparent 36%),
        radial-gradient(circle at 18% 70%, rgba(240,111,158,.13), transparent 28%),
        rgba(30,22,31,.46);
}

.stacy-sheet {
    position: relative;
    isolation: isolate;
    width: min(100%, 720px);
    height: min(88dvh, 780px);
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    overflow: hidden;
    border-radius: 30px 30px 20px 20px;
    border: 1px solid rgba(255,255,255,.66);
    background:
        linear-gradient(180deg, rgba(255,252,255,.99), rgba(249,243,255,.98));
    box-shadow:
        0 34px 100px rgba(69,42,86,.32),
        inset 0 1px 0 rgba(255,255,255,.88);
    animation: stacySheetEnter .5s var(--ease-out) both;
}

.stacy-sheet::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -30%;
    opacity: .7;
    background:
        radial-gradient(circle at 25% 24%, rgba(240,111,158,.18), transparent 25%),
        radial-gradient(circle at 78% 18%, rgba(161,132,204,.23), transparent 28%),
        radial-gradient(circle at 58% 75%, rgba(217,185,118,.13), transparent 24%);
    animation: stacyAurora 14s ease-in-out infinite alternate;
}

.stacy-sheet::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .55;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 85% 12%, rgba(255,255,255,.86) 0 1px, transparent 1.6px),
        radial-gradient(circle at 70% 52%, rgba(255,255,255,.7) 0 1px, transparent 1.6px),
        radial-gradient(circle at 22% 78%, rgba(255,255,255,.72) 0 1px, transparent 1.6px);
    background-size: 110px 110px, 150px 150px, 170px 170px, 140px 140px;
    animation: sparkleField 18s linear infinite;
}

.stacy-sheet__handle {
    background:
        linear-gradient(90deg, var(--lavender-300), var(--pink-300));
}

.stacy-sheet__header {
    position: relative;
    z-index: 2;
    padding: 10px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(161,132,204,.12);
    background: rgba(255,255,255,.42);
    backdrop-filter: blur(16px);
}

.stacy-sheet__title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.stacy-avatar,
.stacy-message__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background:
        linear-gradient(135deg, #7d5aa9 0%, #b865a5 52%, #e08aa4 100%);
    box-shadow:
        0 10px 28px rgba(123,92,169,.26),
        inset 0 1px 0 rgba(255,255,255,.28);
}

.stacy-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    overflow: hidden;
}

.stacy-avatar::before {
    content: "";
    position: absolute;
    inset: -45%;
    background:
        conic-gradient(
            transparent 0 28%,
            rgba(255,255,255,.55) 32%,
            transparent 38% 100%);
    animation: iconShine 4.8s linear infinite;
}

.stacy-avatar svg {
    position: relative;
    z-index: 1;
    width: 21px;
    height: 21px;
    animation: sparkleSpin 5s linear infinite;
}

.stacy-sheet__title h3 {
    margin: 0;
    color: var(--text-strong);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
}

.stacy-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--text-faint);
    font-size: .66rem;
    font-weight: 700;
}

.stacy-status-indicator::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #aaa;
    box-shadow: 0 0 0 4px rgba(140,140,140,.08);
}

.stacy-status-indicator.is-online {
    color: var(--success-strong);
}

.stacy-status-indicator.is-online::before {
    background: #75aa78;
    box-shadow:
        0 0 0 4px rgba(117,170,120,.1),
        0 0 12px rgba(117,170,120,.42);
    animation: statusPulse 2.2s ease-in-out infinite;
}

.stacy-status-indicator.is-local {
    color: var(--warning);
}

.stacy-status-indicator.is-local::before {
    background: #d29a56;
}

.stacy-status-indicator.is-degraded {
    color: var(--danger);
}

.stacy-status-indicator.is-degraded::before {
    background: #d66c78;
}

/* ------------------------------------------------------------------------
   27. STACY QUICK SUGGESTIONS
   ------------------------------------------------------------------------ */
.stacy-suggestions {
    position: relative;
    z-index: 2;
    padding: 9px 12px 4px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255,255,255,.25);
}

.stacy-suggestions::-webkit-scrollbar {
    display: none;
}

.stacy-suggestion {
    min-height: 34px;
    padding: 0 11px;
    flex: 0 0 auto;
    color: var(--lavender-700);
    border: 1px solid rgba(161,132,204,.15);
    background:
        linear-gradient(135deg, rgba(240,233,251,.84), rgba(255,239,245,.78));
    font-size: .69rem;
    font-weight: 800;
    white-space: nowrap;
}

.stacy-suggestion:hover {
    color: var(--pink-900);
    border-color: rgba(223,124,160,.22);
    box-shadow: 0 8px 24px rgba(161,132,204,.12);
}

/* ------------------------------------------------------------------------
   28. STACY CHAT
   ------------------------------------------------------------------------ */
.stacy-chat-body {
    position: relative;
    z-index: 2;
    min-height: 0;
    padding: 14px 12px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(161,132,204,.28) transparent;
}

.stacy-message {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 0 11px;
    animation: messageIn .34s var(--ease-out) both;
}

.stacy-message--assistant {
    padding-right: 11%;
}

.stacy-message--user {
    justify-content: flex-end;
    padding-left: 11%;
}

.stacy-message__avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(123,92,169,.18);
}

.stacy-message__avatar svg {
    width: 14px;
    height: 14px;
}

.stacy-message__bubble {
    position: relative;
    max-width: min(82%, 560px);
    padding: 10px 12px;
    border-radius: 16px 16px 16px 5px;
    color: var(--text);
    border: 1px solid rgba(161,132,204,.12);
    background:
        linear-gradient(145deg, rgba(255,255,255,.91), rgba(248,242,255,.86));
    box-shadow: 0 7px 22px rgba(76,54,88,.07);
}

.stacy-message__bubble::before {
    content: "";
    position: absolute;
    left: -5px;
    bottom: 0;
    width: 9px;
    height: 9px;
    background: inherit;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.stacy-message__bubble p {
    margin: 0;
    font-size: .79rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.stacy-message__bubble strong {
    color: var(--pink-900);
    font-weight: 800;
}

.stacy-message__bubble--user {
    color: #fff;
    border-color: rgba(208,100,141,.18);
    border-radius: 16px 16px 5px 16px;
    background:
        linear-gradient(135deg, var(--pink-700), var(--pink-500));
    box-shadow: 0 8px 24px rgba(208,100,141,.2);
}

.stacy-message__bubble--user::before {
    left: auto;
    right: -5px;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.stacy-message__bubble--user strong {
    color: #fff;
}

.stacy-message__time {
    display: block;
    margin-top: 4px;
    color: var(--text-faint);
    font-size: .56rem;
    text-align: right;
}

.stacy-message__bubble--user .stacy-message__time {
    color: rgba(255,255,255,.7);
}

/* ------------------------------------------------------------------------
   29. STACY TYPING
   ------------------------------------------------------------------------ */
.stacy-typing {
    width: fit-content;
    margin: 4px 0 10px 38px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 14px 14px 14px 5px;
    border: 1px solid rgba(161,132,204,.12);
    background: rgba(255,255,255,.8);
    box-shadow: 0 7px 20px rgba(76,54,88,.06);
    animation: messageIn .3s var(--ease-out) both;
}

.stacy-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, var(--lavender-600), var(--pink-500));
    animation: typingDot 1.2s ease-in-out infinite;
}

.stacy-typing span:nth-child(2) {
    animation-delay: .15s;
}

.stacy-typing span:nth-child(3) {
    animation-delay: .3s;
}

/* ------------------------------------------------------------------------
   30. STACY INPUT
   ------------------------------------------------------------------------ */
.stacy-input-bar {
    position: relative;
    z-index: 3;
    padding:
        10px 11px
        max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    border-top: 1px solid rgba(161,132,204,.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(253,247,255,.94));
    backdrop-filter: blur(16px);
}

.stacy-input-bar textarea {
    min-height: 44px;
    max-height: 120px;
    padding: 11px 12px;
    resize: none;
    border-radius: 15px;
    background: rgba(255,255,255,.88);
    font-size: .79rem;
    line-height: 1.35;
}

.stacy-input-bar button {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--lavender-700), var(--pink-600));
    box-shadow:
        0 10px 24px rgba(123,92,169,.22),
        inset 0 1px 0 rgba(255,255,255,.25);
    transition:
        transform var(--normal) var(--ease-spring),
        box-shadow var(--normal) ease;
}

.stacy-input-bar button:hover {
    transform: translateY(-2px) rotate(-3deg);
    box-shadow: var(--shadow-stacy);
}

.stacy-input-bar button:active {
    transform: scale(.92);
}

.stacy-input-bar button svg {
    width: 18px;
    height: 18px;
}

/* ------------------------------------------------------------------------
   31. TOASTS
   ------------------------------------------------------------------------ */
.toast-container {
    position: fixed;
    z-index: 500;
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.toast {
    width: min(100%, 420px);
    margin-left: auto;
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    pointer-events: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    animation: toastIn .38s var(--ease-out) both;
}

.toast__icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--pink-800);
    background: var(--pink-100);
}

.toast__content {
    min-width: 0;
    flex: 1;
}

.toast__content strong {
    display: block;
    color: var(--text-strong);
    font-size: .78rem;
}

.toast__content p {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: .7rem;
}

.toast__close {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: var(--text-faint);
    background: transparent;
}

/* ------------------------------------------------------------------------
   32. REVEAL UTILITY
   ------------------------------------------------------------------------ */
.js-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity .7s var(--ease-out),
        transform .7s var(--ease-out);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------------
   33. DARK MODE
   ------------------------------------------------------------------------ */
body.is-dark {
    color-scheme: dark;

    --bg: #181313;
    --bg-soft: #21191a;
    --bg-warm: #261c1c;
    --bg-cream: #2a201d;

    --surface: rgba(42,31,32,.78);
    --surface-strong: rgba(48,36,37,.96);
    --surface-soft: rgba(39,29,30,.9);
    --surface-glass: rgba(35,27,28,.72);

    --text: #f4e9e6;
    --text-strong: #fff7f5;
    --text-soft: #cdbcb6;
    --text-faint: #998985;

    --line: rgba(255,255,255,.085);
    --line-strong: rgba(255,255,255,.15);

    --pink-100: rgba(208,100,141,.12);
    --lavender-100: rgba(161,132,204,.12);
    --gold-100: rgba(173,133,64,.13);
}

body.is-dark {
    background:
        radial-gradient(circle at 12% 0%, rgba(208,100,141,.18), transparent 35%),
        radial-gradient(circle at 92% 2%, rgba(173,133,64,.12), transparent 34%),
        radial-gradient(circle at 72% 78%, rgba(123,92,169,.14), transparent 28%),
        linear-gradient(145deg, #171213, #211819 52%, #1b1514);
}

body.is-dark::after {
    opacity: .13;
}

body.is-dark .mobile-topbar,
body.is-dark .sidebar,
body.is-dark .modal-sheet,
body.is-dark .stacy-sheet,
body.is-dark .mobile-bottom-nav {
    border-color: rgba(255,255,255,.08);
}

body.is-dark .mobile-topbar {
    background:
        linear-gradient(135deg, rgba(30,23,24,.9), rgba(39,28,31,.84));
}

body.is-dark .sidebar {
    background:
        linear-gradient(180deg, rgba(31,24,25,.98), rgba(38,27,29,.98));
}

body.is-dark .couple-card,
body.is-dark .mobile-hero__card,
body.is-dark .stat-card,
body.is-dark .controls-section,
body.is-dark .product-card {
    background:
        linear-gradient(145deg, rgba(48,36,37,.91), rgba(35,27,28,.9));
    border-color: rgba(255,255,255,.07);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

body.is-dark .search-bar,
body.is-dark .form-field input,
body.is-dark .form-field textarea,
body.is-dark .form-field select,
body.is-dark .stacy-input-bar textarea,
body.is-dark .favorite-button,
body.is-dark .icon-button,
body.is-dark .icon-chip,
body.is-dark .product-action {
    color: var(--text);
    background: rgba(42,32,33,.82);
    border-color: rgba(255,255,255,.08);
}

body.is-dark .product-card__media {
    background:
        radial-gradient(circle at 30% 20%, rgba(208,100,141,.14), transparent 34%),
        linear-gradient(145deg, #2d2123, #241b1c);
}

body.is-dark .product-card__price {
    background:
        linear-gradient(135deg, rgba(173,133,64,.14), rgba(255,255,255,.025));
    border-color: rgba(217,185,118,.1);
}

body.is-dark .product-card__badge,
body.is-dark .new-product-badge {
    background: rgba(35,27,28,.78);
    border-color: rgba(255,255,255,.08);
}

body.is-dark .mobile-bottom-nav {
    background:
        linear-gradient(145deg, rgba(35,27,28,.9), rgba(43,31,33,.9));
    box-shadow: 0 20px 60px rgba(0,0,0,.38);
}

body.is-dark .modal-sheet {
    background:
        linear-gradient(180deg, rgba(42,32,33,.99), rgba(31,24,25,.99));
}

body.is-dark .stacy-sheet {
    background:
        linear-gradient(180deg, rgba(35,28,39,.99), rgba(29,23,32,.99));
}

body.is-dark .stacy-message__bubble {
    background:
        linear-gradient(145deg, rgba(48,39,53,.92), rgba(39,31,43,.9));
    border-color: rgba(203,184,232,.1);
}

body.is-dark .stacy-input-bar {
    background: rgba(31,25,34,.92);
}

body.is-dark .dropdown-menu {
    background: rgba(37,28,30,.98);
    border-color: rgba(255,255,255,.08);
}

/* ------------------------------------------------------------------------
   34. TABLET
   ------------------------------------------------------------------------ */
@media (min-width: 560px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-hero__actions {
        grid-template-columns: auto auto;
        justify-content: start;
    }

    .mobile-hero__btn {
        padding-inline: 18px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .stat-card {
        min-width: 174px;
        flex-basis: 174px;
    }

    .toast-container {
        left: auto;
        width: 420px;
    }
}

/* ------------------------------------------------------------------------
   35. LARGE TABLET / SMALL DESKTOP
   ------------------------------------------------------------------------ */
@media (min-width: 860px) {
    .mobile-topbar {
        display: none;
    }

    .sidebar {
        transform: none;
        visibility: visible;
        width: var(--sidebar-width);
        box-shadow: 18px 0 50px rgba(68,44,34,.06);
    }

    .sidebar__close,
    .sidebar-overlay {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        padding: 28px 28px 96px;
    }

    .mobile-hero {
        margin-top: 0;
    }

    .mobile-hero__card {
        padding: 28px 30px;
        border-radius: 30px;
    }

    .stats-carousel {
        margin-inline: 0;
    }

    .stats-carousel__track {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-inline: 0;
        overflow: visible;
    }

    .stat-card {
        min-width: 0;
        width: auto;
        flex-basis: auto;
    }

    .controls-section {
        padding: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .stacy-floating-btn {
        display: inline-flex;
    }

    .modal-overlay {
        align-items: center;
    }

    .modal-sheet,
    .stacy-sheet {
        border-radius: 28px;
    }
}

/* ------------------------------------------------------------------------
   36. DESKTOP
   ------------------------------------------------------------------------ */
@media (min-width: 1180px) {
    :root {
        --sidebar-width: 308px;
    }

    .main-content {
        padding: 32px 34px 110px;
    }

    .mobile-hero__card {
        padding: 34px;
    }

    .mobile-hero h2 {
        max-width: 760px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .product-card__media {
        aspect-ratio: 4 / 3;
    }

    .controls-section {
        position: sticky;
        top: 16px;
        z-index: 40;
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
    }

    .stacy-floating-btn {
        right: 28px;
        bottom: 28px;
    }
}

/* ------------------------------------------------------------------------
   37. WIDE DESKTOP
   ------------------------------------------------------------------------ */
@media (min-width: 1540px) {
    .main-content {
        max-width: 1600px;
        margin-right: auto;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------------
   38. VERY SMALL MOBILE
   ------------------------------------------------------------------------ */
@media (max-width: 380px) {
    :root {
        --topbar-height: 68px;
    }

    .mobile-topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-topbar__badge {
        font-size: .61rem;
    }

    .mobile-topbar__title h1 {
        font-size: 1rem;
    }

    .mobile-topbar__actions {
        gap: 5px;
    }

    .icon-button {
        width: 39px;
        height: 39px;
    }

    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-hero h2 {
        font-size: 1.42rem;
    }

    .mobile-hero__icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .stat-card {
        min-width: 146px;
        flex-basis: 146px;
    }

    .product-card__body {
        padding-inline: 13px;
    }

    .product-card__price--unknown {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-price-button {
        width: 100%;
        justify-content: center;
    }

    .mobile-bottom-nav {
        left: 6px;
        right: 6px;
        bottom: calc(6px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav__item {
        font-size: .52rem;
    }
}

/* ------------------------------------------------------------------------
   39. LANDSCAPE MOBILE
   ------------------------------------------------------------------------ */
@media (max-height: 560px) and (orientation: landscape) {
    .mobile-topbar {
        position: relative;
    }

    .stacy-sheet {
        height: calc(100dvh - 20px);
    }

    .modal-sheet {
        max-height: calc(100dvh - 20px);
    }

    .mobile-bottom-nav {
        min-height: 58px;
    }

    .mobile-bottom-nav__add-btn {
        width: 48px;
        height: 48px;
        margin-top: -16px;
    }
}

/* ------------------------------------------------------------------------
   40. TOUCH OPTIMIZATION
   ------------------------------------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .mobile-hero__btn:hover,
    .icon-button:hover,
    .icon-chip:hover,
    .product-action:hover,
    .favorite-button:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(.992);
    }

    .sidebar-nav__item,
    .category-list__item,
    .quick-filter,
    .sort-option {
        min-height: 44px;
    }
}

/* ------------------------------------------------------------------------
   41. REDUCED MOTION
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ------------------------------------------------------------------------
   42. HIGH CONTRAST PREFERENCE
   ------------------------------------------------------------------------ */
@media (prefers-contrast: more) {
    :root {
        --line: rgba(60,40,34,.26);
        --line-strong: rgba(60,40,34,.42);
    }

    .product-card,
    .controls-section,
    .mobile-hero__card,
    .stat-card,
    .modal-sheet,
    .stacy-sheet {
        border-width: 2px;
    }
}

/* ------------------------------------------------------------------------
   43. KEYFRAMES — BACKGROUND / AMBIENCE
   ------------------------------------------------------------------------ */
@keyframes ambientDrift {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }
    50% {
        transform: translate3d(1%, 1.5%, 0) scale(1.035);
    }
    100% {
        transform: translate3d(2%, -1%, 0) scale(1.02);
    }
}

@keyframes backgroundPan {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    to {
        background-position: 44px 44px, 44px 44px, 120px 80px, -150px 120px, 180px -120px;
    }
}

@keyframes gradientRibbon {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 240% 50%;
    }
}

@keyframes textGradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmerLine {
    from {
        background-position: -100% 50%;
    }
    to {
        background-position: 180% 50%;
    }
}

/* ------------------------------------------------------------------------
   44. KEYFRAMES — HEARTS / LOVE DETAILS
   ------------------------------------------------------------------------ */
@keyframes tinyHeartBeat {
    0%, 100% {
        transform: scale(1);
    }
    16% {
        transform: scale(1.18);
    }
    30% {
        transform: scale(.98);
    }
    44% {
        transform: scale(1.12);
    }
    60% {
        transform: scale(1);
    }
}

@keyframes heartBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    18% {
        transform: translateY(-2px) scale(1.1);
    }
    36% {
        transform: translateY(0) scale(.98);
    }
    54% {
        transform: translateY(-1px) scale(1.06);
    }
}

@keyframes heartFloat {
    0%, 100% {
        transform: translate3d(0,0,0) rotate(16deg) scale(1);
    }
    50% {
        transform: translate3d(-7px,9px,0) rotate(12deg) scale(1.05);
    }
}

@keyframes heartTrail {
    0%, 100% {
        opacity: .1;
        transform: translateY(0);
    }
    50% {
        opacity: .23;
        transform: translateY(-4px);
    }
}

@keyframes favoriteGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(208,100,141,.18);
    }
    50% {
        box-shadow:
            0 10px 30px rgba(208,100,141,.3),
            0 0 0 5px rgba(244,190,208,.08);
    }
}

@keyframes miniHeartBurst {
    0%, 55%, 100% {
        opacity: 0;
        transform: translateY(5px) scale(.5) rotate(-8deg);
    }
    65% {
        opacity: .85;
    }
    88% {
        opacity: 0;
        transform: translateY(-12px) scale(1.05) rotate(9deg);
    }
}

/* ------------------------------------------------------------------------
   45. KEYFRAMES — ENTRANCES
   ------------------------------------------------------------------------ */
@keyframes topbarEnter {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes productRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes menuPop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes sheetUp {
    from {
        opacity: 0;
        transform: translateY(42px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes stacySheetEnter {
    from {
        opacity: 0;
        transform: translateY(48px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ------------------------------------------------------------------------
   46. KEYFRAMES — COMPONENT MOTION
   ------------------------------------------------------------------------ */
@keyframes softRing {
    0% {
        opacity: .4;
        transform: scale(.9);
    }
    65%, 100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

@keyframes iconShine {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes homeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

@keyframes heroOrb {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.08);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes auraPulse {
    0% {
        opacity: .45;
        transform: scale(.94);
    }
    100% {
        opacity: .9;
        transform: scale(1.08);
    }
}

@keyframes sparkleSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fabFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 13px 30px rgba(208,100,141,.26);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(208,100,141,.32);
    }
}

@keyframes packageFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-6px) rotate(-2deg);
    }
}

@keyframes placeholderAura {
    0%, 100% {
        transform: scale(.86);
        opacity: .54;
    }
    50% {
        transform: scale(1.08);
        opacity: .92;
    }
}

@keyframes loadingSweep {
    from {
        background-position: 130% 0;
    }
    to {
        background-position: -130% 0;
    }
}

@keyframes emptyFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* ------------------------------------------------------------------------
   47. KEYFRAMES — STACY AURORA
   ------------------------------------------------------------------------ */
@keyframes stacyHaloSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes stacyAurora {
    0% {
        transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(2%, 2%, 0) rotate(4deg) scale(1.05);
    }
    100% {
        transform: translate3d(1%, -2%, 0) rotate(-3deg) scale(1.03);
    }
}

@keyframes sparkleField {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    to {
        background-position: 110px 70px, -150px 100px, 170px -90px, -140px -80px;
    }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(.82);
        opacity: .62;
    }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0) scale(.9);
        opacity: .45;
    }
    30% {
        transform: translateY(-4px) scale(1.06);
        opacity: 1;
    }
}

@keyframes budgetFlow {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 180% 50%;
    }
}

/* ------------------------------------------------------------------------
   48. POLISH / MICRO-INTERACTIONS
   ------------------------------------------------------------------------ */
.product-card:nth-child(2n) {
    animation-delay: .035s;
}

.product-card:nth-child(3n) {
    animation-delay: .07s;
}

.product-card:nth-child(4n) {
    animation-delay: .105s;
}

.sidebar-nav__item [data-lucide="heart"] {
    color: var(--pink-700);
}

.sidebar-nav__item [data-lucide="heart"] {
    fill: rgba(223,124,160,.12);
}

.mobile-bottom-nav [data-lucide="heart"],
.mobile-topbar [data-lucide="heart"] {
    transition: transform .26s var(--ease-spring), fill .26s ease;
}

.mobile-bottom-nav__item:active [data-lucide="heart"],
.mobile-topbar__badge:hover [data-lucide="heart"] {
    transform: scale(1.16);
}

[data-action="favorite"] {
    touch-action: manipulation;
}

[data-action="purchase"],
[data-action="edit"],
[data-action="delete"] {
    touch-action: manipulation;
}

body.modal-open {
    overflow: hidden;
}

/* ------------------------------------------------------------------------
   49. SAFE AREA / PWA POLISH
   ------------------------------------------------------------------------ */
@supports (padding: max(0px)) {
    .mobile-topbar {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }

    .main-content {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
}

/* ------------------------------------------------------------------------
   50. PRINT
   ------------------------------------------------------------------------ */
@media print {
    body {
        background: #fff;
        color: #111;
    }

    body::before,
    body::after,
    .sidebar,
    .mobile-topbar,
    .mobile-bottom-nav,
    .stacy-floating-btn,
    .favorite-button,
    .product-card__footer,
    .controls-section,
    .toast-container {
        display: none !important;
    }

    .main-content {
        margin: 0;
        width: 100%;
        padding: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
