/* Kaching v0.3 (Wallet-grade native) — component CSS
   Mirrors prototypes/from-claude-design-v0.3/kaching-mini-app-v0-3-wallet-grade-native/project/styles.css
   Scoped to Mini App context (html[data-tg-webview="1"]) so public web keeps current
   Path A marketing visual. v0.3 was designed for the WebView surface; the chat brief
   explicitly named Telegram Wallet / Stickers Store / Notcoin as the bar to clear. */

/* ============================================================
   STATUS ROW (Home, Earn) — 32px compact pinned-status strip
   ============================================================ */
html[data-tg-webview="1"] .status-row {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--tg-theme-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .radar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-secondary);
  color: var(--tg-theme-hint-color, #8b95a1);
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verdict-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: v03-radar-pulse 1.8s ease-out infinite;
}
@keyframes v03-radar-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-tg-webview="1"] .radar-dot { animation: none; }
}
html[data-tg-webview="1"] .stars-counter {
  font-size: var(--t-secondary);
  color: var(--tg-theme-text-color, #1f2937);
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
html[data-tg-webview="1"] .stars-counter .star { color: var(--verdict-yellow); }

/* ============================================================
   SECTION EYEBROW — 13px uppercase 0.05em
   ============================================================ */
html[data-tg-webview="1"] .v03-section-eyebrow {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tg-theme-hint-color, #8b95a1);
  padding: 16px 16px 8px 16px;
  font-weight: 600;
}
html[data-tg-webview="1"] .v03-section-eyebrow .count {
  font-feature-settings: "tnum";
  color: var(--tg-theme-hint-color, #8b95a1);
  font-weight: 500;
  margin-left: 4px;
}

/* ============================================================
   BONUS LIST + CARD (Home, Search)
   The v0.3 card is fundamentally different from path-a-patterns:
   - Flat list (no gap between cards, share border-bottom)
   - 4px absolute-positioned left verdict band (not border-left)
   - Round operator avatar with gold→emerald gradient
   - Title 14px 2-line clamp
   - EV is ABSOLUTE value (e.g. +12.5), NOT /100 score
   - Bottom row: amount + cashback estimate
   - Reason banner full-width inset with verdict-tint bg
   ============================================================ */
html[data-tg-webview="1"] .bonus-list {
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .bonus-card-v03 {
  position: relative;
  display: flex;
  padding: 12px 16px 0 20px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  /* Override path-a-patterns.css .bonus-card-v2 rules when both classes coexist */
  border-left: 0 !important;
  border-radius: 0 !important;
  margin: 0;
}
html[data-tg-webview="1"] .bonus-card-v03:last-child { border-bottom: 0; }
html[data-tg-webview="1"] .bonus-card-v03 .verdict-band {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
html[data-tg-webview="1"] .bonus-card-v03.v-green  .verdict-band { background: var(--verdict-green); }
html[data-tg-webview="1"] .bonus-card-v03.v-yellow .verdict-band { background: var(--verdict-yellow); }
html[data-tg-webview="1"] .bonus-card-v03.v-red    .verdict-band { background: var(--verdict-red); }

html[data-tg-webview="1"] .bonus-card-v03 .card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 0;
  min-width: 0;
}
html[data-tg-webview="1"] .bonus-card-v03 .row-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
html[data-tg-webview="1"] .bonus-card-v03 .card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html[data-tg-webview="1"] .bonus-card-v03 .v03-title {
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--tg-theme-text-color, #1f2937);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
html[data-tg-webview="1"] .bonus-card-v03 .op-caps {
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-weight: 500;
}
html[data-tg-webview="1"] .bonus-card-v03 .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 64px;
  flex-shrink: 0;
}
html[data-tg-webview="1"] .bonus-card-v03 .ev-abs {
  font-family: var(--ff-stat);
  font-size: 20px;
  font-weight: 600;
  font-feature-settings: "tnum";
  line-height: 1;
}
html[data-tg-webview="1"] .bonus-card-v03.v-green  .ev-abs { color: var(--verdict-green); }
html[data-tg-webview="1"] .bonus-card-v03.v-yellow .ev-abs { color: var(--verdict-yellow); }
html[data-tg-webview="1"] .bonus-card-v03.v-red    .ev-abs { color: var(--verdict-red); }

html[data-tg-webview="1"] .bonus-card-v03 .row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
html[data-tg-webview="1"] .bonus-card-v03 .amount {
  font-size: 13px;
  color: var(--tg-theme-text-color, #1f2937);
  font-feature-settings: "tnum";
  font-weight: 500;
}
html[data-tg-webview="1"] .bonus-card-v03 .cashback {
  font-size: var(--t-secondary);
  color: var(--tg-theme-hint-color, #8b95a1);
  font-feature-settings: "tnum";
  font-family: var(--ff-mono);
}
html[data-tg-webview="1"] .bonus-card-v03 .reason-banner {
  margin: 8px -16px 0 -20px;
  padding: 6px 16px 6px 20px;
  font-size: var(--t-secondary);
  line-height: 1.35;
}
html[data-tg-webview="1"] .bonus-card-v03.v-green .reason-banner {
  background: var(--verdict-green-tint);
  color: var(--verdict-green-strong);
}
html[data-tg-webview="1"] .bonus-card-v03.v-yellow .reason-banner {
  background: var(--verdict-yellow-tint);
  color: var(--verdict-yellow-strong);
}
html[data-tg-webview="1"] .bonus-card-v03.v-red .reason-banner {
  background: var(--verdict-red-tint);
  color: var(--verdict-red-strong);
}
html[data-tg-theme="dark"] .bonus-card-v03.v-green  .reason-banner { color: #6ee7b7; }
html[data-tg-theme="dark"] .bonus-card-v03.v-yellow .reason-banner { color: #fcd34d; }
html[data-tg-theme="dark"] .bonus-card-v03.v-red    .reason-banner { color: #fca5a5; }

/* ============================================================
   OPERATOR AVATAR — round gold→emerald gradient
   ============================================================ */
html[data-tg-webview="1"] .op-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--op-grad);
  color: var(--avatar-text);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
html[data-tg-webview="1"] .op-avatar.lg { width: 48px; height: 48px; font-size: 17px; }
html[data-tg-webview="1"] .op-avatar.xl { width: 56px; height: 56px; font-size: 20px; }
html[data-tg-webview="1"] .op-avatar.sm { width: 28px; height: 28px; font-size: 11px; }

/* ============================================================
   VERDICT PILL — 11px uppercase
   ============================================================ */
html[data-tg-webview="1"] .verdict-pill {
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  line-height: 1.5;
  display: inline-block;
}
html[data-tg-webview="1"] .verdict-pill.v-green  { background: var(--verdict-green-tint);  color: var(--verdict-green-strong); }
html[data-tg-webview="1"] .verdict-pill.v-yellow { background: var(--verdict-yellow-tint); color: var(--verdict-yellow-strong); }
html[data-tg-webview="1"] .verdict-pill.v-red    { background: var(--verdict-red-tint);   color: var(--verdict-red-strong); }

/* ============================================================
   TABBAR (bottom 4-tab) — backdrop-blur upgrade
   Overrides path-a-patterns rules when inside WebView.
   ============================================================ */
html[data-tg-webview="1"] nav.tabbar {
  height: 56px;
  background: var(--bar-bg) !important;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.08));
  padding-bottom: env(safe-area-inset-bottom);
}
html[data-tg-webview="1"] nav.tabbar a {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0 8px;
}
html[data-tg-webview="1"] nav.tabbar a.active,
html[data-tg-webview="1"] nav.tabbar a[aria-current="page"] {
  color: var(--verdict-green);
}

/* ============================================================
   BONUS DETAIL — verdict-header gradient + ev-big 40px
   ============================================================ */
html[data-tg-webview="1"] .v03-verdict-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 18px 0 12px;
  color: #fff;
}
html[data-tg-webview="1"] .v03-verdict-header.v-green  { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
html[data-tg-webview="1"] .v03-verdict-header.v-yellow { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
html[data-tg-webview="1"] .v03-verdict-header.v-red    { background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%); }
html[data-tg-webview="1"] .v03-verdict-header .ev-big {
  font-family: var(--ff-stat);
  font-size: var(--t-stat-xl);
  font-weight: 700;
  line-height: 1;
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .v03-verdict-header .verdict-cap {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 4px;
}

html[data-tg-webview="1"] .v03-title-block {
  padding: 16px 16px 12px;
  background: var(--tg-theme-section-bg-color, #ffffff);
}
html[data-tg-webview="1"] .v03-title-block h1 {
  margin: 0;
  font-size: var(--t-h1);
  font-weight: 700;
  color: var(--tg-theme-text-color, #1f2937);
  line-height: 1.3;
}

/* Reason card — left-border accent + "AI 評語" label */
html[data-tg-webview="1"] .v03-reason-card {
  background: var(--tg-theme-section-bg-color, #ffffff);
  margin: 12px 16px 0;
  border-radius: var(--r-card);
  padding: 12px 14px;
  border-left: 3px solid var(--verdict-green);
  font-size: 13px;
  line-height: 1.5;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-reason-card.v-yellow { border-left-color: var(--verdict-yellow); }
html[data-tg-webview="1"] .v03-reason-card.v-red    { border-left-color: var(--verdict-red); }
html[data-tg-webview="1"] .v03-reason-card .ai-label {
  font-weight: 700;
  color: var(--verdict-green);
  display: block;
  margin-bottom: 4px;
}
html[data-tg-webview="1"] .v03-reason-card.v-yellow .ai-label { color: var(--verdict-yellow-strong); }
html[data-tg-webview="1"] .v03-reason-card.v-red    .ai-label { color: var(--verdict-red-strong); }

/* Stat grid 2x2 */
html[data-tg-webview="1"] .v03-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  margin-top: 16px;
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-stat-grid .cell {
  background: var(--tg-theme-section-bg-color, #ffffff);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-tg-webview="1"] .v03-stat-grid .cell .lbl {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-weight: 600;
}
html[data-tg-webview="1"] .v03-stat-grid .cell .val {
  font-family: var(--ff-stat);
  font-size: var(--t-stat-sm);
  font-weight: 600;
  font-feature-settings: "tnum";
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-stat-grid .cell .val.pos { color: var(--verdict-green); }
html[data-tg-webview="1"] .v03-stat-grid .cell .val.neg { color: var(--verdict-red); }

/* Red trap warning card (Detail only, RED verdict only) */
html[data-tg-webview="1"] .v03-trap-warning {
  background: var(--verdict-red-tint);
  color: var(--verdict-red-strong);
  margin: 8px 16px 0;
  border-radius: var(--r-card);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
}
html[data-tg-webview="1"] .v03-trap-warning .ic { font-size: 18px; line-height: 1; flex-shrink: 0; }
html[data-tg-webview="1"] .v03-trap-warning strong { font-weight: 700; }
html[data-tg-theme="dark"] .v03-trap-warning { color: #fca5a5; }

/* ============================================================
   Wave C — adds for Me / Quest / Search / Operator detail / Subscribe
   Source: prototypes/from-claude-design-v0.3/.../styles.css lines 528+
   Class names use `v03-` prefix where they collide with existing
   path-a-patterns selectors (.section, .set-row, .toggle, etc.).
   ============================================================ */

/* ============================================================
   GENERIC inset grouped section (Telegram iOS-style)
   Renamed to .v03-section to avoid clash with marketing .section.
   ============================================================ */
html[data-tg-webview="1"] .v03-section {
  background: var(--tg-theme-section-bg-color, #ffffff);
  margin-top: 8px;
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-section.padded { padding: 16px; }

/* Accordion-style row (Bonus Detail FAQ / 條款) */
html[data-tg-webview="1"] .v03-accordion-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--tg-theme-text-color, #1f2937);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  cursor: pointer;
  min-height: 44px;
}
html[data-tg-webview="1"] .v03-accordion-row:last-child { border-bottom: 0; }
html[data-tg-webview="1"] .v03-accordion-row .label-l {
  display: flex;
  align-items: center;
  gap: 10px;
}
html[data-tg-webview="1"] .v03-accordion-row .chev {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 18px;
}
html[data-tg-webview="1"] .v03-accordion-row .right-val {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 13px;
}

/* About paragraphs (Operator Detail) */
html[data-tg-webview="1"] .v03-about-block {
  padding: 14px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-about-block p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-about-block p:last-child { margin-bottom: 0; }

/* ============================================================
   QUEST card (Earn screen)
   ============================================================ */
html[data-tg-webview="1"] .v03-quest-card {
  padding: 14px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html[data-tg-webview="1"] .v03-quest-card:last-child { border-bottom: 0; }
html[data-tg-webview="1"] .v03-quest-card .qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
html[data-tg-webview="1"] .v03-quest-card .qtitle {
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--tg-theme-text-color, #1f2937);
  flex: 1;
  line-height: 1.3;
}
html[data-tg-webview="1"] .v03-quest-card .qsub {
  font-size: var(--t-secondary);
  color: var(--tg-theme-hint-color, #8b95a1);
  margin-top: 2px;
}
html[data-tg-webview="1"] .v03-quest-card .reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--verdict-yellow);
  font-feature-settings: "tnum";
  flex-shrink: 0;
}

html[data-tg-webview="1"] .v03-progress-track {
  height: 8px;
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-radius: 999px;
  overflow: hidden;
}
html[data-tg-webview="1"] .v03-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 999px;
  transition: width 0.3s;
}
html[data-tg-webview="1"] .v03-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-feature-settings: "tnum";
}

html[data-tg-webview="1"] .v03-q-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  background: var(--verdict-green);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
html[data-tg-webview="1"] .v03-q-btn.outline {
  background: transparent;
  color: var(--verdict-green);
  border: 1px solid var(--verdict-green);
}
html[data-tg-webview="1"] .v03-q-btn.disabled {
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  color: var(--tg-theme-hint-color, #8b95a1);
  cursor: not-allowed;
}

/* Streak badge (used in Quest status-row variant) */
html[data-tg-webview="1"] .v03-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--verdict-yellow);
  font-feature-settings: "tnum";
  font-weight: 600;
  background: var(--verdict-yellow-tint);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ============================================================
   ME — profile-header + cashback-card + tier-grid + set-row + toggle
   ============================================================ */
html[data-tg-webview="1"] .v03-profile-header {
  padding: 20px 16px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-profile-header .name {
  font-size: 20px;
  font-weight: 700;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-profile-header .sub {
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
}

html[data-tg-webview="1"] .v03-tier-pill {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
html[data-tg-webview="1"] .v03-tier-pill.free {
  background: transparent;
  color: var(--verdict-green);
  box-shadow: inset 0 0 0 1px var(--verdict-green);
}
html[data-tg-webview="1"] .v03-tier-pill.vip {
  background: var(--verdict-green);
  color: #fff;
}
html[data-tg-webview="1"] .v03-tier-pill.svip {
  background: linear-gradient(135deg, #f6c844 0%, #d4a73a 100%);
  color: #3a2a06;
}

html[data-tg-webview="1"] .v03-cashback-card {
  margin: 12px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-radius: var(--r-card-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
html[data-tg-webview="1"] .v03-cashback-card .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-tg-webview="1"] .v03-cashback-card .lbl {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-weight: 600;
}
html[data-tg-webview="1"] .v03-cashback-card .amt {
  font-family: var(--ff-stat);
  font-size: var(--t-stat-lg);
  font-weight: 700;
  font-feature-settings: "tnum";
  line-height: 1;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-cashback-card .stars {
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-family: var(--ff-mono);
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .v03-cashback-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--verdict-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tier 3-col grid */
html[data-tg-webview="1"] .v03-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-tier-col {
  padding: 14px 10px;
  border-right: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html[data-tg-webview="1"] .v03-tier-col:last-child { border-right: 0; }
html[data-tg-webview="1"] .v03-tier-col.current { background: var(--tg-theme-secondary-bg-color, #f3f4f6); }
html[data-tg-webview="1"] .v03-tier-col .t-name {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tg-theme-text-color, #1f2937);
  text-align: center;
}
html[data-tg-webview="1"] .v03-tier-col .t-price {
  font-family: var(--ff-stat);
  font-size: 18px;
  font-weight: 700;
  font-feature-settings: "tnum";
  text-align: center;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-tier-col .t-price .ps {
  font-size: 11px;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-weight: 500;
  display: block;
}
html[data-tg-webview="1"] .v03-tier-col .features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
html[data-tg-webview="1"] .v03-tier-col .feat {
  font-size: 12px;
  color: var(--tg-theme-text-color, #1f2937);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}
html[data-tg-webview="1"] .v03-tier-col .feat.no { color: var(--tg-theme-hint-color, #8b95a1); }
html[data-tg-webview="1"] .v03-tier-col .feat .mark {
  width: 14px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
}
html[data-tg-webview="1"] .v03-tier-col .feat.yes .mark { color: var(--verdict-green); }
html[data-tg-webview="1"] .v03-tier-col .feat.no  .mark { color: var(--tg-theme-hint-color, #8b95a1); }
html[data-tg-webview="1"] .v03-tier-col .upgrade-btn {
  height: 30px;
  border-radius: 6px;
  background: var(--verdict-green);
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
html[data-tg-webview="1"] .v03-tier-col .upgrade-btn.gold {
  background: linear-gradient(135deg, #f6c844 0%, #d4a73a 100%);
  color: #3a2a06;
}
html[data-tg-webview="1"] .v03-tier-col .current-btn {
  height: 30px;
  border-radius: 6px;
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  color: var(--tg-theme-hint-color, #8b95a1);
  border: 0;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

/* Generic settings row 56px tall */
html[data-tg-webview="1"] .v03-set-row {
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
html[data-tg-webview="1"] .v03-set-row:last-child { border-bottom: 0; }
html[data-tg-webview="1"] .v03-set-row .icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
html[data-tg-webview="1"] .v03-set-row .lbl {
  flex: 1;
  font-size: 15px;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-set-row .right-val {
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .v03-set-row .chev {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 16px;
}
html[data-tg-webview="1"] .v03-set-row.destructive .lbl { color: var(--tg-theme-destructive-text-color, #ef4444); }
html[data-tg-webview="1"] .v03-set-row.destructive .icon { color: var(--tg-theme-destructive-text-color, #ef4444); }

/* Toggle switch */
html[data-tg-webview="1"] .v03-toggle {
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
  border: 0;
  cursor: pointer;
  padding: 0;
}
html[data-tg-webview="1"] .v03-toggle.on { background: var(--verdict-green); }
html[data-tg-webview="1"] .v03-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  transition: transform 0.2s;
}
html[data-tg-webview="1"] .v03-toggle.on::after { transform: translateX(20px); }

/* ============================================================
   SEARCH — chip-row + slider-row + select-row
   ============================================================ */
html[data-tg-webview="1"] .v03-chip-row {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--tg-theme-section-bg-color, #ffffff);
}
html[data-tg-webview="1"] .v03-chip-row::-webkit-scrollbar { display: none; }
html[data-tg-webview="1"] .v03-chip-v03 {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tg-theme-secondary-bg-color, #f3f4f6);
  color: var(--tg-theme-text-color, #1f2937);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .v03-chip-v03 .ct {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 12px;
  margin-left: 2px;
}
html[data-tg-webview="1"] .v03-chip-v03.active {
  background: var(--tg-theme-text-color, #1f2937);
  color: var(--tg-theme-bg-color, #ffffff);
}
html[data-tg-webview="1"] .v03-chip-v03.active .ct { color: var(--tg-theme-bg-color, #ffffff); opacity: 0.7; }
html[data-tg-webview="1"] .v03-chip-v03.v-green.active  { background: var(--verdict-green);  color: #fff; }
html[data-tg-webview="1"] .v03-chip-v03.v-yellow.active { background: var(--verdict-yellow); color: #fff; }
html[data-tg-webview="1"] .v03-chip-v03.v-red.active    { background: var(--verdict-red);   color: #fff; }
html[data-tg-webview="1"] .v03-chip-v03.v-green.active .ct,
html[data-tg-webview="1"] .v03-chip-v03.v-yellow.active .ct,
html[data-tg-webview="1"] .v03-chip-v03.v-red.active .ct { color: #fff; opacity: 0.8; }

html[data-tg-webview="1"] .v03-slider-row {
  padding: 14px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-top: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-slider-row .lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
html[data-tg-webview="1"] .v03-slider-row .lbl {
  font-size: 13px;
  color: var(--tg-theme-text-color, #1f2937);
  font-weight: 500;
}
html[data-tg-webview="1"] .v03-slider-row .val {
  font-family: var(--ff-stat);
  font-size: 14px;
  font-weight: 600;
  color: var(--verdict-green);
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .v03-slider-track {
  height: 4px;
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-radius: 999px;
  position: relative;
}
html[data-tg-webview="1"] .v03-slider-fill {
  height: 100%;
  background: var(--verdict-green);
  border-radius: 999px;
}
html[data-tg-webview="1"] .v03-slider-thumb {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--verdict-green);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

html[data-tg-webview="1"] .v03-select-row {
  padding: 14px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-size: 14px;
}
html[data-tg-webview="1"] .v03-select-row .lbl { color: var(--tg-theme-text-color, #1f2937); }
html[data-tg-webview="1"] .v03-select-row .val {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   OPERATOR DETAIL — op-header lg + pros-cons + dl-row + tag-pills + swipe-row
   ============================================================ */
html[data-tg-webview="1"] .v03-op-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-op-header .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
html[data-tg-webview="1"] .v03-op-header .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-op-header .tag {
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-tg-webview="1"] .v03-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-pros-cons .col {
  background: var(--tg-theme-section-bg-color, #ffffff);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html[data-tg-webview="1"] .v03-pros-cons .col h4 {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tg-theme-hint-color, #8b95a1);
  font-weight: 700;
}
html[data-tg-webview="1"] .v03-pros-cons .col .item {
  font-size: 13px;
  color: var(--tg-theme-text-color, #1f2937);
  display: flex;
  gap: 6px;
  line-height: 1.35;
}
html[data-tg-webview="1"] .v03-pros-cons .pro .mark { color: var(--verdict-green); font-weight: 700; }
html[data-tg-webview="1"] .v03-pros-cons .con .mark { color: var(--verdict-red);   font-weight: 700; }

html[data-tg-webview="1"] .v03-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  font-size: 13px;
  min-height: 44px;
  margin: 0;
}
html[data-tg-webview="1"] .v03-dl-row:last-child { border-bottom: 0; }
html[data-tg-webview="1"] .v03-dl-row dt {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
html[data-tg-webview="1"] .v03-dl-row dd {
  margin: 0;
  color: var(--tg-theme-text-color, #1f2937);
  font-weight: 500;
  text-align: right;
}

html[data-tg-webview="1"] .v03-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-tag-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--verdict-green);
  color: var(--verdict-green);
  background: var(--verdict-green-tint);
  font-weight: 500;
}
html[data-tg-webview="1"] .v03-tag-pill.mono {
  font-family: var(--ff-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

html[data-tg-webview="1"] .v03-countries-text {
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
  padding: 12px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  line-height: 1.6;
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}

/* Compact bonus card (operator detail swipe carousel) */
html[data-tg-webview="1"] .v03-compact-card {
  flex: 0 0 240px;
  height: 96px;
  border-radius: 10px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  padding: 10px 12px 10px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
html[data-tg-webview="1"] .v03-compact-card .v-band {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}
html[data-tg-webview="1"] .v03-compact-card.v-green  .v-band { background: var(--verdict-green); }
html[data-tg-webview="1"] .v03-compact-card.v-yellow .v-band { background: var(--verdict-yellow); }
html[data-tg-webview="1"] .v03-compact-card.v-red    .v-band { background: var(--verdict-red); }
html[data-tg-webview="1"] .v03-compact-card .ttl {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tg-theme-text-color, #1f2937);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-tg-webview="1"] .v03-compact-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
html[data-tg-webview="1"] .v03-compact-card .ev-mini {
  font-family: var(--ff-stat);
  font-size: 15px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
html[data-tg-webview="1"] .v03-compact-card.v-green  .ev-mini { color: var(--verdict-green); }
html[data-tg-webview="1"] .v03-compact-card.v-yellow .ev-mini { color: var(--verdict-yellow); }
html[data-tg-webview="1"] .v03-compact-card.v-red    .ev-mini { color: var(--verdict-red); }
html[data-tg-webview="1"] .v03-compact-card .op-mini {
  font-size: 11px;
  color: var(--tg-theme-hint-color, #8b95a1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

html[data-tg-webview="1"] .v03-swipe-row {
  display: flex;
  gap: 10px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--tg-theme-section-bg-color, #ffffff);
}
html[data-tg-webview="1"] .v03-swipe-row::-webkit-scrollbar { display: none; }

/* ============================================================
   SUBSCRIBE — sub-card + featured 推薦 badge + perks + radio-dot + faq-row
   ============================================================ */
html[data-tg-webview="1"] .v03-sub-card {
  margin: 8px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  border-radius: var(--r-card-lg);
  padding: 16px;
  cursor: pointer;
  position: relative;
  display: block;
}
html[data-tg-webview="1"] .v03-sub-card.featured {
  border: 1.5px solid #d4a73a;
}
html[data-tg-webview="1"] .v03-sub-card.featured::before {
  content: attr(data-featured-label);
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #f6c844, #d4a73a);
  color: #3a2a06;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}
html[data-tg-webview="1"] .v03-sub-card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
html[data-tg-webview="1"] .v03-sub-card .t-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tg-theme-text-color, #1f2937);
}
html[data-tg-webview="1"] .v03-sub-card .t-price {
  font-family: var(--ff-stat);
  font-size: 20px;
  font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--verdict-yellow);
}
html[data-tg-webview="1"] .v03-sub-card .t-sub {
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
  margin-bottom: 10px;
}
html[data-tg-webview="1"] .v03-sub-card .perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html[data-tg-webview="1"] .v03-sub-card .perks li {
  font-size: 13px;
  display: flex;
  gap: 8px;
  color: var(--tg-theme-text-color, #1f2937);
  line-height: 1.4;
}
html[data-tg-webview="1"] .v03-sub-card .perks li::before {
  content: "✓";
  color: var(--verdict-green);
  font-weight: 700;
  flex-shrink: 0;
}
html[data-tg-webview="1"] .v03-sub-card.selected {
  outline: 2px solid var(--verdict-green);
}

html[data-tg-webview="1"] .v03-radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html[data-tg-webview="1"] .v03-radio-dot.on {
  border-color: var(--verdict-green);
}
html[data-tg-webview="1"] .v03-radio-dot.on::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--verdict-green);
}

html[data-tg-webview="1"] .v03-faq-row {
  padding: 14px 16px;
  background: var(--tg-theme-section-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, 0.07));
}
html[data-tg-webview="1"] .v03-faq-row:last-child { border-bottom: 0; }
html[data-tg-webview="1"] .v03-faq-row .q {
  font-size: 14px;
  font-weight: 600;
  color: var(--tg-theme-text-color, #1f2937);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
html[data-tg-webview="1"] .v03-faq-row .q .chev {
  color: var(--tg-theme-hint-color, #8b95a1);
  font-size: 16px;
}
html[data-tg-webview="1"] .v03-faq-row .a {
  margin-top: 6px;
  font-size: 13px;
  color: var(--tg-theme-hint-color, #8b95a1);
  line-height: 1.5;
}

/* ============================================================
   18+ / RG footer chip (used inside Mini App body, not Layout footer)
   ============================================================ */
html[data-tg-webview="1"] .v03-rg-footer {
  padding: 12px 16px 16px;
  background: var(--tg-theme-secondary-bg-color, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--tg-theme-hint-color, #8b95a1);
  letter-spacing: 0.02em;
}
html[data-tg-webview="1"] .v03-rg-footer .age {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tg-theme-hint-color, #8b95a1);
  color: var(--tg-theme-bg-color, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}
html[data-tg-webview="1"] .v03-rg-footer a {
  color: var(--tg-theme-link-color, #2481cc);
  text-decoration: none;
}
