/* MUSEGLAM — appli (version Google Play et web), style « nacre » validé en septembre 2026.
   Layout: one phone-width column; pearl-aura hero and story rings; product photos on soft wells;
   floating glass tab bar. Single light look on purpose (the brand's nacre world). */

@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #000;
  --text2: #6B6570;
  --text3: #A09AA4;
  --bg: #FBF9FA;
  --well: #F4F0F3;
  --card: #FFFFFF;
  --line: rgba(20, 10, 20, .09);
  --rose: #B76E79;
  --parme: #A690E6;
  --sale: #B3261E;
  --ok: #2F7A48;
  --ok-dot: #34C759;
  --on-ink: #FFFFFF;
  --scrim: rgba(18, 10, 22, .38);
  --glass: rgba(255, 255, 255, .74);
  --glass-strong: rgba(255, 255, 255, .88);
  --glass-edge: rgba(255, 255, 255, .7);
  --shadow-float: 0 14px 34px rgba(46, 20, 58, .14), 0 2px 8px rgba(46, 20, 58, .06);
  --shadow-soft: 0 8px 24px rgba(46, 20, 58, .08);
  --pearl: linear-gradient(118deg, #FAD4E1 0%, #E7DAFB 34%, #D2ECF5 66%, #FBE6CF 100%);
  --ring: conic-gradient(from 210deg, #EF9DB8, #C3ABF3, #93D3E8, #F4C995, #EF9DB8);
  --ring-seen: #E4DEE3;
  --aura:
    radial-gradient(120% 90% at 0% 0%, #FAD4E1 0%, transparent 60%),
    radial-gradient(110% 90% at 100% 20%, #E7DAFB 0%, transparent 62%),
    radial-gradient(120% 100% at 30% 100%, #D2ECF5 0%, transparent 60%),
    linear-gradient(160deg, #F9DDE6, #EADFF8 55%, #DCEBF4);
  --aura-intense:
    radial-gradient(90% 80% at 10% 10%, #F8B7CC 0%, transparent 60%),
    radial-gradient(90% 90% at 95% 35%, #B8A2F2 0%, transparent 62%),
    radial-gradient(100% 100% at 25% 100%, #8DB6EE 0%, transparent 60%),
    linear-gradient(160deg, #E9A6C1, #A690E6 55%, #7B9AE2);
  --r-hero: 32px;
  --r-card: 24px;
  --r-small: 18px;
  --gutter: 20px;
  --col: 480px;
  --tabbar-h: 64px;
  --display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--parme); outline-offset: 3px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.locked { overflow: hidden; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 15px; height: 15px; }
.ico.lg { width: 28px; height: 28px; }

.display { font-family: var(--display); font-stretch: 125%; font-weight: 750; letter-spacing: -.02em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.brand { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Column & screens ---------- */
.app {
  max-width: var(--col);
  margin-inline: auto;
  min-height: 100%;
  position: relative;
}
.screen {
  padding-inline: var(--gutter);
  padding-block: 14px calc(var(--tabbar-h) + 44px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 28px;
  animation: screen-in .28s ease both;
}
.screen.with-cta { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@keyframes screen-in { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: grid; gap: 4px; padding-top: 8px; }
.page-head .back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text2); margin-left: -6px; margin-bottom: 4px; justify-self: start; }
.page-head h1 { font-size: 30px; line-height: 1.05; }
.page-head p { color: var(--text2); font-size: 14px; }
.page-head .see-all { justify-self: start; margin-top: 8px; gap: 4px; }

.section { display: grid; gap: 14px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 19px; line-height: 1.1; text-wrap: balance; }
.link-more { font-size: 13px; font-weight: 600; color: var(--text2); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

/* ---------- Home header ---------- */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; position: relative;
  background: var(--card); border: 1px solid var(--line);
}
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 99px; background: var(--rose); border: 2px solid var(--card); }
.search-pill {
  display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--text3); font-size: 15px; width: 100%; text-align: left;
}

/* ---------- Stories ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.stories { gap: 14px; padding-block: 2px; }
.story { display: grid; justify-items: center; gap: 6px; width: 72px; }
.story .ring { width: 70px; height: 70px; border-radius: 999px; padding: 2.5px; background: var(--ring); }
.story .ring > span { display: block; width: 100%; height: 100%; border-radius: 999px; padding: 2.5px; background: var(--bg); }
.story img, .story .ph-fallback { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; background: var(--well); }
.story .lbl { font-size: 11.5px; font-weight: 500; color: var(--ink); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-hero); background: var(--aura);
  padding: 24px 20px 22px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 8px; align-items: center; min-height: 214px;
}
.hero-copy { display: grid; gap: 10px; align-content: center; position: relative; z-index: 1; }
.hero-copy h2 { font-size: 27px; line-height: 1.02; text-wrap: balance; }
.hero-copy p { font-size: 13.5px; color: #4A4450; }
.hero-art { position: relative; height: 176px; }
.hero-art .tile {
  position: absolute; width: 104px; aspect-ratio: 1; border-radius: 22px; background: var(--card); overflow: hidden;
  box-shadow: var(--shadow-float); border: 3px solid rgba(255, 255, 255, .9);
}
.hero-art .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .t1 { right: 38px; top: 0; transform: rotate(-7deg); }
.hero-art .t2 { right: -6px; top: 58px; transform: rotate(6deg); }
.hero-art .t3 { right: 58px; top: 86px; width: 84px; transform: rotate(-2deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding-inline: 22px;
  border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn.sm { height: 40px; padding-inline: 16px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink[aria-disabled="true"], .btn-ink:disabled { background: #CFC8CE; color: #fff; cursor: not-allowed; }
.btn-soft { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-glass { background: var(--glass-strong); border: 1px solid var(--glass-edge); color: var(--ink); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.card { display: grid; gap: 9px; align-content: start; min-width: 0; position: relative; }
.rail .card { width: 156px; }
.card .ph {
  position: relative; aspect-ratio: 1; border-radius: var(--r-card); background: var(--well); overflow: hidden; display: block;
}
.card .ph img, .gallery img, .line .thumb img, .ph-img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ph-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; background: var(--pearl);
  font-family: var(--display); font-stretch: 125%; font-weight: 750; font-size: 22px; color: rgba(0, 0, 0, .55);
}
.card .meta { display: grid; gap: 3px; min-width: 0; }
.card .name { font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price-row { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 650; }
.card .from { font-size: 11.5px; font-weight: 500; color: var(--text2); }
.strike { color: var(--text3); text-decoration: line-through; font-weight: 500; font-size: .9em; }
.pill-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; height: 24px; padding-inline: 9px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--glass-strong); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill-badge.exclu { background: var(--ink); color: var(--on-ink); }
.pill-badge.out { color: var(--text2); }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  background: var(--glass-strong); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fav-btn.on { color: var(--rose); }
.fav-btn.on .ico { fill: currentColor; }
.fav-btn.pop .ico { animation: heart-pop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.32); } 100% { transform: scale(1); } }

/* ---------- Exclusives band ---------- */
.band { border-radius: var(--r-hero); background: var(--aura-intense); padding: 20px 0 22px; display: grid; gap: 14px; overflow: hidden; }
.band .section-head { padding-inline: 20px; }
.band .section-head h2 { color: #1B0F24; }
.band .link-more { color: #2A1B35; }
.band .rail { margin-inline: 0; padding-inline: 20px; scroll-padding-inline: 20px; }
.band .card .ph { background: rgba(255, 255, 255, .92); }
.band .card .brand { color: #3A2A46; }
.band .card .name, .band .card .price-row { color: #150B1D; }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
}
.brand-chip small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text3); }

/* ---------- Reassurance ---------- */
.trust { display: grid; gap: 2px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); padding: 6px 16px; }
.trust-row { display: flex; align-items: center; gap: 12px; padding-block: 12px; font-size: 13.5px; }
.trust-row + .trust-row { border-top: 1px solid var(--line); }
.trust-row .ico { color: var(--rose); }
.trust-row b { font-weight: 600; }
.trust-row span { color: var(--text2); }

/* ---------- Shop ---------- */
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }
.search-box input {
  width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 46px 0 46px; font-size: 16px; outline: none;
}
.search-box input:focus { border-color: rgba(166, 144, 230, .7); box-shadow: 0 0 0 4px rgba(166, 144, 230, .15); }
.search-box .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; color: var(--text2); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding-inline: 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 13.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip .count { min-width: 18px; height: 18px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 11px; display: grid; place-items: center; padding-inline: 5px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toolbar .results { font-size: 13px; color: var(--text2); }
.toolbar .actions { display: flex; gap: 8px; }
.shop-head { display: grid; gap: 14px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 12px; }
.empty .bubble { width: 72px; height: 72px; border-radius: 999px; background: var(--pearl); display: grid; place-items: center; margin-bottom: 4px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--text2); font-size: 14px; max-width: 30ch; }

/* ---------- Product page ---------- */
.pdp { gap: 22px; padding-top: 0; }
.gallery-wrap { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--well);
  border-radius: 0 0 var(--r-hero) var(--r-hero); aspect-ratio: 1; max-width: 100%;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .18); transition: width .2s ease, background .2s ease; }
.dots i.on { width: 18px; background: var(--ink); }
.pdp-bar {
  position: absolute; left: 0; right: 0; top: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 0; display: flex; justify-content: space-between; pointer-events: none;
}
.pdp-bar > * { pointer-events: auto; }
.pdp-bar .group { display: flex; gap: 8px; }
.round-glass {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--glass-strong);
  border: 1px solid var(--glass-edge); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); box-shadow: var(--shadow-soft);
}
.round-glass.on { color: var(--rose); }
.round-glass.on .ico { fill: currentColor; }
.pdp-info { display: grid; gap: 8px; }
.pdp-info h1 { font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.pdp-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-price .now { font-size: 22px; font-weight: 700; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 550; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--ok-dot); }
.stock.out { color: var(--sale); }
.stock.out::before { background: var(--sale); }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { height: 26px; padding-inline: 10px; border-radius: 999px; background: var(--pearl); display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; }
.tag.ink { background: var(--ink); color: var(--on-ink); }

.opt { display: grid; gap: 10px; }
.opt-label { font-size: 13.5px; color: var(--text2); }
.opt-label b { color: var(--ink); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 550; position: relative;
}
.swatch.text-only { padding-left: 14px; }
.swatch img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; background: var(--well); }
.swatch.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch.na { color: var(--text3); }
.swatch.na span { text-decoration: line-through; }

.ar-card { border-radius: var(--r-card); background: var(--aura); padding: 18px; display: grid; gap: 12px; }
.ar-card .row { display: flex; gap: 12px; align-items: center; }
.ar-card .bubble { width: 46px; height: 46px; border-radius: 999px; background: rgba(255, 255, 255, .8); display: grid; place-items: center; flex: none; }
.ar-card b { display: block; font-size: 15px; }
.ar-card p { font-size: 13px; color: #4A4450; }

.desc { font-size: 14.5px; line-height: 1.6; color: #2A2530; display: grid; gap: 10px; }
.desc h3, .desc h4 { font-size: 15px; font-weight: 650; margin-top: 4px; }
.desc ul, .desc ol { padding-left: 1.15em; display: grid; gap: 6px; }
.desc hr { border: 0; border-top: 1px solid var(--line); }
.desc.clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more-btn { justify-self: start; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.info-list { border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.info-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; width: 100%; text-align: left; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .grow { flex: 1; min-width: 0; }
.info-row .sub { display: block; font-size: 12.5px; color: var(--text2); }
.info-row .chev { color: var(--text3); }

/* Sticky purchase bar on the product page */
.cta-bar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), calc(var(--col) - 24px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; padding: 8px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-float);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.cta-bar .btn { flex: 1; min-width: 0; }
.cta-bar .btn span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Cart ---------- */
.ship-card { border-radius: var(--r-card); background: var(--aura); padding: 16px 18px; display: grid; gap: 10px; }
.ship-card p { font-size: 13.5px; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .4s ease; }
.lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.line .thumb { width: 84px; height: 84px; border-radius: var(--r-small); background: var(--well); overflow: hidden; display: block; }
.line .body { display: grid; gap: 4px; min-width: 0; }
.line .title { font-size: 14px; font-weight: 550; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line .variant { font-size: 12.5px; color: var(--text2); }
.line .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.line .warn { font-size: 12.5px; color: var(--sale); font-weight: 550; }
.stepper { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.stepper button { width: 36px; height: 34px; display: grid; place-items: center; }
.stepper span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.line-price { font-weight: 650; font-size: 14.5px; }
.remove { font-size: 12.5px; color: var(--text2); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.summary { border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 10px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary .row.total { font-size: 16px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); }
.summary .note { font-size: 12.5px; color: var(--text2); }
.after-checkout { border-radius: var(--r-card); background: var(--pearl); padding: 16px 18px; display: grid; gap: 12px; }
.after-checkout p { font-size: 14px; font-weight: 550; }
.after-checkout .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Profile ---------- */
.profile-card { border-radius: var(--r-hero); background: var(--aura); padding: 22px 20px; display: grid; gap: 14px; }
.profile-card .wordmark { font-size: 24px; }
.profile-card p { font-size: 13.5px; color: #4A4450; max-width: 34ch; }
.profile-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.menu { border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.menu-title { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); padding: 4px 4px 0; }
.menu .info-row .ico:first-child { color: #3A3340; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: #DDD6DC; position: relative; flex: none; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform .2s ease; }
.switch.on { background: var(--ok-dot); }
.switch.on::after { transform: translateX(18px); }
.copy-line { display: flex; align-items: center; gap: 8px; }
.copy-line code { font-family: var(--body); font-size: 13px; user-select: all; color: var(--text2); }
.version { text-align: center; font-size: 12px; color: var(--text3); }

/* ---------- Notifications ---------- */
.notif-card { border-radius: var(--r-hero); background: var(--aura); padding: 22px 20px; display: grid; gap: 12px; justify-items: start; }
.notif-card h2 { font-size: 21px; line-height: 1.1; }
.notif-card p { font-size: 14px; color: #3F3845; }
.notif-list { display: grid; gap: 10px; }
.notif { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: var(--r-small); background: var(--card); border: 1px solid var(--line); }
.notif .av { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.notif .av img { width: 100%; height: 100%; object-fit: cover; }
.notif b { font-size: 14px; }
.notif p { font-size: 13.5px; color: var(--text2); }
.notif time { font-size: 12px; color: var(--text3); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - 24px), calc(var(--col) - 24px)); height: var(--tabbar-h); border-radius: 999px; padding: 6px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
}
.tab { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 999px; color: #8E8792; font-size: 10.5px; font-weight: 600; }
.tab.on { color: var(--ink); background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(46, 20, 58, .08); }
.tab.on .ico { stroke-width: 2.1; }
.tab .badge {
  position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 99px;
  background: var(--rose); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%);
  width: min(calc(100% - 24px), 420px); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-float);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  transition: transform .35s cubic-bezier(.2, 1.1, .3, 1), opacity .2s ease, visibility 0s linear .35s; font-size: 14px; font-weight: 550;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s cubic-bezier(.2, 1.1, .3, 1), opacity .2s ease, visibility 0s; }
.toast .thumb { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: var(--well); flex: none; }
.toast .thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.toast .txt { flex: 1; min-width: 0; padding-block: 6px; }
.toast .btn { height: 36px; font-size: 13px; padding-inline: 14px; }

/* ---------- Sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--scrim); animation: fade-in .2s ease both; }
.sheet {
  position: fixed; z-index: 71; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, var(--col));
  max-height: 86%; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px;
  animation: sheet-up .3s cubic-bezier(.2, 1, .3, 1) both;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: #D9D2D8; justify-self: center; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 20px; }
.sheet .group { display: grid; gap: 10px; }
.sheet .group h3 { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.sheet .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.sheet .actions { display: flex; gap: 10px; position: sticky; bottom: 0; padding-top: 6px; background: var(--bg); }
.sheet .actions .btn { flex: 1; }
.radio-list { display: grid; }
.radio { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.radio .ico { color: var(--ink); visibility: hidden; }
.radio.on { font-weight: 650; }
.radio.on .ico { visibility: visible; }
.range-row { display: grid; gap: 6px; }
.range-row .val { font-weight: 650; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; width: 100%; text-align: left; }
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Welcome ---------- */
.welcome {
  position: fixed; inset: 0; z-index: 90; background: var(--aura-intense); display: grid; align-content: space-between;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden;
}
.welcome .inner { max-width: 420px; width: 100%; margin-inline: auto; display: grid; gap: 14px; }
.welcome .wordmark { font-size: 30px; color: #150B1D; }
.welcome .art { position: relative; height: 290px; max-width: 420px; width: 100%; margin-inline: auto; }
.welcome .art .tile { position: absolute; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(40, 10, 60, .25); border: 4px solid rgba(255, 255, 255, .92); }
.welcome .art .tile img { width: 100%; height: 100%; object-fit: cover; }
.welcome .art .a { width: 46%; aspect-ratio: 1; left: 4%; top: 6%; transform: rotate(-8deg); }
.welcome .art .b { width: 42%; aspect-ratio: 1; right: 4%; top: 0; transform: rotate(7deg); }
.welcome .art .c { width: 44%; aspect-ratio: 1; left: 30%; top: 40%; transform: rotate(-1deg); }
.welcome h1 { font-size: 34px; line-height: 1.02; color: #150B1D; text-wrap: balance; }
.welcome p { font-size: 15px; color: #2C1F36; max-width: 34ch; }

/* ---------- Skeletons ---------- */
.sk { border-radius: var(--r-card); background: linear-gradient(90deg, #F1ECF0 0%, #F8F4F7 40%, #F1ECF0 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 12px; border-radius: 99px; }

/* ---------- Offline / notice ---------- */
.notice { border-radius: var(--r-small); background: var(--card); border: 1px solid var(--line); padding: 12px 14px; font-size: 13px; color: var(--text2); display: flex; gap: 10px; align-items: center; }

@media (min-width: 560px) {
  body { background: var(--bg); }
  .app { box-shadow: 0 0 0 1px var(--line); background: var(--bg); }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Promo ---------- */
.promo {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: var(--r-card);
  background: var(--aura-intense); color: #150B1D; box-shadow: var(--shadow-soft);
}
.promo-pct {
  flex: none; width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  font-size: 19px; letter-spacing: -.03em; color: #150B1D;
}
.promo-pct > span { white-space: nowrap; }
.promo-pct small { font-size: 12px; margin-left: 2px; }
.promo-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.promo-txt b { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.promo-txt small { font-size: 12px; color: #2C1F36; line-height: 1.35; }
.pill-badge.promo { background: var(--sale); color: #fff; }
.red-dot { position: absolute; top: 12px; left: 12px; z-index: 1; width: 14px; height: 14px; border-radius: 99px; background: #E00; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.red-dot.inline { position: static; flex: none; }
.promo-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-small); background: var(--pearl); font-size: 13.5px; }
.promo-line .pill-badge { position: static; flex: none; }
.promo-line.off { background: var(--well); color: var(--text2); }
.summary .row.save { color: var(--sale); font-weight: 600; }
.line-price .strike { font-size: 12.5px; margin-right: 4px; }
