/* --- GOOGLE FONTS (loaded via HTML link tag) --- */

/* --- VARIABLES --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #FFFC00;
  --text-primary: #f0f0f5;
  --text-secondary: #9a9ab0;
  --text-muted: #6b6b80;
  --accent: #FFFC00;
  --accent-glow: rgba(255, 252, 0, 0.15);
  --accent-soft: rgba(255, 252, 0, 0.08);
  --success: #22c55e;
  --error: #ef4444;
  --glass: rgba(255, 255, 255, 0.03);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px rgba(255, 252, 0, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- BACKGROUND EFFECTS --- */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 252, 0, 0.12), transparent 70%);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.bg-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* --- MAIN LAYOUT --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* --- HEADER / HERO --- */
.hero {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #e6e300);
  box-shadow: 0 8px 30px rgba(255, 252, 0, 0.2);
  margin-bottom: 20px;
  position: relative;
}

.hero-logo-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
}

.hero-logo {
  width: 52px;
  height: 52px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 252, 0, 0.15);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 10px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

/* --- TRUST BAR --- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- CARD --- */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: fadeInUp 0.8s ease-out 0.3s both;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 252, 0, 0.2), transparent);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* --- FORM --- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.25s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* --- BUTTON --- */
.btn-primary {
  width: 100%;
  padding: 15px 24px;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #e6e300);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 252, 0, 0.3);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- SMS BUTTON --- */
.btn-sms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06));
  color: #22c55e;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-sms:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.btn-sms:active {
  transform: translateY(0) scale(0.98);
}

.btn-sms svg {
  flex-shrink: 0;
}

/* --- CHECKBOX --- */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.checkbox-wrapper:hover {
  border-color: rgba(255, 252, 0, 0.2);
  background: var(--bg-card-hover);
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-wrapper label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

/* --- INFO BLOCK --- */
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 252, 0, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.info-block svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-block p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.info-block strong {
  color: var(--accent);
  font-weight: 600;
}

/* --- STATUS MESSAGE --- */
#message {
  margin-top: 16px;
  font-weight: 600;
  font-size: 13px;
  min-height: 1.2em;
  text-align: center;
  transition: all 0.3s ease;
}

.msg-success {
  color: var(--success) !important;
}

.msg-error {
  color: var(--error) !important;
}

/* --- LIVE COUNTER --- */
.live-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.live-counter span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.live-counter strong {
  color: var(--text-secondary);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* --- REVIEWS SECTION --- */
.reviews-section {
  width: 100%;
  max-width: 420px;
  margin-top: 32px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reviews-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 14px;
  height: 14px;
  color: var(--accent);
  fill: var(--accent);
}

.reviews-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.reviews-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- REVIEW CARD --- */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.review-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

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

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  flex-shrink: 0;
}

.avatar-yellow { background: linear-gradient(135deg, #FFFC00, #e6d000); }
.avatar-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.avatar-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.avatar-green { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.avatar-pink { background: linear-gradient(135deg, #ec4899, #db2777); color: #fff; }
.avatar-orange { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }

.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars .star {
  width: 12px;
  height: 12px;
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
}

.review-verified svg {
  width: 12px;
  height: 12px;
}

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- FOOTER --- */
.page-footer {
  margin-top: 40px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.footer-text {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- LOADING SPINNER --- */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* --- STEP INDICATOR --- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step--active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 252, 0, 0.3);
}

.step--done {
  background: var(--success);
  color: #fff;
}

.step--pending {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 1px;
}

.step-line--done {
  background: var(--success);
}

/* --- SECURE BADGE --- */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 0;
}

.secure-badge svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.secure-badge span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 24px 16px;
  }

  .hero-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .hero-logo {
    width: 38px;
    height: 38px;
  }

  .hero-title {
    font-size: 24px;
  }

  .card {
    padding: 28px 22px;
    border-radius: var(--radius-lg);
  }

  .trust-bar {
    gap: 16px;
    flex-wrap: wrap;
  }

  .stats-bar {
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .bg-orb--1 {
    width: 300px;
    height: 300px;
  }

  .bg-orb--2 {
    width: 250px;
    height: 250px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .card {
    max-width: 440px;
  }

  .reviews-section,
  .stats-bar {
    max-width: 440px;
  }
}