:root {
  --background-color: #1a1a1a;
  --card-surface-color: #393c3e;
  --card-surface-lighter-color: #3a3d40;
  --text-color: #f4f4f4;
  --brand-primary-yellow: #ffc52f;
  --button-text-color: #000000;
  --status-unknown: #454545;
  --brand-green: #4B644A;
  --brand-blue: #2F5771;
  --brand-amber: #A45F23;
  --brand-red: #A92C13;
  --white: #ffffff;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================
   Landing Page Styles
   ============================================ */

.landing-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background-color) 0%, #252525 100%);
  padding: 2rem;
}

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

.landing-content {
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

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

/* Brand Section */
.brand-section {
  margin-bottom: 3rem;
}

.logo-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 1.5rem;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.brand-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, var(--brand-primary-yellow) 0%, #ffdb70 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.brand-tagline {
  font-size: 1.125rem;
  color: #b0b0b0;
  margin: 0;
  font-weight: 300;
}

/* Download Button */
.download-btn {
  background: var(--brand-primary-yellow);
  color: var(--button-text-color);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(255, 197, 47, 0.3);
}

.download-btn:hover {
  background: #ffcf4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 197, 47, 0.4);
}

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

.btn-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Platform Info */
.platform-info {
  color: #888;
  font-size: 0.875rem;
  margin-top: 1rem;
  margin-bottom: 0;
  font-weight: 400;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
  background: var(--card-surface-color);
  border-radius: 20px;
  padding: 2.5rem;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.modal-subtitle {
  font-size: 1rem;
  color: #b0b0b0;
  margin: 0 0 2rem 0;
}

#verifyEmail {
  color: var(--brand-primary-yellow);
  font-weight: 600;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: var(--card-surface-lighter-color);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary-yellow);
  background: var(--background-color);
}

.form-input::placeholder {
  color: #666;
}

.otp-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-weight: 600;
}

.error-message {
  display: block;
  color: var(--brand-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--brand-primary-yellow);
  color: var(--button-text-color);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.submit-btn:hover:not(:disabled) {
  background: #ffcf4d;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.text-link {
  background: none;
  border: none;
  color: var(--brand-primary-yellow);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.8;
}

/* Success Toast */
.success-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--brand-green);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: none;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease-out;
  z-index: 2000;
}

.success-toast.active {
  display: flex;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.success-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brand-name {
    font-size: 2.5rem;
  }

  .logo-icon {
    width: 140px;
    height: 140px;
  }

  .download-btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .success-toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 2rem;
  }

  .logo-icon {
    width: 100px;
    height: 100px;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}