/* Bolt Brand Design System */
:root {
  --bolt-green: #32bb78;
  --bolt-green-dark: #279e64;
  --bolt-green-light: #e8f8f1;
  --bolt-dark: #121820;
  --bolt-gray-dark: #2c3540;
  --bolt-gray-muted: #657383;
  --bolt-gray-light: #f3f5f7;
  --bolt-bg: #f9fbfd;
  --bolt-card-bg: #ffffff;
  --bolt-border: #e2e8f0;
  --bolt-shadow: 0 12px 32px rgba(18, 24, 32, 0.06);
  --bolt-radius-lg: 24px;
  --bolt-radius-md: 16px;
  --bolt-radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bolt-bg);
  color: var(--bolt-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* TOP BRAND NAVBAR HEADER (Bolt Style) */
.top-brand-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--bolt-border);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.top-nav-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-company-logo {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.company-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--bolt-dark);
  letter-spacing: -0.5px;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bolt-gray-muted);
}

.lang-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bolt-gray-light);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--bolt-dark);
  font-size: 13px;
  font-weight: 700;
}

.support-text {
  cursor: pointer;
  transition: color 0.2s ease;
}

.support-text:hover {
  color: var(--bolt-dark);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bolt-green-light);
  color: var(--bolt-green-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* Subtle background graphic circles */
body::before {
  content: '';
  position: fixed;
  top: 60px;
  right: -120px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 187, 120, 0.12) 0%, rgba(249, 251, 253, 0) 70%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 187, 120, 0.08) 0%, rgba(249, 251, 253, 0) 70%);
  pointer-events: none;
}

/* Container */
.app-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  margin: 32px auto 40px auto;
  padding: 0 16px;
}

/* Header */
.header-card {
  text-align: center;
  margin-bottom: 28px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  background: var(--bolt-green);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(50, 187, 120, 0.3);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.header-text h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--bolt-dark);
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}

.partnership-wrapper {
  margin: 6px 0 10px 0;
  display: flex;
  justify-content: center;
}

.partnership-logo-img {
  max-width: 190px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
  transition: transform 0.25s ease;
}

.partnership-logo-img:hover {
  transform: scale(1.03);
}

.header-text .subtitle {
  font-size: 14px;
  color: var(--bolt-gray-muted);
  font-weight: 500;
}

/* Partnership Notice Box (Email OTP Step Only - Clean Layout) */
.partner-card-clean {
  background: transparent;
  padding: 12px 0 20px 0;
  margin-bottom: 20px;
  text-align: center;
}

.partner-img-wrapper {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.step-partnership-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  display: block;
}

.partner-notice-text {
  font-size: 13.5px;
  color: var(--bolt-gray-muted);
  font-weight: 600;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 360px;
}

/* Progress Bar */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 32px;
  padding: 0 12px;
}

.progress-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 32px;
  right: 32px;
  height: 4px;
  background: var(--bolt-gray-light);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 4px;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 32px;
  height: 4px;
  background: var(--bolt-green);
  transform: translateY(-50%);
  z-index: 2;
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 4px;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--bolt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--bolt-gray-muted);
  position: relative;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.step-dot.active {
  background: var(--bolt-green);
  border-color: var(--bolt-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(50, 187, 120, 0.4);
  transform: scale(1.1);
}

.step-dot.completed {
  background: var(--bolt-green);
  border-color: var(--bolt-green);
  color: #ffffff;
}

/* Card Glass */
.card-glass {
  background: var(--bolt-card-bg);
  border: 1px solid var(--bolt-border);
  border-radius: var(--bolt-radius-lg);
  padding: 36px 28px;
  box-shadow: var(--bolt-shadow);
}

/* Step Panels */
.step-panel {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--bolt-green-light);
  color: var(--bolt-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.step-panel h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bolt-dark);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.step-panel .desc {
  font-size: 14px;
  color: var(--bolt-gray-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Country Select & Phone Input Container */
.phone-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.country-code-fixed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bolt-gray-light);
  border: 1.5px solid transparent;
  border-radius: var(--bolt-radius-sm);
  color: var(--bolt-dark);
  font-size: 16px;
  font-weight: 800;
  user-select: none;
  pointer-events: none;
  flex-shrink: 0;
}

.uk-flag-icon {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.phone-input-container .input-group {
  flex: 1;
  margin-bottom: 0;
}

.input-group input {
  width: 100%;
  padding: 16px;
  background: var(--bolt-gray-light);
  border: 1.5px solid transparent;
  border-radius: var(--bolt-radius-sm);
  color: var(--bolt-dark);
  font-size: 17px;
  font-weight: 700;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input:focus {
  background: #ffffff;
  border-color: var(--bolt-green);
  box-shadow: 0 0 0 4px rgba(50, 187, 120, 0.15);
}

/* Phone Display in SMS Step */
.phone-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bolt-green-light);
  padding: 12px 18px;
  border-radius: var(--bolt-radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--bolt-green-dark);
  margin-bottom: 24px;
  border: 1px solid rgba(50, 187, 120, 0.2);
}

.change-phone-btn {
  background: transparent;
  border: none;
  color: var(--bolt-gray-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.change-phone-btn:hover {
  color: var(--bolt-dark);
}

/* 4-Digit OTP Boxes */
.otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.otp-box {
  width: 60px;
  height: 64px;
  border-radius: 16px;
  background: var(--bolt-gray-light);
  border: 2px solid transparent;
  color: var(--bolt-dark);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: all 0.25s ease;
}

.otp-box:focus {
  background: #ffffff;
  border-color: var(--bolt-green);
  box-shadow: 0 0 0 4px rgba(50, 187, 120, 0.2);
  transform: translateY(-2px);
}

/* Resend Container */
.resend-container {
  text-align: center;
  margin-bottom: 28px;
}

.resend-text {
  font-size: 14px;
  color: var(--bolt-gray-muted);
  font-weight: 500;
}

.resend-text strong {
  color: var(--bolt-green-dark);
  font-weight: 700;
}

.resend-btn {
  background: transparent;
  border: none;
  color: var(--bolt-green);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.resend-btn:hover {
  color: var(--bolt-green-dark);
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--bolt-radius-sm);
  background: var(--bolt-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(50, 187, 120, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--bolt-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(50, 187, 120, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Success View */
#stepSuccess {
  text-align: center;
  padding: 20px 0;
}

.success-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.checkmark-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bolt-green-light);
  border: 3px solid var(--bolt-green);
  color: var(--bolt-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.thank-you-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--bolt-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.thank-you-desc {
  color: var(--bolt-gray-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.confirmation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bolt-green-light);
  color: var(--bolt-green-dark);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid rgba(50, 187, 120, 0.3);
}

/* Footer */
.app-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--bolt-gray-muted);
  font-weight: 500;
}