:root {
  --bg: #0F172A;
  --bg-2: #0B1220;
  --surface: rgba(30, 41, 59, 0.75);
  --surface-solid: #1E293B;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #F1F5F9;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --crimson: #E11D48;
  --crimson-2: #BE123C;
  --emerald: #059669;
  --emerald-2: #10B981;
  --gold: #D97706;
  --purple: #7C3AED;
  --blue: #38BDF8;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Telegram Native Chrome Header */
.tg-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tg-header .title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-header .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tg-header .shield-icon {
  width: 18px;
  height: 18px;
  color: var(--crimson);
}

.tg-close-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.tg-lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 3px;
  font-size: 11px;
  font-weight: 700;
}

.tg-lang-toggle button {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
}

.tg-lang-toggle button.active {
  background: var(--crimson);
  color: white;
}

/* Views & Content Containers */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.view-section {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 96px;
  animation: fadeIn 0.2s ease-in-out;
}

.view-section.active {
  display: flex;
}

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

/* Card Elements */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 14px;
}

/* Progress indicator on onboarding */
.progress-wrap {
  padding: 4px 0 12px;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}
.progress-head .step { color: var(--text-2); }
.progress-head .step-title { color: var(--crimson); }
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 66%;
  background: linear-gradient(90deg, var(--crimson), #F43F5E);
  border-radius: 4px;
}

/* Fields & Pills */
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.field-label .lbl { font-size: 13px; font-weight: 600; color: var(--text); }
.field-label .hint { font-size: 11px; color: var(--text-3); }

.pill-row {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}
.pill-row .pill-btn {
  flex: 1;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 9px;
  border: none;
  background: none;
  cursor: pointer;
}
.pill-row .pill-btn.active {
  background: var(--crimson);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(225, 29, 72, 0.4);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  cursor: pointer;
}
.tag-btn.active {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.5);
  color: var(--emerald-2);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.radio-card.active {
  border-color: rgba(225, 29, 72, 0.55);
  background: rgba(225, 29, 72, 0.08);
}
.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.radio-card.active .radio-dot {
  border-color: var(--crimson);
}
.radio-card.active .radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
}

.vault-banner {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.vault-banner .shield-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.25);
  display: grid;
  place-items: center;
  color: var(--emerald-2);
  font-size: 18px;
}
.vault-banner .title { font-size: 12px; font-weight: 700; color: var(--emerald-2); }
.vault-banner .sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* Sticky bottom button */
.btn-primary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F43F5E 0%, var(--crimson) 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -8px rgba(225, 29, 72, 0.5);
}

/* Radar & Property Listing Cards */
.radar-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.radar-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px 14px;
  padding: 0 16px;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  height: 32px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  cursor: pointer;
  white-space: nowrap;
}
.chip-btn.active.emerald {
  background: rgba(5, 150, 105, 0.2);
  color: var(--emerald-2);
  border-color: rgba(5, 150, 105, 0.4);
}
.chip-btn.active.purple {
  background: rgba(124, 58, 237, 0.2);
  color: #C084FC;
  border-color: rgba(124, 58, 237, 0.4);
}

.prop-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(20px);
  margin-bottom: 12px;
}
.prop-top-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.prop-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #334155, #1E293B);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.prop-thumb .new-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--crimson);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.prop-info { flex: 1; min-width: 0; }
.prop-title { font-size: 15px; font-weight: 700; color: white; line-height: 1.3; }
.prop-address { font-size: 11px; color: var(--text-2); margin: 3px 0 6px; }

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.badge-item {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}
.badge-item.evam { background: rgba(5, 150, 105, 0.2); color: var(--emerald-2); }
.badge-item.reprise { background: rgba(124, 58, 237, 0.2); color: #C084FC; }
.badge-item.regie { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }

.prop-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
}
.btn-secondary {
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-emerald {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--emerald-2) 0%, var(--emerald) 100%);
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Dossier Modal View */
.letter-preview {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px;
  font-family: 'Inter', serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 14px;
  max-height: 220px;
  overflow-y: auto;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.checklist-item .chk {
  color: var(--emerald-2);
  font-weight: 900;
}

/* ZSU Impact View */
.zsu-gold-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.zsu-metric-large {
  font-size: 28px;
  font-weight: 800;
  color: #FBBF24;
  margin: 8px 0 4px;
}
.zsu-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}
.zsu-progress-fill {
  height: 100%;
  width: 74%;
  background: linear-gradient(90deg, #F59E0B, #10B981);
}

.merkle-log-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}
.merkle-log-table th {
  text-align: left;
  color: var(--text-3);
  padding: 6px 4px;
  border-bottom: 1px solid var(--stroke);
}
.merkle-log-table td {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', monospace;
}

/* Persistent Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding-bottom: env(safe-area-inset-bottom, 10px);
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
}
.nav-tab-btn {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.nav-tab-btn .tab-icon {
  font-size: 18px;
}
.nav-tab-btn.active {
  color: var(--crimson);
}
.nav-tab-btn.active .tab-icon {
  filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.6));
}

/* ================= DUAL-RAIL CHECKOUT MODAL ================= */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.checkout-modal-container {
  background: rgba(26, 36, 54, 0.96);
  border: 1px solid var(--stroke-strong);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 22px 18px env(safe-area-inset-bottom, 24px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65);
  animation: slideUpModal 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.checkout-modal-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F59E0B;
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.checkout-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkout-close-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.16);
}

.checkout-rail-switcher {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--stroke);
}

.rail-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 9px;
  border: none;
  background: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rail-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.checkout-options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkout-option-item:active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(0.99);
}

.checkout-option-item .opt-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-option-item .opt-content {
  flex: 1;
}

.checkout-option-item .opt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.checkout-option-item .opt-sub {
  font-size: 11px;
  color: var(--text-2);
}

.checkout-option-item .opt-action {
  font-size: 16px;
  color: var(--text-3);
  padding-right: 4px;
}

.checkout-transparency-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  font-size: 11.5px;
  color: #E2E8F0;
  line-height: 1.45;
}

.checkout-transparency-card .shield-badge-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.checkout-legal-note {
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* ================= EXTENDED FORM & PROFILE STYLES ================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 360px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 12px;
}
.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-label span.req { color: var(--crimson); }

.form-input, .form-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--crimson);
  background: rgba(15, 23, 42, 0.9);
}
.form-select option {
  background: #0F172A;
  color: #F1F5F9;
}

.doc-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 16px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.doc-item.checked {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}
.doc-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--text-3);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
}
.doc-item.checked .doc-check-icon {
  background: var(--emerald-2);
  border-color: var(--emerald-2);
  color: #0F172A;
}

/* User status bar */
.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.user-status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-2);
}

/* Live ceiling preview */
.ceiling-preview-box {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ceiling-preview-box .cap-title {
  font-size: 11px;
  color: var(--emerald-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ceiling-preview-box .cap-val {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

/* ================= HOUSING SEARCH & GUIDE ================= */
.housing-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.housing-search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.housing-search-input:focus {
  border-color: var(--emerald-2);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.housing-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
}

.price-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.price-pills::-webkit-scrollbar { display: none; }
.price-pill {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  cursor: pointer;
}
.price-pill.active {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.5);
  color: #FBBF24;
}

/* Accordion Legal Guide */
.guide-accordion {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.guide-summary {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #93C5FD;
  user-select: none;
}
.guide-summary .arrow {
  transition: transform 0.2s;
  font-size: 10px;
}
.guide-accordion.open .guide-summary .arrow {
  transform: rotate(180deg);
}
.guide-body {
  display: none;
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.guide-accordion.open .guide-body {
  display: block;
}
.guide-body ul {
  margin: 6px 0;
  padding-left: 18px;
}
.guide-body li {
  margin-bottom: 4px;
}

/* ================= ORP VACANCIES STYLES ================= */
.job-feed-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(20px);
  transition: transform 0.15s, border-color 0.15s;
}
.job-card:active {
  border-color: rgba(255, 255, 255, 0.2);
}
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.job-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}
.job-match-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-2);
  flex-shrink: 0;
}
.job-employer-line {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.job-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.job-pitch-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #E2E8F0;
  line-height: 1.45;
  margin-bottom: 10px;
  font-style: italic;
}
.job-actions-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}

/* ================= MODALS & SHEETS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-window {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0F172A;
  border-top: 1px solid var(--stroke-strong);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 36px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-head .title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.copy-field-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copy-field-card .lbl {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.copy-field-card .val {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
}
.copy-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.copy-btn:active {
  background: var(--emerald);
}

/* Receipt & Attestation Modal */
.receipt-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.95));
  border: 1.5px dashed rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 12px 0 16px;
  text-align: center;
}
.receipt-stamp {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald-2);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.receipt-hash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94A3B8;
  word-break: break-all;
  background: rgba(0,0,0,0.3);
  padding: 8px;
  border-radius: 8px;
  margin: 10px 0;
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  z-index: 200;
  pointer-events: none;
  animation: toastFade 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ================= PRINT STYLES ================= */
@media print {
  body { background: white !important; color: black !important; }
  .tg-header, .bottom-nav, .chip-scroll, .prop-actions, .btn-primary, .btn-secondary, .tg-lang-toggle { display: none !important; }
  .app-container { max-width: 100% !important; margin: 0 !important; }
  .view-section { display: none !important; }
  .view-section.active { display: block !important; padding: 0 !important; }
  .card { border: 1px solid #ccc !important; background: white !important; color: black !important; box-shadow: none !important; }
  .letter-preview { background: #fdfdfd !important; border: 1px solid #aaa !important; color: black !important; }
}
