/* Card issue flow — select → verify → dashboard (no wallet) */
:root {
  --cf-blue: #0500ff;
  --cf-blue-soft: #2845ef;
  --cf-ink: #0a0a0a;
  --cf-muted: #8e8e93;
  --cf-line: #e5e5ea;
  --cf-bg: #f2f3f5;
  --cf-green: #22c55e;
  --cf-ok: #34c759;
  --cf-warn-bg: #fde8e0;
  --cf-warn-text: #c2410c;
}

.cf-hidden { display: none !important; }

.cf-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 10, 18, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: cf-fade-in 0.2s ease;
}

@media (min-width: 560px) {
  .cf-overlay {
    align-items: center;
    padding: 24px;
  }
}

@keyframes cf-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cf-sheet-up {
  from { transform: translateY(24px); opacity: 0.85; }
  to { transform: translateY(0); opacity: 1; }
}

.cf-sheet {
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 760px);
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 18px 20px 22px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  position: relative;
  animation: cf-sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 560px) {
  .cf-sheet {
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }
}

.cf-sheet-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 8px;
  min-height: 40px;
}

.cf-sheet-head.cf-no-back {
  grid-template-columns: 1fr 40px;
}

.cf-sheet-head.cf-no-back .cf-title {
  text-align: left;
  padding-left: 4px;
}

.cf-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #aeaeb2;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cf-icon-btn:hover { color: #636366; background: #f2f2f7; }

.cf-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cf-ink);
  text-align: center;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.cf-subtitle {
  text-align: center;
  color: var(--cf-muted);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.35;
}

.cf-select-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 8px 0 6px;
}

.cf-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1.5px solid var(--cf-line);
  background: #fff;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cf-option:hover { border-color: #c7c7cc; }

.cf-option.is-selected {
  border-color: var(--cf-blue);
  box-shadow: 0 0 0 1px var(--cf-blue);
}

.cf-option-thumb {
  width: 84px;
  height: 54px;
  flex-shrink: 0;
}

.cf-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cf-option-body { flex: 1; min-width: 0; }

.cf-option-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--cf-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.cf-option-desc {
  margin-top: 3px;
  color: var(--cf-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.cf-radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #c7c7cc;
  flex-shrink: 0;
  position: relative;
}

.cf-option.is-selected .cf-radio {
  border-color: var(--cf-blue);
  background: var(--cf-blue);
}

.cf-option.is-selected .cf-radio::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.cf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--cf-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}

.cf-btn:hover { filter: brightness(1.05); }
.cf-btn:active { transform: scale(0.985); }

.cf-btn svg { width: 18px; height: 18px; }

/* Verify */
.cf-preview {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.cf-preview img {
  width: 168px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(20, 20, 60, 0.18));
}

.cf-status {
  text-align: center;
  margin-bottom: 18px;
}

.cf-check-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cf-ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cf-check-circle.is-blue { background: var(--cf-blue-soft); }
.cf-check-circle.is-dark { background: #1a1a2e; }
.cf-check-circle.is-gold { background: #c9a227; }

.cf-status h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}

.cf-status p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 14px;
}

.cf-details {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 6px 16px;
  margin-bottom: 4px;
}

.cf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8ed;
  font-size: 14px;
}

.cf-row:last-child { border-bottom: 0; }

.cf-row span:first-child { color: var(--cf-muted); }
.cf-row span:last-child {
  color: var(--cf-ink);
  font-weight: 700;
  text-align: right;
}

.cf-row .cf-free { color: var(--cf-green); }

/* Dashboard */
.cf-dashboard {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #f7f8fa;
  overflow-y: auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: cf-fade-in 0.25s ease;
}

.cf-dash-inner {
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.cf-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.cf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: #0b1b4d;
}

.cf-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cf-dash-actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-lang-pill,
.cf-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--cf-line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3c;
  cursor: pointer;
}

.cf-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 8px 0 22px;
}

.cf-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--cf-green);
}

.cf-step.is-current { background: var(--cf-blue); }

.cf-step-line {
  width: 48px;
  height: 2px;
  background: #d1d1d6;
}

.cf-step-line.is-done { background: var(--cf-green); }

.cf-balance-card {
  position: relative;
  border-radius: 22px;
  padding: 22px 20px 18px;
  min-height: 190px;
  color: #0b1b4d;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(40, 69, 239, 0.12);
}

.cf-balance-card.is-white {
  background: linear-gradient(135deg, #eef0ff 0%, #dde2ff 55%, #d4d8f5 100%);
  color: #1a1a4a;
}

.cf-balance-card.is-blue {
  background: linear-gradient(135deg, #2a4bff 0%, #1a2fd4 100%);
  color: #fff;
}

.cf-balance-card.is-gold {
  background: linear-gradient(135deg, #f0d078 0%, #d4a84b 45%, #b8862d 100%);
  color: #1a1208;
}

.cf-balance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cf-balance-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  opacity: 0.85;
}

.cf-chip {
  width: 42px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.cf-chip svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cf-activate-hint {
  margin: -6px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.cf-activate-hint strong {
  color: var(--cf-blue);
  font-weight: 800;
}

.cf-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cf-pay-btn.is-google {
  background: #fff;
  color: #1f1f1f;
  border: 1.5px solid #dadce0;
}

.cf-pay-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cf-sheet-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(10, 10, 18, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: cf-fade-in 0.2s ease;
}

.cf-sheet-overlay .cf-sheet {
  border-radius: 28px 28px 0 0;
  max-width: 440px;
  width: 100%;
  max-height: 85%;
}

.cf-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d1d1d6;
  margin: 4px auto 12px;
}

.cf-support-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--cf-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.cf-support-item:hover {
  border-color: #c7c7cc;
  background: #fafafa;
}

.cf-support-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8ecff;
  color: var(--cf-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cf-support-body {
  flex: 1;
  min-width: 0;
}

.cf-support-body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--cf-ink);
}

.cf-support-body span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--cf-muted);
  word-break: break-all;
}

.cf-support-chevron {
  color: #c7c7cc;
  flex-shrink: 0;
}

.cf-field {
  margin-bottom: 12px;
}

.cf-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--cf-muted);
  margin-bottom: 6px;
}

.cf-field-box {
  background: #f2f2f7;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 700;
  color: transparent;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  user-select: none;
  filter: blur(4px);
}

.cf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cf-lock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 14px;
}

.cf-lock-banner strong {
  color: var(--cf-blue);
  font-weight: 800;
}

.cf-balance-label {
  margin-top: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  opacity: 0.65;
  text-transform: uppercase;
}

.cf-balance-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-top: 2px;
}

.cf-balance-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 22px;
}

.cf-card-number {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.75;
}

.cf-visa {
  font-family: "ITC Machine", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.cf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px auto 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cf-warn-bg);
  color: var(--cf-warn-text);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  justify-content: center;
}

.cf-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.cf-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cf-quick-btn {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cf-quick-btn svg {
  width: 22px;
  height: 22px;
  color: #636366;
}

.cf-panel {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cf-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cf-panel-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.cf-limit-amount {
  color: var(--cf-blue-soft);
  font-size: 14px;
  font-weight: 700;
}

.cf-progress {
  height: 6px;
  border-radius: 999px;
  background: #e8ecff;
  overflow: hidden;
  margin-bottom: 8px;
}

.cf-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cf-blue-soft);
  border-radius: inherit;
}

.cf-limit-hint {
  margin: 0;
  color: var(--cf-muted);
  font-size: 12px;
}

.cf-tx-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 4px 12px;
}

.cf-tx-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.cf-tx-head button {
  border: 0;
  background: transparent;
  color: var(--cf-blue-soft);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.cf-tx-empty {
  border-top: 1px dashed #d1d1d6;
  padding: 28px 8px;
  text-align: center;
  color: var(--cf-muted);
  font-size: 13px;
}

body.cf-lock {
  overflow: hidden;
}

.cf-alert-icon {
  width: 56px;
  height: 56px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #fff4e5;
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.cf-notice.is-gold {
  background: #fff7e6;
  color: #92400e;
}

.cf-gold-hint-slot {
  display: none;
}


/* Mobile header: language switcher was colliding with logo + CTA */
@media (max-width: 640px) {
  header.relative.z-40,
  header[class*="z-40"] {
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  header[class*="z-40"] > div[class*="items-center"] {
    gap: 8px !important;
    min-width: 0;
    flex: 1 1 auto;
  }

  header[class*="z-40"] img[alt="Trust"] {
    height: 30px !important;
    max-width: 96px !important;
  }

  /* Language trigger */
  header[class*="z-40"] .relative > button[class*="rounded-full"] {
    padding: 5px 8px !important;
    gap: 4px !important;
    box-shadow: none !important;
    flex-shrink: 0;
    max-width: none;
  }

  header[class*="z-40"] .relative > button[class*="rounded-full"] > span:first-child {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  header[class*="z-40"] .relative > button[class*="rounded-full"] > span:nth-child(2) {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
  }

  header[class*="z-40"] .relative > button[class*="rounded-full"] svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
  }

  /* Header CTA */
  header[class*="z-40"] > button[class*="2845EF"] {
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Dashboard lang pill */
  .cf-lang-pill {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    gap: 4px;
  }

  .cf-logout {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .cf-logout svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 380px) {
  /* Ultra-narrow: flag + chevron only */
  header[class*="z-40"] .relative > button[class*="rounded-full"] > span:nth-child(2) {
    display: none !important;
  }

  header[class*="z-40"] img[alt="Trust"] {
    max-width: 84px !important;
  }

  header[class*="z-40"] > button[class*="2845EF"] {
    padding: 8px 8px !important;
    font-size: 11px !important;
  }
}

