/* ==========================================================================
   MINIMALIST CORPORATE SECURITY VERIFICATION
   Clean, authentic, professional UI (Cloudflare / Turnstile style)
   ========================================================================== */

:root {
  --bg-main: #0b0f17;
  --card-bg: #111827;
  --card-border: #1f2937;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #10b981;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --track-bg: #030712;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Center Wrapper */
.main-wrapper {
  width: 100%;
  max-width: 400px;
}

/* Security Card */
.security-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease;
}

.security-card.layer-2-active {
  border-color: #374151;
}

/* Card Header */
.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 2-Step Bar */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  background: #0d131f;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 8px 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1f2937;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s;
}

.step-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.step-item.active .step-circle {
  background: var(--primary);
  color: #ffffff;
}

.step-item.active .step-text {
  color: var(--text-main);
  font-weight: 600;
}

.step-item.completed .step-circle {
  background: var(--success);
  color: #ffffff;
}

.step-item.completed .step-text {
  color: var(--success);
  font-weight: 600;
}

.step-divider {
  flex: 1;
  height: 1px;
  background: #1f2937;
  margin: 0 10px;
  position: relative;
}

.step-divider-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.35s ease;
}

/* Message Box */
.verify-message-box {
  background: #0d131f;
  border: 1px solid #1f2937;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  transition: border-left-color 0.25s ease;
}

.security-card.layer-2-active .verify-message-box {
  border-left-color: var(--success);
}

.msg-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.msg-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Slider Track & Handle */
.slider-container {
  margin-bottom: 20px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 50px;
  background: var(--track-bg);
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: border-color 0.2s;
}

.slider-track.dragging {
  border-color: var(--primary);
}

.slider-track.layer-2-track.dragging {
  border-color: var(--success);
}

.slider-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-left: 14px;
  z-index: 1;
}

.label-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0px;
  background: rgba(37, 99, 235, 0.2);
  pointer-events: none;
  z-index: 2;
}

.slider-fill.layer-2-fill {
  background: rgba(16, 185, 129, 0.2);
}

.slider-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 44px;
  height: 42px;
  border-radius: 6px;
  background: #1f2937;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 3;
  transition: background 0.15s;
}

.slider-handle:hover {
  background: #374151;
}

.slider-handle:active, .slider-handle.dragging {
  cursor: grabbing;
  background: var(--primary);
  border-color: var(--primary);
}

.slider-handle.layer-2-handle:active, .slider-handle.layer-2-handle.dragging {
  background: var(--success);
  border-color: var(--success);
}

/* Minimalist CSS Chevron */
.handle-arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d1d5db;
  border-right: 2px solid #d1d5db;
  transform: rotate(45deg);
  margin-right: 2px;
}

.slider-handle:active .handle-arrow,
.slider-handle.dragging .handle-arrow {
  border-color: #ffffff;
}

.slider-hint {
  text-align: center;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Card Footer */
.card-footer {
  border-top: 1px solid #1f2937;
  padding-top: 12px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   REDIRECT MODAL OVERLAY
   ========================================================================== */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.redirect-overlay.active {
  opacity: 1;
  visibility: visible;
}

.redirect-modal {
  width: 100%;
  max-width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.redirect-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.redirect-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.spinner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.spinner-row strong {
  color: var(--text-main);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #374151;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.btn-direct {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--primary);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-direct:hover {
  background: var(--primary-hover);
}
