@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ip-green: #76c893;
  --ip-green-dark: #5fb376;
  --ip-green-link: #5a9e6f;
  --ip-green-light: #e8f5e9;
  --ip-text: #333;
  --ip-muted: #888;
  --ip-border: #d8d8d8;
  --ip-bg: #f0f2f0;
  --ip-sheet: #ffffff;
  --ip-warn-bg: #fff0e5;
  --ip-warn-border: #ffccbc;
  --ip-error: #d32f2f;
  --ip-title: #222;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--ip-bg);
  color: var(--ip-text);
  direction: rtl;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}

.ip-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ip-sheet);
  box-shadow: 0 0 24px rgba(0,0,0,.06);
}

.ip-page.ip-page--plain { background: var(--ip-sheet); }

.ip-page-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
  min-height: 0;
}

.ip-page-footer {
  padding: 12px 22px max(20px, env(safe-area-inset-bottom, 20px));
  margin-top: auto;
  flex-shrink: 0;
}

/* ── HODA brand ── */
.ip-logo-wrap {
  text-align: center;
  margin: 28px 0 20px;
}

.ip-logo-full {
  width: auto;
  max-width: 260px;
  height: auto;
  max-height: 150px;
  margin: 0 auto 8px;
  display: block;
  object-fit: contain;
}

.ip-logo-svg {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  display: block;
}

.ip-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ip-brand-fa-bold {
  font-size: 26px;
  font-weight: 700;
  color: #757575;
  letter-spacing: 1px;
}

.ip-brand-en {
  font-size: 22px;
  font-weight: 600;
  color: #9e9e9e;
  letter-spacing: 3px;
}

.ip-brand-fa {
  font-size: 14px;
  color: #9e9e9e;
  margin-top: 2px;
}

.ip-brand-ip {
  font-size: 12px;
  color: #bdbdbd;
  margin-top: 6px;
}

.ip-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ip-title);
}

.ip-title--page {
  margin-top: 8px;
}

/* ── Fields ── */
.ip-field {
  position: relative;
  margin-bottom: 14px;
}

.ip-field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 0 44px 0 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  color: #333;
  text-align: right;
  direction: rtl;
}

.ip-field input:focus {
  border-color: var(--ip-green);
}

.ip-field input::placeholder {
  color: #bdbdbd;
  text-align: right;
}

.ip-field input.ip-input-ltr {
  direction: ltr;
  text-align: left;
}

.ip-field input.ip-input-ltr::placeholder {
  text-align: left;
}

.ip-field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  opacity: .4;
  pointer-events: none;
  color: #888;
}

.ip-field-birth {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  overflow: hidden;
  height: 50px;
  margin-bottom: 14px;
}

.ip-field-birth label {
  background: #fafafa;
  padding: 0 16px;
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  border-left: 1px solid var(--ip-border);
  display: flex;
  align-items: center;
  min-width: 100px;
}

.ip-field-birth input {
  border: none;
  flex: 1;
  height: 100%;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  text-align: right;
  direction: rtl;
}

.ip-field-birth input.ip-input-ltr {
  direction: ltr;
  text-align: left;
}

.ip-link-row {
  text-align: center;
  margin: 14px 0 20px;
  font-size: 14px;
  color: #666;
}

.ip-link-row a {
  color: var(--ip-green-link);
  text-decoration: none;
  font-weight: 600;
}

/* ── Buttons ── */
.ip-btn {
  width: 100%;
  min-height: 48px;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: var(--ip-green);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ip-btn:hover { background: var(--ip-green-dark); }
.ip-btn:disabled { opacity: .6; cursor: not-allowed; }

.ip-pay-btn {
  display: none;
}

.ip-pay-btn.is-visible {
  display: block;
}

.ip-btn-outline {
  background: transparent;
  border: 1px solid var(--ip-green);
  color: var(--ip-green);
  margin-top: 12px;
}

.ip-error-box {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: var(--ip-error);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
  line-height: 1.7;
}

.ip-error-box.show { display: block; }

.ip-error-box.is-success {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

.ip-error-box.is-info {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}

.ip-camera-wrap.simulated {
  display: flex;
  background: #f5f5f5;
  border: 2px dashed #bdbdbd;
  border-radius: 12px;
  min-height: 160px;
  align-items: center;
  justify-content: center;
}

.ip-camera-wrap.simulated::after {
  content: 'حالت تطبیق بدون دوربین (WebView)';
  font-size: 13px;
  color: #757575;
  padding: 16px;
  text-align: center;
}

.ip-camera-wrap.simulated video {
  display: none;
}

/* ── Face page (HODA style) ── */
.ip-back {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #444;
  text-decoration: none;
  line-height: 1;
  z-index: 2;
}

.ip-face-page {
  position: relative;
  padding-top: 8px;
}

.ip-face-hero {
  text-align: center;
  margin: 8px 0 16px;
}

.ip-face-hero-img {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.ip-face-hero-svg {
  width: 85px;
  height: auto;
  max-height: 100px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.ip-face-hero-fallback {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

.ip-face-sub {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.7;
}

.ip-warn-box {
  background: var(--ip-warn-bg);
  border: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: #555;
  margin: 0 0 18px;
  text-align: justify;
}

.ip-face-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin: 8px 0 24px;
}

.ip-face-guide {
  text-align: center;
  position: relative;
}

.ip-face-guide-pic {
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-face-guide-pic img {
  width: 100%;
  max-width: 150px;
  max-height: 160px;
  object-fit: contain;
}

.ip-face-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.ip-face-badge--ok {
  background: var(--ip-green);
  color: #fff;
}

.ip-camera-wrap {
  display: none;
  margin: 16px 0;
  text-align: center;
}

.ip-camera-wrap.active { display: block; }

.ip-camera-wrap video, .ip-camera-wrap canvas {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  background: #000;
}

.ip-id-card-section {
  margin: 12px 0 20px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

.ip-id-card-hint {
  font-size: 13px;
  line-height: 1.9;
  color: #555;
  margin: 0 0 14px;
  text-align: justify;
}

.ip-id-upload-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed #1976d2;
  background: #e3f2fd;
  color: #1565c0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.ip-id-file-input-hidden {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Legal / payment / success ── */
.ip-legal-text {
  font-size: 14px;
  line-height: 2;
  color: #444;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.ip-face-processing {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ip-face-processing.show {
  display: flex;
}

.ip-face-processing-box {
  text-align: center;
  max-width: 280px;
}

.ip-face-processing-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--ip-green);
  border-radius: 50%;
  animation: ip-spin .8s linear infinite;
}

.ip-face-processing.is-success .ip-face-processing-spinner {
  border: none;
  animation: none;
  width: 56px;
  height: 56px;
  background: var(--ip-green);
  border-radius: 50%;
  position: relative;
}

.ip-face-processing.is-success .ip-face-processing-spinner::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 10px;
  width: 12px;
  height: 22px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.ip-face-processing-box p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.ip-face-processing.is-success .ip-face-processing-box p {
  color: #2e7d32;
  font-weight: 600;
}

.ip-face-processing.is-warn .ip-face-processing-spinner {
  border-top-color: #e65100;
}

.ip-face-processing.is-warn .ip-face-processing-box p {
  color: #bf360c;
  font-weight: 600;
}

.ip-face-processing.is-deferred .ip-face-processing-spinner {
  border-top-color: #1565c0;
}

.ip-face-processing.is-deferred .ip-face-processing-box p {
  color: #0d47a1;
  font-weight: 600;
  line-height: 1.9;
  font-size: 14px;
  max-width: 300px;
  margin: 0 auto;
}

.ip-page-footer--busy {
  pointer-events: none;
  opacity: 0.6;
}

.ip-banks-section {
  margin: 12px 0 20px;
}

.ip-banks-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.7;
  text-align: center;
}

.ip-banks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.ip-banks-grid--more {
  display: none;
  margin-top: 0;
}

.ip-banks-grid--more.is-open {
  display: grid;
}

.ip-banks-toggle {
  display: block;
  width: 100%;
  margin: 4px 0 14px;
  padding: 12px 16px;
  border: 2px dashed #bdbdbd;
  border-radius: 12px;
  background: #fafafa;
  color: #555;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.ip-banks-toggle:hover {
  border-color: var(--ip-green);
  background: #f1f8e9;
  color: #2e7d32;
}

.ip-bank-item {
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 10px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  background: #fff;
  touch-action: manipulation;
}

.ip-bank-item:hover, .ip-bank-item.selected {
  border-color: var(--ip-green);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.ip-bank-item img {
  width: 56px;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.ip-bank-item p {
  font-size: 10px;
  margin-top: 6px;
  color: #444;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-bank-selected-msg {
  text-align: center;
  margin: 12px 0;
  padding: 12px 14px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  color: #2e7d32;
  font-size: 14px;
}

@media (max-width: 400px) {
  .ip-banks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .ip-bank-item img {
    width: 48px;
    height: 48px;
  }
  .ip-bank-item p {
    font-size: 9px;
  }
}

.ip-bank-placeholder {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #2e7d32;
}

.ip-payment-card {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.ip-amount-box {
  background: var(--ip-green-light);
  border: 1px solid var(--ip-green);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin: 16px 0;
}

.ip-amount-box strong {
  font-size: 22px;
  color: var(--ip-green-dark);
}

.ip-success-badge {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 88px;
  height: 88px;
  margin: 8px auto 20px;
}

.ip-success-badge__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(46, 125, 50, 0.22);
  animation: ip-success-pulse 2.4s ease-out infinite;
}

.ip-success-badge__circle {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4caf50 0%, #2e7d32 100%);
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ip-success-badge__circle svg {
  width: 34px;
  height: 34px;
}

@keyframes ip-success-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.ip-success-body {
  font-size: 14px;
  line-height: 2;
  color: #444;
  text-align: justify;
  margin-bottom: 8px;
}

.ip-success-lead {
  font-size: 15px;
  margin-bottom: 12px;
  text-align: center;
}

.ip-success-intro {
  margin-bottom: 16px;
  color: #555;
}

.ip-success-card {
  background: #f8faf8;
  border: 1px solid #e0e8e0;
  border-radius: 12px;
  padding: 4px 0;
  margin-bottom: 16px;
  overflow: hidden;
}

.ip-success-card__head {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
  background: #eef5ee;
  border-bottom: 1px solid #e0e8e0;
  text-align: center;
}

.ip-success-card .ip-info-row {
  margin: 0;
  padding: 11px 16px;
  border-bottom: 1px solid #eef0ee;
  background: transparent;
}

.ip-success-card .ip-info-row:last-child {
  border-bottom: none;
}

.ip-info-row--status .ip-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #e65100;
  background: #fff3e0;
  border: 1px solid #ffcc80;
}

.ip-success-note {
  font-size: 13px;
  line-height: 2;
  color: #555;
  background: #fafafa;
  border-right: 3px solid var(--ip-green);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.ip-success-body p { margin-bottom: 10px; }

.ip-success-track-label {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin: 4px 0 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.ip-tracking-code {
  background: #fff;
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 10px;
  color: #1b5e20;
  margin: 0 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ip-success-footer {
  font-size: 12px;
  line-height: 1.9;
  color: #888;
  text-align: center;
  margin: 0;
}

.ip-title--success {
  font-size: 18px;
  margin-bottom: 8px;
}

.ip-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.ip-info-row span:first-child { color: var(--ip-muted); }

.ip-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ip-spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes ip-spin { to { transform: rotate(360deg); } }

/* Demo bar (full.html only) */
.ip-demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #263238; color: #fff; font-size: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
body.has-demo-bar { padding-top: 48px; }
body.has-demo-bar .ip-page { min-height: calc(100vh - 48px); }

.ip-demo-bar strong { color: #80cbc4; }
.ip-demo-bar button {
  background: #37474f; border: none; color: #fff; padding: 5px 10px;
  border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 11px;
}
.ip-demo-bar button.ip-demo-reset { background: #c62828; }
.ip-demo-bar .ip-demo-hint { flex: 1; min-width: 180px; color: #b0bec5; font-size: 11px; }

.ip-screen { display: none; width: 100%; }
.ip-screen.active { display: block; }

.ip-fake-pay-box {
  background: #fff; border: 2px solid #1976d2; border-radius: 12px;
  padding: 16px; margin-top: 16px;
}
.ip-fake-pay-box input {
  width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 8px;
  padding: 0 12px; margin-bottom: 10px; font-family: inherit;
}
.ip-btn-secondary { background: #78909c; margin-top: 8px; }
.ip-btn-secondary:hover { background: #607d8b; }

/* ── Android / موبایل WebView ── */
@media (max-width: 480px) {
  .ip-page-inner {
    padding: 14px 16px 12px;
  }

  .ip-logo-wrap {
    margin: 10px 0 12px;
  }

  .ip-logo-full {
    max-width: 200px;
    max-height: 95px;
  }

  .ip-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .ip-title--page {
    margin-top: 4px;
    margin-bottom: 12px;
  }

  .ip-field {
    margin-bottom: 10px;
  }

  .ip-field input {
    height: 46px;
    font-size: 16px;
  }

  .ip-link-row {
    margin: 10px 0 12px;
    font-size: 13px;
  }

  .ip-error-box {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .ip-bank-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media (max-height: 780px) {
  .ip-legal-text {
    max-height: 30dvh;
    padding: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.85;
  }

  .ip-banks-section {
    max-height: 34dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 4px;
  }

  .ip-payment-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .ip-amount-box {
    padding: 12px;
    margin: 8px 0 0;
  }

  .ip-amount-box strong {
    font-size: 18px;
  }

  .ip-success-badge {
    width: 76px;
    height: 76px;
    margin: 4px auto 12px;
  }

  .ip-success-badge__circle {
    width: 60px;
    height: 60px;
  }

  .ip-success-badge__circle svg {
    width: 28px;
    height: 28px;
  }

  .ip-success-body {
    font-size: 13px;
    line-height: 1.85;
  }

  .ip-success-note {
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
  }

  .ip-tracking-code {
    font-size: 24px;
    letter-spacing: 6px;
    padding: 12px;
    margin-bottom: 10px;
  }

  .ip-success-footer {
    font-size: 11px;
  }
}

:root {
  --ip-green: #2e7d32;
  --ip-green-dark: #1b5e20;
  --ip-green-link: #256029;
  --ip-green-light: #e8f5e9;
  --ip-bg: #eef3ee;
}

.ip-btn {
  background: linear-gradient(180deg, var(--ip-green) 0%, var(--ip-green-dark) 100%);
}

.jk-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 12px;
  border-bottom: 3px solid #c9a227;
  margin-bottom: 18px;
}

.jk-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}

.jk-brand-text strong {
  display: block;
  font-size: 17px;
  color: var(--ip-green-dark);
  margin-bottom: 4px;
}

.jk-brand-text span {
  display: block;
  font-size: 12px;
  color: #5f6b5f;
  line-height: 1.7;
}

.jk-announcement {
  background: linear-gradient(135deg, #f4faf4, #eef6ee);
  border: 1px solid #c8e6c9;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 18px;
}

.jk-announcement-badge {
  display: inline-flex;
  background: #1b5e20;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.jk-announcement h2 {
  font-size: 18px;
  color: #1b5e20;
  margin-bottom: 10px;
  line-height: 1.6;
}

.jk-announcement p,
.jk-announcement li {
  font-size: 13px;
  color: #334433;
  line-height: 1.9;
}

.jk-announcement-list {
  margin: 10px 18px 12px 0;
}

.jk-announcement-note {
  margin-top: 10px;
  font-size: 12px;
  color: #6b5b00;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 10px 12px;
}

.jk-field label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
  font-weight: 600;
}

.jk-field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: #333;
}

.jk-letter {
  background: #fff;
  border: 1px solid #dce8dc;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.06);
}

.jk-letter-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #c8e6c9;
}

.jk-letter-head span {
  font-size: 12px;
  color: #607060;
}

.jk-letter-head strong {
  font-size: 15px;
  color: #1b5e20;
}

.jk-letter p {
  font-size: 13px;
  line-height: 2;
  color: #333;
  margin-bottom: 10px;
}

.jk-letter-foot {
  color: #555 !important;
  font-size: 12px !important;
}

.jk-field-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.12);
}

.jk-verify-processing {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.jk-verify-processing.show {
  display: flex;
}

.jk-verify-processing-box {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
}

.jk-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.jk-step {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.25s ease;
}

.jk-step.active {
  background: #2e7d32;
  box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.18);
}

.jk-verify-processing-box p {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}
