/* ===================================================================
   RESET & DESIGN SYSTEM
   =================================================================== */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(25, 33, 52, 0.85);

  --accent-purple: #7928ca;
  --accent-blue: #0070f3;
  --accent-cyan: #00dfd8;
  --accent-emerald: #10b981;
  --accent-red: #ff0055;
  --accent-youtube: #ff0033;
  --accent-yellow: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-glow: 0 0 35px -5px rgba(121, 40, 202, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmospheric Glows */
.background-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.background-glow.top-left {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-purple), var(--accent-blue));
}
.background-glow.bottom-right {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--accent-red), var(--accent-purple));
}

/* ===================================================================
   HEADER
   =================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 16px 24px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #ff0055, #ff4d00, #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.status-pill.active .dot {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-pill.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.status-pill.error .dot {
  background-color: #ef4444;
}

/* ===================================================================
   MAIN LAYOUT & CARDS
   =================================================================== */
.main-container {
  max-width: 1100px;
  width: 100%;
  margin: 32px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-card {
  background: linear-gradient(180deg, rgba(26, 33, 53, 0.8) 0%, rgba(16, 21, 34, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Channel Banner */
.channel-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-youtube);
}

.channel-info {
  flex: 1;
}

.channel-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.channel-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-public {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Alert Box */
.alert-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.alert-icon {
  font-size: 1.25rem;
}
.alert-content {
  flex: 1;
}

/* ===================================================================
   FORM & INPUTS
   =================================================================== */
.process-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: rgba(10, 14, 23, 0.9);
  border: 1.5px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px 90px 16px 48px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(121, 40, 202, 0.25);
  background: rgba(12, 17, 28, 0.95);
}

.paste-btn {
  position: absolute;
  right: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  color: white;
  box-shadow: 0 4px 18px rgba(255, 0, 85, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 0, 85, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid currentColor;
  padding: 6px 12px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.btn-youtube {
  background: var(--accent-youtube);
  color: white;
  padding: 14px 20px;
  width: 100%;
}
.btn-youtube:hover {
  background: #e6002e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 51, 0.45);
}

/* ===================================================================
   STEPPER & PROGRESS
   =================================================================== */
.processing-card {
  border-color: rgba(121, 40, 202, 0.4);
  background: linear-gradient(180deg, rgba(20, 24, 40, 0.9) 0%, rgba(12, 16, 28, 0.9) 100%);
  animation: pulseBorder 2.5s infinite;
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 15px rgba(121, 40, 202, 0.2); }
  50% { box-shadow: 0 0 30px rgba(121, 40, 202, 0.45); }
  100% { box-shadow: 0 0 15px rgba(121, 40, 202, 0.2); }
}

.processing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.step-line {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px;
  margin-bottom: 26px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-item.active .step-circle {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
  box-shadow: 0 0 16px var(--accent-purple);
  animation: bounce 0.6s infinite alternate;
}
.step-item.active .step-label {
  color: var(--text-primary);
}

.step-item.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: white;
}
.step-item.completed .step-label {
  color: #34d399;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

/* ===================================================================
   RESULT SHOWCASE
   =================================================================== */
.result-card {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 28, 25, 0.7) 0%, rgba(12, 18, 26, 0.8) 100%);
}

.result-badge-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

.result-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  aspect-ratio: 9/16;
  background: #000;
}

.cover-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 2;
}

.result-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-details-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.meta-value-box {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.meta-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.meta-text.bold {
  font-weight: 700;
  font-size: 1.05rem;
}
.meta-text.text-sm {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.hashtags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hashtag-item {
  background: rgba(0, 112, 243, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(0, 112, 243, 0.3);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
}

.transcription-details {
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(10, 14, 23, 0.4);
}
.transcription-summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.transcription-content {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: var(--font-sans);
}

/* ===================================================================
   HISTORY TABLE
   =================================================================== */
.history-table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.history-table th {
  text-align: left;
  padding: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-card-border);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.history-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.empty-state {
  text-align: center;
  padding: 32px !important;
  color: var(--text-muted);
}

/* ===================================================================
   MODAL
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #141926;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-external {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.76rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.oauth-box {
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oauth-status-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ===================================================================
   FOOTER & UTILS
   =================================================================== */
.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--bg-card-border);
  margin-top: auto;
}

.hidden {
  display: none !important;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================================================
   AGENDAMENTO / SCHEDULING SYSTEM
   =================================================================== */
.schedule-card {
  background: rgba(15, 20, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .schedule-modes {
    grid-template-columns: 1fr;
  }
}

.schedule-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.schedule-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.schedule-option input[type="radio"] {
  accent-color: var(--accent-red);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.schedule-option.active {
  background: rgba(255, 0, 85, 0.08);
  border-color: rgba(255, 0, 85, 0.5);
  box-shadow: 0 4px 20px rgba(255, 0, 85, 0.15);
}

.schedule-option.active#label-mode-schedule {
  background: rgba(121, 40, 202, 0.12);
  border-color: rgba(121, 40, 202, 0.6);
  box-shadow: 0 4px 20px rgba(121, 40, 202, 0.2);
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.option-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.schedule-picker-box {
  background: rgba(121, 40, 202, 0.08);
  border: 1.5px dashed rgba(121, 40, 202, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.25s ease-out;
}

.picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-datetime-input {
  padding: 12px 16px !important;
  color-scheme: dark;
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  background: rgba(8, 11, 19, 0.95) !important;
  border-color: rgba(121, 40, 202, 0.5) !important;
}

.schedule-datetime-input:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
}

/* Badge Scheduled for Table */
.badge-scheduled {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ENV Keys Card in Settings Modal */
.env-keys-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
}

.env-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.env-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.env-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.env-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.env-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 12px;
}

.env-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.env-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.env-item-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-badge.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.badge-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.env-hint-box {
  background: rgba(121, 40, 202, 0.06);
  border-left: 3px solid var(--accent-purple);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

@media (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  .stepper {
    flex-wrap: wrap;
    gap: 12px;
  }
  .step-line {
    display: none;
  }
}

/* ===================================================================
   TELA DE LOGIN INTEGRADA (GLASSMORPHISM PREMIUM)
   =================================================================== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  z-index: 10;
  animation: fadeIn 0.4s ease-out;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(121, 40, 202, 0.25);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px -5px rgba(121, 40, 202, 0.5);
  color: #fff;
}

.login-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.login-input-wrapper:focus-within .login-input-icon {
  color: var(--accent-blue);
}

.login-input {
  width: 100%;
  height: 48px;
  padding-left: 44px !important;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.2);
  background: rgba(10, 14, 23, 0.9);
}

.login-btn {
  width: 100%;
  height: 48px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 6px;
  cursor: pointer;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.alert-box.alert-error {
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.35);
  color: #ff5277;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
}

.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 10;
}

