/* ══════════════════════════════════════════════════
   速鸽智行 — Design System (Airbnb-inspired)
   Canvas: #ffffff · Brand: #ff385c · Text: #222222
   Font: Plus Jakarta Sans (similar to Airbnb Cereal)
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── 1. Palette Tokens ──────────────────────────── */
:root {
  /* Brand — Rausch Red */
  --rausch:       #ff385c;
  --rausch-deep:  #e00b41;
  --rausch-light: rgba(255, 56, 92, 0.08);

  /* Text scale */
  --t1: #222222;          /* primary — warm near-black  */
  --t2: #6a6a6a;          /* secondary                  */
  --t3: #b0b0b0;          /* placeholder / meta         */

  /* Surfaces */
  --bg:      #f7f7f7;     /* page background             */
  --bg-card: #ffffff;     /* card / panel surface        */
  --surf:    #f2f2f2;     /* circular controls / inputs  */
  --border:  #dddddd;     /* borders & dividers          */

  /* Elevation — three-layer warm lift */
  --sh-card:  rgba(0,0,0,0.02) 0px 0px 0px 1px,
              rgba(0,0,0,0.04) 0px 2px 6px,
              rgba(0,0,0,0.10) 0px 4px 8px;
  --sh-hover: rgba(0,0,0,0.08) 0px 4px 12px;

  /* Border-radius scale */
  --r-btn:   8px;
  --r-badge: 14px;
  --r-card:  20px;
  --r-lg:    32px;

  /* Legacy aliases — referenced from JS-generated markup */
  --primary:       var(--rausch);
  --primary-dark:  var(--rausch-deep);
  --primary-light: var(--rausch-light);
  --text:          var(--t1);
  --text-light:    var(--t2);
  --white:         #ffffff;
  --radius:        12px;
  --shadow:        var(--sh-card);
  --header-h:      64px;
}

/* ─── 2. Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── 3. Body ────────────────────────────────────── */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 4. Header ──────────────────────────────────── */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  flex-shrink: 0;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo { height: 30px; width: auto; }
.header-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.3px;
}
.header-nav { flex: 1; display: flex; align-items: center; gap: 4px; }
.header-nav-link {
  color: var(--t2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-btn);
  transition: color 0.15s, background 0.15s;
}
.header-nav-link:hover { color: var(--t1); background: var(--surf); }
.header-nav-link.active { color: var(--t1); font-weight: 700; }
.header-user { display: flex; align-items: center; gap: 10px; }
.header-balance {
  background: var(--surf);
  color: var(--t1);
  padding: 5px 12px;
  border-radius: var(--r-badge);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border);
}
.header-logout {
  color: var(--rausch);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.header-logout:hover { text-decoration: underline; }

/* ─── 5. View switching ──────────────────────────── */
.view { display: none; }
.view.active { display: block; }
#view-form.active { display: flex; flex-direction: column; }

/* ─── 6. Split Layout ────────────────────────────── */
.split-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-h));
}

/* ─── 7. Hero Panel ──────────────────────────────── */
.hero-panel {
  flex: 0 0 42%;
  background: #1a1a1a;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(255, 56, 92, 0.25) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 56, 92, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 110%, rgba(255, 56, 92, 0.08) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

/* Dot grid texture */
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Top fade */
.hero-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(26,26,26,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── 7a. Floating Destination Chips ────────────── */
.hero-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-chip {
  position: absolute;
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  40%       { transform: translateY(-10px); }
  70%       { transform: translateY(-4px); }
}

.chip-1 { top: 12%; left: 10%;  animation-delay: 0s;   animation-duration: 6.8s; }
.chip-2 { top: 22%; right: 9%;  animation-delay: 1.3s; animation-duration: 7.6s; }
.chip-3 { top: 40%; left: 7%;   animation-delay: 0.8s; animation-duration: 8.2s; }
.chip-4 { top: 54%; right: 11%; animation-delay: 2.1s; animation-duration: 6.4s; }
.chip-5 { top: 66%; left: 16%;  animation-delay: 1.6s; animation-duration: 7.2s; }
.chip-6 { top: 32%; right: 6%;  animation-delay: 3.2s; animation-duration: 8.8s; }

/* ─── 7b. Hero Content ──────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rausch);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.10;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.52);
  max-width: 340px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.14);
  margin: 0 22px;
  flex-shrink: 0;
}

/* ─── 8. Form Panel ──────────────────────────────── */
.form-panel {
  flex: 1;
  background: var(--bg-card);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.form-inner {
  width: 100%;
  max-width: 480px;
  animation: formFadeIn 0.45s ease both;
}

@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  position: relative;
}

.form-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2.5px;
  background: var(--rausch);
  border-radius: 2px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--t2);
  margin-top: 12px;
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ─── 9. Field Sections (Airbnb grouped) ─────────── */
.field-section {
  margin-bottom: 14px;
}

.field-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 7px;
  padding-left: 2px;
}

/* Grouped dual-field card */
.field-card {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--r-badge);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field-card:focus-within {
  border-color: var(--t1);
  box-shadow: 0 0 0 3px rgba(34,34,34,0.08);
}

.field-cell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  min-width: 0;
  cursor: text;
  transition: background 0.15s;
}

.field-cell:focus-within {
  background: rgba(34,34,34,0.02);
}

.field-ico {
  font-size: 15px;
  flex-shrink: 0;
  opacity: 0.75;
}

.field-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.field-body label {
  font-size: 10px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.label-hint {
  font-size: 10px;
  font-weight: 400;
  color: var(--t3);
}

.field-body input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  width: 100%;
  font-family: inherit;
  -webkit-appearance: none;
}

.field-body input::placeholder {
  color: var(--t3);
  font-weight: 400;
}

.field-body input:focus {
  border: none !important;
  box-shadow: none !important;
}

.field-body input[type="date"] {
  color-scheme: light;
}

.field-body input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
  width: 14px;
  height: 14px;
  margin-left: 4px;
}

.field-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  width: 34px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
}

/* ─── 10. Standard Form Elements ────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full-width { grid-column: 1 / -1; }

.notes-group { margin-bottom: 16px; }

label {
  font-size: 11px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input, select, textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  font-size: 14px;
  font-family: inherit;
  color: var(--t1);
  background: var(--bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--t1);
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}
input::placeholder, textarea::placeholder { color: var(--t3); }
textarea { resize: vertical; }

/* ─── 11. People Stepper ─────────────────────────── */
.people-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-badge);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.people-stepper:focus-within {
  border-color: var(--t1);
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}
.stepper-btn {
  width: 44px; height: 44px;
  background: var(--surf);
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--t2);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.stepper-btn:hover { background: var(--border); color: var(--t1); }
.stepper-btn:active { background: var(--t1); color: #fff; }
.stepper-value {
  min-width: 52px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  padding: 10px 8px;
  user-select: none;
}

/* ─── 12. Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s, border-color 0.15s;
  white-space: nowrap;
  user-select: none;
}

/* Primary — Rausch Red */
.btn-primary { background: var(--rausch); color: #ffffff; }
.btn-primary:hover {
  background: var(--rausch-deep);
  box-shadow: var(--sh-hover);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Secondary */
.btn-secondary {
  background: var(--bg-card);
  color: var(--t1);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--t1); background: var(--surf); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--t1); color: var(--t1); background: var(--surf); }

/* Sizes */
.btn-large { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm    { padding: 6px 12px;  font-size: 12px; }
.btn-full  { width: 100%; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Danger */
.btn-danger {
  background: var(--bg-card);
  color: #e11d48;
  border: 1px solid #fca5a5;
  border-radius: var(--r-btn);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-left: 6px;
}
.btn-danger:hover { background: #fff1f2; border-color: #e11d48; }

/* ─── 13. Generate Button ────────────────────────── */
.btn-generate {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--t1);
  color: #ffffff;
  border: none;
  border-radius: var(--r-btn);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: background 0.22s, transform 0.12s, box-shadow 0.22s;
}

.btn-generate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}

.btn-generate:hover {
  background: var(--rausch);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255,56,92,0.38);
}

.btn-generate:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-gen-icon { font-size: 18px; flex-shrink: 0; }

.btn-gen-text { flex: 1; text-align: center; }

.btn-gen-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn-generate:hover .btn-gen-arrow { transform: translateX(4px); }

/* ─── 14. Trust Badges ───────────────────────────── */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--t2);
  font-weight: 500;
}

.trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── 15. Container ──────────────────────────────── */
.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px;
  flex: 1;
}

/* 历史行程：表格操作列较宽，适当放开容器避免按钮换行 */
.container-itineraries {
  max-width: 1280px;
}

/* ─── 16. Card ───────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: 28px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}

/* ─── 17. Loading ────────────────────────────────── */
.loading-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 56, 92, 0.15);
  border-top-color: var(--rausch);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-status { color: var(--t2); font-size: 14px; font-weight: 500; }

/* ─── 18. Stream Preview ─────────────────────────── */
.stream-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--t1);
}
.stream-preview h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}
.stream-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
.stream-preview th {
  background: var(--t1);
  color: #ffffff;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
}
.stream-preview td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.stream-preview tr:nth-child(even) td { background: var(--bg); }
.stream-preview blockquote {
  border-left: 3px solid var(--rausch);
  padding: 8px 14px;
  margin: 10px 0;
  background: var(--rausch-light);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  font-size: 13px;
}

/* ─── 19. Editor View ────────────────────────────── */
.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.trip-meta {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.2px;
}
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.editor-actions select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--t1);
  background: var(--bg-card);
  cursor: pointer;
  height: 38px;
  -webkit-appearance: none;
}
.editor-actions select:focus { outline: none; border-color: var(--t1); }
.editor-card { padding: 0; overflow: hidden; border-radius: var(--r-card); }

/* TUI Editor overrides */
#tui-editor .toastui-editor-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
#tui-editor .toastui-editor-main { font-size: 14px; }
#tui-editor .toastui-editor-contents h2 {
  color: var(--t1);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
#tui-editor .toastui-editor-contents table { width: 100%; border-collapse: collapse; }
#tui-editor .toastui-editor-contents th {
  background: var(--t1);
  color: #ffffff;
  padding: 7px 10px;
}
#tui-editor .toastui-editor-contents td { padding: 6px 10px; border: 1px solid var(--border); }
#tui-editor .toastui-editor-contents blockquote {
  border-left: 3px solid var(--rausch);
  background: var(--rausch-light);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
}

/* ─── 20. Itinerary Table ────────────────────────── */
.itinerary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.itinerary-table th {
  background: var(--bg);
  color: var(--t2);
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
}
.itinerary-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.itinerary-table tr:last-child td { border-bottom: none; }
.itinerary-table tr:hover td { background: var(--bg); }
.itinerary-table td:last-child {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.itinerary-table td:last-child > * {
  flex-shrink: 0;
}

/* Tags */
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-badge); font-size: 11px; font-weight: 600; }
.tag-standard { background: #e0f2fe; color: #0369a1; }
.tag-premium  { background: #fef9c3; color: #92400e; }
.tag-luxury   { background: #f3e8ff; color: #6b21a8; }

/* ─── 21. Badges ─────────────────────────────────── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 9999px; font-size: 11px; font-weight: 700; }
.badge.success, .badge.normal { background: #dcfce7; color: #166534; }
.badge.pending                { background: #fef9c3; color: #92400e; }
.badge.failed, .badge.frozen  { background: #fee2e2; color: #991b1b; }
.badge.admin                  { background: #ede9fe; color: #5b21b6; }

/* ─── 22. Empty State ────────────────────────────── */
.empty-state { text-align: center; padding: 64px 20px; color: var(--t2); }
.empty-state p { font-size: 16px; font-weight: 500; margin-bottom: 20px; }

/* ─── 23. Toast ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--t1);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-hover);
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(0);
}
.toast.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.toast.error  { background: #e11d48; }

/* ─── 24. Footer ─────────────────────────────────── */
.app-footer {
  padding: 20px 40px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand-name { font-size: 14px; font-weight: 700; color: var(--t1); }
.footer-copy  { font-size: 12px; color: var(--t3); }
.footer-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.footer-link  {
  color: var(--t2);
  text-decoration: none;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
}
.footer-link:hover { color: var(--t1); text-decoration: underline; }
.footer-sep   { color: var(--border); }
.footer-icp   {
  padding: 0 6px;
  font-size: 13px;
  color: var(--t2);
  text-decoration: none;
  font-weight: 500;
}
.footer-icp:hover { color: var(--t1); text-decoration: underline; }
.footer-version { font-size: 11px; color: var(--t3); text-align: right; margin-top: 6px; }

/* ─── 25. Pagination ─────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 0 4px;
  font-size: 13px;
  color: var(--t2);
}
.pagination button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--t1);
  transition: all 0.15s;
}
.pagination button:hover:not(:disabled) { background: var(--surf); border-color: var(--t1); }
.pagination button:disabled { opacity: 0.4; cursor: default; }
.pagination .page-info { color: var(--t2); }

/* ─── 26. Responsive ─────────────────────────────── */
@media (max-width: 860px) {
  .split-layout { flex-direction: column; min-height: auto; }

  .hero-panel {
    flex: none;
    min-height: 240px;
    padding: 32px 28px 36px;
    justify-content: flex-end;
  }

  /* Show only 2 chips on tablet */
  .chip-3, .chip-4, .chip-5, .chip-6 { display: none; }
  .hero-chip { font-size: 12px; padding: 6px 12px; }

  .hero-headline { font-size: 32px; }
  .hero-desc { font-size: 13px; margin-bottom: 24px; }
  .stat-num { font-size: 18px; }
  .stat-divider { margin: 0 16px; }

  .form-panel { padding: 36px 28px; align-items: flex-start; }
  .form-inner { max-width: 100%; }
}

@media (max-width: 600px) {
  /* Stack dual fields vertically on mobile */
  .field-card { flex-direction: column; }
  .field-sep {
    width: auto;
    height: 1px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 0;
  }

  .editor-topbar { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .app-footer { padding: 18px 20px 20px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .header-title { font-size: 16px; }
  .header-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-balance { display: none; }
  .stream-preview { overflow-x: auto; }
}

@media (max-width: 480px) {
  .container { padding: 12px; }
  .card { padding: 20px 16px; }
  .card-title { font-size: 17px; }

  .hero-panel { min-height: 180px; padding: 20px 20px 28px; }
  .hero-chip { display: none; }
  .hero-headline { font-size: 26px; }
  .hero-desc { font-size: 12px; margin-bottom: 16px; }
  .hero-stats { display: none; }

  .form-panel { padding: 24px 16px; }
  .form-title { font-size: 22px; }

  .pagination { flex-wrap: wrap; justify-content: center; }
  .trust-badges { flex-wrap: wrap; justify-content: center; }
  .toast { left: 12px; right: 12px; bottom: 16px; text-align: center; }
  .editor-actions { flex-direction: column; align-items: stretch; }
  .editor-actions select, .editor-actions .btn { width: 100%; }
}
