/* ==========================================================================
   Design Tokens - Apple Minimal Aesthetic
   ========================================================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Pure Neutral Canvas & Surfaces */
  --bg-canvas: #fafafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-subtle-hover: #ebebee;

  /* Apple Typography Scale */
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #a1a1a6;

  /* Brand Theme Colors (Sampled from Logo: #fe9fa7) */
  --color-primary: #fe9fa7;
  --color-primary-hover: #fd7883;
  --color-primary-subtle: rgba(254, 159, 167, 0.14);
  --color-primary-glow: rgba(254, 159, 167, 0.35);

  /* High-contrast Action Button Pink */
  --btn-pink-bg: #f0536c;
  --btn-pink-hover: #e03b55;
  --btn-pink-shadow: rgba(240, 83, 108, 0.38);
  --btn-pink-shadow-hover: rgba(240, 83, 108, 0.52);

  --color-blue: #fe9fa7;
  --color-blue-hover: #fd7883;
  --color-blue-subtle: rgba(254, 159, 167, 0.14);
  --color-green: #34c759;
  --color-green-subtle: rgba(52, 199, 89, 0.12);
  --color-amber: #ff9500;

  /* Precision Borders & Dividers */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-focus: #fe9fa7;

  /* Apple Style Smooth Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-floating: 0 12px 32px rgba(254, 159, 167, 0.15), 0 2px 6px rgba(0, 0, 0, 0.03);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 980px;

  --max-width: 640px;
}

/* ==========================================================================
   Reset & Global Typography
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

@media (min-width: 768px) {
  .site-container {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.03);
  }
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 252, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--color-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  background-color: var(--color-green-subtle);
  border-radius: var(--radius-pill);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-green);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.main-content {
  padding: 1.5rem 1.25rem 4rem;
  flex: 1;
}

.hero-section {
  text-align: center;
  padding: 2.2rem 0.5rem 2.8rem;
}

.hero-logo-box {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(254, 159, 167, 0.35);
  border: 3px solid #ffffff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-img:hover {
  transform: scale(1.06) rotate(3deg);
}

.category-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    gap: 0.85rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 1.4rem;
  background-color: var(--btn-pink-bg);
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--btn-pink-shadow);
}

.btn-primary:hover {
  background-color: var(--btn-pink-hover);
  box-shadow: 0 6px 20px var(--btn-pink-shadow-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 1.4rem;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-subtle-hover);
  border-color: var(--border-strong);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.spec-pill svg {
  color: var(--color-blue);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  margin-bottom: 1.4rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Playground Sandbox Section
   ========================================================================== */
.playground-section {
  margin-bottom: 3.5rem;
}

.device-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0.5rem;
}

.metric-item {
  text-align: center;
  padding: 0.25rem 0.5rem;
}

.metric-item:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.metric-value.highlight {
  color: var(--color-blue);
}

.canvas-stage {
  height: 340px;
  position: relative;
  background-color: var(--bg-subtle);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.canvas-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  pointer-events: none;
}

.canvas-instruction {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  pointer-events: none;
}

.instruction-title {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.instruction-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Draggable Target Point */
.target-point {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-point:active {
  cursor: grabbing;
}

.target-crosshair {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-blue);
  background-color: rgba(0, 113, 227, 0.12);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.25);
  transition: transform 0.15s ease;
}

.target-badge {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-blue);
}

.target-point.pulsing .target-crosshair {
  animation: targetPulse 0.35s ease-out;
}

@keyframes targetPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.35); background-color: rgba(0, 113, 227, 0.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating Capsule Bar (80% Native Glass Replication) */
.capsule-bar {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-floating);
  z-index: 30;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.capsule-btn:hover {
  background-color: var(--bg-subtle);
}

.capsule-btn:active {
  transform: scale(0.92);
}

.capsule-btn.play-action {
  background-color: var(--btn-pink-bg);
  color: white;
}

.capsule-btn.play-action:hover {
  background-color: var(--btn-pink-hover);
}

.capsule-btn.play-action.running {
  background-color: #ef4444;
}

.capsule-bar.collapsed {
  padding: 0.35rem 0.45rem;
}

.capsule-bar.collapsed .capsule-btn:not(.play-action):not(.toggle-action) {
  display: none;
}

.capsule-bar.collapsed .toggle-action svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   Bento Grid Features
   ========================================================================== */
.features-section {
  margin-bottom: 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 520px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-blue-subtle);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.capsule-preview-box {
  margin-top: 1.25rem;
  padding: 1.1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.capsule-mock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: white;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
}

.capsule-mock-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.capsule-mock-btn.active {
  background-color: var(--color-blue);
  color: white;
}

.capsule-mock-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.brand-compat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.compat-item {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Specs & Privacy Section
   ========================================================================== */
.specs-section {
  margin-bottom: 3.5rem;
}

.specs-table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.spec-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  gap: 0.35rem;
}

.spec-row:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 480px) {
  .spec-row {
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
  }
}

.spec-key {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.spec-val {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.badge-safe {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-green-subtle);
  color: #15803d;
  margin-bottom: 0.2rem;
}

.spec-annotation {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.15rem;
}

.link-inline {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
}

.link-inline:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  margin-bottom: 3.5rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-q {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  padding-right: 0.75rem;
}

.faq-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--color-blue);
}

.faq-body {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item.open .faq-body {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.25rem 5rem;
  background-color: var(--bg-canvas);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.footer-logo-thumb {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-meta a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-meta a:hover {
  color: var(--color-blue);
}

.footer-sep {
  margin: 0 0.4rem;
  color: var(--border-subtle);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Mobile Sticky Download Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    max-width: var(--max-width);
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
  }
}

.mobile-sticky-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sticky-logo-thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sticky-text-wrap {
  display: flex;
  flex-direction: column;
}

.sticky-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sticky-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.btn-sticky {
  padding: 0.55rem 1.25rem;
  background-color: var(--btn-pink-bg);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 3px 10px var(--btn-pink-shadow);
  transition: all 0.15s ease;
}

.btn-sticky:hover {
  background-color: var(--btn-pink-hover);
  box-shadow: 0 4px 14px var(--btn-pink-shadow-hover);
}

.btn-sticky:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Apple Style VIP Subscription & Payment Sheet
   ========================================================================== */
.header-vip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-blue);
  background-color: var(--color-blue-subtle);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-vip-btn:hover {
  background-color: rgba(254, 159, 167, 0.22);
}

.subscription-section {
  margin-bottom: 3.5rem;
}

.section-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-blue);
  background-color: var(--color-blue-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 520px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.pricing-card.active {
  border-color: var(--color-blue);
  background-color: var(--color-blue-subtle);
  box-shadow: 0 0 0 1px var(--color-blue), 0 4px 18px rgba(254, 159, 167, 0.25);
}

.card-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.plan-tag.tag-popular {
  background-color: var(--color-blue);
  color: white;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.plan-price-wrap .currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-right: 0.15rem;
}

.plan-price-wrap .amount {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.plan-price-wrap .period {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 0.2rem;
}

.plan-summary {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.text-blue {
  color: var(--color-blue);
  font-weight: 700;
}

.pricing-cta-box {
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-vip-checkout {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background-color: var(--btn-pink-bg);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px var(--btn-pink-shadow);
  transition: all 0.2s ease;
}

.btn-vip-checkout:hover {
  background-color: var(--btn-pink-hover);
  box-shadow: 0 6px 20px var(--btn-pink-shadow-hover);
}

.btn-vip-checkout:active {
  transform: scale(0.98);
}

.checkout-guarantee {
  margin-top: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

.vip-privileges-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.privileges-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.privileges-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.privilege-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.privilege-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-blue-subtle);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.privilege-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.privilege-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Payment Sheet Modal
   ========================================================================== */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.payment-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal-sheet {
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-surface);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.5rem 1.4rem 2rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal-overlay.show .payment-modal-sheet {
  transform: translateY(0);
}

.modal-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.modal-order-card {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.order-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-amount {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-blue);
}

.payment-methods-wrap {
  margin-bottom: 1.35rem;
}

.methods-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
}

.method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.method-option:hover {
  border-color: var(--border-strong);
}

.method-option.active {
  border-color: var(--color-blue);
  background-color: var(--color-blue-subtle);
}

.method-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.method-badge {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-badge.wechat {
  background-color: #07c160;
  border-radius: 4px;
  color: white;
}

.method-badge.wechat svg {
  width: 17px;
  height: 17px;
}

.method-badge.alipay {
  background-color: transparent;
  color: #1677ff;
}

.method-badge.alipay svg {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.method-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
}

.method-option.active .method-radio {
  border-color: var(--color-blue);
}

.method-option.active .method-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-blue);
}

.btn-confirm-checkout {
  width: 100%;
  padding: 0.95rem;
  background-color: var(--btn-pink-bg);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--btn-pink-shadow);
  transition: all 0.15s ease;
}

.btn-confirm-checkout:hover {
  background-color: var(--btn-pink-hover);
  box-shadow: 0 6px 18px var(--btn-pink-shadow-hover);
}

.btn-confirm-checkout:active {
  transform: scale(0.98);
}

.modal-terms-tip {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}
