/* ========================================================================== 
   MYTIZI UI SYSTEM · 2026-07
   A single reusable design system for the landing page, plan catalog,
   redemption, contact, tutorial and subscription panels.
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --page: #f5f7fb;
  --page-strong: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --surface-3: #f1f5fa;
  --surface-inverse: #0c1424;
  --text: #101828;
  --text-strong: #07111f;
  --muted: #66758a;
  --muted-2: #8c99aa;
  --line: #e1e7ef;
  --line-strong: #cfd8e5;

  --primary: #1769ff;
  --primary-strong: #0b52cc;
  --primary-soft: #eaf2ff;
  --primary-soft-2: #dbe9ff;
  --success: #08a879;
  --success-soft: #e8fbf4;
  --warning: #b7791f;
  --warning-soft: #fff7dd;
  --danger: #dc3b45;
  --danger-soft: #fff0f1;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .035);
  --shadow-md: 0 18px 50px rgba(30, 49, 79, .09);
  --shadow-lg: 0 34px 80px rgba(16, 24, 40, .16);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 76px;
  --tabbar-h: 66px;
  --content-w: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #070b12;
  --page-strong: #0a101a;
  --surface: #0e1623;
  --surface-2: #111b2a;
  --surface-3: #172235;
  --surface-inverse: #f7f9fc;
  --text: #eef3fb;
  --text-strong: #ffffff;
  --muted: #96a5b9;
  --muted-2: #718096;
  --line: #223047;
  --line-strong: #34435c;

  --primary: #6da7ff;
  --primary-strong: #8fbbff;
  --primary-soft: rgba(66, 133, 244, .15);
  --primary-soft-2: rgba(66, 133, 244, .24);
  --success: #3bd5a6;
  --success-soft: rgba(16, 185, 129, .12);
  --warning: #f2c66d;
  --warning-soft: rgba(245, 184, 66, .12);
  --danger: #ff7d86;
  --danger-soft: rgba(255, 99, 109, .12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 28px rgba(0, 0, 0, .18);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, .28);
  --shadow-lg: 0 36px 90px rgba(0, 0, 0, .42);
}

/* 2. Reset and global primitives ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--page); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(23, 105, 255, .11), transparent 32rem),
    radial-gradient(circle at 92% 5%, rgba(18, 202, 171, .07), transparent 28rem),
    var(--page);
  font: 400 15px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(112, 128, 152, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 128, 152, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

html[data-theme="dark"] body::before { opacity: .18; }
body.kb-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
html.is-routing body { opacity: .62; transition: opacity .14s ease; }

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--text-strong); line-height: 1.18; letter-spacing: -.025em; }
ul, ol { margin: 0; }
::selection { color: #fff; background: var(--primary); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 36%, transparent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.indent2 { text-indent: 2em; }
.ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
body > svg[width="0"] { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* 3. App frame, header and navigation ------------------------------------- */
.app { min-height: 100vh; }
.appbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.appbar-inner {
  width: min(100% - 40px, var(--content-w));
  height: 100%;
  margin: 0 auto;
}

.brand-row { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; font-weight: 800; }
.logo {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand .title { max-width: 245px; overflow: hidden; color: var(--text-strong); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); color: var(--text); }
.icon-btn[aria-pressed="true"] { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); color: var(--primary); background: var(--primary-soft); }

.tabbar {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 950;
  width: min(620px, calc(100vw - 560px));
  transform: translateX(-50%);
}
.tabbar > .row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tab-indicator {
  position: absolute;
  inset: 5px auto 5px 5px;
  z-index: 0;
  border-radius: 10px;
  background: var(--primary-soft);
  opacity: 0;
  transition: width .26s var(--ease), transform .26s var(--ease), opacity .2s ease;
}
.tab-indicator.on { opacity: 1; }
.tab-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: color .2s ease, transform .2s var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] { color: var(--primary); }
.tab-btn.is-press, .tab-btn:active { transform: scale(.97); }

main {
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 20px 0;
}
.panel-stack { width: min(100%, var(--content-w)); margin: 0 auto; }
.panel-stack > .panel { display: none; }
.panel-stack > .panel.is-current { display: block; animation: panel-in .34s var(--ease) both; }
.panel-stack > .panel.just { animation: panel-pop .28s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes panel-pop { 50% { transform: translateY(2px); } }

.site-footer {
  width: min(100%, var(--content-w));
  margin: 0 auto;
  padding: 54px 20px 124px;
  color: var(--muted-2);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.site-footer-sub { margin-top: 6px; letter-spacing: .18em; }

/* 4. Reusable cards, headings and controls -------------------------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--shadow-sm);
}
.card > .inner, .inner { padding: 26px; }
.stack { display: grid; gap: 18px; }
.zone-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-head h3, .panel h3 { font-size: clamp(22px, 2.2vw, 30px); }
.panel-intro { max-width: 780px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font: 760 11px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px var(--success-soft); }
.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.buy-btn, .ghost-btn, .btn-chip, .video-switch-btn, .video-back-btn, .redeem-confirm-btn, .sub-btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}
.buy-btn, .redeem-confirm-btn {
  padding: 0 18px;
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 22%, transparent);
}
.buy-btn:hover, .redeem-confirm-btn:hover { transform: translateY(-2px); border-color: var(--primary-strong); background: var(--primary-strong); box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 26%, transparent); }
.buy-btn:active, .redeem-confirm-btn:active, .buy-btn.is-pressed { transform: translateY(0) scale(.985); }
.ghost-btn, .btn-chip, .video-switch-btn, .video-back-btn {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.ghost-btn:hover, .btn-chip:hover, .video-switch-btn:hover, .video-back-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); color: var(--primary); background: var(--primary-soft); }
.secondary-btn { color: var(--text); }
.is-support-loading { opacity: .66; cursor: wait; }
.copy-demo-code {
  appearance: none;
  padding: .12em .46em;
  border: 0;
  border-radius: .5em;
  color: var(--primary);
  background: var(--primary-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.copy-demo-code.copied { color: var(--success); background: var(--success-soft); }

/* 5. Home page ------------------------------------------------------------- */
.home-notice-wrapper { display: flex; justify-content: center; margin-bottom: 18px; }
.home-notice {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  border: 1px solid color-mix(in srgb, var(--warning) 24%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--warning) 82%, var(--text));
  background: var(--warning-soft);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.home-notice .notice-icon { font-size: 15px; }
.home-notice .notice-text { margin: 0; line-height: 1.45; }
.notice-link { color: var(--danger); font-weight: 800; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.notice-close { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; font-size: 19px; cursor: pointer; opacity: .58; }
.notice-close:hover { background: color-mix(in srgb, currentColor 8%, transparent); opacity: 1; }

.hero {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -280px;
  left: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent), transparent 67%);
  pointer-events: none;
}
.hero::after {
  content: "01 / GLOBAL NETWORK";
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: var(--muted-2);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .16em;
}
.hero > .inner { padding: clamp(26px, 4vw, 52px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); align-items: center; gap: clamp(30px, 5vw, 72px); }
.hero-copy { min-width: 0; }
.hero-copy::before { content: "GLOBAL ACCESS · SINCE 2005"; display: inline-flex; margin-bottom: 18px; color: var(--primary); font: 760 11px/1 var(--font-mono); letter-spacing: .16em; }
.hero-copy h1 { max-width: 720px; font-size: clamp(38px, 5.2vw, 68px); font-weight: 860; letter-spacing: -.055em; }
.hero-copy > p { max-width: 630px; margin: 20px 0 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions .buy-btn, .hero-actions .ghost-btn { min-width: 132px; flex: 1 1 132px; }
.hero-actions :is(.buy-btn, .ghost-btn),
.contact-actions :is(.buy-btn, .ghost-btn) {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 760;
}
.trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.trust-item { min-height: 92px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); }
.trust-label { display: block; margin-bottom: 7px; color: var(--muted-2); font: 700 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.trust-value { display: block; color: var(--text); font-size: 13px; line-height: 1.55; }
.inline-contact-link, .inline-service-link { color: var(--primary); font-weight: 800; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.inline-contact-link.is-pressed, .inline-service-link.is-pressed { opacity: .55; }
.hero-visual { position: relative; min-width: 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); border-radius: 24px; background: linear-gradient(145deg, #081329, #0e2147); box-shadow: 0 28px 64px rgba(4, 17, 39, .22); transform: rotate(.5deg); }
.hero-visual::before { content: "LIVE · ENCRYPTED · MULTI-DEVICE"; display: block; padding: 2px 4px 12px; color: #8fb7ff; font: 700 9px/1 var(--font-mono); letter-spacing: .14em; }
.hero-banner-img { width: 100%; aspect-ratio: 3 / 2; border-radius: 15px; object-fit: cover; }

.scene-card, .starter-card, .zone-two, .faq-preview-card { margin-top: 18px; }
.scene-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.scene-item { min-height: 118px; padding: 20px; background: var(--surface); }
.scene-item strong { display: block; margin-bottom: 7px; color: var(--text-strong); font-size: 15px; }
.scene-item span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.scene-item::before { content: "●"; display: block; margin-bottom: 12px; color: var(--primary); font-size: 10px; }

.starter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.starter-item { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.starter-no { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font: 800 12px/1 var(--font-mono); }
.starter-item strong { display: block; margin: 4px 0 8px; color: var(--text-strong); }
.starter-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.zone-two > .card, .zone-two .stack > .card { height: 100%; }
.zone-two h3 { margin-bottom: 12px; }
.zone-two p { color: var(--muted); line-height: 1.85; }
.faq-preview-card details { border-top: 1px solid var(--line); }
.faq-preview-card details:first-child { border-top: 0; }
.faq-preview-card summary { position: relative; padding: 18px 42px 18px 0; color: var(--text); font-weight: 720; cursor: pointer; list-style: none; }
.faq-preview-card summary::-webkit-details-marker { display: none; }
.faq-preview-card summary::after { content: "+"; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 8px; color: var(--primary); text-align: center; font: 500 19px/24px var(--font-sans); }
.faq-preview-card details[open] summary::after { content: "−"; }
.faq-preview-card details p { margin: -4px 42px 18px 0; color: var(--muted); }

/* 6. Plan catalog ---------------------------------------------------------- */
.catalog-shell { display: grid; gap: 18px; }
.catalog-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 6px 2px 2px; }
.catalog-title-row { display: flex; align-items: center; gap: 12px; }
.catalog-title-row h3 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.05em; }
.catalog-count { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font: 760 12px/1 var(--font-mono); white-space: nowrap; }
.catalog-header .panel-intro { margin: 10px 0 0; }
.catalog-support-btn { flex: 0 0 auto; }

.plan-scene-card { overflow: hidden; }
.plan-scene-card > .inner { padding: 0; }
.plan-scene-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-scene-item { position: relative; min-height: 128px; padding: 24px; border-left: 1px solid var(--line); }
.plan-scene-item:first-child { border-left: 0; }
.plan-scene-item::before { content: "0" counter(plan-scene); counter-increment: plan-scene; display: block; margin-bottom: 13px; color: var(--primary); font: 800 11px/1 var(--font-mono); }
.plan-scene-strip { counter-reset: plan-scene; }
.plan-scene-item strong { display: block; margin-bottom: 6px; color: var(--text-strong); font-size: 17px; }
.plan-scene-item span { color: var(--muted); font-size: 13px; line-height: 1.65; }

.plan-pick-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.plan-pick-item { min-height: 78px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan-pick-label { display: block; margin-bottom: 6px; color: var(--primary); font: 800 11px/1 var(--font-mono); letter-spacing: .07em; }
.plan-pick-value { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-sm); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-filter { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 760; cursor: pointer; transition: .2s var(--ease); }
.catalog-filter:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); color: var(--primary); }
.catalog-filter.is-active, .catalog-filter[aria-pressed="true"] { border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 20%, transparent); }
.catalog-toolbar-note { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }

.plan-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-context-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.plan-context-code { margin-top: 2px; color: var(--primary); font: 800 10px/1 var(--font-mono); letter-spacing: .12em; }
.plan-context-item strong { display: block; margin-bottom: 4px; color: var(--text-strong); font-size: 13px; }
.plan-context-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.plan-context-meta { display: inline-block; margin-top: 8px; color: var(--muted-2); font: 700 10px/1.3 var(--font-mono); letter-spacing: .04em; }

.plans-grid { display: grid; gap: 18px; }
.plan-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { min-width: 0; overflow: hidden; border-radius: 18px; transition: transform .24s var(--ease), border-color .24s ease, box-shadow .24s ease; }
.plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); box-shadow: var(--shadow-md); }
.plan-featured { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent), var(--shadow-sm); }

.plan > .inner { display: flex; min-height: 100%; flex-direction: column; padding: 22px; }
.plan.is-plan-hidden { display: none; }

.plan-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plan-ident { display: flex; min-width: 0; align-items: center; gap: 12px; }
.plan-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--primary); background: var(--surface-3); }
.plan-icon .ic { width: 21px; height: 21px; }
.plan-title-wrap { min-width: 0; }
.plan-title { overflow: hidden; font-size: 19px; font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
.plan-title-wrap > span { display: block; margin-top: 5px; overflow: hidden; color: var(--muted-2); font: 650 11px/1.2 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.plan-status { display: inline-flex; min-height: 28px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--success) 22%, var(--line)); border-radius: 999px; color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 780; white-space: nowrap; }
.plan-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }
.plan-status-special { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 24%, var(--line)); background: var(--danger-soft); }

.plan-tag-row { display: flex; min-height: 27px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.badge { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 800; }
.badge-featured { color: #fff; border-color: var(--primary); background: var(--primary); }
.plan-code { color: var(--muted-2); font: 700 10px/1 var(--font-mono); letter-spacing: .08em; }

.plan-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; margin-top: 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-spec { min-width: 0; }
.plan-spec span { display: block; margin-bottom: 5px; color: var(--muted-2); font: 650 10px/1 var(--font-mono); letter-spacing: .06em; }
.plan-spec strong { display: block; overflow-wrap: anywhere; color: var(--text-strong); font-size: 13px; line-height: 1.45; }

.bullets { padding: 0; list-style: none; }
.plan .bullets { display: grid; gap: 8px; margin-top: 17px; }
.plan .bullets li { position: relative; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.plan .bullets li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; border: 2px solid var(--primary); border-radius: 2px; transform: rotate(45deg) translateY(-50%); }
.plan-note { margin: 16px 0 0; color: var(--text); font-size: 12.5px; font-weight: 720; }
.purchase-tip { margin: 7px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.plan-footer { display: grid; gap: 14px; margin-top: auto; padding-top: 20px; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; min-width: 0; color: var(--primary); }
.price-currency { margin-right: 3px; font-size: 18px; font-weight: 850; }
.price-main { font-size: 31px; font-weight: 880; line-height: 1; letter-spacing: -.045em; }
.price-unit { margin-left: 6px; color: var(--muted-2); font-size: 11px; font-weight: 650; }
.buy-row { display: flex; }
.buy-row .buy-btn { width: 100%; min-height: 42px; font-size: 13px; }

.plan-wide { grid-column: 1 / -1; }
.plan-vip-upgrade { border-color: color-mix(in srgb, var(--danger) 42%, var(--line)); background: linear-gradient(130deg, color-mix(in srgb, var(--danger-soft) 48%, var(--surface)), var(--surface) 52%); }
.plan-vip-upgrade .plan-icon, .plan-vip-upgrade .badge { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, var(--line)); background: var(--danger-soft); }
.plan-vip-upgrade .plan-code { color: var(--danger); }
.plan-wide-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.plan-wide-body .plan-spec-grid { height: fit-content; }
.plan-wide-copy { padding-top: 4px; }
.plan-wide .plan-footer { grid-template-columns: minmax(0, 1fr) minmax(230px, 310px); align-items: end; }
.price-text { display: grid; gap: 7px; }
.price-text .price-main { color: var(--danger); font-size: clamp(22px, 2.6vw, 32px); }
.price-text .price-unit { margin: 0; }

.plan-bottom-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); background: var(--surface-2); font-size: 13px; }
.plan-bottom-note .ghost-btn { flex: 0 0 auto; }

/* 7. Redeem and contact panels -------------------------------------------- */
#panel-redeem > .card, #panel-contact > .card { width: min(100%, 1000px); margin: 0 auto; box-shadow: var(--shadow-md); }
#panel-redeem > .card > .inner, #panel-contact > .card > .inner { padding: clamp(24px, 4vw, 42px); }
.row { display: flex; align-items: center; gap: 12px; }
.field { display: flex; min-width: 0; min-height: 52px; flex: 1 1 auto; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted-2); background: var(--surface-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.field:focus-within { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.field input::placeholder { color: var(--muted-2); }
.redeem-confirm-btn { min-height: 52px; border: 0; }
.redeem-tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.redeem-tip-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.redeem-tip-label { display: block; margin-bottom: 7px; color: var(--primary); font: 750 10px/1 var(--font-mono); letter-spacing: .1em; }
.redeem-tip-text { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.contact-action { width: 100%; min-width: 0; }
.contact-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.contact-service-card { min-height: 142px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.contact-service-label { display: block; margin-bottom: 10px; color: var(--primary); font: 760 10px/1 var(--font-mono); letter-spacing: .1em; }
.contact-service-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 8. Tutorial center ------------------------------------------------------- */
.tutorial-page-card { overflow: hidden; box-shadow: var(--shadow-md); }
.tutorial-page-card > .inner { padding: clamp(24px, 4vw, 42px); }
.tutorial-panel { display: none; margin-top: 24px; }
.tutorial-panel.is-current { display: block; animation: panel-in .28s var(--ease); }
.tutorial-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tutorial-card { height: 100%; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.tutorial-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); box-shadow: var(--shadow-sm); }
.tutorial-card .inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 22px;
  text-align: center;
}
.tutorial-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.tutorial-icon img { width: 32px; height: 32px; object-fit: contain; transition: filter .2s ease; }
.tutorial-title { width: 100%; margin-top: 18px; font-size: 21px; }
.tutorial-desc { width: 100%; margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.tutorial-actions { width: 100%; margin-top: auto; }
html[data-theme="dark"] .tutorial-icon img { filter: invert(1) brightness(1.08); }
.tutorial-actions .btn-chip { width: 100%; }
.tutorial-notice { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.tutorial-notice > h4 { margin-bottom: 15px; font-size: 17px; }
.tutorial-notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tutorial-notice-item { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.tutorial-notice-item h5 { margin-bottom: 10px; color: var(--primary); font: 800 11px/1 var(--font-mono); letter-spacing: .08em; }
.tutorial-notice-item ul { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.video-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.video-panel-head h3 { font-size: clamp(24px, 3vw, 34px); }
.video-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.video-summary { display: grid; gap: 12px; }
.video-switch-box, .video-download-box, .video-back-box, .video-text-box { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.video-summary h4 { margin-bottom: 11px; color: var(--muted); font: 760 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.video-switch-list, .video-download-actions { display: grid; gap: 8px; }
.video-switch-btn, .video-download-actions .btn-chip, .video-back-btn { width: 100%; min-height: 40px; font-size: 12px; }
.video-switch-btn.is-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.video-text-steps { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.video-player-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #050912; box-shadow: var(--shadow-md); }
.video-player { width: 100%; aspect-ratio: 16 / 9; background: #050912; object-fit: contain; }
.video-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, rgba(4, 10, 22, .74), rgba(6, 24, 55, .48)); cursor: pointer; transition: opacity .2s ease; }
.video-player-card.playing .video-overlay { opacity: 0; pointer-events: none; }
.video-play-stack { display: grid; justify-items: center; gap: 10px; text-align: center; }
.video-play-btn { position: relative; width: 62px; height: 62px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(255, 255, 255, .13); backdrop-filter: blur(10px); }
.video-play-btn::after { content: ""; position: absolute; left: 26px; top: 20px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid #fff; }
.video-overlay-title { font-size: 16px; font-weight: 800; }
.video-overlay-desc { color: rgba(255, 255, 255, .7); font-size: 12px; }

/* 9. Subscription panel ---------------------------------------------------- */
#panel-subscribe > .card { box-shadow: var(--shadow-md); }
#panel-subscribe > .card > .inner { padding: clamp(24px, 4vw, 42px); }
.sub-zone { grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr); margin-top: 22px; }
.sub-zone > .card { min-width: 0; box-shadow: none; }
.sub-zone > .card > .inner { padding: 22px; }
.sub-upgrade-tip { display: none; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 13px 14px; border: 1px dashed color-mix(in srgb, var(--danger) 38%, var(--line)); border-radius: 12px; background: var(--danger-soft); }
.sub-upgrade-icon { line-height: 1.4; }
.sub-upgrade-text { display: grid; gap: 4px; }
.sub-upgrade-text strong { color: var(--danger); font-size: 13px; }
.sub-upgrade-text span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.sub-qr-box { display: grid; min-height: 330px; place-items: center; margin-top: 16px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface-2); }
.sub-qr-stage { display: grid; place-items: center; text-align: center; }
.sub-qr-loading { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; }
.sub-qr-img { width: min(100%, 280px); aspect-ratio: 1; border: 12px solid #fff; border-radius: 13px; box-shadow: var(--shadow-sm); }
.sub-steps, .sub-tip-list { margin-top: 18px; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.sub-section + .sub-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.sub-action-flex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.sub-action-flex .sub-btn:last-child { grid-column: auto; }
.sub-btn { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); color: var(--text); background: var(--surface-2); }
.sub-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); color: var(--primary); background: var(--primary-soft); }
.sub-btn.is-copied { color: var(--success); border-color: color-mix(in srgb, var(--success) 36%, var(--line)); background: var(--success-soft); }
.sub-cta-icon { display: grid; width: 28px; height: 28px; place-items: center; }
.sub-cta-img { width: 24px; height: 24px; object-fit: contain; transition: filter .2s ease; }
html[data-theme="dark"] .sub-cta-img { filter: invert(1) brightness(1.08); }
.sub-cta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-url-row { margin-top: 14px; }
.sub-url-box { display: flex; min-height: 50px; align-items: center; gap: 11px; padding: 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface-2); }
.sub-url-box > span { min-width: 0; overflow: hidden; font: 600 11px/1.4 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.sub-url-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sub-order { margin: 12px 0 0; font-size: 12px; }

/* 10. Sheet, toast and announcement --------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 3000; display: none; pointer-events: none; }
.sheet[aria-hidden="false"] { display: block; pointer-events: auto; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(4, 10, 20, .52); backdrop-filter: blur(5px); }
.sheet > .panel { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px)); overflow: hidden; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.sheet .hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet .bd { max-height: min(66vh, 620px); overflow: auto; padding: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 32px); z-index: 5000; max-width: min(90vw, 480px); transform: translate(-50%, 12px); padding: 11px 15px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 12px; color: #fff; background: rgba(12, 20, 36, .92); box-shadow: var(--shadow-lg); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast[aria-hidden="false"] { opacity: 1; transform: translate(-50%, 0); }

.notice-mask { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 10, 20, .54); backdrop-filter: blur(8px); visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.notice-mask.show { visibility: visible; opacity: 1; }
.notice-card { width: min(100%, 480px); overflow: hidden; transform: translateY(18px) scale(.98); border-radius: 20px; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.notice-mask.show .notice-card { transform: none; }
.notice-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.notice-header h3 { font-size: 19px; }
.close-notice-btn { position: relative; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.close-notice-btn::before, .close-notice-btn::after { content: ""; position: absolute; left: 9px; top: 15px; width: 13px; height: 2px; border-radius: 2px; background: var(--muted); }
.close-notice-btn::before { transform: rotate(45deg); }
.close-notice-btn::after { transform: rotate(-45deg); }
.notice-body { max-height: 60vh; overflow: auto; padding: 20px 22px; }
.notice-title { margin: 0 0 10px; color: var(--text-strong); font-size: 16px; font-weight: 800; }
.notice-card .notice-text { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.75; text-indent: 2em; }
.notice-time { margin: 6px 0 0; color: var(--muted-2); font: 650 11px/1.4 var(--font-mono); text-align: right; }
.notice-footer { padding: 0 22px 22px; }
.notice-confirm-btn { width: 100%; }

/* 11. Responsive layouts --------------------------------------------------- */
@media (max-width: 1180px) {
  .tabbar { width: min(560px, calc(100vw - 430px)); }
  .tab-btn { gap: 5px; padding-inline: 6px; font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); gap: 34px; }
  .plan-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-wide { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .appbar-inner { width: min(100% - 24px, var(--content-w)); }
  .brand .title { max-width: 180px; font-size: 13px; }
  .logo { width: 34px; height: 34px; flex-basis: 34px; }
  .actions .icon-btn { width: 35px; height: 35px; }

  .tabbar {
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    transform: none;
  }
  .tabbar > .row { padding: 5px; border-radius: 18px; box-shadow: 0 16px 45px rgba(15, 23, 42, .18); }
  .tab-btn { min-height: 52px; flex-direction: column; gap: 3px; padding: 4px 2px; font-size: 10px; line-height: 1; }
  .tab-btn .ic { width: 18px; height: 18px; }
  .tab-indicator { inset-block: 5px; border-radius: 13px; }

  main { padding: calc(var(--header-h) + 26px) 14px 0; }
  .site-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 680px); transform: none; }
  .scene-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-item { min-height: 112px; }
  .zone-two { grid-template-columns: 1fr; }

  .catalog-header { align-items: flex-start; }
  .plan-scene-strip { grid-template-columns: 1fr; }
  .plan-scene-item { min-height: 0; border-top: 1px solid var(--line); border-left: 0; }
  .plan-scene-item:first-child { border-top: 0; }
  .plan-pick-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-toolbar-note { text-align: left; }
  .plan-wide-body { grid-template-columns: 1fr; gap: 2px; }
  .plan-wide .plan-footer { grid-template-columns: 1fr; }

  .contact-service-grid { grid-template-columns: 1fr; }
  .contact-service-card { min-height: 0; }
  .tutorial-cards, .tutorial-notice-grid { grid-template-columns: 1fr; }
  .video-layout { grid-template-columns: 1fr; }
  .video-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-text-box { grid-column: 1 / -1; }
  .sub-zone { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .brand .title { max-width: 150px; }
  .actions { gap: 5px; }
  .card { border-radius: 17px; }
  .card > .inner, .inner { padding: 20px; }

  .home-notice { width: 100%; align-items: flex-start; border-radius: 14px; }
  .home-notice .notice-close { margin-left: auto; }
  .hero { border-radius: 22px; }
  .hero > .inner { padding: 24px 20px 30px; }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-copy > p { margin-top: 14px; font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-actions .buy-btn, .hero-actions .ghost-btn { width: 100%; min-width: 0; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { min-height: 0; }
  .hero::after { display: none; }
  .scene-strip, .starter-grid { grid-template-columns: 1fr; }
  .scene-item { min-height: 0; }
  .section-head { align-items: flex-start; flex-direction: column; }

  .catalog-header { flex-direction: column; gap: 16px; }
  .catalog-support-btn { width: 100%; }
  .catalog-title-row { align-items: flex-end; }
  .catalog-title-row h3 { font-size: 36px; }
  .plan-pick-strip, .plan-context-grid, .plan-catalog-grid { grid-template-columns: 1fr; }
  .plan-wide { grid-column: auto; }
  .catalog-filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filter { width: 100%; }
  .plan > .inner { padding: 19px; }
  .plan-title { font-size: 18px; }
  .plan-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .plan-status { min-height: 26px; padding-inline: 8px; font-size: 10px; }
  .plan-spec-grid { gap: 12px; }
  .plan-footer { gap: 12px; }
  .plan-bottom-note { align-items: stretch; flex-direction: column; }
  .plan-bottom-note .ghost-btn { width: 100%; }

  .row { align-items: stretch; flex-direction: column; }
  .field, .redeem-confirm-btn { width: 100%; }
  .redeem-tip-grid { grid-template-columns: 1fr; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-action { width: 100%; min-width: 0; }

  .video-summary { grid-template-columns: 1fr; }
  .video-text-box { grid-column: auto; }
  .video-switch-list, .video-download-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-action-flex, .sub-url-actions { grid-template-columns: 1fr; }
  .sub-action-flex .sub-btn:last-child { grid-column: auto; }
  .sub-qr-box { min-height: 280px; }
}

@media (max-width: 430px) {
  .appbar-inner { width: calc(100% - 18px); }
  .brand { gap: 8px; }
  .brand .title { max-width: 118px; }
  .actions .icon-btn { width: 33px; height: 33px; }
  main { padding-inline: 10px; }
  .tabbar { left: 5px; right: 5px; bottom: max(5px, env(safe-area-inset-bottom)); }
  .tabbar > .row { gap: 0; padding: 4px; }
  .tab-btn { font-size: 9px; }
  .tab-btn .ic { width: 17px; height: 17px; }
  .hero-actions { grid-template-columns: 1fr; }
  .plan-head-row { gap: 8px; }
  .plan-title-wrap > span { max-width: 145px; }
  .price-main { font-size: 29px; }
  .video-switch-list, .video-download-actions { grid-template-columns: 1fr; }
}

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