/* ============================================================
   分子诊断筛查小程序 - Design Tokens & Global Styles
   Style: 医疗清新风 (medical-clean)
   ============================================================ */

:root {
  /* Primary - 医疗绿 */
  --color-primary: #10b981;
  --color-primary-light: #34d399;
  --color-primary-dark: #059669;
  --color-primary-bg: #ecfdf5;
  --color-primary-bg-soft: #f0fdf4;

  /* Neutrals */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text: #0f172a;
  --color-text-sub: #64748b;
  --color-text-muted: #94a3b8;

  /* Status */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --color-pending: #8b5cf6;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --font-xs: 11px;
  --font-sm: 13px;
  --font-base: 15px;
  --font-md: 17px;
  --font-lg: 20px;
  --font-xl: 24px;
  --font-2xl: 28px;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 4px 14px rgba(16, 185, 129, 0.25);

  /* Layout */
  --tabbar-h: 58px;
  --navbar-h: 48px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ============================================================
   App Shell - 移动端容器
   ============================================================ */
.app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-bg);
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

.app.no-tabbar {
  padding-bottom: 0;
}

/* ============================================================
   Navbar - 顶部导航栏
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-h);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  padding-top: var(--safe-top);
}

.navbar-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--color-text);
}

.navbar-back {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
  padding-top: var(--safe-top);
  margin-top: calc(var(--safe-top) * -1);
}

.navbar-back:active {
  background: var(--color-surface-2);
}

.navbar-right {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--space-2);
  padding-top: var(--safe-top);
  margin-top: calc(var(--safe-top) * -1);
}

.navbar-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-sub);
}

.navbar-icon-btn:active {
  background: var(--color-surface-2);
}

/* ============================================================
   TabBar - 底部导航
   ============================================================ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  transition: color 0.2s;
}

.tabbar-item.active {
  color: var(--color-primary);
}

.tabbar-item svg {
  width: 22px;
  height: 22px;
}

.tabbar-item:active {
  opacity: 0.7;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:active {
  background: var(--color-primary-dark);
}

.btn-primary:disabled {
  background: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:active {
  background: var(--color-primary-bg);
}

.btn-ghost {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-ghost:active {
  background: var(--color-border);
}

.btn-block {
  width: 100%;
  height: 48px;
  font-size: var(--font-md);
}

.btn-lg {
  height: 52px;
  padding: 0 var(--space-6);
  font-size: var(--font-md);
}

.btn-md {
  height: 44px;
  padding: 0 var(--space-5);
  font-size: var(--font-base);
}

.btn-sm {
  height: 36px;
  padding: 0 var(--space-4);
  font-size: var(--font-sm);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-section + .card-section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* ============================================================
   Form Elements
   ============================================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--font-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  color: var(--color-text);
  border: 1.5px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:disabled {
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  color: var(--color-text);
  resize: none;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.form-select-wrap {
  position: relative;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* 表单行 - 带label的内联输入 */
.form-row {
  display: flex;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.form-row:last-child {
  border-bottom: none;
}

.form-row-label {
  flex-shrink: 0;
  width: 100px;
  font-size: var(--font-base);
  color: var(--color-text-sub);
}

.form-row-input {
  flex: 1;
  font-size: var(--font-base);
  color: var(--color-text);
  text-align: right;
}

.form-row-input::placeholder {
  color: var(--color-text-muted);
}

.form-row-arrow {
  margin-left: var(--space-2);
  color: var(--color-text-muted);
}

/* ============================================================
   Tags / Badges
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 500;
  line-height: 1.6;
}

.tag-primary {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

.tag-success {
  background: #ecfdf5;
  color: #059669;
}

.tag-warning {
  background: #fffbeb;
  color: #d97706;
}

.tag-danger {
  background: #fef2f2;
  color: #dc2626;
}

.tag-info {
  background: #eff6ff;
  color: #2563eb;
}

.tag-pending {
  background: #f5f3ff;
  color: #7c3aed;
}

.tag-muted {
  background: var(--color-surface-2);
  color: var(--color-text-sub);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ============================================================
   List Items
   ============================================================ */
.list-item {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s;
}

.list-item:active {
  background: var(--color-primary-bg-soft);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-4);
  flex-shrink: 0;
}

.list-item-icon.primary {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.list-item-icon svg {
  width: 20px;
  height: 20px;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}

.list-item-desc {
  font-size: var(--font-sm);
  color: var(--color-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-arrow {
  color: var(--color-text-muted);
  margin-left: var(--space-2);
  flex-shrink: 0;
}

.list-item-arrow svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Steps / Timeline
   ============================================================ */
.steps-vertical {
  position: relative;
  padding-left: 28px;
}

.steps-vertical::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.step-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-dot {
  position: absolute;
  left: -28px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  z-index: 1;
}

.step-item.done .step-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.step-item.active .step-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--color-primary-bg);
}

.step-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.step-item.done .step-title {
  color: var(--color-text-sub);
}

.step-desc {
  font-size: var(--font-sm);
  color: var(--color-text-sub);
}

.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s;
}

.step-card.active {
  border-color: var(--color-primary);
  background: var(--color-primary-bg-soft);
  box-shadow: var(--shadow-primary);
}

.step-card.done {
  opacity: 0.75;
}

/* ============================================================
   Status Bar (顶部状态概览)
   ============================================================ */
.status-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-6) var(--space-5);
  padding-top: calc(var(--space-6) + var(--safe-top));
  color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.status-header-title {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.status-header-sub {
  font-size: var(--font-sm);
  opacity: 0.85;
}

.status-stats {
  display: flex;
  margin-top: var(--space-5);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
}

.status-stat {
  flex: 1;
  text-align: center;
}

.status-stat-num {
  font-size: var(--font-xl);
  font-weight: 700;
  line-height: 1.2;
}

.status-stat-label {
  font-size: var(--font-xs);
  opacity: 0.85;
  margin-top: 2px;
}

.status-stat + .status-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   Grid / Layout Utilities
   ============================================================ */
.page-content {
  padding: var(--space-5);
}

.section-title {
  font-size: var(--font-md);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title:first-child {
  margin-top: 0;
}

.section-more {
  font-size: var(--font-sm);
  color: var(--color-text-sub);
  font-weight: normal;
}

.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-sub { color: var(--color-text-sub); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================================
   Modal / Toast
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-mask.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-5);
  padding-bottom: calc(var(--space-5) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.modal-mask.show .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-size: var(--font-lg);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-5);
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast-success {
  background: var(--color-primary);
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  padding: var(--space-12) var(--space-5);
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: var(--color-surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.empty-icon svg {
  width: 36px;
  height: 36px;
}

.empty-title {
  font-size: var(--font-md);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.empty-desc {
  font-size: var(--font-sm);
  color: var(--color-text-sub);
}

/* ============================================================
   Quick Actions Grid
   ============================================================ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4) var(--space-2);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.quick-item:active {
  background: var(--color-surface-2);
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.quick-icon svg {
  width: 24px;
  height: 24px;
}

.quick-label {
  font-size: var(--font-xs);
  color: var(--color-text);
}

/* ============================================================
   Segmented Control / Tabs
   ============================================================ */
.segmented {
  display: flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 3px;
}

.segmented-item {
  flex: 1;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-sm);
  color: var(--color-text-sub);
  border-radius: calc(var(--radius-md) - 2px);
  transition: all 0.2s;
  font-weight: 500;
}

.segmented-item.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Result / Report Card
   ============================================================ */
.report-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.report-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--color-text);
}

.report-meta {
  font-size: var(--font-sm);
  color: var(--color-text-sub);
  margin-top: 2px;
}

.report-result {
  font-size: var(--font-lg);
  font-weight: 700;
}

/* ============================================================
   Scan Frame (扫码界面)
   ============================================================ */
.scan-frame {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.scan-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 0;
}

.scan-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  top: 50%;
  animation: scan-move 2.5s ease-in-out infinite;
}

@keyframes scan-move {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

/* ============================================================
   Radio / Checkbox Group
   ============================================================ */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.radio-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  color: var(--color-text);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.radio-item.active {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 500;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  position: relative;
}

.radio-item.active .radio-dot {
  border-color: var(--color-primary);
}

.radio-item.active .radio-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ============================================================
   Page Entry Animation
   ============================================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in > * {
  animation: fade-in-up 0.4s ease both;
}

.animate-in > *:nth-child(1) { animation-delay: 0.02s; }
.animate-in > *:nth-child(2) { animation-delay: 0.06s; }
.animate-in > *:nth-child(3) { animation-delay: 0.1s; }
.animate-in > *:nth-child(4) { animation-delay: 0.14s; }
.animate-in > *:nth-child(5) { animation-delay: 0.18s; }
.animate-in > *:nth-child(6) { animation-delay: 0.22s; }
.animate-in > *:nth-child(7) { animation-delay: 0.26s; }
.animate-in > *:nth-child(8) { animation-delay: 0.3s; }
