*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #0A0F1E;
    --ink-2: #3D4A6B;
    --ink-3: #8896B3;
    --ink-4: #C2CCDF;
    --paper: #F4F6FC;
    --surface: #FFFFFF;
    --surface-2: #F8FAFF;
    --border: #E5EAFC;
    --border-2: #CDD7F5;
    --blue: #2455F4;
    --blue-dark: #1840D8;
    --blue-glow: rgba(36, 85, 244, 0.22);
    --blue-soft: #EEF2FE;
    --blue-mid: #D6DFFE;
    --emerald: #00C58E;
    --emerald-dark: #00A677;
    --emerald-glow: rgba(0, 197, 142, 0.22);
    --emerald-soft: #E6FAF5;
    --amber: #F5A623;
    --amber-soft: #FFF4E0;
    --rose: #F24E6E;
    --rose-soft: #FEF0F3;
    --violet: #7C3AED;
    --violet-soft: #F5F0FF;
    --shadow-xs: 0 1px 3px rgba(10, 15, 30, 0.06);
    --shadow-sm: 0 2px 10px rgba(10, 15, 30, 0.07);
    --shadow-md: 0 6px 24px rgba(10, 15, 30, 0.09);
    --shadow-lg: 0 14px 48px rgba(10, 15, 30, 0.12);
    --shadow-xl: 0 28px 80px rgba(10, 15, 30, 0.16);
    --shadow-blue: 0 8px 28px rgba(36, 85, 244, 0.3);
    --shadow-emerald: 0 8px 28px rgba(0, 197, 142, 0.3);
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-2xl: 36px;
    --r-full: 9999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.14s;
    --t-mid: 0.26s;
    --t-slow: 0.42s;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-body-scale: 1;
}

[data-theme="dark"] {
    --ink: #E8EEFF;
    --ink-2: #A0B0D8;
    --ink-3: #5A6B92;
    --ink-4: #2D3A5E;
    --paper: #04081A;
    --surface: #080F28;
    --surface-2: #0C1535;
    --border: #162040;
    --border-2: #1E2E58;
    --blue-soft: #0A1640;
    --blue-mid: #122060;
    --emerald-soft: #041A12;
    --amber-soft: #1A1000;
    --rose-soft: #1A0608;
    --violet-soft: #130830;
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 14px 52px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 28px 80px rgba(0, 0, 0, 0.8);
    --shadow-blue: 0 8px 32px rgba(36, 85, 244, 0.45);
    --shadow-emerald: 0 8px 32px rgba(0, 197, 142, 0.35);
}

[data-theme="dark"] .card,
[data-theme="dark"] .prod-card,
[data-theme="dark"] .market-card,
[data-theme="dark"] .list-item,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .hist-item {
    border-color: rgba(36, 85, 244, 0.15);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .bottom-nav {
    background: var(--surface);
    border-top: 1px solid rgba(36, 85, 244, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-item.active .nav-icon {
    background: rgba(36, 85, 244, 0.25);
    box-shadow: 0 0 12px rgba(36, 85, 244, 0.3);
}

[data-theme="dark"] .sheet {
    border-top: 1px solid rgba(36, 85, 244, 0.2);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .inp {
    background: var(--surface-2);
    border-color: rgba(36, 85, 244, 0.2);
}

[data-theme="dark"] .inp:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 85, 244, 0.15);
}

[data-theme="dark"] .cfg-item,
[data-theme="dark"] .toggle-row {
    border-color: rgba(36, 85, 244, 0.12);
    background: var(--surface);
}

[data-theme="dark"] .cfg-item:active,
[data-theme="dark"] .toggle-row:active {
    background: var(--surface-2);
}

[data-theme="dark"] .list-summary-top,
[data-theme="dark"] .cart-summary {
    border-color: rgba(36, 85, 244, 0.15);
    background: var(--surface);
}

[data-theme="dark"] .qa {
    border-color: rgba(36, 85, 244, 0.12);
    background: var(--surface);
}

[data-theme="dark"] .qa:hover {
    border-color: rgba(36, 85, 244, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .chip {
    background: var(--surface);
    border-color: rgba(36, 85, 244, 0.18);
}

[data-theme="dark"] .notif-item:active {
    background: var(--surface-2);
}

[data-theme="dark"] .ph-product-card,
[data-theme="dark"] .fav-card {
    border-color: rgba(36, 85, 244, 0.15);
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: calc(16px * var(--font-body-scale));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

.phone {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: background var(--t-mid) var(--ease);
}

.app-header {
    flex-shrink: 0;
    background: var(--blue);
    padding: 14px 20px 14px;
    position: relative;
    z-index: 200;
    transition: background var(--t-mid);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    font-family: var(--font-display);
    font-size: 1.375em;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    font-style: italic;
}

.header-brand em {
    color: var(--emerald);
    font-style: normal;
}

.header-subtitle {
    font-size: 0.6875em;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hbtn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), transform var(--t-fast);
    position: relative;
}

.hbtn:active {
    transform: scale(0.88);
}

.hbtn .material-icons-round {
    font-size: 1.0625em;
}

.header-wave {
    width: 100%;
    height: 14px;
    background: var(--blue);
    flex-shrink: 0;
    clip-path: ellipse(110% 100% at 50% 0%);
    margin-top: -1px;
    transition: background var(--t-mid);
}

.pages-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.page {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(1em);
    pointer-events: none;
    transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
    scrollbar-width: thin;
    scrollbar-color: var(--border-2) transparent;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-body {
    padding: 16px 14px 90px;
}

.bottom-nav {
    flex-shrink: 0;
    height: 68px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 4px 6px;
    position: relative;
    z-index: 300;
    transition: background var(--t-mid), border-color var(--t-mid);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    color: var(--ink-3);
    cursor: pointer;
    padding: 4px 2px;
    border-radius: var(--r-md);
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-item .nav-icon {
    width: 38px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    transition: background var(--t-fast), transform var(--t-fast);
}

.nav-item .nav-icon .material-icons-round {
    font-size: 1.3125em;
    transition: transform var(--t-mid) var(--spring);
}

.nav-item .nav-label {
    font-size: 0.625em;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-item.active {
    color: var(--blue);
}

.nav-item.active .nav-icon {
    background: var(--blue-soft);
}

.nav-item.active .nav-icon .material-icons-round {
    transform: translateY(-2px) scale(1.1);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 15px;
    height: 15px;
    background: var(--rose);
    color: #fff;
    border-radius: var(--r-full);
    font-size: 0.5625em;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--surface);
}

.nav-badge.show {
    display: flex;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    line-height: 1.1;
}

.section-head {
    font-size: 0.6875em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ink-3);
    margin-bottom: 10px;
    margin-top: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    transition: all var(--t-mid) var(--ease);
}

.prod-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: all var(--t-fast);
}

.prod-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue);
    border-radius: 3px 0 0 3px;
}

.prod-card.promo::before {
    background: var(--emerald);
}

.prod-card.big-promo::before {
    background: var(--rose);
}

.prod-card:active {
    transform: scale(0.985);
}

.market-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-fast);
}

.market-card:active {
    transform: scale(0.985);
}

.market-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.0625em;
    font-weight: 700;
    flex-shrink: 0;
}

.promo-hero {
    border-radius: var(--r-xl);
    padding: 18px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.promo-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    z-index: 0;
}

.promo-hero-blob {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: -30px;
    top: -30px;
    z-index: 1;
}

.promo-hero-blob2 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    right: 40px;
    bottom: -20px;
    z-index: 1;
}

.promo-hero-content {
    position: relative;
    z-index: 2;
}

.budget-bar-card {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: var(--r-xl);
    padding: 16px 18px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
    transition: transform var(--t-fast);
    display: none;
}

.budget-bar-card.show {
    display: block;
}

.budget-bar-card:active {
    transform: scale(0.98);
}

.budget-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--r-full);
    margin-top: 12px;
    overflow: hidden;
}

.budget-bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: var(--emerald);
    transition: width 0.5s var(--ease);
}

.budget-bar-fill.over {
    background: var(--rose);
}

.budget-bar-fill.warn {
    background: var(--amber);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all var(--t-fast);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    border-radius: var(--r-full);
}

.btn:active {
    transform: scale(0.94);
}

.btn .material-icons-round {
    font-size: 0.9375em;
}

.btn-primary {
    padding: 11px 20px;
    font-size: 0.875em;
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn-emerald {
    padding: 11px 20px;
    font-size: 0.875em;
    background: var(--emerald);
    color: #fff;
    box-shadow: var(--shadow-emerald);
}

.btn-ghost {
    padding: 9px 16px;
    font-size: 0.8125em;
    background: var(--blue-soft);
    color: var(--blue);
    border: 1px solid var(--blue-mid);
}

.btn-danger {
    padding: 9px 14px;
    font-size: 0.8125em;
    background: var(--rose-soft);
    color: var(--rose);
    border: 1px solid #FAC4D0;
}

.btn-sm {
    padding: 6px 13px;
    font-size: 0.75em;
}

.btn-sm .material-icons-round {
    font-size: 0.8125em;
}

.btn-xs {
    padding: 5px 9px;
    font-size: 0.6875em;
}

.btn-xs .material-icons-round {
    font-size: 0.75em;
}

.btn-full {
    width: 100%;
}

.btn-ico {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
}

.btn-ico .material-icons-round {
    font-size: 1.0625em;
}

.inp-wrap {
    position: relative;
    margin-bottom: 10px;
}

.inp {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: 0.875em;
    background: var(--surface-2);
    color: var(--ink);
    outline: none;
    transition: all var(--t-fast);
}

.inp.has-icon {
    padding-left: 40px;
}

.inp:focus {
    border-color: var(--blue);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.inp::placeholder {
    color: var(--ink-3);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 7px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.toggle-row:active {
    background: var(--surface-2);
}

.toggle-label-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.875em;
    font-weight: 600;
    color: var(--ink);
}

.toggle-label-wrap .material-icons-round {
    font-size: 1.1875em;
    color: var(--blue);
}

.tog {
    width: 44px;
    height: 25px;
    border-radius: var(--r-full);
    background: var(--border-2);
    position: relative;
    transition: background var(--t-fast);
    flex-shrink: 0;
}

.tog.on {
    background: var(--blue);
}

.tog::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast);
}

.tog.on::after {
    transform: translateX(19px);
}

.chip-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    margin-bottom: 14px;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--border);
    font-size: 0.75em;
    font-weight: 700;
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: all var(--t-fast);
}

.chip.active, .chip:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--r-full);
    font-size: 0.6875em;
    font-weight: 700;
}

.badge-blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.badge-emerald {
    background: var(--emerald-soft);
    color: var(--emerald-dark);
}

.badge-amber {
    background: var(--amber-soft);
    color: #B97000;
}

.badge-rose {
    background: var(--rose-soft);
    color: var(--rose);
}

.prog {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: var(--r-full);
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: var(--emerald);
    transition: width 0.5s var(--ease);
}

.prog-fill.warn {
    background: var(--amber);
}

.prog-fill.danger {
    background: var(--rose);
}

.skel {
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-2) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--r-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--ink-3);
}

.empty-icon {
    font-size: 3em;
    margin-bottom: 12px;
    opacity: 0.35;
}

.empty-icon .material-icons-round {
    font-size: 1em;
}

.empty p {
    font-size: 0.875em;
    line-height: 1.7;
}

#toasts {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 360px;
}

.t {
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--r-full);
    font-size: 0.8125em;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: tIn 0.3s var(--spring) both;
    pointer-events: auto;
    max-width: 100%;
}

[data-theme="dark"] .t {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
}

.t .material-icons-round {
    font-size: 0.9375em;
    flex-shrink: 0;
}

.t.ok {
    background: var(--emerald-dark);
}

.t.err {
    background: var(--rose);
}

.t.wrn {
    background: var(--amber);
    color: #3D2000;
}

.t.inf {
    background: var(--blue);
}

@keyframes tIn {
    from { opacity: 0; transform: translateY(12px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-8px) scale(0.94); }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 29, 0.65);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

[data-theme="dark"] .overlay {
    background: rgba(0, 0, 8, 0.8);
}

.overlay.center {
    align-items: center;
    padding: 20px;
}

.overlay.open {
    display: flex;
}

.sheet {
    background: var(--surface);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    padding: 22px 18px 36px;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    animation: sheetUp 0.36s var(--spring) both;
    position: relative;
    transition: background var(--t-mid);
}

.sheet.centered {
    border-radius: var(--r-xl);
    animation: scaleIn 0.3s var(--spring) both;
}

@keyframes sheetUp {
    from { transform: translateY(48px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.93); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border-2);
    border-radius: var(--r-full);
    margin: 0 auto 20px;
}

.sheet-title {
    font-family: var(--font-display);
    font-size: 1.3125em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.sheet-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.sheet-close .material-icons-round {
    font-size: 0.9375em;
}

#welcome {
    position: fixed;
    inset: 0;
    background: var(--blue-dark);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.5s var(--ease);
}

#welcome.out {
    opacity: 0;
    pointer-events: none;
}

.wcard {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 32px 26px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.5s var(--spring) both;
    transition: background var(--t-mid);
}

.w-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-blue);
}

.w-logo .material-icons-round {
    font-size: 2.25em;
    color: #fff;
}

.w-title {
    font-family: var(--font-display);
    font-size: 1.75em;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    font-style: italic;
    margin-bottom: 5px;
}

.w-title em {
    color: var(--blue);
    font-style: normal;
}

.w-subtitle {
    font-size: 0.875em;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 26px;
}

.w-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.w-foot {
    margin-top: 20px;
    font-size: 0.6875em;
    color: var(--ink-3);
    line-height: 1.7;
}

.banner {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    position: relative;
    margin-bottom: 8px;
    touch-action: pan-y pinch-zoom;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s var(--ease);
}

.slide.on {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 12, 29, 0.72) 0%, transparent 55%);
}

.slide-text {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    color: #fff;
}

.slide-text h3 {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.slide-text p {
    font-size: 0.75em;
    opacity: 0.8;
    margin-top: 2px;
}

.dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: var(--r-full);
    background: var(--border-2);
    cursor: pointer;
    transition: all var(--t-fast);
}

.dot.on {
    width: 20px;
    background: var(--blue);
}

.search-home {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-home .inp {
    flex: 1;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all var(--t-fast);
}

.qa:active {
    transform: scale(0.93);
    box-shadow: none;
}

.qa-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-icon .material-icons-round {
    font-size: 1.25em;
}

.qa span {
    font-size: 0.625em;
    font-weight: 700;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.3;
}

.ic-blue { background: var(--blue-soft); color: var(--blue); }
.ic-emerald { background: var(--emerald-soft); color: var(--emerald-dark); }
.ic-amber { background: var(--amber-soft); color: #C07800; }
.ic-rose { background: var(--rose-soft); color: var(--rose); }
.ic-violet { background: var(--violet-soft); color: var(--violet); }
.ic-teal { background: #E0FAF5; color: #0D9A80; }
.ic-orange { background: #FFF3E8; color: #D46200; }

.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.search-bar .inp {
    flex: 1;
}

.filter-box {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 14px !important;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease !important;
}

.filter-box.open {
    max-height: 500px !important;
    opacity: 1 !important;
    padding: 14px !important;
    overflow: visible !important;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 10px;
}

.filter-grid .inp-wrap {
    margin-bottom: 0;
}

.cart-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-fast);
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 3px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-fast);
}

.qty-btn:active {
    transform: scale(0.88);
}

.qty-btn .material-icons-round {
    font-size: 0.875em;
}

.qty-num {
    font-size: 0.8125em;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: var(--ink);
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875em;
    color: var(--ink-2);
    margin-bottom: 7px;
}

.sum-row.total {
    font-size: 1em;
    font-weight: 700;
    color: var(--ink);
    padding-top: 11px;
    border-top: 1px solid var(--border);
    margin-bottom: 0;
    margin-top: 3px;
}

.price-val {
    color: var(--blue);
    font-weight: 700;
}

.price-total {
    font-family: var(--font-display);
    font-size: 1.25em;
    font-weight: 700;
    color: var(--blue);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 11px 12px;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-fast);
}

.list-item.done {
    opacity: 0.48;
}

.chk {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid var(--border-2);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t-fast);
}

.chk.checked {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #fff;
}

.chk .material-icons-round {
    font-size: 0.8125em;
}

.list-info {
    flex: 1;
    min-width: 0;
}

.li-name {
    font-size: 0.875em;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.li-name.striked {
    text-decoration: line-through;
    color: var(--ink-3);
}

.li-meta {
    font-size: 0.75em;
    color: var(--ink-3);
    margin-top: 2px;
}

.list-summary-top {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.chart-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
}

.chart-box h4 {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--ink);
}

.profile-hero {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: var(--r-xl);
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
    transition: transform var(--t-fast);
}

.profile-hero:active {
    transform: scale(0.98);
}

.avatar-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 3px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.375em;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h3 {
    font-family: var(--font-display);
    font-size: 1.125em;
    font-weight: 700;
}

.profile-info p {
    font-size: 0.8125em;
    opacity: 0.78;
    margin-top: 3px;
}

.cfg-section {
    margin-bottom: 22px;
}

.cfg-section-label {
    font-size: 0.6875em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--ink-3);
    margin-bottom: 7px;
    padding-left: 4px;
}

.cfg-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 5px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.cfg-item:active {
    background: var(--surface-2);
}

.cfg-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfg-icon .material-icons-round {
    font-size: 1.125em;
}

.cfg-text {
    flex: 1;
}

.cfg-name {
    font-size: 0.875em;
    font-weight: 600;
    color: var(--ink);
}

.cfg-desc {
    font-size: 0.75em;
    color: var(--ink-3);
    margin-top: 1px;
}

.cfg-arrow {
    font-size: 1.0625em;
    color: var(--ink-3);
}

.scanner-vp {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.scanner-vp video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875em;
}

.scanner-ph .material-icons-round {
    font-size: 3em;
    opacity: 0.4;
}

.scan-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-target {
    width: 58%;
    aspect-ratio: 1;
    border: 2px solid var(--emerald);
    border-radius: var(--r-md);
    position: relative;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.42);
}

.scan-target::before, .scan-target::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 22px;
    height: 22px;
    border-top: 4px solid var(--emerald);
    border-left: 4px solid var(--emerald);
    border-radius: 4px 0 0 0;
}

.scan-target::after {
    left: auto;
    right: -2px;
    border-left: none;
    border-right: 4px solid var(--emerald);
    border-radius: 0 4px 0 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: 0; }
    50% { top: 100%; }
}

.pm-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.625em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-blue);
}

.pdr {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875em;
}

.pdr:last-child {
    border-bottom: none;
}

.pdr .material-icons-round {
    font-size: 1.0625em;
    color: var(--ink-3);
}

.pdr-lbl {
    font-size: 0.6875em;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.pdr-val {
    color: var(--ink);
    font-weight: 500;
}

.ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.ring-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.ring-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.ring-pct {
    font-family: var(--font-display);
    font-size: 1.625em;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 2px;
}

.ring-sub {
    font-size: 0.6875em;
    color: var(--ink-3);
}

.notif-item {
    display: flex;
    gap: 11px;
    padding: 13px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--t-fast);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:active {
    background: var(--surface-2);
}

.notif-ico {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-title {
    font-size: 0.8125em;
    font-weight: 700;
    color: var(--ink);
}

.notif-sub {
    font-size: 0.75em;
    color: var(--ink-3);
    margin-top: 2px;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    margin-top: 5px;
    flex-shrink: 0;
}

.about-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px;
}

.about-box p {
    font-size: 0.8125em;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 11px;
}

.about-box p:last-child {
    margin-bottom: 0;
}

.about-box strong {
    color: var(--ink);
}

.ver-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: var(--blue-soft);
    border-radius: var(--r-full);
    font-size: 0.75em;
    font-weight: 700;
    color: var(--blue);
    margin-top: 11px;
}

.flex-b { display: flex; justify-content: space-between; align-items: center; }
.flex-c { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.text-sm { font-size: 0.8125em; }
.text-xs { font-size: 0.6875em; }
.text-muted { color: var(--ink-3); }
.text-bold { font-weight: 700; }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }

.voice-pulse {
    animation: vpulse 1s ease infinite;
}

@keyframes vpulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--blue-glow); }
    50% { box-shadow: 0 0 0 10px transparent; }
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

button:focus-visible, input:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.occasion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 18px;
}

.occ-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all var(--t-fast);
    position: relative;
    text-align: center;
}

.occ-card:active { transform: scale(0.93); }
.occ-card.active { border-color: var(--blue); background: var(--blue-soft); }
.occ-card.active .occ-icon { background: var(--blue); }

.occ-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}
.occ-icon span { font-size: 1.1875em; }
.occ-name { font-size: 0.6875em; font-weight: 700; color: var(--ink-2); }
.occ-count {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 15px;
    height: 15px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r-full);
    font-size: 0.5625em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.compare-header {
    display: grid;
    grid-template-columns: 110px repeat(var(--mkt-cols, 3), 1fr);
    border-bottom: 2px solid var(--border);
    padding-bottom: 9px;
    margin-bottom: 2px;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
}

.compare-mkt-head {
    text-align: center;
    padding: 7px 4px;
    font-size: 0.6875em;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.3;
}
.compare-mkt-dist {
    font-size: 0.625em;
    color: var(--ink-3);
    font-weight: 500;
    margin-top: 2px;
}

.compare-row {
    display: grid;
    grid-template-columns: 110px repeat(var(--mkt-cols, 3), 1fr);
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:nth-child(even) { background: var(--surface-2); }

.compare-prod {
    padding: 9px 7px 9px 0;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.compare-brand {
    font-size: 0.625em;
    color: var(--ink-3);
    font-weight: 400;
    margin-top: 1px;
}

.compare-cell {
    text-align: center;
    padding: 9px 4px;
    font-size: 0.75em;
    font-weight: 700;
    color: var(--ink);
    position: relative;
}
.compare-cell.best {
    color: var(--emerald-dark);
    background: var(--emerald-soft);
    border-radius: var(--r-sm);
}
.compare-cell.best::after {
    content: '★';
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 0.5em;
    color: var(--emerald);
}
.compare-cell.worst { color: var(--rose); }
.compare-disc {
    font-size: 0.5625em;
    color: var(--emerald-dark);
    font-weight: 600;
    margin-top: 1px;
}

.compare-wrap {
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.mkt-picker {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mkt-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 0.75em;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    transition: all var(--t-fast);
}
.mkt-pill.selected {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}
.mkt-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-2);
}
.mkt-pill.selected .mkt-pill-dot { background: var(--blue); }

.ph-product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 9px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.ph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    cursor: pointer;
    transition: background var(--t-fast);
}
.ph-header:active { background: var(--surface-2); }
.ph-title {
    font-size: 0.875em;
    font-weight: 700;
    color: var(--ink);
}
.ph-subtitle {
    font-size: 0.6875em;
    color: var(--ink-3);
    margin-top: 2px;
}
.ph-arrow {
    font-size: 1.0625em;
    color: var(--ink-3);
    transition: transform var(--t-fast);
}
.ph-arrow.open { transform: rotate(180deg); }

.ph-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 13px;
}
.ph-body.open {
    max-height: 280px;
    padding: 0 13px 13px;
}

.ph-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
}
.ph-trend-up { color: var(--rose); }
.ph-trend-down { color: var(--emerald); }
.ph-trend-flat { color: var(--ink-3); }

.ph-min-max {
    display: flex;
    gap: 9px;
    margin-bottom: 11px;
}
.ph-stat {
    flex: 1;
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: 7px 9px;
    text-align: center;
}
.ph-stat-label {
    font-size: 0.625em;
    font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ph-stat-value {
    font-family: var(--font-display);
    font-size: 0.8125em;
    font-weight: 700;
    color: var(--ink);
    margin-top: 2px;
}

.offline-banner {
    display: none;
    background: var(--amber);
    color: #3D2000;
    padding: 7px 14px;
    font-size: 0.75em;
    font-weight: 700;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}
.offline-banner.show { display: flex; }
.offline-banner .material-icons-round { font-size: 0.875em; }

#tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
    pointer-events: none;
    display: none;
}
#tour-overlay.active { display: block; }

#tour-spotlight {
    position: absolute;
    border-radius: var(--r-lg);
    box-shadow: 0 0 0 4000px rgba(6, 12, 29, 0.75);
    transition: all 0.45s var(--ease);
    pointer-events: none;
}

#tour-bubble {
    position: absolute;
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 15px 17px;
    max-width: 280px;
    box-shadow: var(--shadow-xl);
    pointer-events: auto;
    animation: scaleIn 0.3s var(--spring) both;
    border: 1px solid var(--border-2);
}
#tour-bubble h4 {
    font-family: var(--font-display);
    font-size: 0.9375em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}
#tour-bubble p {
    font-size: 0.8125em;
    color: var(--ink-2);
    line-height: 1.6;
}
#tour-bubble .tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
}
#tour-bubble .tour-counter {
    font-size: 0.6875em;
    color: var(--ink-3);
    font-weight: 600;
}
.tour-btn-row { display: flex; gap: 8px; }
#tour-skip {
    font-size: 0.75em;
    color: var(--ink-3);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 4px 7px;
}
#tour-next {
    font-family: var(--font-body);
    font-size: 0.75em;
    font-weight: 700;
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 7px 15px;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-blue);
    transition: all var(--t-fast);
}
#tour-next:active { transform: scale(0.94); }

.fav-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.fav-page-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.fav-page-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-2);
    cursor: pointer;
    transition: all var(--t-fast);
}
.fav-page-dot.on {
    width: 18px;
    border-radius: 3px;
    background: var(--blue);
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.fav-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 11px 12px;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: all var(--t-fast);
    position: relative;
    overflow: hidden;
}
.fav-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--amber);
    border-radius: 3px 0 0 3px;
}
.fav-card:active { transform: scale(0.97); }
.fav-card-name {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.fav-card-market {
    font-size: 0.6875em;
    color: var(--ink-3);
    margin-bottom: 5px;
}
.fav-card-price {
    font-family: var(--font-display);
    font-size: 0.9375em;
    font-weight: 700;
    color: var(--blue);
}
.fav-card-btns {
    display: flex;
    gap: 5px;
    margin-top: 7px;
}
.fav-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.fav-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: all var(--t-fast);
}
.fav-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.fav-nav-btn .material-icons-round { font-size: 1em; }

.fav-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: var(--amber-soft);
    border-radius: var(--r-full);
    font-size: 0.6875em;
    font-weight: 700;
    color: #B97000;
    border: 1px solid rgba(245, 166, 35, 0.25);
}
.fav-count-badge .material-icons-round { font-size: 0.75em; }

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 29, 0.7);
    backdrop-filter: blur(8px);
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.confirm-overlay.open { display: flex; }
.confirm-box {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 24px 20px;
    width: 100%;
    max-width: 320px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.28s var(--spring) both;
    text-align: center;
}
.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--amber-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.confirm-icon .material-icons-round {
    font-size: 1.625em;
    color: var(--amber);
}
.confirm-title {
    font-family: var(--font-display);
    font-size: 1.125em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.confirm-desc {
    font-size: 0.8125em;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 18px;
}
.confirm-actions {
    display: flex;
    gap: 8px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 7px;
    cursor: pointer;
    transition: all var(--t-fast);
}
.share-option:active {
    background: var(--surface-2);
    transform: scale(0.98);
}
.share-ico {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.share-ico .material-icons-round { font-size: 1.25em; }
.share-name {
    font-size: 0.875em;
    font-weight: 600;
    color: var(--ink);
}
.share-desc {
    font-size: 0.75em;
    color: var(--ink-3);
    margin-top: 1px;
}

.share-link-box {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 11px 13px;
    font-size: 0.75em;
    color: var(--ink-2);
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ========== MELHORIAS NO MODAL DE ORÇAMENTO ========== */
.budget-controls { margin-top: 20px; }
.budget-section {
    background: var(--surface-2);
    border-radius: var(--r-xl);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.budget-section-title {
    font-size: 0.875em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.period-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 40px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875em;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.period-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: var(--shadow-blue);
}
.period-btn:hover:not(.active) {
    background: var(--blue-soft);
    border-color: var(--blue-mid);
}
.category-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
}
.category-label {
    font-size: 0.8125em;
    font-weight: 600;
    color: var(--ink);
}
.category-input {
    width: 100px;
    padding: 8px 12px;
    border-radius: 40px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    font-family: var(--font-body);
    font-size: 0.875em;
    text-align: center;
    font-weight: 600;
    color: var(--blue);
}
.save-cats-btn {
    width: 100%;
    margin-top: 4px;
    background: var(--emerald);
    box-shadow: none;
    border-radius: 40px;
}
.save-cats-btn:hover {
    transform: scale(0.98);
    background: var(--emerald-dark);
}
#category-budgets .flex-b {
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 40px;
    margin-bottom: 8px;
}
#category-budgets .inp {
    width: 100px;
    text-align: center;
    border-radius: 40px;
}
.notif-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.notif-pagination .fav-nav-btn {
    width: 32px;
    height: 32px;
}
.tour-back-btn {
    font-size: 0.75em;
    background: var(--surface-2);
    color: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 7px 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all var(--t-fast);
}
.tour-back-btn:active { transform: scale(0.94); }

/* Modal de escolha do tour */
.tour-choice-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.tour-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--t-fast);
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
}
.tour-choice-btn:active { transform: scale(0.98); }
.tour-choice-btn.full:hover { border-color: var(--blue); background: var(--blue-soft); }
.tour-choice-btn.quick:hover { border-color: var(--emerald); background: var(--emerald-soft); }
.tour-choice-btn.none:hover { border-color: var(--rose); background: var(--rose-soft); }
.tour-choice-btn .material-icons-round {
    font-size: 1.75em;
    flex-shrink: 0;
}
.tour-choice-btn.full .material-icons-round { color: var(--blue); }
.tour-choice-btn.quick .material-icons-round { color: var(--emerald); }
.tour-choice-btn.none .material-icons-round { color: var(--rose); }
.choice-title {
    font-size: 0.9375em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}
.choice-desc {
    font-size: 0.6875em;
    color: var(--ink-3);
}

/* Seta do tour */
.tour-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 7001;
}
.tour-arrow-top {
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent var(--surface) transparent;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}
.tour-arrow-bottom {
    border-width: 10px 10px 0 10px;
    border-color: var(--surface) transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.tour-arrow-left {
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--surface) transparent transparent;
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.1));
}
.tour-arrow-right {
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--surface);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.1));
}

.cart-item.promo-item {
    border-left: 3px solid var(--emerald);
    background: var(--emerald-soft);
}
.promo-badge {
    font-size: 0.6875em;
    font-weight: 700;
    margin-top: 8px;
    color: var(--emerald-dark);
    background: var(--surface);
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--r-full);
}

body.high-contrast {
    --ink: #000000;
    --paper: #FFFFFF;
    --blue: #0000FF;
    --emerald: #008000;
    --rose: #FF0000;
    --surface: #FFFFFF;
    --border: #000000;
}
:root { --font-body-scale: 1; }
body { font-size: calc(16px * var(--font-body-scale)); }

.promo-badge.new-discount {
    background: #FFD166;
    color: #3D2000;
    animation: pulse 0.5s ease 2;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.best-price-card {
    background: var(--surface-2);
    border-radius: var(--r-xl);
    padding: 12px 14px;
    border: 1px solid var(--border);
    margin-top: 8px;
}
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125em;
}

.cart-item { padding: 12px 16px; margin-bottom: 10px; }
.cart-item .flex-b { margin-bottom: 4px; }
.cart-item .qty-ctrl { gap: 8px; margin-right: 8px; }
.cart-item .qty-btn { width: 26px; height: 26px; }
.cart-item .qty-btn .material-icons-round { font-size: 0.875em; }
.cart-item .btn-ico { width: 34px; height: 34px; }
.promo-badge { margin-top: 8px; }
#p-cart .flex-c { margin: 16px 0 12px; }

.about-box.modern {
    background: var(--surface-2);
    border-radius: var(--r-xl);
    padding: 20px;
    border: 1px solid var(--border);
}
.about-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.about-logo {
    font-size: 2.5rem;
    background: var(--blue-soft);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xl);
}
.about-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}
.about-title .version {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink-3);
    margin-left: 6px;
}
.about-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.about-welcome {
    background: var(--surface);
    border-left: 4px solid var(--emerald);
    padding: 12px 16px;
    border-radius: var(--r-md);
    margin-bottom: 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}
.about-description {
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.6;
}
.about-features h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-2);
    border: 1px solid var(--border);
}
.feature span { font-size: 1.125rem; }
.about-actions { display: flex; justify-content: center; margin: 16px 0; }
.about-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.6875rem;
    color: var(--ink-3);
    text-align: center;
    line-height: 1.5;
}
.about-welcome-message p {
    margin-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.feedback-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background: var(--surface-2);
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    outline: none;
    resize: vertical;
    transition: all var(--t-fast);
    overflow-y: hidden;
    line-height: 1.5;
}
.feedback-textarea:focus {
    border-color: var(--blue);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--blue-glow);
}
.inp-wrap .feedback-textarea { border-radius: 12px; }

.hist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--t-fast);
}
.hist-item:active {
    background: var(--surface-2);
    transform: scale(0.98);
}
.hist-item .material-icons-round {
    font-size: 1.25rem;
    color: var(--ink-3);
    flex-shrink: 0;
}
.hist-item span:not(.material-icons-round) {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hist-item .btn-ghost {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--rose-soft);
    color: var(--rose);
    border: 1px solid #FAC4D0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hist-item .btn-ghost:hover { background: var(--rose); color: white; }

.btn-xs[class*="fav-btn-"] {
    background: var(--blue-soft) !important;
    color: var(--blue) !important;
    border: 1px solid var(--blue-mid) !important;
}
.btn-xs[class*="fav-btn-"].favorited {
    background: var(--amber-soft) !important;
    color: var(--amber) !important;
    border: 1px solid #FFE0A0 !important;
}
.prod-card { display: block !important; visibility: visible !important; opacity: 1 !important; }
#m-generic-confirm .sheet.centered { animation: scaleIn 0.3s var(--spring) both; }
#active-filter-info .btn-ghost { transition: all 0.2s ease; }
#active-filter-info .btn-ghost:hover { background: var(--rose) !important; color: white !important; }

body.high-contrast .cfg-item.ic-rose,
body.high-contrast .cfg-item[onclick*="clearAll"] {
    border-color: #000000 !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
}
body.high-contrast .cfg-item.ic-rose .cfg-name { color: #000000 !important; }
body.high-contrast .cfg-item.ic-rose .cfg-desc { color: #333333 !important; }
body.high-contrast .cfg-item.ic-rose .material-icons-round { color: #000000 !important; }

.promo-badge.price-up {
    background: #FFE0E0;
    color: #D32F2F;
    border-left: 3px solid #D32F2F;
}
.promo-badge.price-down {
    background: #E0F5E0;
    color: #2E7D32;
    border-left: 3px solid #2E7D32;
}
.btn-xs.btn-move-to-list {
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    border: 1px solid var(--emerald);
}
.btn-xs.btn-move-to-list:hover { background: var(--emerald); color: white; }

.price-change-wrapper { position: relative; display: inline-block; }
.price-change-icon {
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-2);
    background: var(--surface-2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.price-change-icon:hover { background: var(--blue-soft); color: var(--blue); }
.price-change-popup {
    display: none;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.price-change-popup.show { display: flex; }
.price-change-popup .close-popup {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--ink-3);
}
.price-change-popup .close-popup:hover { color: var(--rose); }

.price-change-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
.price-change-indicator.up { background-color: #F44336; box-shadow: 0 0 2px #F44336; }
.price-change-indicator.down { background-color: #4CAF50; box-shadow: 0 0 2px #4CAF50; }
.cart-item .flex-b.mb-2 .text-right { display: flex; align-items: center; gap: 4px; }

.price-change-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.price-change-item:last-child { border-bottom: none; }
.price-change-item .product-name { font-weight: 600; color: var(--ink); }
.price-change-item .price-diff {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.price-change-item .price-diff.up { color: #F44336; }
.price-change-item .price-diff.down { color: #4CAF50; }
.price-change-item .old-price {
    text-decoration: line-through;
    color: var(--ink-3);
    margin-right: 4px;
}

.filter-grid .inp,
.filter-grid select.inp,
.filter-grid .inp-rect,
#filter-box .inp,
#filter-box select.inp,
.inp-rect {
    border-radius: 40px !important;
    background-color: var(--surface-2);
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-grid .inp:hover,
.filter-grid select.inp:hover,
.inp-rect:hover {
    background-color: var(--surface);
    border-color: var(--blue-mid);
    border-radius: 40px !important;
}
.filter-grid .inp:focus,
.filter-grid select.inp:focus,
.inp-rect:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px var(--blue-glow);
    border-radius: 40px !important;
}
select.inp,
.filter-grid select.inp {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%238896B3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 32px;
    border-radius: 40px !important;
}
.filter-grid select.inp,
.filter-grid .inp-rect,
.filter-grid .inp { border-radius: 40px !important; }

.custom-select {
    position: relative;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.875em;
}
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 40px 40px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ink);
    font-weight: 500;
    gap: 8px;
}
.custom-select-trigger.open {
    border-bottom: none;
    border-radius: 40px 40px 0 0;
}
.custom-select-trigger .arrow {
    font-size: 18px;
    transition: transform 0.2s;
    color: var(--ink-3);
}
.custom-select-trigger.open .arrow { transform: rotate(180deg); }
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 40px 40px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999 !important;
    display: none;
    box-shadow: var(--shadow-md);
    margin-top: -1px;
}
.custom-options.show { display: block; }
.custom-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--ink-2);
    font-size: 0.875em;
}
.custom-option:hover { background: var(--blue-soft); color: var(--blue); }
.custom-option.selected {
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 600;
}
@media (max-width: 480px) { .custom-options { max-height: 180px; } }
.hidden-native-select { display: none !important; }

#f-price {
    border-radius: 40px !important;
    background: var(--surface-2) !important;
    border: 1.5px solid var(--border) !important;
    padding: 10px 14px !important;
    font-size: 0.875em !important;
    width: 100%;
    transition: all 0.2s ease;
}
#f-price:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px var(--blue-glow) !important;
    background: var(--surface) !important;
}
.filter-box.open .custom-select { z-index: 100; }
.page-body { overflow: visible !important; }
.pages-wrap { overflow: visible !important; }

.sheet {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    overflow: hidden;
    padding: 22px 18px 0 18px;
}
.sheet > .sheet-title,
.sheet > .flex-b:first-child,
.sheet > div:first-child.sheet-title {
    flex-shrink: 0;
    margin-bottom: 16px;
}
.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    margin-right: -6px;
    padding-right: 6px;
}
#m-compare .sheet,
#m-price-history .sheet,
#m-favorites .sheet,
#m-notifs .sheet,
#m-occasions .sheet {
    display: flex;
    flex-direction: column;
    padding-top: 22px;
}
#m-compare .sheet > :not(.sheet-close):not(.sheet-handle),
#m-price-history .sheet > :not(.sheet-close):not(.sheet-handle),
#m-favorites .sheet > :not(.sheet-close):not(.sheet-handle),
#m-notifs .sheet > :not(.sheet-close):not(.sheet-handle),
#m-occasions .sheet > :not(.sheet-close):not(.sheet-handle) {
    flex-shrink: 0;
}
#m-compare .sheet > #compare-result,
#m-price-history .sheet > #ph-list,
#m-favorites .sheet > .fav-grid,
#m-notifs .sheet > #notifs-list,
#m-occasions .sheet > .occasion-grid {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
}
#compare-result .compare-wrap { overflow-x: auto; max-width: 100%; }
#ph-list { max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.sheet-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    flex-shrink: 0;
}
.overlay.center .sheet { max-height: 90vh; overflow-y: auto; }

#m-tour-choice .sheet { padding-bottom: 36px !important; overflow-y: visible !important; max-height: none !important; }
#m-tour-choice .tour-choice-options { gap: 12px; margin-bottom: 8px; }
#m-tour-choice .tour-choice-btn { margin-bottom: 4px; }
#m-tour-choice .tour-choice-btn:last-child { margin-bottom: 0; }

.margem {
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Círculo de orçamento com CSS puro */
/* Círculo oco para orçamento - versão funcional */
.ring-wrap-css {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.ring-svg {
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: var(--border-2);
    fill: none;
    stroke-width: 12;
}

.ring-fill {
    stroke: var(--blue);
    fill: none;
    stroke-width: 12;
    stroke-dasharray: 0, 377;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease, stroke 0.3s ease;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.ring-pct {
    font-family: var(--font-display);
    font-size: 1.625em;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}

.ring-sub {
    font-size: 0.6875em;
    color: var(--ink-3);
}