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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f6f3;
  color: #1a1a1a;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 36px 16px 60px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 420px;
}

/* ========== Loading Overlay ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 246, 243, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #ddd8d0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ========== VPN Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-shield {
  width: 56px;
  height: 56px;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal-shield svg {
  width: 28px;
  height: 28px;
  color: #dc2626;
}

.modal h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.modal p {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 22px;
}

.modal-btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.modal-btn:active {
  background: #333;
}

/* ========== Profile ========== */
.profile {
  text-align: center;
  margin-bottom: 24px;
}

.profile-img-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e0dbd4;
}

#profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.profile-location {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.profile-location svg {
  width: 13px;
  height: 13px;
}

/* ========== Cards ========== */
.card {
  background: #1c1c1e;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 14px;
  color: #fff;
}

/* Info Card */
.info-card {
  text-align: center;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #999;
}

.card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
}

/* CTA Card */
.cta-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.cta-card:active {
  transform: scale(0.97);
  background: #2a2a2c;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cta-text p {
  font-size: 12px;
  color: #999;
}

.cta-arrow {
  color: #666;
  flex-shrink: 0;
}

.cta-arrow svg {
  width: 18px;
  height: 18px;
}

/* Warning Card */
.warning-card {
  text-align: center;
  background: #242426;
}

.warning-card p {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ef5350;
}

/* ========== Waiting State ========== */
.waiting-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.waiting-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid #444;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ========== Success / Video Content ========== */
.success-card {
  text-align: center;
  padding: 36px 22px;
}

.success-check {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-check svg {
  width: 28px;
  height: 28px;
  color: #16a34a;
}

.success-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.success-card p {
  font-size: 13px;
  color: #999;
  margin-bottom: 22px;
}

.video-btn {
  display: inline-block;
  background: #fff;
  color: #1c1c1e;
  text-decoration: none;
  padding: 13px 36px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.15s;
}

.video-btn:active {
  opacity: 0.8;
}

/* ========== Hidden by default ========== */
#main-content,
#video-content {
  display: none;
}

/* ========== Responsive ========== */
@media (min-width: 480px) {
  body {
    padding: 56px 20px 80px;
  }

  .profile-name {
    font-size: 30px;
  }

  .cta-card:hover {
    transform: translateY(-2px);
    background: #2a2a2c;
  }

  .video-btn:hover {
    opacity: 0.85;
  }
}
