/* ═══════════════════════════════════════════════════════════
   Nexus Capital — Modern FinTech Stylesheet
   Mobile-First Responsive Design
   ═══════════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #F4F6F8 !important;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px) !important;
  background-size: 20px 20px;
  color: #111827;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #0052FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR — Mobile First
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid #E5E7EB;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ── Brand / Logo ────────────────────────────────────────── */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0052FF 0%, #0035CC 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text em {
  font-style: normal;
  color: #9CA3AF;
  margin: 0 1px;
}

/* ── Navbar Actions ──────────────────────────────────────── */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Shared (Touch Friendly Base)
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-ghost {
  padding: 8px 12px;
  background: transparent;
  color: #374151;
  min-height: 36px;
}

.btn-ghost:hover {
  background: #F3F4F6;
  color: #111827;
}

.btn-primary {
  padding: 8px 14px;
  background: #0052FF;
  color: #FFFFFF;
  min-height: 36px;
}

.btn-primary:hover {
  background: #0043D5;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Mobile First (Single Column)
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: #FFFFFF;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Hero Left — Brand Intro ─────────────────────────────── */
.hero-left {
  padding-top: 0;
}

/* Promo Banner */
.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 100px;
  margin-bottom: 18px;
}

.promo-emoji {
  font-size: 14px;
  line-height: 1;
}

.promo-text {
  font-size: 12px;
  font-weight: 600;
  color: #C2410C;
  letter-spacing: -0.1px;
}

/* Main Heading — Mobile Size */
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #090A0F;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  background: #EEF2F6;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #4B5563;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.5;
}

/* Subtitle */
.hero-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #4B5563;
  margin-bottom: 24px;
}

.hero-desc strong {
  color: #0052FF;
  font-weight: 700;
}

/* Trust Signals — Mobile: horizontal scroll safe */
.trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trust-row::-webkit-scrollbar {
  display: none;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.trust-number {
  font-size: 20px;
  font-weight: 800;
  color: #0052FF !important;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.trust-label {
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: #E5E7EB;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FORM CARD — Mobile First
   ═══════════════════════════════════════════════════════════ */
.hero-right {
  position: relative;
  width: 100%;
}

.form-card {
  background-color: #FFFFFF !important;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow:
    0 20px 40px -10px rgba(0, 72, 255, 0.06),
    0 10px 20px -5px rgba(0, 0, 0, 0.03) !important;
  position: relative;
  overflow: visible;
}

.form-card::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.04) 0%, rgba(0, 200, 83, 0.03) 100%);
  filter: blur(40px);
  border-radius: 24px;
  z-index: -1;
  pointer-events: none;
}

.form-card::before {
  content: 'NEXUS QUANT DATA SECURITY PROTOCOL';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 14px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  color: #000000;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.form-card-header {
  margin-bottom: 20px;
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

/* ── Form Body ───────────────────────────────────────────── */
.form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS zoom */
  color: #111827;
  background-color: #FFFFFF !important;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  outline: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input:focus {
  background-color: #FFFFFF !important;
  border-color: #0052FF !important;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1) !important;
}

/* CTA Button — Touch Friendly */
.btn-cta {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(180deg, #00D656 0%, #00B344 100%);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.1px;
  line-height: 1.3;
  min-height: 52px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 1px 3px rgba(0, 179, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: btn-sweep 3.5s ease-in-out infinite;
}

@keyframes btn-sweep {
  0% { left: -100%; }
  40% { left: 150%; }
  100% { left: 150%; }
}

.btn-cta:hover {
  background: linear-gradient(180deg, #00C850 0%, #00A33E 100%);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-cta:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.2);
}

.btn-cta-text {
  transition: opacity 0.2s ease;
}

.btn-cta-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: absolute;
  inset: 0;
}

.btn-cta-loading .btn-cta-text {
  opacity: 0;
}

.btn-cta-loading .btn-cta-loader {
  display: flex;
}

.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: loader-bounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loader-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.btn-cta-loading {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Disclaimer */
.form-disclaimer {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.6;
  text-align: center;
}

.form-disclaimer a {
  color: #6B7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-disclaimer a:hover {
  color: #0052FF;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES SECTION — Mobile First (Single Column)
   ═══════════════════════════════════════════════════════════ */
.features {
  background: #F8F9FA;
  border-top: 1px solid #E5E7EB;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.feature-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #6B7280;
}

/* ═══════════════════════════════════════════════════════════
   BUTTON LOADING STATE
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   MATCHING PANEL — Mobile First
   ═══════════════════════════════════════════════════════════ */
.matching-panel {
  margin-top: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              transform 0.4s ease;
}

.matching-panel.panel-visible {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.matching-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

.mp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00C853;
  animation: mp-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes mp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mp-title {
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.2px;
}

.mp-subtitle {
  font-size: 9px;
  color: #9CA3AF;
  margin-left: auto;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.matching-panel-body {
  padding: 10px 14px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.matching-panel-body::-webkit-scrollbar {
  width: 3px;
}

.matching-panel-body::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 2px;
}

/* ── Log Rows ────────────────────────────────────────────── */
.log-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 10px;
  line-height: 1.5;
  animation: log-fade-in 0.3s ease;
}

@keyframes log-fade-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.log-time {
  color: #9CA3AF;
  flex-shrink: 0;
  font-size: 9px;
}

.log-text {
  color: #4B5563;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.log-status {
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
}

.log-status-ok {
  color: #00C853;
  background: rgba(0, 200, 83, 0.08);
}

.log-match .log-text {
  color: #0052FF;
  font-weight: 500;
}

.log-match .log-status {
  color: #0052FF;
  background: rgba(0, 82, 255, 0.08);
}

/* ── Lock Success Banner ─────────────────────────────────── */
.lock-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              padding 0.4s ease;
}

.lock-banner-visible {
  max-height: 140px;
  opacity: 1;
  padding: 12px 14px;
  border-top: 1px solid #E5E7EB;
  background: #F0FDF4;
}

.lock-banner-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00C853;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.lock-banner-content strong {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  display: block;
  margin-bottom: 2px;
}

.lock-banner-content p {
  font-size: 11px;
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
}

.lock-price {
  font-weight: 700;
  color: #00C853;
}

.lock-discount {
  font-weight: 700;
  color: #0052FF;
}

/* ═══════════════════════════════════════════════════════════
   MODAL OVERLAY — Mobile First (Scrollable)
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px;
}

.modal-overlay.modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  padding-bottom: 20px;
}

.modal-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: rgba(255, 255, 255, 0.95);
  color: #6B7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: #F3F4F6;
  color: #111827;
}

/* ── Compliance Notice ───────────────────────────────────── */
.compliance-notice {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-visible .compliance-notice {
  transform: translateY(0);
  opacity: 1;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: #1E40AF;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.compliance-shield {
  font-size: 13px;
}

.compliance-text {
  font-size: 12px;
  line-height: 1.7;
  color: #4B5563;
}

.compliance-text strong {
  color: #111827;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   CERTIFICATE CARD — 3D Flip, Mobile Sized
   ═══════════════════════════════════════════════════════════ */
.certificate-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 340px;
  min-height: 240px;
}

.certificate-card {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotateY(180deg) scale(0.85);
  opacity: 0;
}

.certificate-card.certificate-flip {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
}

.certificate-front {
  position: relative;
  background: linear-gradient(145deg, #1A1D23 0%, #2C2F36 40%, #1A1D23 100%);
  border-radius: 14px;
  padding: 22px 18px 20px;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backface-visibility: hidden;
}

/* Watermark */
.cert-watermark {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 120px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Brushed metal texture */
.certificate-front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}

/* ── Sweep / Shine Effect ────────────────────────────────── */
.cert-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  animation: cert-sweep 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes cert-sweep {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* ── Certificate Top ─────────────────────────────────────── */
.cert-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cert-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.cert-divider-line {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.cert-type {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* ── Certificate Body ────────────────────────────────────── */
.cert-body {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.cert-heading {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}

.cert-subheading {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cert-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cert-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-detail-row:last-child {
  border-bottom: none;
}

.cert-detail-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

.cert-detail-value {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.1px;
}

.cert-highlight {
  color: #00C853;
}

/* ── Certificate Bottom (QR + Seal) ─────────────────────── */
.cert-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cert-qr-blur {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-qr-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background:
    repeating-conic-gradient(rgba(255,255,255,0.15) 0% 25%, rgba(255,255,255,0.05) 0% 50%) 0 0 / 8px 8px;
  filter: blur(10px);
}

.cert-qr-label {
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  text-align: center;
  max-width: 110px;
  line-height: 1.4;
}

/* ── Verified Seal ───────────────────────────────────────── */
.cert-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.cert-seal-text {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   PRE-MARKET ORDER SANDBOX — Mobile First
   ═══════════════════════════════════════════════════════════ */
.sandbox-panel {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px 16px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.2s;
}

.modal-visible .sandbox-panel {
  transform: translateY(0);
  opacity: 1;
}

.sandbox-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F4F6;
}

.sandbox-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sandbox-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

.sandbox-subtitle {
  font-size: 10px;
  color: #9CA3AF;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* ── Sandbox Sections ────────────────────────────────────── */
.sandbox-section {
  margin-bottom: 16px;
}

.sandbox-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.sandbox-label-en {
  font-weight: 400;
  color: #9CA3AF;
  font-size: 10px;
  letter-spacing: 0.2px;
  margin-left: 4px;
}

/* ── Custom Radio Group ──────────────────────────────────── */
.sandbox-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sandbox-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sandbox-radio:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.sandbox-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sandbox-radio-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.sandbox-radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.2s ease;
}

.sandbox-radio input[type="radio"]:checked ~ .sandbox-radio-mark {
  border-color: #0052FF;
  background: #0052FF;
}

.sandbox-radio input[type="radio"]:checked ~ .sandbox-radio-mark::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sandbox-radio:has(input:checked) {
  border-color: #0052FF;
  background: #F0F5FF;
  box-shadow: 0 0 0 1px rgba(0, 82, 255, 0.1);
}

.sandbox-radio-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sandbox-radio-main {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: color 0.2s ease;
}

.sandbox-radio-desc {
  font-size: 11px;
  color: #9CA3AF;
}

.sandbox-radio-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #0052FF;
  background: rgba(0, 82, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Savings Display ─────────────────────────────────────── */
.sandbox-savings {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.savings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.savings-label {
  font-size: 11px;
  color: #4B5563;
  font-weight: 500;
  flex: 1;
}

.savings-value {
  font-size: 22px;
  font-weight: 800;
  color: #00C853;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.savings-detail {
  font-size: 10px;
  color: #6B7280;
  letter-spacing: 0.1px;
}

/* ── Submit Order Button — Touch Friendly ────────────────── */
.btn-submit-order {
  width: 100%;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0052FF 0%, #0035CC 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.1px;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-submit-order:hover {
  background: linear-gradient(135deg, #0043D5 0%, #002BB5 100%);
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
}

.btn-submit-order:active {
  transform: scale(0.98);
}

.submit-order-text {
  transition: opacity 0.2s ease;
}

.submit-order-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: absolute;
  inset: 0;
}

.btn-submit-loading .submit-order-text {
  opacity: 0;
}

.btn-submit-loading .submit-order-loader {
  display: flex;
}

.btn-submit-loading {
  pointer-events: none;
  opacity: 0.85;
}

/* ── Submit Status ───────────────────────────────────────── */
.sandbox-disclaimer {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  transition: color 0.2s ease;
}

.sandbox-disclaimer.status-active {
  color: #6B7280;
}

.sandbox-disclaimer.status-success {
  color: #00C853;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FINAL MODAL — Settlement Gateway, Mobile First
   ═══════════════════════════════════════════════════════════ */
.final-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px 16px;
}

.final-modal-overlay.final-modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.final-modal {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 28px 20px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.final-modal-visible .final-modal {
  transform: translateY(0) scale(1);
}

.final-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #1E40AF;
  margin-bottom: 16px;
}

.final-modal-shield {
  font-size: 14px;
}

.final-modal-text {
  font-size: 12px;
  line-height: 1.8;
  color: #4B5563;
  margin-bottom: 20px;
}

.final-modal-text strong {
  color: #111827;
  font-weight: 700;
}

.final-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-final-primary {
  width: 100%;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0052FF 0%, #0035CC 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-final-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
}

.btn-final-primary:active {
  transform: scale(0.98);
}

.btn-final-secondary {
  width: 100%;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-final-secondary:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.btn-final-secondary:active {
  transform: scale(0.98);
}

.final-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #6B7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.final-modal-close:hover {
  background: #F3F4F6;
  color: #111827;
}

/* ═══════════════════════════════════════════════════════════
   TABLET — min-width: 768px
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .navbar-inner {
    padding: 0 24px;
    height: 60px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .brand-text {
    font-size: 15px;
  }

  .btn-ghost {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 40px;
  }

  .btn-primary {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 40px;
  }

  .hero-inner {
    padding: 48px 24px 56px;
    gap: 36px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -0.8px;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .trust-number {
    font-size: 24px;
  }

  .trust-row {
    gap: 24px;
  }

  .form-card {
    padding: 28px 24px;
  }

  .features-inner {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 56px 24px;
    gap: 20px;
  }

  .feature-card {
    flex: 1 1 calc(50% - 10px);
  }

  .certificate-wrapper {
    max-width: 380px;
  }

  .certificate-front {
    padding: 26px 24px 22px;
    border-radius: 16px;
  }

  .cert-heading {
    font-size: 17px;
  }

  .cert-qr-blur {
    width: 66px;
    height: 66px;
  }

  .cert-seal {
    width: 48px;
    height: 48px;
  }

  .sandbox-panel {
    padding: 24px 20px;
  }

  .final-modal {
    padding: 32px 28px;
  }

  .modal-overlay {
    padding: 32px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP — min-width: 1024px
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .navbar-inner {
    padding: 0 32px;
    height: 64px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }

  .brand-text {
    font-size: 16px;
  }

  .btn-ghost {
    padding: 10px 20px;
    min-height: 40px;
  }

  .btn-primary {
    padding: 10px 22px;
    min-height: 40px;
  }

  /* Hero: Two-column layout */
  .hero-inner {
    padding: 72px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: start;
  }

  .hero-left {
    padding-top: 8px;
  }

  .hero-title {
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 16px;
    margin-bottom: 36px;
    max-width: 540px;
  }

  .trust-number {
    font-size: 26px;
  }

  .trust-row {
    gap: 28px;
    overflow-x: visible;
  }

  .trust-divider {
    height: 36px;
  }

  .form-card {
    padding: 36px 32px;
  }

  .form-title {
    font-size: 20px;
  }

  /* Features: Three columns */
  .features-inner {
    padding: 64px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .feature-card {
    flex: none;
    padding: 32px 28px;
  }

  .feature-card:hover {
    transform: translateY(-2px);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .feature-title {
    font-size: 17px;
  }

  .feature-desc {
    font-size: 14px;
  }

  /* Certificate */
  .certificate-wrapper {
    max-width: 440px;
  }

  .certificate-front {
    padding: 28px 28px 24px;
  }

  .cert-watermark {
    font-size: 160px;
  }

  .cert-brand {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .cert-heading {
    font-size: 18px;
  }

  .cert-subheading {
    font-size: 10px;
  }

  .cert-detail-label {
    font-size: 11px;
  }

  .cert-detail-value {
    font-size: 13px;
  }

  .cert-qr-blur {
    width: 72px;
    height: 72px;
  }

  .cert-qr-placeholder {
    width: 56px;
    height: 56px;
  }

  .cert-qr-label {
    font-size: 7px;
    max-width: 140px;
  }

  .cert-seal {
    width: 52px;
    height: 52px;
  }

  .cert-seal-text {
    font-size: 8px;
  }

  /* Sandbox */
  .sandbox-panel {
    padding: 24px;
  }

  .sandbox-title {
    font-size: 15px;
  }

  .savings-value {
    font-size: 24px;
  }

  .btn-submit-order {
    font-size: 15px;
  }

  /* Modal */
  .modal-overlay {
    align-items: center;
    padding: 40px 20px;
  }

  .modal-container {
    gap: 24px;
  }

  .modal-close {
    top: -12px;
    right: -12px;
    position: absolute;
  }

  .compliance-notice {
    padding: 24px 28px;
  }

  .compliance-badge {
    font-size: 11px;
  }

  .compliance-text {
    font-size: 13px;
  }

  .matching-panel-body {
    max-height: 200px;
  }

  .log-row {
    font-size: 11px;
  }

  .log-time {
    font-size: 10px;
  }

  .mp-title {
    font-size: 11px;
  }

  /* Final Modal */
  .final-modal {
    padding: 32px 28px;
    border-radius: 20px;
  }

  .final-modal-text {
    font-size: 13px;
  }

  .final-modal-badge {
    font-size: 12px;
  }
}

/* ─── Login Modal (all viewports) ─── */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.login-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 24px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: center;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.is-visible .login-modal-card {
  transform: scale(1) translateY(0);
}

.login-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.login-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.login-modal-text {
  font-size: 14px;
  line-height: 1.65;
  color: #4B5563;
  margin: 0 0 24px;
  text-align: left;
}

.login-modal-text strong {
  color: #111827;
  font-weight: 600;
}

.login-modal-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  background: #0052FF;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.login-modal-btn:hover {
  background: #0043CC;
}

.login-modal-btn:active {
  background: #0038B3;
}
