/* Netflix Theme CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #141414;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(229, 9, 20, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  z-index: 0;
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(20, 20, 20, 0.85) 50%,
    rgba(20, 20, 20, 0.95) 100%
  );
  z-index: 1;
}

/* Container */
.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 10;
}

.netflix-logo-img {
  height: 25px;
  width: auto;
  display: block;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.highlight {
  color: #E50914;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #b3b3b3;
  margin-bottom: 40px;
}

/* Trial Card */
.trial-card {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(229, 9, 20, 0.1);
  animation: cardAppear 0.6s ease-out 0.3s both;
}

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

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #E50914 0%, #b20710 100%);
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
  }
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.trial-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trial-desc {
  color: #b3b3b3;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Form */
.form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: rgba(22, 22, 22, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
  color: #808080;
}

.input-wrapper input:focus {
  border-color: #E50914;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #E50914;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.input-wrapper input:focus ~ .input-focus-line {
  width: 100%;
}

.btn-start {
  background: #E50914;
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-start:hover {
  background: #f6121d;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

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

.btn-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-start:hover::before {
  left: 100%;
}

.btn-text {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.btn-loader {
  display: none;
  gap: 4px;
  justify-content: center;
}

.btn-start.loading .btn-text {
  display: none;
}

.btn-start.loading .btn-loader {
  display: flex;
}

.btn-start.loading {
  pointer-events: none;
  opacity: 0.8;
}

.dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Error */
.error-msg {
  color: #E50914;
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 20px;
  transition: all 0.3s ease;
}

/* Result Card */
.result-card {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  animation: slideIn 0.5s ease-out;
}

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

.result-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.result-card h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.credential {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  margin-bottom: 8px;
}

.credential .label {
  color: #b3b3b3;
  font-size: 0.9rem;
}

.credential .value {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #46d369;
  font-size: 0.95rem;
}

.result-note {
  text-align: center;
  margin: 16px 0;
  color: #b3b3b3;
  font-size: 0.9rem;
}

.result-note a {
  color: #E50914;
  text-decoration: none;
}

.result-note a:hover {
  text-decoration: underline;
}

.btn-copy {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Features */
.features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b3b3b3;
  font-size: 0.9rem;
  animation: fadeIn 0.6s ease-out 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feature-icon {
  font-size: 1.2rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.loading-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.loading-content {
  text-align: center;
}

/* Netflix Spinner */
.netflix-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: #E50914;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top-color: #fff;
  animation-duration: 0.9s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-top-color: #E50914;
  animation-duration: 0.6s;
}

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

.loading-text {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 24px;
  animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 250px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #808080;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.step.active {
  color: #fff;
}

.step.done {
  color: #46d369;
}

.step-icon {
  font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .header {
    padding: 16px 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .trial-card {
    padding: 24px 20px;
  }

  .trial-title {
    font-size: 1.4rem;
  }

  .form-group {
    flex-direction: column;
  }

  .btn-start {
    width: 100%;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
