/* ================================================
   ARIAN — GLOBAL UI FONT
================================================ */

@font-face {
  font-family: "Arian";
  src: url("/fonts/Arian-Bold.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ================================================
   CSS CUSTOM PROPERTIES
================================================ */

:root {
  --bg:            #090909;
  --surface:       #111111;
  --surface-2:     #161616;
  --border:        #1e1e1e;
  --border-focus:  #2e2e2e;
  --text:          #f0f0f0;
  --text-2:        #aaaaaa;
  --text-muted:    #666666;
  --accent:        #CC0000;
  --accent-hover:  #aa0000;
  --dividerColor:  #CC0000;
  --accent-dim:    rgba(204, 0, 0, 0.12);
  --input-bg:      #0e0e0e;
  --radius:        6px;
  --radius-lg:     10px;
  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ================================================
   RESET & BASE
================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.007) 3px,
      rgba(255,255,255,0.007) 4px
    ),
    radial-gradient(circle at 50% 28%, #0e0e0e 0%, #000000 100%);
  color: var(--text);
  font-family: "Arian", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ================================================
   HEADER
================================================ */

.header {
  background-color: #0d0d0d;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Arian", sans-serif;
}

.header-sub {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ================================================
   CONTAINER
================================================ */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ================================================
   SECTION CARDS
================================================ */

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
  font-family: "Arian", sans-serif;
}

/* ================================================
   GRID
================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================================================
   FIELDS
================================================ */

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ================================================
   INPUTS & SELECTS & TEXTAREAS
================================================ */

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
}

input[type="number"] {
  width: 100%;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ================================================
   INSTAGRAM PREFIX INPUT
================================================ */

.input-prefix {
  display: flex;
  align-items: stretch;
}

.prefix {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 12px;
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  user-select: none;
}

.input-prefix input {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ================================================
   RADIO OPTIONS
================================================ */

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.radio-opt:hover {
  border-color: var(--border-focus);
}

.radio-opt input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.radio-opt span {
  font-size: 13px;
  color: var(--text);
}

.radio-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.radio-opt:has(input:checked) span {
  color: #ff6666;
}

/* ================================================
   FILE UPLOAD
================================================ */

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input[type="file"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
  outline: none;
}

input[type="file"]::file-selector-button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 10px;
  margin-right: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

input[type="file"]::file-selector-button:hover {
  background: var(--border);
}

.file-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* ================================================
   GENERATE BUTTON
================================================ */

.btn-generate {
  display: none; /* replaced by .btn-ignition in dashboard */
}

/* ================================================
   LOADING
================================================ */

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  text-align: center;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-msg {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.loading-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.loading-quote {
  font-size: 11px;
  color: rgba(255, 60, 60, 0.82);
  font-family: "Arian", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 18px;
  max-width: 420px;
  text-align: center;
  transition: opacity 0.6s ease;
  opacity: 1;
}

.loading-quote.fade-out {
  opacity: 0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.progress-step {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s;
  flex: 1;
  text-align: center;
  font-family: "Arian", sans-serif;
  line-height: 1.4;
}

.progress-step.active {
  color: #ff3b3b;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,0,0,0.5);
}

.progress-step.done {
  color: rgba(255,255,255,0.52);
}

/* ================================================
   ERROR BOX
================================================ */

.error-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(204, 0, 0, 0.08);
  border: 1px solid rgba(204, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
  color: #ff6666;
  font-size: 13px;
  line-height: 1.6;
}

.error-icon {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ================================================
   RESULTS
================================================ */

.results-label {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,0,0,0.45), 0 0 40px rgba(255,0,0,0.15);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.result-img-wrap {
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}

.result-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.result-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.result-body {
  padding: 16px;
}

.result-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.result-frase {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}

.result-caption {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 12px;
  color: var(--text-2);
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

.result-caption::-webkit-scrollbar {
  width: 4px;
}
.result-caption::-webkit-scrollbar-track { background: transparent; }
.result-caption::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.result-actions {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

.btn-download {
  display: block;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 9px 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}

.btn-download:hover {
  border-color: var(--border-focus);
  color: var(--text);
}

/* ================================================
   SPEEDOMETER GAUGE
================================================ */

.gauge-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
  user-select: none;
}

.gauge-wrap svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  cursor: crosshair;
  display: block;
}

.gauge-hit {
  cursor: pointer;
}

.gauge-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.gauge-price-value {
  font-size: 22px;
  font-weight: 700;
  color: #CC0000;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}

.gauge-price-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================================
   AUTOMOTIVE DASHBOARD
================================================ */

/* PART 7 — Dashboard frame */
.dashboard-section {
  background: #070707;
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 14px;
  padding: 22px 20px 26px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(204,0,0,0.05),
    0 0 80px rgba(0,0,0,0.6);
}

/* Red ambient floor glow */
.dashboard-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 130px;
  background: radial-gradient(ellipse at center bottom,
    rgba(204,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-question {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.36);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
  font-family: "Arian", sans-serif;
}

.dashboard-wrap {
  display: grid;
  grid-template-columns: 176px 1fr 200px;
  gap: 12px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ---- Left HUD — Lamborghini horizontal bars ---- */

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* PART 2 — Horizontal bar panels */
.hud-panel {
  background: linear-gradient(180deg, rgba(20,0,0,0.65) 0%, rgba(0,0,0,0.92) 100%);
  border: 1px solid rgba(204, 0, 0, 0.3);
  border-left: 2px solid rgba(204, 0, 0, 0.7);
  border-radius: 6px;
  padding: 12px 14px 11px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 16px rgba(204,0,0,0.04),
    inset 0 1px 0 rgba(204,0,0,0.1),
    inset 0 0 24px rgba(0,0,0,0.5);
}

/* Top micro-line accent */
.hud-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(204,0,0,0.5) 0%, rgba(204,0,0,0.2) 60%, transparent 100%);
}

.hud-panel-label {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  font-family: "Arian", sans-serif;
}

.hud-panel-value {
  font-size: 46px;
  font-weight: 900;
  color: #CC0000;
  text-shadow:
    0 0 18px rgba(204,0,0,0.8),
    0 0 50px rgba(204,0,0,0.35),
    0 2px 0 rgba(0,0,0,0.6);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 7px 0 4px;
  font-family: "Arian", sans-serif;
}

.hud-panel-value--sm {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.hud-panel-range {
  font-size: 7px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  font-family: "Arian", sans-serif;
}

/* ---- Center ---- */

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hud-center .gauge-wrap {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* PART 4 — Ignition button */
.btn-ignition {
  margin-top: 12px;
  width: 100%;
  background: linear-gradient(180deg, #dd0000 0%, #990000 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  font-family: "Arian", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 14px 20px;
  text-transform: uppercase;
  box-shadow:
    0 0 20px rgba(255,0,0,0.5),
    0 0 40px rgba(204,0,0,0.2),
    inset 0 1px 0 rgba(255,120,120,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  position: relative;
}

.btn-ignition::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: rgba(255,160,160,0.4);
  border-radius: 0 0 4px 4px;
}

.btn-ignition:hover {
  background: linear-gradient(180deg, #ff1111 0%, #bb0000 100%);
  transform: scale(1.025);
  box-shadow:
    0 0 30px rgba(255,0,0,0.7),
    0 0 60px rgba(204,0,0,0.35),
    inset 0 1px 0 rgba(255,140,140,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.4);
}

.btn-ignition:active {
  transform: scale(0.98);
}

.btn-ignition:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 0 10px rgba(204,0,0,0.2);
}

/* ---- Right HUD — PART 6 glass panel ---- */

.hud-right {
  display: flex;
  flex-direction: column;
}

/* PART 6 — darker glass effect + red accent border */
.model-panel {
  padding: 14px 10px 12px;
  height: 100%;
  background: linear-gradient(160deg, #0e0505 0%, #080808 50%, #050505 100%);
  border: 1px solid rgba(204, 0, 0, 0.28);
  border-radius: 8px;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.6),
    0 0 20px rgba(204,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.model-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(204,0,0,0.5), transparent);
}

/* Override .hud-panel base since model-panel has its own full styling */
.model-panel.hud-panel {
  background: linear-gradient(160deg, #0e0505 0%, #080808 50%, #050505 100%);
  border-left: 1px solid rgba(204, 0, 0, 0.28);
}

.model-panel-title {
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 7px;
  letter-spacing: 0.2em;
  font-family: "Arian", sans-serif;
  color: rgba(255,255,255,0.45);
}

.model-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 4px;
  background: rgba(204,0,0,0.03);
  border: 1px solid rgba(204,0,0,0.12);
  cursor: pointer;
  transition:
    background 0.11s ease,
    color 0.11s ease,
    border-color 0.11s ease,
    box-shadow 0.11s ease,
    transform 0.11s ease;
  color: rgba(255,255,255,0.55);
  user-select: none;
}

/* PART 6 — hover slides card slightly right */
.model-option:hover {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 14px rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.type-card-input:checked + .model-option {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 14px rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.model-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.11s;
}

.model-option:hover .model-icon,
.type-card-input:checked + .model-option .model-icon {
  opacity: 1;
}

.model-icon svg {
  width: 100%;
  height: 100%;
}

.model-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.model-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  font-family: "Arian", sans-serif;
}

.model-dim {
  font-size: 8px;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

.model-arrow {
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.11s ease;
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}

.model-option:hover .model-arrow,
.type-card-input:checked + .model-option .model-arrow {
  opacity: 1;
}

/* ================================================
   PART 2 — ENGINE IGNITION NOTIFICATION
================================================ */

.engine-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(4,0,0,0.95);
  border: 1px solid rgba(204,0,0,0.55);
  border-radius: 14px;
  padding: 36px 56px;
  text-align: center;
  z-index: 9999;
  box-shadow:
    0 0 80px rgba(204,0,0,0.25),
    0 0 160px rgba(204,0,0,0.08),
    inset 0 0 40px rgba(0,0,0,0.6);
  animation: notifPulse 0.6s ease-out;
}

@keyframes notifPulse {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.engine-notification-line1 {
  font-family: "Arian", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #CC0000;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(204,0,0,0.9),
    0 0 50px rgba(204,0,0,0.4);
}

.engine-notification-line2 {
  font-family: "Arian", sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ================================================
   PART 7 — ALIVE ANIMATIONS
================================================ */

@keyframes hudGlow {
  0%, 100% {
    box-shadow:
      0 0 16px rgba(204,0,0,0.04),
      inset 0 1px 0 rgba(204,0,0,0.1),
      inset 0 0 24px rgba(0,0,0,0.5);
  }
  50% {
    box-shadow:
      0 0 28px rgba(204,0,0,0.12),
      inset 0 1px 0 rgba(204,0,0,0.18),
      inset 0 0 24px rgba(0,0,0,0.5);
  }
}

.hud-panel {
  animation: hudGlow 3.5s ease-in-out infinite;
}

@keyframes ignitionPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255,0,0,0.5),
      0 0 40px rgba(204,0,0,0.2),
      inset 0 1px 0 rgba(255,120,120,0.3),
      inset 0 -1px 0 rgba(0,0,0,0.4);
  }
  50% {
    box-shadow:
      0 0 32px rgba(255,0,0,0.7),
      0 0 64px rgba(204,0,0,0.3),
      inset 0 1px 0 rgba(255,140,140,0.4),
      inset 0 -1px 0 rgba(0,0,0,0.4);
  }
}

.btn-ignition:not(:hover):not(:disabled) {
  animation: ignitionPulse 2.4s ease-in-out infinite;
}

.gauge-wrap svg {
  transition: filter 0.2s ease;
}

.gauge-wrap svg:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(204,0,0,0.3));
}

/* ================================================
   PART 8 — RESULT CARD GOLD STARS
================================================ */

.result-stars {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: #f5c518;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  pointer-events: none;
  user-select: none;
}

/* ================================================
   PART 9 — LED SECTION (MARCA)
================================================ */

.led-section {
  background: #060606;
  border: 1px solid rgba(204,0,0,0.2);
  border-top: 2px solid rgba(204,0,0,0.5);
  box-shadow:
    0 0 24px rgba(204,0,0,0.04),
    inset 0 0 30px rgba(0,0,0,0.4);
}

.led-section .section-label {
  color: rgba(204,0,0,0.75);
  text-shadow: 0 0 10px rgba(204,0,0,0.45);
}

/* ================================================
   PART 10 — LOGO SELECTOR BUTTONS
================================================ */

.logo-selector {
  display: flex;
  gap: 8px;
}

.logo-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px 12px;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.logo-btn input[type="radio"] {
  display: none;
}

.logo-btn-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: color 0.15s;
}

.logo-btn-icon svg {
  width: 100%;
  height: 100%;
}

.logo-btn-letter {
  font-family: "Arian", sans-serif;
  font-size: 20px;
  font-weight: 700;
  width: auto;
  height: auto;
}

.logo-btn-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-family: "Arian", sans-serif;
  transition: color 0.15s;
  text-align: center;
}

/* TimeFactory — red when selected */
.logo-btn:has(input[value="timefactory"]:checked) {
  background: rgba(204,0,0,0.1);
  border-color: rgba(204,0,0,0.5);
}
.logo-btn:has(input[value="timefactory"]:checked) .logo-btn-icon,
.logo-btn:has(input[value="timefactory"]:checked) .logo-btn-name {
  color: #CC0000;
}

/* Re.Create — white when selected */
.logo-btn:has(input[value="recreate"]:checked) {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
.logo-btn:has(input[value="recreate"]:checked) .logo-btn-icon,
.logo-btn:has(input[value="recreate"]:checked) .logo-btn-name {
  color: #ffffff;
}

/* Upload Logo — white when selected */
.logo-btn:has(input[value="cliente"]:checked) {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
.logo-btn:has(input[value="cliente"]:checked) .logo-btn-icon,
.logo-btn:has(input[value="cliente"]:checked) .logo-btn-name {
  color: #ffffff;
}

.logo-btn:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* ================================================
   UTILITIES
================================================ */

.hidden {
  display: none !important;
}

/* ================================================
   SCROLLBAR (global)
================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(204,0,0,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(204,0,0,0.45); }

/* ================================================
   WAVE 5 — FUTURISTIC COMMAND CENTER
================================================ */

/* ---- PART 4: Animated tech background grid ---- */

.tech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(204,0,0,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,0,0,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: gridDrift 28s linear infinite;
}

.tech-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 30% at 50% 0%,  rgba(204,0,0,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 18% at 50% 100%, rgba(204,0,0,0.03) 0%, transparent 70%);
  animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(52px); }
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

/* Keep header and container above the grid */
.header,
.container {
  position: relative;
  z-index: 1;
}

/* ---- PART 1: Futuristic header border ---- */

.header {
  border-bottom: none;
  box-shadow:
    0 1px 0 rgba(204,0,0,0.28),
    0 4px 28px rgba(0,0,0,0.7);
}

/* ---- PART 7: Status online indicator ---- */

.status-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Arian", sans-serif;
  font-size: 7px;
  letter-spacing: 0.18em;
  color: rgba(0, 210, 55, 0.65);
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

.status-online::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00cc3c;
  box-shadow: 0 0 6px rgba(0,204,60,0.9), 0 0 14px rgba(0,204,60,0.4);
  animation: statusBlink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0,204,60,0.9), 0 0 14px rgba(0,204,60,0.4); }
  50%       { opacity: 0.2; box-shadow: none; }
}

/* ---- PART 3: Scan line sweeping through dashboard ---- */

.dashboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent        0%,
    rgba(204,0,0,0)   12%,
    rgba(204,0,0,0.8) 50%,
    rgba(204,0,0,0)   88%,
    transparent       100%
  );
  animation: scanMove 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 10px rgba(204,0,0,0.55), 0 0 24px rgba(204,0,0,0.18);
}

@keyframes scanMove {
  0%   { top: 0%;    opacity: 0; }
  4%   { opacity: 1; }
  93%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* ---- PART 2: Tech corner brackets on content sections ---- */

/* All .section elements except the dashboard get corner brackets */
.section:not(.dashboard-section) {
  position: relative;
  transition:
    border-color 0.22s ease,
    box-shadow   0.22s ease,
    transform    0.22s ease;
}

/* Top-left corner */
.section:not(.dashboard-section)::before {
  content: '';
  position: absolute;
  top:  -1px;
  left: -1px;
  width:  16px;
  height: 16px;
  border-top:  1.5px solid rgba(204,0,0,0.4);
  border-left: 1.5px solid rgba(204,0,0,0.4);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.22s ease;
}

/* Bottom-right corner */
.section:not(.dashboard-section)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right:  -1px;
  width:  16px;
  height: 16px;
  border-bottom: 1.5px solid rgba(204,0,0,0.4);
  border-right:  1.5px solid rgba(204,0,0,0.4);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.22s ease;
}

/* LED section gets stronger corner glow */
.led-section::before { border-color: rgba(204,0,0,0.72) !important; }
.led-section::after  { border-color: rgba(204,0,0,0.72) !important; }

/* ---- PART 5: Section hover micro-interaction ---- */

.section:not(.dashboard-section):hover {
  border-color: rgba(204,0,0,0.3);
  box-shadow:
    0 0 28px rgba(204,0,0,0.08),
    inset 0 0 16px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.section:not(.dashboard-section):hover::before,
.section:not(.dashboard-section):hover::after {
  border-color: rgba(204,0,0,0.9);
}

/* ---- PART 1: HUD panel bottom-right corner bracket via ::after ---- */

.hud-panel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right:  -1px;
  width:  9px;
  height: 9px;
  border-bottom: 1px solid rgba(204,0,0,0.55);
  border-right:  1px solid rgba(204,0,0,0.55);
  pointer-events: none;
  z-index: 2;
}

/* Model panel has its own full styling — suppress the bracket */
.model-panel.hud-panel::after {
  display: none;
}

/* ---- PART 5: HUD panel hover lift (left column only) ---- */

.hud-left .hud-panel {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hud-left .hud-panel:hover {
  animation-play-state: paused;
  transform: translateX(-2px);
  box-shadow:
    0 0 30px rgba(204,0,0,0.16),
    inset 0 1px 0 rgba(204,0,0,0.24),
    inset 0 0 24px rgba(0,0,0,0.5);
}

/* Model panel — no lift on hover */
.model-panel.hud-panel:hover {
  transform: none;
}

/* ---- PART 7: Blinking indicator dot before section labels ---- */

.section-label:not(.results-label)::before {
  content: '';
  display: inline-block;
  width:  4px;
  height: 4px;
  border-radius: 50%;
  background: #CC0000;
  box-shadow: 0 0 5px rgba(204,0,0,0.9);
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: indicatorBlink 3s ease-in-out infinite;
}

@keyframes indicatorBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px rgba(204,0,0,0.9); }
  50%       { opacity: 0.2; box-shadow: none; }
}

/* ---- PART 5: Futuristic input focus glow ---- */

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(204,0,0,0.5) !important;
  box-shadow:
    0 0 0 1px rgba(204,0,0,0.1),
    0 0 14px rgba(204,0,0,0.07);
}

/* ---- PART 5: Btn-download hover upgrade ---- */

.btn-download:hover {
  border-color: rgba(204,0,0,0.4);
  color: var(--text);
  box-shadow: 0 0 10px rgba(204,0,0,0.08);
}

/* ---- PART 3: Dashboard section stronger HUD glow on hover ---- */

.dashboard-section:hover {
  border-color: rgba(255,0,0,0.35);
  box-shadow:
    0 0 50px rgba(204,0,0,0.08),
    0 0 80px rgba(0,0,0,0.6);
}

/* ================================================
   WAVE 6 — COMMAND CENTER UPGRADE
================================================ */

/* ---- PART 5: Black panels, red outlines ---- */

.section {
  background: #000000;
  border-color: rgba(204,0,0,0.28);
}

.result-card {
  background: #000000;
  border-color: rgba(204,0,0,0.22);
}

.loading-inner {
  background: #000000;
  border-color: rgba(204,0,0,0.22);
}

.result-caption {
  background: #030303;
  border-color: rgba(204,0,0,0.15);
}

.result-actions {
  border-top-color: rgba(204,0,0,0.12);
}

input[type="text"],
input[type="number"],
select,
textarea {
  background: #050505;
  border-color: rgba(204,0,0,0.2);
  color: #ffffff;
}

#imageBrief,
#copyBrief,
#manualCaption {
  color: #ffffff !important;
  font-size: 16px !important;
}

#imageBrief::placeholder,
#copyBrief::placeholder,
#manualCaption::placeholder {
  color: rgba(255,255,255,0.42);
}

input[type="file"] {
  background: #050505;
  border-color: rgba(204,0,0,0.2);
}

.radio-opt {
  background: #050505;
  border-color: rgba(204,0,0,0.18);
}

.prefix {
  background: #030303;
  border-color: rgba(204,0,0,0.2);
}

.btn-download {
  background: #050505;
  border-color: rgba(204,0,0,0.22);
}

/* ---- PART 4: 2× HUD typography ---- */

.hud-panel-value {
  font-size: 72px;
}

.hud-panel-value--sm {
  font-size: 32px;
}

/* Left + center + right column layout */
.dashboard-wrap {
  grid-template-columns: 176px 1fr 200px;
}

/* ---- PART 6: ENGINE START button ---- */

.engine-start-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 52px 0 32px;
}

.engine-start-decorline {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(204,0,0,0.15) 20%,
    rgba(204,0,0,0.45) 50%,
    rgba(204,0,0,0.15) 80%,
    transparent 100%);
}

.engine-start-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.engine-start-label {
  font-family: "Arian", sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

.btn-engine-start {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%,
    #1c0000 0%, #090000 55%, #000000 100%);
  border: 2px solid rgba(204,0,0,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: engineStartGlow 2.2s ease-in-out infinite;
  transition: transform 0.15s ease;
  outline: none;
  box-shadow:
    0 0 28px rgba(204,0,0,0.5),
    0 0 64px rgba(204,0,0,0.2),
    0 0 110px rgba(204,0,0,0.08),
    inset 0 0 40px rgba(0,0,0,0.92);
}

/* Outer decorative ring */
.btn-engine-start::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(204,0,0,0.18);
  animation: engineRingRotate 8s linear infinite;
  pointer-events: none;
}

/* Second outer ring */
.btn-engine-start::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(204,0,0,0.09);
  animation: engineRingRotate 14s linear infinite reverse;
  pointer-events: none;
}

.engine-start-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(204,0,0,0.14);
  pointer-events: none;
}

.engine-start-text {
  font-family: "Arian", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.16em;
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(204,0,0,0.9),
    0 0 32px rgba(204,0,0,0.45);
  position: relative;
  z-index: 1;
}

@keyframes engineStartGlow {
  0%, 100% {
    box-shadow:
      0 0 28px rgba(204,0,0,0.5),
      0 0 64px rgba(204,0,0,0.2),
      0 0 110px rgba(204,0,0,0.08),
      inset 0 0 40px rgba(0,0,0,0.92);
  }
  50% {
    box-shadow:
      0 0 44px rgba(204,0,0,0.78),
      0 0 96px rgba(204,0,0,0.32),
      0 0 160px rgba(204,0,0,0.13),
      inset 0 0 40px rgba(0,0,0,0.92);
  }
}

@keyframes engineRingRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.btn-engine-start:hover {
  animation-play-state: paused;
  transform: scale(1.07);
  box-shadow:
    0 0 55px rgba(204,0,0,0.9),
    0 0 110px rgba(204,0,0,0.4),
    0 0 180px rgba(204,0,0,0.16),
    inset 0 0 40px rgba(0,0,0,0.92);
}

.btn-engine-start:active {
  transform: scale(0.95);
}

.btn-engine-start:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  animation-play-state: paused;
}

.engine-start-hint {
  font-family: "Arian", sans-serif;
  font-size: 7.5px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* ---- PART 8: AI Team Chat overlay ---- */

.ai-team-chat {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatFadeIn 0.35s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.chat-terminal {
  width: 600px;
  max-width: 92vw;
  background: #040404;
  border: 1px solid rgba(204,0,0,0.42);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 70px rgba(204,0,0,0.22),
    0 0 140px rgba(204,0,0,0.08);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(204,0,0,0.07);
  border-bottom: 1px solid rgba(204,0,0,0.28);
}

.chat-header-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(204,0,0,0.55);
}

.chat-dot--yellow { background: rgba(255,165,0,0.45); }
.chat-dot--green  { background: rgba(0,204,60,0.45); }

.chat-header-title {
  font-family: "Courier New", monospace;
  font-size: 9.5px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-messages {
  padding: 20px 22px 26px;
  min-height: 300px;
  max-height: 58vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chat-line {
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  display: flex;
  align-items: baseline;
  gap: 9px;
  opacity: 0;
  animation: lineAppear 0.2s ease forwards;
}

@keyframes lineAppear {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.chat-line::before {
  content: '›';
  color: rgba(204,0,0,0.55);
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
}

.chat-line--system {
  color: #f0f0f0;
  font-weight: 600;
}

.chat-line--member {
  color: rgba(0, 210, 75, 0.88);
}

.chat-line--member::before {
  content: '↳';
  color: rgba(0, 210, 75, 0.5);
}

/* ---- Pipeline role blocks ---- */

.chat-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 4px;
  border-top: 1px solid rgba(204,0,0,0.12);
  border-bottom: 1px solid rgba(204,0,0,0.12);
  margin: 6px 0;
  gap: 0;
}

.pipeline-block {
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(0,210,75,0.38);
  border-radius: 4px;
  color: rgba(0,210,75,0.92);
  font-family: "Courier New", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  animation: blockPulse 2.4s ease-in-out infinite;
}

@keyframes blockPulse {
  0%, 100% { border-color: rgba(0,210,75,0.38); box-shadow: none; }
  50%       { border-color: rgba(0,210,75,0.75); box-shadow: 0 0 8px rgba(0,210,75,0.18); }
}

.pipeline-connector {
  width: 16px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(0,210,75,0.35), rgba(204,0,0,0.55));
  position: relative;
  flex-shrink: 0;
}

.pipeline-connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(204,0,0,0.75);
  border-top: 1.5px solid rgba(204,0,0,0.75);
  transform: rotate(45deg);
}

.chat-line--start {
  color: #CC0000;
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.06em;
}

.chat-line--start::before {
  content: '▶';
  color: #CC0000;
  font-size: 12px;
}

.chat-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #CC0000;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.65s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ================================================
   COLOR DIRECTION SYSTEM — Hue Slider + Preview
================================================ */

.color-direction-panel {
  margin-bottom: 20px;
  padding: 16px;
  background: #020202;
  border: 1px solid rgba(204,0,0,0.15);
  border-radius: 6px;
}

.color-direction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.color-direction-title {
  font-family: "Arian", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.hue-reset-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: rgba(255,255,255,0.22);
  font-family: "Arian", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 10px;
  transition: border-color 0.15s, color 0.15s;
}

.hue-reset-btn:hover {
  border-color: rgba(204,0,0,0.4);
  color: rgba(255,255,255,0.55);
}

/* ---- Preview image ---- */

.color-preview-wrap {
  width: 100%;
  background: #000000;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 14px;
  min-height: 120px;
}

.color-preview-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  transition: filter 0.12s ease;
}

.color-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
}

.color-preview-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: "Arian", sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.color-preview-placeholder-sub {
  font-size: 7.5px;
  color: rgba(255,255,255,0.12);
}

/* ---- Hue slider ---- */

.hue-slider-wrap {
  margin-bottom: 12px;
}

.hue-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hue-slider-label {
  font-family: "Arian", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.hue-slider-value {
  font-family: "Arian", sans-serif;
  font-size: 8px;
  color: rgba(204,0,0,0.8);
  letter-spacing: 0.08em;
}

.hue-rainbow-track {
  position: relative;
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    hsl(0,   80%, 35%),
    hsl(30,  80%, 35%),
    hsl(60,  80%, 35%),
    hsl(90,  80%, 35%),
    hsl(120, 80%, 35%),
    hsl(150, 80%, 35%),
    hsl(180, 80%, 35%),
    hsl(210, 80%, 35%),
    hsl(240, 80%, 35%),
    hsl(270, 80%, 35%),
    hsl(300, 80%, 35%),
    hsl(330, 80%, 35%),
    hsl(360, 80%, 35%)
  );
  border: 1px solid rgba(255,255,255,0.06);
}

.hue-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  outline: none;
  margin: 0;
  cursor: pointer;
  display: block;
}

.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 26px;
  border-radius: 4px;
  background: #ffffff;
  border: 2px solid rgba(0,0,0,0.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.3),
    0 2px 8px rgba(0,0,0,0.7);
  cursor: grab;
  transition: box-shadow 0.12s;
  margin-top: -3px;
}

.hue-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  box-shadow:
    0 0 0 2px rgba(204,0,0,0.6),
    0 2px 12px rgba(0,0,0,0.8);
}

.hue-slider::-moz-range-thumb {
  width: 18px;
  height: 26px;
  border-radius: 4px;
  background: #ffffff;
  border: 2px solid rgba(0,0,0,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  cursor: grab;
}

.hue-slider::-webkit-slider-runnable-track {
  height: 20px;
  border-radius: 10px;
  background: transparent;
}

/* ---- Color swatches ---- */

.color-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-swatch-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}

.color-swatch-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.25s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.color-swatch-name {
  font-family: "Arian", sans-serif;
  font-size: 8px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.color-swatch-sep {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ================================================
   GUIDED CONTENT INPUT — Niche / Objective System
================================================ */

.guided-step {
  margin-bottom: 20px;
}

.guided-step-title {
  font-family: "Arian", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---- Niche dropdown ---- */

.niche-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.niche-select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  background: #050505;
  border: 1px solid rgba(204,0,0,0.28);
  border-radius: 6px;
  color: rgba(255,255,255,0.82);
  font-family: "Arian", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CC0000' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.niche-select:focus {
  outline: none;
  border-color: #CC0000;
  box-shadow: 0 0 12px rgba(204,0,0,0.22);
}

.niche-select option {
  background: #0e0e0e;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.niche-outro-wrap {
  margin-top: 4px;
}

.niche-outro-input {
  width: 100%;
  padding: 10px 14px;
  background: #050505;
  border: 1px solid rgba(204,0,0,0.28);
  border-radius: 6px;
  color: rgba(255,255,255,0.88);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.niche-outro-input:focus {
  outline: none;
  border-color: #CC0000;
  box-shadow: 0 0 12px rgba(204,0,0,0.22);
}

.niche-outro-input::placeholder {
  color: rgba(255,255,255,0.28);
}

/* ---- Objective grid ---- */

.objective-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.objective-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  background: #050505;
  border: 1px solid rgba(204,0,0,0.18);
  border-radius: 6px;
  color: rgba(255,255,255,0.52);
  font-family: "Arian", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.objective-btn:hover {
  border-color: rgba(204,0,0,0.5);
  background: rgba(204,0,0,0.06);
  color: rgba(255,255,255,0.82);
}

.objective-btn.active {
  border-color: #CC0000;
  background: rgba(204,0,0,0.16);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(204,0,0,0.2);
}

/* ---- Prompt preview ---- */

.prompt-preview {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(204,0,0,0.04);
  border: 1px solid rgba(204,0,0,0.22);
  border-radius: 6px;
}

.prompt-preview-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.prompt-preview-row:last-of-type {
  border-bottom: none;
}

.prompt-preview-label {
  font-family: "Arian", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(204,0,0,0.7);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 70px;
  padding-top: 2px;
}

.prompt-preview-value {
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

.btn-edit-prompt {
  margin-top: 12px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.28);
  font-family: "Arian", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 14px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-edit-prompt:hover {
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.55);
}

/* ---- Brief override block ---- */

.brief-override {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(204,0,0,0.12);
}

/* ================================================
   CAPTION TOGGLE BUTTONS
================================================ */

.caption-toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.caption-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  font-family: "Arian", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.caption-toggle:hover {
  border-color: rgba(204,0,0,0.4);
  color: rgba(255,255,255,0.75);
  background: rgba(204,0,0,0.05);
}

.caption-toggle.active {
  border-color: #CC0000;
  color: #fff;
  background: rgba(204,0,0,0.12);
  box-shadow: 0 0 14px rgba(204,0,0,0.25);
}

.caption-toggle-icon {
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.caption-toggle.active .caption-toggle-icon {
  opacity: 1;
}

.manual-caption-wrap textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Arian", sans-serif;
  font-size: 12px;
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.manual-caption-wrap textarea:focus {
  outline: none;
  border-color: rgba(204,0,0,0.5);
}

/* ================================================
   CREATIVE STYLE SELECTOR
================================================ */

.style-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.style-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}

.style-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-card:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}

.style-card:has(input:checked) {
  border-color: rgba(204, 0, 0, 0.7);
  background: rgba(204, 0, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(204,0,0,0.25) inset;
}

.style-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.style-card:has(input:checked) .style-card-icon {
  color: #ff3333;
}

.style-card-name {
  font-family: "Courier New", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  line-height: 1.2;
}

.style-card:has(input:checked) .style-card-name {
  color: #ff3333;
}

.style-card-sub {
  font-size: 8.5px;
  color: rgba(255,255,255,0.38);
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
}

/* ================================================
   REVISION PANEL
================================================ */

.revision-panel {
  border-top: 1px solid rgba(204,0,0,0.15);
  padding: 14px 16px 16px;
  background: rgba(204,0,0,0.025);
}

.revision-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.revision-panel-label {
  font-family: "Arian", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(204,0,0,0.65);
  text-transform: uppercase;
}

.revision-count-badge {
  font-family: "Arian", sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

.revision-count-badge--limit {
  color: rgba(204,0,0,0.7);
  border-color: rgba(204,0,0,0.3);
}

.revision-input-row {
  display: flex;
  gap: 8px;
}

.revision-input {
  flex: 1;
  background: #050505;
  border: 1px solid rgba(204,0,0,0.2);
  border-radius: 5px;
  color: rgba(255,255,255,0.82);
  font-family: var(--font);
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.revision-input:focus {
  border-color: rgba(204,0,0,0.5);
  box-shadow: 0 0 10px rgba(204,0,0,0.07);
}

.revision-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.revision-input::placeholder {
  color: rgba(255,255,255,0.22);
  font-size: 11px;
}

.btn-revise {
  background: rgba(204,0,0,0.12);
  border: 1px solid rgba(204,0,0,0.38);
  border-radius: 5px;
  color: rgba(204,0,0,0.85);
  font-family: "Arian", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  height: 34px;
}

.btn-revise:hover {
  background: rgba(204,0,0,0.22);
  border-color: rgba(204,0,0,0.65);
  color: #ffffff;
}

.btn-revise:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.revision-status {
  margin-top: 8px;
  font-family: "Arian", sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 0;
}

.revision-status--loading {
  color: rgba(255,200,0,0.7);
  animation: revisionBlink 0.8s step-end infinite;
}

@keyframes revisionBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.revision-status--ok {
  color: rgba(0,210,75,0.8);
}

.revision-status--error {
  color: rgba(204,0,0,0.85);
}
