:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #090909;
  color: #f1f1f1;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
}

.preview-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  background: #000;
  display: block;
}

/* Mobile fullscreen optimization */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
  }

  .page {
    min-height: 100dvh;
    width: 100vw;
    margin: 0;
    padding: 0;
  }

  .preview-video {
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .overlay {
    z-index: 20;
  }
}

/* Landscape mode */
@media (max-width: 1024px) and (orientation: landscape) {
  .preview-video {
    height: 100dvh;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.modal {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  color: #111111;
}

.modal h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  text-align: center;
}

.modal p {
  margin: 0 0 20px;
  color: #c0c0c0;
  line-height: 1.6;
}

.modal p.prompt-text {
  color: #111111;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

input[type='number'] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #000000;
  background: #ffffff;
  color: #ff0000;
  font-size: 1rem;
  outline: none;
}

input[type='number']::placeholder {
  color: #ffffff;
  opacity: 1;
}

.prompt-text {
  color: #111111;
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  color: #fff;
  background: #0066ff;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.provider-logos {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.status.info {
  background: rgba(0, 102, 255, 0.25);
  color: #0047b2;
  font-weight: bold;
}

.status.success {
  background: rgba(0, 204, 102, 0.25);
  color: #006633;
  font-weight: bold;
}

.status.error {
  background: rgba(255, 60, 80, 0.25);
  color: #cc0000;
  font-weight: bold;
}
