:root {
  --ink: #4a2432;
  --ink-soft: #7b5362;
  --mint: #ffe5eb;
  --mint-light: #fff5f7;
  --lime: #ff4f93;
  --coral: #ff87ad;
  --cream: #fff8fa;
  --paper: #ffffff;
  --line: #f0d8df;
  --muted: #8e6b77;
  --shadow: 0 16px 40px rgba(145, 54, 87, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(223,240,108,.25), transparent 30%),
    #f3f5f1;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  padding-bottom: 92px;
  overflow: hidden;
}

.topbar {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,250,246,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23,59,54,.06);
}

.brand { border: 0; background: none; display: flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: .18em; cursor: pointer; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: white; letter-spacing: -.08em; font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .avatar { width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 50%; display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); position: absolute; top: 7px; right: 7px; border: 2px solid white; }
.avatar { background: var(--mint); font-weight: 700; border-color: transparent; }

main { min-height: calc(100vh - 170px); }
.page { padding: 28px clamp(20px, 5vw, 64px) 40px; animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { margin: 0 0 8px; color: #5e7772; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 16px; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.text-button { border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; padding: 6px; }

.hero {
  min-height: 350px;
  padding: clamp(28px, 5vw, 58px);
  background: var(--ink);
  color: white;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -130px; top: -180px; box-shadow: 0 0 0 52px rgba(255,255,255,.035), 0 0 0 104px rgba(255,255,255,.02); }
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero .eyebrow { color: var(--lime); }
.hero p { color: rgba(255,255,255,.7); max-width: 540px; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: var(--ink); }
.button-secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17); }
.button-dark { background: var(--ink); color: white; }
.button-outline { background: white; border: 1px solid var(--line); }
.button-block { width: 100%; }
.hero-product { width: 220px; aspect-ratio: .78; justify-self: center; position: relative; z-index: 1; transform: rotate(8deg); }
.device { position: absolute; inset: 10px 34px; border-radius: 80px 80px 44px 44px; background: linear-gradient(140deg, #f7f1e8 10%, #b9c7bf 50%, #f9f8f0 80%); box-shadow: inset -18px -8px 35px rgba(23,59,54,.2), 20px 30px 40px rgba(0,0,0,.2); border: 4px solid rgba(255,255,255,.7); }
.device::before { content: "in"; position: absolute; top: 55px; left: 50%; transform: translateX(-50%); color: var(--ink); font-weight: 700; font-size: 28px; letter-spacing: -.1em; }
.device::after { content: "SKIN THERAPY"; position: absolute; top: 96px; width: 100%; text-align: center; color: #60716c; font-size: 7px; letter-spacing: .2em; }
.device-glow { position: absolute; width: 120px; height: 120px; background: rgba(223,240,108,.7); filter: blur(42px); border-radius: 50%; left: 50px; bottom: 20px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.stat-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.stat-card strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.stat-card span { font-size: 13px; color: var(--muted); }

.home-status {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow);
}
.home-status h1 { font-size: clamp(32px, 4vw, 48px); max-width: 650px; }
.home-status p { line-height: 1.65; max-width: 620px; }
.status-card { padding: 18px; border-radius: 20px; background: var(--mint-light); border: 1px solid var(--line); }
.status-card strong, .status-card small { display: block; }
.status-card strong { margin: 16px 0 4px; font-size: 24px; letter-spacing: -.04em; }
.status-card small { color: var(--muted); margin-bottom: 18px; }

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.action-card { border: 1px solid var(--line); background: white; padding: 20px; min-height: 160px; border-radius: var(--radius); text-align: left; cursor: pointer; transition: .2s ease; }
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.action-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 20px; font-size: 20px; }
.action-card:nth-child(2) .action-icon { background: #fff0df; }
.action-card:nth-child(3) .action-icon { background: #f5e7fa; }
.action-card:nth-child(4) .action-icon { background: #e7eefb; }
.action-card h3 { margin-bottom: 6px; }
.action-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.campaign { background: #f0e8db; min-height: 260px; border-radius: 26px; padding: 32px; display: grid; grid-template-columns: 1fr .8fr; position: relative; overflow: hidden; }
.campaign-copy { z-index: 2; align-self: center; max-width: 520px; }
.tag { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--coral); color: white; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.campaign-art { position: relative; min-height: 180px; }
.orb { position: absolute; border-radius: 50%; }
.orb.one { width: 160px; height: 160px; background: var(--coral); right: 10px; top: 10px; }
.orb.two { width: 110px; height: 110px; background: var(--lime); right: 115px; top: 80px; mix-blend-mode: multiply; }
.orb.three { width: 70px; height: 70px; background: var(--ink); right: 45px; top: 120px; }

.progress-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.progress-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.progress-step { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); font-weight: 700; }
.progress-step.done { background: var(--ink); color: white; }
.progress-copy strong { display: block; margin-bottom: 3px; }
.progress-copy span { color: var(--muted); font-size: 13px; }
.progress-line { height: 28px; width: 2px; background: var(--line); margin-left: 15px; }
.reward { color: #587064; font-size: 12px; font-weight: 700; }

.benefit-grid, .product-grid, .community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card, .product-card, .community-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-visual { min-height: 170px; padding: 20px; position: relative; display: flex; align-items: flex-end; background: var(--mint); }
.benefit-card:nth-child(2) .card-visual { background: #f6e7dd; }
.benefit-card:nth-child(3) .card-visual { background: #e9e5f5; }
.card-visual .big-number { font-size: 62px; font-weight: 700; line-height: .9; letter-spacing: -.08em; opacity: .85; }
.card-body { padding: 20px; }
.card-body p { min-height: 44px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 18px; }
.pill { background: var(--mint-light); color: #42665e; padding: 6px 9px; border-radius: 999px; font-weight: 700; }

.benefit-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.benefit-summary div {
  padding: 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}
.benefit-summary strong, .benefit-summary span { display: block; }
.benefit-summary strong { font-size: 28px; letter-spacing: -.05em; }
.benefit-summary span { color: var(--muted); font-size: 12px; }
.benefit-focus {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff0f5, #fff);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.benefit-focus h2 { margin: 6px 0 8px; }
.benefit-focus p { max-width: 640px; }
.benefit-list { display: grid; gap: 12px; }
.benefit-list.two-col { grid-template-columns: repeat(2, 1fr); }
.benefit-row {
  padding: 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.benefit-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
}
.benefit-row-copy h3 { margin: 10px 0 5px; }
.benefit-row-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.product-card { padding: 24px; }
.product-image { height: 180px; border-radius: 18px; background: linear-gradient(145deg, #edf5f1, #d5e3dc); display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; }
.mini-device { width: 72px; height: 135px; border-radius: 35px 35px 20px 20px; background: linear-gradient(140deg,#fff,#aebeb6); box-shadow: 12px 16px 25px rgba(23,59,54,.15); transform: rotate(7deg); display: grid; place-items: center; font-weight: 700; font-size: 24px; }
.warranty { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.warranty strong { color: #207e65; }

.community-card { padding: 24px; }
.community-card.featured { grid-column: span 2; background: var(--ink); color: white; }
.community-card.featured p { color: rgba(255,255,255,.65); }
.member-stack { display: flex; margin: 22px 0; }
.member { width: 38px; height: 38px; margin-left: -8px; border: 3px solid white; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); font-size: 11px; font-weight: 700; }
.member:first-child { margin-left: 0; }

.page-title { max-width: 660px; margin: 20px 0 36px; }
.page-title p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.empty-card { padding: 42px; text-align: center; background: white; border: 1px dashed #bcc8c3; border-radius: var(--radius); }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(calc(100% - 28px), 690px); height: 70px; padding: 8px; background: rgba(255,255,255,.93); backdrop-filter: blur(20px); border: 1px solid rgba(23,59,54,.09); border-radius: 23px; box-shadow: 0 14px 38px rgba(23,59,54,.14); display: grid; grid-template-columns: repeat(5,1fr); }
.nav-item { border: 0; background: transparent; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: var(--muted); cursor: pointer; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.nav-item.active { color: white; background: var(--ink); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(10,28,25,.52); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(100%, 520px); max-height: min(760px, 92vh); overflow: auto; background: var(--cream); border-radius: 28px; box-shadow: 0 28px 80px rgba(7,27,23,.3); }
.modal-head { padding: 24px 26px 0; display: flex; justify-content: space-between; gap: 18px; }
.modal-head h2 { margin-bottom: 8px; }
.modal-head p { color: var(--muted); font-size: 13px; }
.close { border: 1px solid var(--line); background: white; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex: 0 0 auto; }
.modal-body { padding: 22px 26px 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.field label em { margin-left: 6px; font-style: normal; color: var(--muted); font-weight: 600; }
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: white; border-radius: 13px; min-height: 48px; padding: 12px 14px; outline: none; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6a8f85; box-shadow: 0 0 0 3px rgba(106,143,133,.12); }
.upload-box { min-height: 120px; border: 1px dashed #99aaa5; border-radius: 15px; background: white; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); cursor: pointer; }
.upload-box strong { display: block; color: var(--ink); margin-bottom: 5px; }
.form-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 14px 0; }
.modal-success { padding: 46px 30px; text-align: center; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); margin: 0 auto 20px; font-size: 28px; }

.manual-finder { padding: clamp(24px,4vw,38px); border-radius: 28px; background: var(--ink); color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.manual-finder-copy p { color: rgba(255,255,255,.65); line-height: 1.7; }
.manual-finder .tag { background: var(--lime); color: var(--ink); }
.manual-fields { padding: 22px; border-radius: 20px; background: white; color: var(--ink); }
.manual-fields .field:last-of-type { margin-bottom: 18px; }
.manual-card { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.manual-cover { aspect-ratio: .72; border-radius: 7px 18px 18px 7px; padding: 24px; color: white; background: linear-gradient(150deg,#315c54,var(--ink)); box-shadow: 10px 14px 26px rgba(23,59,54,.18); display: flex; flex-direction: column; justify-content: space-between; font-size: 25px; font-weight: 700; line-height: .95; letter-spacing: -.05em; }
.manual-cover small { font-size: 11px; letter-spacing: .12em; }
.manual-info p { color: var(--muted); line-height: 1.7; }
.manual-info h3 { margin-top: 17px; font-size: 22px; }
.manual-meta { display: flex; gap: 18px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.manual-help { padding: 24px; border: 1px solid var(--line); background: var(--mint-light); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.manual-help h3, .manual-help p { margin-bottom: 5px; }
.reader-hero { padding: 22px; border-radius: 18px; background: var(--mint-light); display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.reader-hero p:last-child { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.reader-number { font-size: 44px; font-weight: 700; color: #90aaa2; line-height: 1; }
.reader-list { margin: 18px 0; display: grid; }
.reader-list button { padding: 15px 4px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }

.reference-strip {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffe0e9, #fff7fa);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.qr-card {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  box-shadow: var(--shadow);
}
.qr-card i { border-radius: 2px; background: #3d1f2b; }
.qr-card i:nth-child(2n) { background: #ff4f93; }
.reference-strip h3 { margin: 0 0 4px; }
.reference-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.calendar-panel {
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 16px; }
.calendar-day {
  min-height: 48px;
  border-radius: 14px;
  background: var(--mint-light);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.calendar-day.done { background: var(--lime); color: white; border-color: transparent; }
.calendar-day.reward { background: #4a2432; color: white; border-color: transparent; }
.service-hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-hub-item {
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}
.service-hub-item span { width: 38px; height: 38px; border-radius: 13px; background: var(--mint); display: grid; place-items: center; margin-bottom: 14px; }
.service-hub-item strong { display: block; margin-bottom: 5px; }
.service-hub-item small { color: var(--muted); line-height: 1.5; }
.usage-panel {
  margin-top: 34px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a2432, #7b314b);
  color: white;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.usage-panel::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.usage-copy, .usage-stats { position: relative; z-index: 1; }
.usage-copy .eyebrow { color: #ffb8cc; }
.usage-copy h2 { margin-bottom: 10px; }
.usage-copy p { color: rgba(255,255,255,.72); line-height: 1.7; }
.usage-copy .button { margin-right: 8px; margin-top: 8px; }
.usage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.usage-stats div {
  min-height: 118px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.usage-stats strong { font-size: 30px; letter-spacing: -.05em; }
.usage-stats span { color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.35; }
.review-nudge {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.review-nudge h3, .review-nudge p { margin-bottom: 5px; }
.usage-report { display: grid; gap: 20px; }
.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-metrics div { padding: 16px; border-radius: 16px; background: var(--mint-light); border: 1px solid var(--line); }
.report-metrics strong, .report-metrics span { display: block; }
.report-metrics strong { font-size: 28px; letter-spacing: -.04em; }
.report-metrics span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.report-bars { height: 150px; padding: 16px 10px 0; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.report-bars span { display: grid; justify-items: center; gap: 8px; }
.report-bars i { width: 100%; max-width: 24px; border-radius: 8px 8px 3px 3px; background: #ead5dd; display: block; }
.report-bars span.active i { background: var(--lime); }
.report-bars small { color: var(--muted); font-size: 10px; }
.support-layout { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: start; }
.support-form { min-width: 0; }
.upload-box.compact { min-height: 88px; }
.whatsapp-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--mint-light);
  border: 1px solid var(--line);
  text-align: center;
}
.whatsapp-card h3 { margin: 14px 0 7px; }
.whatsapp-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.whatsapp-qr { width: 118px; height: 118px; margin: 0 auto; }
.support-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; align-items: start; }
.support-page-form {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.support-page-form textarea { min-height: 150px; }
.support-side { display: grid; gap: 14px; }
.whatsapp-card.large { padding: 24px; }
.whatsapp-card.large .whatsapp-qr { width: 150px; height: 150px; }
.support-note {
  padding: 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}
.support-note strong, .support-note span { display: block; }
.support-note span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }

#toast-root { position: fixed; z-index: 80; top: 88px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: calc(100vw - 32px); padding: 13px 18px; background: var(--ink); color: white; border-radius: 13px; box-shadow: var(--shadow); animation: toastIn .25s ease both; text-align: center; font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

.app-shell.auth-mode .bottom-nav { display: none; }
.app-shell.auth-mode { padding-bottom: 0; }
.auth-page {
  min-height: calc(100vh - 76px);
  padding: clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) .75fr;
  gap: 22px;
  align-items: stretch;
}
.auth-card, .auth-side {
  border: 1px solid var(--line);
  background: white;
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.auth-card { padding: clamp(24px, 4vw, 44px); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .18em; margin-bottom: 28px; }
.auth-card h1 { max-width: 620px; }
.auth-intro { color: var(--muted); line-height: 1.75; max-width: 640px; }
.warranty-banner {
  margin: 22px 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffedf3, #fff8fa);
  border: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.warranty-banner>span { width: 66px; height: 66px; border-radius: 20px; background: var(--lime); color: white; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.warranty-banner strong, .warranty-banner small { display: block; }
.warranty-banner small { color: var(--muted); margin-top: 4px; line-height: 1.5; }
.auth-form { margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-side {
  padding: 34px;
  background: radial-gradient(circle at 100% 0, rgba(255,79,147,.2), transparent 34%), var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-qr { width: 128px; height: 128px; margin-bottom: 30px; }
.auth-side h2 { color: white; }
.auth-side ol { margin: 8px 0 0; padding-left: 20px; color: rgba(255,255,255,.72); line-height: 2; }
.auth-side li::marker { color: var(--coral); font-weight: 700; }

@media (max-width: 760px) {
  .app-shell { width: 100%; }
  .topbar { height: 66px; padding: 0 18px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .icon-button, .avatar { width: 38px; height: 38px; }
  .page { padding: 18px 16px 30px; }
  .hero { min-height: 500px; grid-template-columns: 1fr; padding: 28px 24px; align-items: start; border-radius: 25px; }
  .hero-copy { z-index: 3; }
  .hero h1 { font-size: 38px; max-width: 320px; }
  .hero p { font-size: 14px; line-height: 1.65; max-width: 300px; }
  .hero-product { position: absolute; width: 158px; height: 226px; right: -12px; bottom: 2px; opacity: .95; }
  .hero-product .device { inset: 10px 30px; }
  .hero-actions { width: 210px; }
  .hero-actions .button { width: 100%; }
  .home-status { grid-template-columns: 1fr; padding: 24px; border-radius: 25px; }
  .home-status h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: repeat(3,1fr); gap: 7px; }
  .stat-card { padding: 14px 10px; border-radius: 15px; }
  .stat-card strong { font-size: 20px; }
  .stat-card span { font-size: 10px; }
  .section { margin-top: 28px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 24px; }
  .action-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .action-card { min-height: 148px; padding: 16px; }
  .action-icon { margin-bottom: 14px; }
  .campaign { min-height: 390px; grid-template-columns: 1fr; padding: 25px; }
  .campaign-copy { align-self: start; }
  .campaign-art { position: absolute; right: 4px; bottom: -10px; width: 230px; }
  .benefit-grid, .product-grid, .community-grid { grid-template-columns: 1fr; }
  .benefit-summary { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .benefit-summary div { padding: 13px 10px; }
  .benefit-focus { align-items: stretch; flex-direction: column; }
  .benefit-focus .button { width: 100%; }
  .benefit-list.two-col { grid-template-columns: 1fr; }
  .benefit-row { grid-template-columns: 1fr; }
  .benefit-row .button { width: 100%; }
  .manual-finder { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .manual-card { grid-template-columns: 105px 1fr; gap: 17px; padding: 17px; align-items: start; }
  .manual-cover { padding: 14px; font-size: 17px; }
  .manual-info h3 { font-size: 18px; }
  .manual-info .button { width: 100%; }
  .manual-help { align-items: stretch; flex-direction: column; }
  .reference-strip { grid-template-columns: auto 1fr; }
  .reference-strip .button { grid-column: 1 / -1; width: 100%; }
  .usage-panel { grid-template-columns: 1fr; padding: 22px; }
  .usage-copy .button { width: 100%; margin-right: 0; }
  .usage-stats { grid-template-columns: 1fr; }
  .usage-stats div { min-height: 82px; }
  .review-nudge { align-items: stretch; flex-direction: column; }
  .review-nudge .button { width: 100%; }
  .report-metrics { grid-template-columns: 1fr; }
  .support-layout { grid-template-columns: 1fr; }
  .support-page-grid { grid-template-columns: 1fr; }
  .support-page-form { padding: 18px; }
  .calendar-grid { gap: 6px; }
  .calendar-day { min-height: 40px; border-radius: 12px; }
  .service-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .community-card.featured { grid-column: span 1; }
  .card-visual { min-height: 150px; }
  .bottom-nav { bottom: 10px; height: 66px; }
  .auth-page { min-height: calc(100vh - 66px); grid-template-columns: 1fr; padding: 18px 16px 30px; }
  .auth-card, .auth-side { border-radius: 25px; }
  .auth-side { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .page-title { margin-bottom: 26px; }
}

@media (min-width: 1181px) {
  .app-shell { box-shadow: 0 0 80px rgba(23,59,54,.08); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
