/* ===== RESET ===== */
#sbst-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }

#sbst-wrapper {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}

/* ===== CARD ===== */
.sbst-card {
  background: #f2f2f2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.14);
}

/* ===== HEADER ===== */
.sbst-header {
  background: linear-gradient(160deg, #c0392b 0%, #8b1a1a 100%);
  padding: 22px 20px 18px;
  text-align: center;
}
.sbst-logo { display: none; }
.sbst-header h2 {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 2.5px;
  margin: 0 0 4px !important;
  padding: 0 !important;
  text-transform: uppercase;
  line-height: 1.2;
}
.sbst-header p {
  color: rgba(255,255,255,0.80) !important;
  font-size: 9.5px !important;
  letter-spacing: 4px;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase;
}

/* ===== BODY ===== */
.sbst-body {
  background: #fff;
  margin: 10px 10px 10px 10px;
  border-radius: 12px;
  padding: 18px 16px 20px;
}

/* ===== FIELDS ===== */
.sbst-field {
  flex: 1;
  min-width: 0;
}
.sbst-field label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #aaa;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
}
.sbst-field input[type="text"],
.sbst-field input[type="email"] {
  width: 100%;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #444;
  background: #fff;
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}
.sbst-field input:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192,57,43,0.08);
}
.sbst-field input::placeholder { color: #ccc; font-size: 13px; }

/* ===== FIELD GROUPS ===== */
.sbst-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.sbst-row {
  display: flex;
  gap: 10px;
}
.sbst-row .sbst-field { flex: 1; min-width: 0; }

/* ===== PAYMENT BOX ===== */
.sbst-payment-box {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 12px 12px;
  margin-bottom: 12px;
}
.sbst-payment-title {
  font-size: 9.5px !important;
  letter-spacing: 2px;
  color: #c0392b !important;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px !important;
  padding: 0 !important;
  text-transform: uppercase;
}
.sbst-payment-options {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}
.sbst-radio-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #fff;
  flex: 1;
  min-width: 0;
}
.sbst-radio-label input[type="radio"] {
  accent-color: #c0392b;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.sbst-radio-label.active {
  border-color: #c0392b;
}
.sbst-radio-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.sbst-radio-mode {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.sbst-radio-amount {
  font-size: 10.5px;
  font-weight: 600;
  color: #c0392b;
}
.sbst-radio-label.active .sbst-radio-mode { color: #c0392b; }

/* ===== FILE UPLOAD ===== */
.sbst-passport-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #aaa;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
}
.sbst-file-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #d8d8d8;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 0;
}
.sbst-file-btn {
  background: #c0392b;
  color: #fff;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sbst-file-btn input[type="file"] { display: none; }
#sbst-file-name {
  font-size: 12.5px;
  color: #888;
  font-weight: 400;
}

/* ===== GENERATE BUTTON — RED ===== */
.sbst-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #c0392b 0%, #8b1a1a 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 11px;
  padding: 14px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(192,57,43,0.28);
  transition: all 0.18s;
  margin-top: 14px;
  font-family: inherit;
  display: block;
}
.sbst-submit-btn:hover {
  box-shadow: 0 6px 22px rgba(192,57,43,0.38);
  transform: translateY(-1px);
}
.sbst-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.sbst-outline-btn {
  width: 100%;
  background: transparent !important;
  color: #c0392b !important;
  border: 2px solid #c0392b !important;
  border-radius: 11px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.18s;
  font-family: inherit;
}
.sbst-outline-btn:hover { background: #c0392b !important; color: #fff !important; }
.sbst-action-btns { margin-top: 0; }

/* ===== ID CARD ===== */
#sbst-id-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.id-header {
  background: linear-gradient(135deg, #c0392b 0%, #8b1a1a 100%);
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
}
.id-logo-img {
  height: 58px; width: 58px; object-fit: contain;
  border-radius: 50%; background: #fff; padding: 5px;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.id-header-text h3 {
  margin: 0 0 3px !important; padding: 0 !important;
  font-size: 17px !important; font-weight: 900 !important;
  letter-spacing: 1.5px; color: #fff !important; text-transform: uppercase;
}
.id-header-text p {
  margin: 0 !important; padding: 0 !important;
  font-size: 9.5px; letter-spacing: 2px;
  color: rgba(255,255,255,0.78) !important; text-transform: uppercase;
}
.id-body { display: flex; padding: 18px 20px; gap: 18px; }
.id-photo-col { flex-shrink: 0; }
.id-photo-frame {
  width: 122px; height: 150px;
  border: 2px solid #c0392b; border-radius: 8px; overflow: hidden;
  background: #fdf0ef; display: flex; align-items: center; justify-content: center;
}
.id-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.id-details-col { flex: 1; }
.id-row {
  display: flex; flex-direction: column;
  margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.id-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.id-label { font-size: 9px; letter-spacing: 2px; color: #bbb; font-weight: 700; margin-bottom: 1px; text-transform: uppercase; }
.id-value { font-size: 13.5px; font-weight: 500; color: #333; }
.id-value.red { color: #c0392b; font-weight: 800; font-size: 15px; }
.id-value.bold { font-weight: 800; font-size: 14px; color: #111; }
.id-status-row > div:first-child { display: flex; gap: 68px; margin-bottom: 4px; }
.id-status-row > div:last-child { display: flex; align-items: center; gap: 22px; }
.id-date-label { font-size: 9px; letter-spacing: 2px; color: #bbb; font-weight: 700; text-transform: uppercase; }
.id-status-badge {
  background: #f0fdf4; color: #15803d; border: 1.5px solid #86efac;
  padding: 3px 9px; border-radius: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase;
}
.id-date { font-size: 12.5px; font-weight: 700; color: #555; }
.id-footer {
  background: linear-gradient(135deg, #c0392b 0%, #8b1a1a 100%);
  color: #fff; text-align: center; padding: 11px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}

/* ===== POPUP ===== */
#sbst-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 999999; display: flex; align-items: center;
  justify-content: center; padding: 12px; box-sizing: border-box;
}
#sbst-popup-modal {
  position: relative; width: 100%; max-width: 460px;
  max-height: 94vh; overflow-y: auto; border-radius: 18px;
  animation: sbstUp 0.28s ease;
  background: #f2f2f2;
}
@keyframes sbstUp {
  from { transform: translateY(36px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#sbst-popup-close {
  position: absolute; top: 10px; right: 12px; z-index: 99999;
  background: #fff; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 18px;
  cursor: pointer; color: #c0392b; font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  display: flex; align-items: center; justify-content: center;
}
#sbst-popup-modal #sbst-wrapper { margin: 0; max-width: 100%; padding: 0; }
#sbst-popup-modal::-webkit-scrollbar { width: 4px; }
#sbst-popup-modal::-webkit-scrollbar-thumb { background: #c0392b; border-radius: 4px; }

/* ===== MOBILE ===== */
@media (max-width: 440px) {
  #sbst-wrapper { max-width: 100%; }
  .sbst-body { margin: 8px 8px; padding: 14px 12px 16px; }
  .sbst-header h2 { font-size: 19px !important; letter-spacing: 2px; }
  .sbst-field-group { gap: 10px; }
  .sbst-row { gap: 8px; }
  .sbst-field input[type="text"],
  .sbst-field input[type="email"] { padding: 9px 10px; font-size: 13px; }
  .sbst-radio-label { padding: 8px 8px; gap: 6px; }
  .sbst-radio-mode { font-size: 12px; }
  .sbst-radio-amount { font-size: 10px; }
  .sbst-submit-btn { font-size: 15px; padding: 13px; }
  .id-body { flex-direction: column; padding: 14px 14px; gap: 12px; }
  .id-photo-frame { width: 100%; height: 150px; }
  .id-header-text h3 { font-size: 13px !important; letter-spacing: 0.5px; }
  .id-status-row > div:first-child { gap: 38px; }
}
