/* Base */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05060b;
  color: #f1f3f5;
}

a {
  color: #60a5fa;
}

a:hover {
  color: #3b82f6;
}

.hero-section {
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at top, rgba(12, 16, 30, 0.95), rgba(2, 3, 7, 0.95) 60%),
    url('images/spin-wheel.svg') center/cover no-repeat;
  position: relative;
  min-height: 780px;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.device-mockup {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.55);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.12);
}

.feature-icon i {
  font-size: 1.5rem;
  color: #6366f1;
}

.card {
  background: rgba(255, 255, 255, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  transition: transform 0.25s ease;
}

.btn-primary {
  background: #6366f1;
  border-color: #6366f1;
}

.btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

footer {
  background: #05060b;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

@media (max-width: 720px) {
  .hero-section {
    padding: 4rem 0 3rem;
  }
}

/* Top utility bar */
.topbar {
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 1045;
}

/* Main navbar sticky below topbar */
.navbar {
  position: sticky;
  top: 42px;
  z-index: 1040;
}

.topbar a {
  color: #3b4252;
}

.topbar a:hover {
  color: #1f2a3a;
}

/* Main hero */
.hero-section {
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at top, rgba(44, 47, 66, 0.85), rgba(6, 8, 16, 0.9) 55%),
    url('https://cfph.onstove.com/contents/images/main_visual.jpg') center/cover no-repeat;
  position: relative;
  min-height: 720px;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.95));
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-side-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.42);
}

.wheel-hero {
  max-width: 520px;
}

#spinWheel {
  transition: transform 2s ease-out;
}

@keyframes spin-wheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(2160deg); }
}

.spin {
  animation: spin-wheel 2s ease-out;
}

.hero-side-card h3 {
  color: #fff;
}

.hero-side-card p {
  opacity: 0.85;
}

.social-sidebar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
}

.social-sidebar a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.social-sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Welcome modal image */
.welcome-modal-image {
  width: 180px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
}

/* Login page styles */
body.login-page {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(32, 34, 40, 0.92), #05060b 55%);
  color: #f1f3f5;
}

.login-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.login-box {
  width: min(420px, 100%);
  padding: 2.5rem 2rem;
  background: rgba(11, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.login-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: 1.75rem;
  color: #ffffff;
}

.login-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f2f4f7;
  border-radius: 0.9rem;
  padding: 1rem 1rem;
  min-height: 3.3rem;
}

.login-input:focus {
  border-color: rgba(255, 93, 45, 0.9);
  box-shadow: 0 0 0 0.25rem rgba(255, 93, 45, 0.14);
}

.btn-login {
  background: #ff4822;
  border: 1px solid rgba(255, 72, 34, 0.95);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-login:hover,
.btn-login:focus {
  background: #ff5a3d;
  transform: translateY(-1px);
}

.social-links {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.social-btn.google {
  background: #ffffff;
  color: #111111;
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.apple {
  background: #0f0f0f;
}

.social-btn.steam {
  background: #1b2838;
}

.social-btn.line {
  background: #00c300;
}

.social-btn.naver {
  background: #03c75a;
}

.login-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.login-link {
  color: #e8eaed;
  text-decoration: none;
  transition: color 0.2s ease;
}

..login-link:hover {
  color: #ff7a54;
}

.login-separator {
  opacity: 0.5;
}

.recovery-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(32, 34, 40, 0.94), #05060b 55%);
  color: #f1f3f5;
}

.recovery-card {
  width: min(500px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid rgba(226, 226, 226, 0.45);
  position: relative;
}

.recovery-card-header {
  gap: 1rem;
}

.recovery-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: #ff4822;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.recovery-title {
  margin: 0.6rem 0 0.25rem;
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: 0.02em;
  color: #111827;
}

.recovery-subtitle {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.recovery-close {
  border: 1px solid rgba(31, 41, 55, 0.12);
  background: rgba(255, 255, 255, 0.9);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.recovery-body {
  background: rgba(248, 250, 252, 0.72);
  border-radius: 1.25rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.recovery-section-title {
  font-weight: 600;
  color: #111827;
}

.recovery-input {
  background: #ffffff;
  border: 1px solid rgba(156, 163, 175, 0.4);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  color: #111827;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.recovery-input:focus {
  border-color: rgba(255, 72, 34, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(255, 88, 54, 0.15);
}

.recovery-submit {
  background: #ff4822;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.recovery-submit:hover,
.recovery-submit:focus {
  background: #ff603f;
}

.recovery-info {
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  padding-top: 1.15rem;
}

.recovery-info a {
  color: #6b7280;
}

.recovery-info a:hover {
  color: #111827;
}

.recovery-cta {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
}

.recovery-cta-content {
  color: #fff;
}

.recovery-cta-graphic {
  min-width: 72px;
  min-height: 72px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
}

.recovery-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  background: #ff4822;
  box-shadow: 0 14px 30px rgba(255, 72, 34, 0.24);
  color: #fff;
  font-weight: 700;
}

.recovery-footer {
  color: #6b7280;
}

.recovery-footer i {
  font-size: 0.85rem;
}

.recovery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 11, 0.76);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1050;
}

.recovery-modal.visible {
  opacity: 1;
  visibility: visible;
}

.recovery-modal-dialog {
  width: min(420px, calc(100% - 2rem));
  background: #111827;
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.recovery-modal-dialog h3 {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.5rem;
}

.recovery-modal-dialog p {
  color: #d1d5db;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .recovery-card {
    padding: 1.5rem;
  }

  .recovery-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .recovery-info {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 540px) {
  .login-box {
    padding: 2rem 1.25rem;
  }

  .social-links {
    justify-content: center;
  }
}

/* Claim modal prize image */
.claim-prize-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
}
