/* =========================================================
   Dodi Gold — by MsDuha
   ========================================================= */

:root {
  --blush: #fff3f7;
  --blush-2: #ffe4ee;
  --pink: #ff9cc2;
  --rose: #f2649b;
  --deep: #c21f66;
  --lav: #efe2ff;
  --peach: #ffe9d9;
  --gold: #d9a441;
  --gold-2: #f6d98b;
  --gold-3: #b8862b;
  --ink: #5b2742;
  --ink-soft: #8a5a73;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(242, 100, 155, 0.18);

  --best: #22b893;
  --good: #6cc56f;
  --medium: #f5b52e;
  --expensive: #ff8357;
  --super: #ff3d6e;

  --radius: 26px;
  --shadow: 0 18px 40px -18px rgba(194, 31, 102, 0.35), 0 4px 12px -4px rgba(194, 31, 102, 0.12);
  --font-display: "Fredoka", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --font-body: "Quicksand", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

html[lang="ar"] {
  --font-display: "Baloo Bhaijaan 2", "Fredoka", system-ui, sans-serif;
  --font-body: "Baloo Bhaijaan 2", "Quicksand", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e6 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, var(--lav) 0%, transparent 60%),
    radial-gradient(900px 700px at 50% 110%, var(--peach) 0%, transparent 60%),
    var(--blush);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.5;
}

button, input { font: inherit; color: inherit; }
a { color: var(--deep); }

.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- Shimmer gold text ---------- */
.shimmer {
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold) 25%, #fff4cc 45%, var(--gold) 60%, var(--rose) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ---------- Floating decorations ---------- */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.decor span {
  position: absolute;
  bottom: -60px;
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 6px rgba(194, 31, 102, .15));
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translateY(-55vh) translateX(var(--drift, 30px)) rotate(var(--spin, 40deg)); }
  90%  { opacity: .7; }
  100% { transform: translateY(-115vh) translateX(0) rotate(calc(var(--spin, 40deg) * 2)); opacity: 0; }
}
.sparkle-burst {
  position: fixed; pointer-events: none; z-index: 60;
  font-size: 16px;
  animation: burst .8s ease-out forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  to   { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(90deg); opacity: 0; }
}

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(255, 228, 238, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .5s ease both;
}
.splash[hidden] { display: none; }
.splash.closing { animation: fadeOut .5s ease forwards; }
.splash-card {
  width: min(440px, 100%);
  text-align: center;
  padding: 36px 28px 30px;
  border-radius: 32px;
  background: linear-gradient(160deg, #fff 0%, #fff6fa 60%, #fff3dc 100%);
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, .6);
  animation: popIn .7s var(--ease-bounce) both .1s;
}
.splash-cake { font-size: 64px; animation: wiggle 2.2s ease-in-out infinite; display: inline-block; }
.splash-script { font-family: var(--font-script); font-size: 42px; color: var(--rose); margin: 6px 0 -6px; line-height: 1.1; }
.splash-title { font-family: var(--font-display); font-size: 54px; margin: 0 0 8px; font-weight: 700; }
.splash-text { color: var(--ink-soft); margin: 0 0 22px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes popIn { from { transform: scale(.6) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.06); } }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, calc((100vw - 1080px) / 2));
  background: rgba(255, 243, 247, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo { width: 46px; height: 46px; animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.brand-name b { color: var(--gold); font-weight: 700; }
.brand-sub { font-family: var(--font-script); font-size: 19px; color: var(--rose); margin-top: 2px; }
.top-actions { display: flex; gap: 8px; }
.chip-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  height: 40px; min-width: 40px; padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--deep);
  transition: transform .25s var(--ease-bounce), box-shadow .25s, background .25s;
}
.chip-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 18px -8px rgba(194, 31, 102, .45); }
.chip-btn:active { transform: scale(.94); }
.lang-btn { font-family: "Baloo Bhaijaan 2", var(--font-body); }
html[lang="ar"] .lang-btn { font-family: "Quicksand", sans-serif; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { margin: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 4px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 auto 24px; max-width: 560px; }

.card {
  background: var(--card);
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease-bounce); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 36px; }
.ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd1e2, #ffe9c7);
  color: var(--deep);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px -8px rgba(194, 31, 102, .4);
  animation: popIn .8s var(--ease-bounce) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.08;
  margin: 18px 0 26px;
  font-weight: 700;
}
.hero-title span { display: block; }

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin: -6px 0 26px;
  text-decoration: none;
  font-size: 20px; padding: 14px 34px;
  animation: popIn .8s var(--ease-bounce) both .2s, ctaGlow 2.6s ease-in-out infinite 1s;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 14px 28px -12px rgba(194, 31, 102, .75), 0 0 0 0 rgba(255, 156, 194, .55); }
  50%      { box-shadow: 0 14px 28px -12px rgba(194, 31, 102, .75), 0 0 0 12px rgba(255, 156, 194, 0); }
}
.calc-note {
  max-width: 720px; margin: 18px auto 0;
  text-align: center; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 12px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .6); border: 1.5px dashed var(--pink);
}
#calc { scroll-margin-top: 80px; }

.live-card { max-width: 620px; margin: 0 auto; padding: 22px 24px 18px; position: relative; overflow: hidden; }
.live-card::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(246, 217, 139, .55), transparent 70%);
  pointer-events: none;
}
.live-head { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--medium); box-shadow: 0 0 0 0 rgba(34, 184, 147, .6); flex: none; }
.live-dot.on { background: var(--best); animation: pulse 1.8s infinite; }
.live-dot.off { background: var(--super); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 184, 147, .55); } 70% { box-shadow: 0 0 0 10px rgba(34, 184, 147, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 184, 147, 0); } }
.live-label { flex: 1; text-align: start; }
.refresh {
  position: relative; width: 38px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; flex: none;
}
.refresh svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.refresh .ring-bg { fill: #fff; stroke: var(--blush-2); stroke-width: 3; }
.refresh .ring { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.refresh-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: var(--deep); font-weight: 700; transition: transform .6s var(--ease-bounce); }
.refresh:hover .refresh-icon { transform: rotate(180deg); }
.refresh.spinning .refresh-icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.live-main { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0 16px; flex-wrap: wrap; }
.live-k {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  padding: 8px 14px; border-radius: 16px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 8px 18px -8px rgba(184, 134, 43, .8);
}
.live-price { font-family: var(--font-display); font-size: clamp(42px, 9vw, 64px); font-weight: 700; line-height: 1; }
.live-price small { font-size: 16px; color: var(--ink-soft); font-weight: 600; }
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.live-stats > div {
  background: rgba(255, 255, 255, .75); border-radius: 16px; padding: 10px 8px;
  display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-soft);
}
.live-stats b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }

.flash-up { animation: flashUp 1.2s ease; }
.flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { color: var(--best); transform: translateY(-3px); } 100% { color: inherit; transform: none; } }
@keyframes flashDown { 0% { color: var(--super); transform: translateY(3px); } 100% { color: inherit; transform: none; } }

/* ---------- Karat grid ---------- */
.karat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.k-card {
  position: relative;
  padding: 20px 14px 16px;
  text-align: center;
  overflow: hidden;
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.k-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 46px -20px rgba(194, 31, 102, .5); }
.k-card::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-20deg);
  animation: sheen 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes sheen { 0%, 70% { left: -120%; } 100% { left: 160%; } }
.k-badge {
  display: inline-grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  background: radial-gradient(circle at 30% 25%, #fff6d6 0%, var(--gold-2) 25%, var(--gold) 60%, var(--gold-3) 100%);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .12), 0 10px 20px -10px rgba(184, 134, 43, .9);
  text-shadow: 0 1px 2px rgba(120, 80, 10, .4);
}
.k-card.popular .k-badge { background: radial-gradient(circle at 30% 25%, #fff 0%, #ffc4da 25%, var(--rose) 70%, var(--deep) 100%); }
.k-tag {
  position: absolute; top: 10px; inset-inline-end: 10px;
  font-size: 11px; font-weight: 700; color: var(--deep);
  background: var(--blush-2); padding: 2px 8px; border-radius: 999px;
}
.k-purity { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.k-price { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.k-unit { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.k-vat { margin-top: 10px; font-size: 12px; color: var(--ink-soft); border-top: 1.5px dashed var(--line); padding-top: 8px; }
.k-vat b { color: var(--ink); }

/* ---------- Market ---------- */
.market-card { padding: 10px; overflow: hidden; }
.tv-ticker { min-height: 46px; border-radius: 18px; overflow: hidden; }
.tv-chart { height: 440px; margin-top: 8px; border-radius: 18px; overflow: hidden; }
.tv-fallback { display: grid; place-items: center; height: 100%; color: var(--ink-soft); text-align: center; padding: 20px; }

/* ---------- Tabs ---------- */
.tabs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 460px; margin: 0 auto 18px;
  padding: 6px;
  background: rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.tab {
  position: relative; z-index: 1;
  border: 0; background: none; cursor: pointer;
  padding: 12px 10px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink-soft);
  transition: color .3s;
}
.tab.active { color: #fff; }
.tab > span[aria-hidden] { margin-inline-end: 6px; }
.btn:focus-visible, .chip-btn:focus-visible, .tab:focus-visible, .k-chip:focus-visible, .mini-link:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn:focus:not(:focus-visible) { outline: none; }
.tab-pill {
  position: absolute; top: 6px; bottom: 6px; inset-inline-start: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 8px 18px -8px rgba(194, 31, 102, .7);
  transition: transform .45s var(--ease-bounce);
}
.tabs[data-active="pro"] .tab-pill { transform: translateX(100%); }
html[dir="rtl"] .tabs[data-active="pro"] .tab-pill { transform: translateX(-100%); }

.panel { max-width: 720px; margin: 0 auto; padding: 26px; animation: panelIn .5s var(--ease-bounce); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.input-wrap {
  display: flex; align-items: center;
  background: #fff;
  border: 2px solid var(--blush-2);
  border-radius: 18px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.input-wrap:focus-within { border-color: var(--pink); box-shadow: 0 0 0 5px rgba(255, 156, 194, .25); transform: translateY(-1px); }
.input-wrap input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  padding: 14px 16px;
  font-size: 18px; font-weight: 600;
  direction: ltr; text-align: start;
}
html[dir="rtl"] .input-wrap input { text-align: right; }
.input-wrap input::placeholder { color: #d9b3c4; font-weight: 500; }
.unit { padding: 0 16px; font-weight: 700; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.input-wrap.invalid { border-color: var(--super); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.karat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip {
  border: 2px solid var(--blush-2); background: #fff; cursor: pointer;
  border-radius: 999px; padding: 9px 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-soft);
  transition: all .3s var(--ease-bounce);
}
.k-chip:hover { border-color: var(--pink); transform: translateY(-2px); }
.k-chip[aria-checked="true"] {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  box-shadow: 0 8px 16px -8px rgba(184, 134, 43, .9);
  transform: scale(1.06);
}

.toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-soft); user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui {
  width: 44px; height: 26px; border-radius: 999px; background: #f1d6e1; position: relative; flex: none;
  transition: background .3s;
}
.toggle-ui::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .35s var(--ease-bounce);
}
.toggle input:checked + .toggle-ui { background: linear-gradient(135deg, var(--pink), var(--rose)); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
html[dir="rtl"] .toggle input:checked + .toggle-ui::after { transform: translateX(-18px); }
.toggle input:focus-visible + .toggle-ui { box-shadow: 0 0 0 4px rgba(255, 156, 194, .4); }

.btn {
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: #fff;
  transition: transform .3s var(--ease-bounce), box-shadow .3s, filter .3s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-pink { background: linear-gradient(135deg, var(--pink), var(--rose) 60%, var(--deep)); box-shadow: 0 14px 28px -12px rgba(194, 31, 102, .75); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); box-shadow: 0 14px 28px -12px rgba(184, 134, 43, .9); text-shadow: 0 1px 2px rgba(120, 80, 10, .35); }
.btn-block { width: 100%; }
.form-error { color: var(--super); font-weight: 700; min-height: 1.5em; margin: 0 0 8px; font-size: 14px; }

.mini-link {
  border: 0; background: var(--blush-2); color: var(--deep); cursor: pointer;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700;
  transition: transform .25s var(--ease-bounce);
}
.mini-link:hover { transform: scale(1.06); }
.mini-link.is-live { background: linear-gradient(135deg, #c9f3e6, #e5fbf3); color: #16876b; }
.clear-link { margin-top: 4px; }

/* ---------- Result ---------- */
.result { margin-top: 22px; animation: popIn .6s var(--ease-bounce) both; }
.verdict {
  --c: var(--medium);
  text-align: center;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #fff), #fff);
  border: 2px solid color-mix(in srgb, var(--c) 40%, #fff);
}
.verdict-emoji { font-size: 46px; display: inline-block; animation: wiggle 2s ease-in-out infinite; }
.verdict-title { font-family: var(--font-display); font-size: clamp(28px, 6vw, 38px); font-weight: 700; color: var(--c); margin: 2px 0 2px; line-height: 1.1; }
.verdict-line { margin: 6px auto 0; max-width: 520px; font-weight: 600; }

.gauge { width: min(300px, 100%); margin: 6px auto 0; display: block; overflow: visible; }
.gauge .needle { transform-origin: 150px 150px; transition: transform 1.4s var(--ease-bounce); }
.gauge text { font-family: var(--font-display); font-size: 13px; font-weight: 700; fill: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat {
  background: #fff; border-radius: 18px; padding: 12px;
  border: 1.5px solid var(--blush-2);
  animation: popIn .5s var(--ease-bounce) both;
}
.stat span { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.stat b { font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat.hi { background: linear-gradient(135deg, #fff, #fff1f6); border-color: var(--pink); }

.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.target { border-radius: 18px; padding: 12px 14px; font-size: 14px; font-weight: 600; background: #fff; border: 1.5px dashed var(--line); }
.target b { font-family: var(--font-display); font-size: 18px; display: block; }
.target.t-best b { color: var(--best); }
.target.t-good b { color: var(--good); }

details.why {
  margin-top: 14px; border-radius: 20px; background: rgba(255, 255, 255, .8); border: 1.5px solid var(--blush-2);
  overflow: hidden;
}
details.why summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; color: var(--deep);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
details.why summary::-webkit-details-marker { display: none; }
details.why summary::after { content: "＋"; transition: transform .35s var(--ease-bounce); }
details.why[open] summary::after { transform: rotate(135deg); }
.why-body { padding: 0 18px 16px; font-size: 14.5px; }
.why-body ol { padding-inline-start: 20px; margin: 6px 0 12px; }
.why-body li { margin-bottom: 6px; }
.scale { display: grid; gap: 6px; margin: 10px 0; }
.scale-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }
.scale-row i { margin-inline-end: 4px; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.scale-row.current { background: var(--blush-2); outline: 2px solid var(--pink); }
.scale-row .rng { margin-inline-start: auto; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip { background: #fff8e6; border-radius: 14px; padding: 10px 12px; font-size: 13.5px; margin-top: 8px; }

/* ---------- Pro ---------- */
.pro-hint { margin: 0 0 18px; color: var(--ink-soft); font-weight: 600; text-align: center; }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pro-grid .span-2 { grid-column: 1 / -1; }
.toggle-field { display: flex; align-items: flex-end; padding-bottom: 14px; }
.math { margin-top: 18px; }
.math-empty { text-align: center; color: var(--ink-soft); padding: 22px; border: 2px dashed var(--blush-2); border-radius: 20px; font-weight: 600; }
.math-head { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 0 10px; text-align: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 8px; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  background: #fff; border-radius: 18px; padding: 12px 14px;
  border: 1.5px solid var(--blush-2);
  animation: stepIn .45s var(--ease-bounce) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes stepIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .steps li { animation-name: stepInRtl; }
@keyframes stepInRtl { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.steps li::before {
  content: counter(s);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff; font-weight: 700; font-size: 14px;
}
.step-label { font-weight: 700; font-size: 14px; }
.step-formula { font-size: 13px; color: var(--ink-soft); direction: ltr; unicode-bidi: isolate; display: block; text-align: start; font-variant-numeric: tabular-nums; word-break: break-word; }
html[dir="rtl"] .step-formula { text-align: right; }
.step-value { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--deep); }
.steps li.final { background: linear-gradient(135deg, #fff7e0, #fff); border-color: var(--gold-2); }
.steps li.final .step-value { color: var(--gold-3); font-size: 22px; }
.advice { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--blush-2); }
.advice .targets { margin-top: 0; }
.target small { display: block; margin-top: 2px; color: var(--ink-soft); font-weight: 600; }
.advice-msg {
  margin: 12px 0 0; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #fff1f6, #fff8e6);
  font-weight: 700; text-align: center;
}
.tips-box { margin-top: 14px; }
.tips-box li { margin-bottom: 9px; line-height: 1.6; }
.math-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; text-align: center; padding: 30px 16px 40px; color: var(--ink-soft); }
.footer-love { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.footer-love a { text-decoration: none; font-weight: 700; }
.beat { display: inline-block; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
.footer-note { max-width: 620px; margin: 0 auto; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .karat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { margin: 48px 0; }
  .live-stats { grid-template-columns: repeat(2, 1fr); }
  .karat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .k-price { font-size: 22px; }
  .panel { padding: 18px 16px; }
  .pro-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .targets { grid-template-columns: 1fr; }
  .tv-chart { height: 360px; }
  .brand-name { font-size: 21px; }
  .logo { width: 40px; height: 40px; }
  .tab { font-size: 15px; padding: 11px 6px; }
}

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