/* Video Oluşturma Portalı — glassmorphism & form bileşenleri */

.referral-card {
  padding: 1.25rem 1.5rem;
  border-color: rgba(255, 215, 0, 0.18);
}

.portal-bg {
  background-color: #080b2a;
  min-height: 100vh;
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glass-credit {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 215, 0, 0.08) 100%
  );
  border: 1px solid rgba(255, 215, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.step-ring {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid #FFD700;
  color: #FFD700;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.portal-input,
.portal-select,
.portal-textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(8, 11, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.portal-textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
}

.portal-input::placeholder,
.portal-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.portal-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FFD700'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.portal-select option {
  background: #0d1247;
  color: #fff;
}

.portal-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.portal-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-upload:hover {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.06);
}

.portal-upload.has-file {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.portal-upload input {
  display: none;
}

.portal-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.portal-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #FFD700;
}

.format-pill {
  flex: 1;
  padding: 0.5rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(8, 11, 42, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s;
}

.format-pill.active {
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
  border-color: #FFD700;
  color: #0d1247;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.portal-range {
  width: 100%;
  accent-color: #FFD700;
  height: 6px;
}

.btn-portal-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
  color: #0d1247;
  font-weight: 700;
  border: none;
  border-radius: 0.625rem;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-portal-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

.btn-portal-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-portal-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.btn-portal-secondary:hover:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.4);
}

.btn-portal-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-portal-download {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  font-weight: 700;
  border-radius: 0.625rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-portal-download:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-portal-download.ready:not(:disabled):hover {
  background: #FFD700;
  color: #0d1247;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFD700, #FFC107);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.35rem;
}

/* Alt durum bandı */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: background 0.3s, color 0.3s;
}

.status-bar.idle {
  background: rgba(8, 11, 42, 0.92);
  color: rgba(255, 255, 255, 0.55);
}

.status-bar.processing {
  background: rgba(8, 11, 42, 0.95);
  color: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 215, 0, 0.35);
}

.status-bar.success {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 100%);
  color: #fff;
  border-top-color: #86efac;
  box-shadow: 0 -4px 24px rgba(22, 163, 74, 0.35);
}

.status-bar.error {
  background: rgba(127, 29, 29, 0.95);
  color: #fecaca;
  border-top-color: rgba(248, 113, 113, 0.4);
}

.portal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.portal-modal-overlay.show {
  display: flex;
}

.portal-modal {
  background: linear-gradient(145deg, rgba(13, 18, 71, 0.98), rgba(8, 11, 42, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 1rem;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.portal-modal h3 {
  color: #FFD700;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.portal-modal p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.portal-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1280px) {
  .portal-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portal-columns {
    grid-template-columns: 1fr;
  }

  .credit-widget {
    position: static !important;
    width: 100% !important;
    margin-top: 0.75rem;
  }
}

.portal-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.portal-step-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
}

.portal-step-card h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.kredi-uyari {
  margin-bottom: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.kredi-uyari-baslik {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fca5a5;
  margin: 0 0 0.35rem;
}
.kredi-uyari-metin {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
