/* Colosal · panel cinematográfico (PredictHQ-inspired, marca Sushell) */

.one-main:has(.col-stage) {
  padding: 0 !important;
  max-width: none !important;
}

.col-stage {
  position: relative;
  min-height: calc(100vh - 64px);
  isolation: isolate;
  overflow: hidden;
  color: #f4f4f2;
  display: flex;
  flex-direction: column;
}

.col-stage-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,.35) 40%, rgba(8,9,10,.72) 100%),
    var(--col-bg) center/cover no-repeat;
  transform: scale(1.02);
  animation: col-bg-drift 28s ease-in-out infinite alternate;
}
.col-stage-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(8,9,10,.15), rgba(8,9,10,.78) 70%),
    linear-gradient(180deg, rgba(8,9,10,.4), transparent 30%, rgba(8,9,10,.55) 100%);
  pointer-events: none;
}
@keyframes col-bg-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}

.col-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 0;
  position: relative;
  z-index: 2;
}
.col-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 15px;
}
.col-brand img { width: 22px; height: 22px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.col-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.col-pill {
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(18,18,18,.55);
  border: 1px solid rgba(255,255,255,.12);
  color: #8f9399;
  backdrop-filter: blur(10px);
}
.col-pill.on { color: #3ecf8e; border-color: rgba(62,207,142,.35); }

.col-ghost-btn, .col-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  color: #f4f4f2;
  background: rgba(18,18,18,.45);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.col-ghost-btn:hover, .col-outline-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}
.col-outline-btn {
  background: rgba(255,255,255,.92);
  color: #08090a;
  border-color: transparent;
  font-weight: 600;
}
.col-outline-btn:hover { background: #fff; }

.col-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.col-kicker {
  margin: 0 0 12px;
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,244,242,.72);
  animation: col-fade-up .7s ease both;
}
.col-title {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
  animation: col-fade-up .8s .05s ease both;
}
@keyframes col-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.col-prompt {
  width: min(720px, 100%);
  border-radius: 18px;
  background: rgba(14,15,16,.62);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 30px 80px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  overflow: hidden;
  text-align: left;
  animation: col-fade-up .85s .12s ease both;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.col-prompt:focus-within {
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 34px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.col-prompt.is-locked { opacity: .92; }

.col-messages {
  max-height: min(42vh, 360px);
  overflow: auto;
  padding: 18px 18px 8px;
  min-height: 72px;
}
.col-empty {
  padding: 8px 4px 12px;
  color: rgba(244,244,242,.7);
  font-size: 14px;
}
.col-empty p { margin: 0 0 14px; }
.col-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dom-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #f4f4f2;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dom-chip:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

.col-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
  animation: col-fade-up .35s ease both;
}
.col-msg.user { justify-content: flex-end; }
.col-msg.user .col-msg-body {
  background: rgba(255,255,255,.92);
  color: #08090a;
  border-radius: 14px 14px 4px 14px;
}
.col-msg.assistant .col-msg-body,
.col-msg.system .col-msg-body {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px 14px 14px 4px;
  color: #f4f4f2;
}
.col-msg.system.error .col-msg-body {
  border-color: rgba(239,68,68,.35);
  color: #fecaca;
}
.col-msg-body {
  max-width: min(100%, 560px);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.col-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(8,9,10,.55);
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; flex: none;
}
.col-avatar img { width: 16px; height: 16px; display: block; }

.col-typing { display: inline-flex; gap: 5px; align-items: center; min-height: 1.2em; }
.col-typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(244,244,242,.55);
  animation: col-dot 1.1s ease-in-out infinite;
}
.col-typing i:nth-child(2) { animation-delay: .15s; }
.col-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes col-dot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.col-composer {
  padding: 4px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.col-composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  padding: 14px 4px 10px;
  min-height: 56px;
  max-height: 160px;
}
.col-composer textarea::placeholder { color: rgba(244,244,242,.42); }
.col-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ── Control de potencia (landing + panel) ─────────────── */
.col-power {
  margin: 4px 0 10px;
  padding: 14px 12px 12px;
  border-radius: 12px;
  background: rgba(8,9,10,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.col-power .dom-effort-head { margin-bottom: 8px; }
.col-power .dom-effort-name { font-size: 1.35rem; margin: 0; }
.col-power .dom-effort-hint { margin: 0 0 12px; font-size: 12.5px; }
.col-power-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.col-est {
  margin: 0;
  font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace;
  color: rgba(244,244,242,.55);
  white-space: nowrap;
}
.col-receipt {
  margin: 0 0 10px;
  padding: 6px 10px;
  font: 500 11.5px/1.4 "Geist Mono", ui-monospace, monospace;
  color: rgba(244,244,242,.5);
  text-align: right;
}

.dom-effort {
  background: #0f1011;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 18px;
}
.dom-effort-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 16px;
}
.dom-eyebrow {
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: #62666d; margin: 0;
}
.dom-effort-value {
  font: 500 12px/1 "Geist Mono", ui-monospace, monospace;
  color: #8f9399; font-variant-numeric: tabular-nums;
}
.dom-effort-value b { color: #f4f4f2; font-weight: 500; }
.dom-effort-name {
  margin: 0 0 4px;
  font-size: 2rem; font-weight: 600; letter-spacing: -.035em; line-height: 1;
  color: #f4f4f2;
}
.dom-effort-name span { display: inline-block; }
.dom-effort-name.swap span { animation: dom-swap .28s cubic-bezier(.2,.8,.2,1); }
@keyframes dom-swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.dom-effort-hint { margin: 0 0 18px; font-size: 13px; color: #8f9399; min-height: 1.4em; }

.dom-meter { position: relative; height: 30px; --p: 50%; }
.dom-meter-rail {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 8px; transform: translateY(-50%);
  background: #18191a; border-radius: 2px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.dom-meter-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--p);
  background: #5A52FF;
  transition: width .18s cubic-bezier(.2,.8,.2,1);
}
.dom-meter-gaps {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 2px), #0f1011 calc(20% - 2px), #0f1011 20%);
}
.dom-slider {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; background: transparent; cursor: pointer; z-index: 2;
}
.dom-slider:focus { outline: none; }
.dom-slider::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.dom-slider::-moz-range-track { height: 30px; background: transparent; }
.dom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 6px; height: 26px; margin-top: 2px; border-radius: 2px;
  background: #f4f4f2; border: 0;
  box-shadow: 0 0 0 3px #0f1011;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dom-slider::-moz-range-thumb {
  width: 6px; height: 26px; border-radius: 2px; border: 0;
  background: #f4f4f2; box-shadow: 0 0 0 3px #0f1011;
}
.dom-slider:active::-webkit-slider-thumb { transform: scaleY(1.08); }
.dom-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #0f1011, 0 0 0 5px rgba(90,82,255,.7); }
.dom-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #0f1011, 0 0 0 5px rgba(90,82,255,.7); }
.dom-slider:disabled { cursor: not-allowed; opacity: .55; }

.dom-ticks {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 8px;
  font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .04em; color: #62666d; text-align: center;
}
.dom-ticks button {
  background: none; border: 0; padding: 4px 0; color: inherit; font: inherit;
  cursor: pointer; transition: color .15s ease;
}
.dom-ticks button:hover { color: #d4d6da; }
.dom-ticks button.on { color: #f4f4f2; }
.dom-ticks button.cur { color: #A8A3FF; }

.col-composer-bar .col-secure {
  margin: 0;
  flex: 1;
  min-width: 140px;
}

.col-send {
  appearance: none;
  border: 0;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #08090a;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .12s ease, opacity .12s ease;
  text-decoration: none;
}
.col-send:hover:not(:disabled) { transform: translateY(-1px); }
.col-send:disabled { opacity: .45; cursor: not-allowed; }

.col-secure {
  font-size: 12px;
  color: rgba(244,244,242,.5);
  text-align: left;
}

.col-tagline {
  margin: 28px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(244,244,242,.72);
  max-width: 420px;
  animation: col-fade-up .9s .2s ease both;
}

.col-usage {
  width: min(720px, 100%);
  margin: 22px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14,15,16,.4);
  border: 1px solid rgba(255,255,255,.1);
  text-align: left;
  backdrop-filter: blur(12px);
}
.col-usage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 11.5px/1.3 "Geist Mono", ui-monospace, monospace;
  color: rgba(244,244,242,.7);
  margin-bottom: 8px;
}
.col-usage-rail {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.col-usage-rail i {
  display: block;
  height: 100%;
  background: #5a52ff;
  border-radius: inherit;
}
.col-usage-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(244,244,242,.45);
}

.col-plans {
  width: min(720px, 100%);
  margin: 28px auto 0;
  text-align: left;
}
.col-plans-kicker {
  margin: 0 0 12px;
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,244,242,.5);
  text-align: center;
}
.col-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.col-plan-card {
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(14,15,16,.42);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.col-plan-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.col-plan-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(244,244,242,.62);
  flex: 1;
}
.col-plan-price {
  font: 600 20px/1.1 Inter, system-ui, sans-serif !important;
  color: #f4f4f2 !important;
  letter-spacing: -.03em;
}
.col-plan-price span {
  font: 500 12px/1 "Geist Mono", ui-monospace, monospace;
  color: rgba(244,244,242,.5);
  margin-left: 4px;
}
.col-plan-card.is-pro {
  border-color: rgba(90,82,255,.45);
  box-shadow: inset 0 0 0 1px rgba(90,82,255,.15);
}
.col-plan-card.is-credits {
  border-style: dashed;
}
.col-plan-card .col-outline-btn,
.col-plan-card .col-ghost-btn {
  width: 100%;
  margin-top: 4px;
}

.col-drawer {
  position: relative;
  z-index: 2;
  padding: 0 24px 28px;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}
.col-api {
  background: rgba(14,15,16,.45);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.col-api summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(244,244,242,.78);
  user-select: none;
}
.col-api summary::-webkit-details-marker { display: none; }
.col-api-body {
  padding: 0 14px 14px;
  font-size: 13px;
  color: rgba(244,244,242,.7);
}
.col-api-body p { margin: 0 0 10px; }
.col-api-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.dom-key-code {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  font: 500 12px/1.4 "Geist Mono", ui-monospace, monospace;
  color: #f4f4f2;
  word-break: break-all;
  margin: 0 0 8px;
}
.dom-key-warn { color: #fbbf24 !important; }
.dom-curl {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.06);
  font: 500 11.5px/1.5 "Geist Mono", ui-monospace, monospace;
  color: rgba(244,244,242,.75);
  overflow: auto;
  white-space: pre-wrap;
}
.dom-curl .c { color: #3ecf8e; }

@media (max-width: 720px) {
  .col-topbar { padding: 14px 14px 0; }
  .col-hero { padding: 36px 14px 28px; }
  .col-title { margin-bottom: 20px; }
  .col-composer-bar { flex-direction: column; align-items: stretch; }
  .col-send { width: 100%; justify-content: center; }
  .col-drawer { width: calc(100% - 28px); padding-bottom: 20px; }
  .col-plans-grid { grid-template-columns: 1fr; }
}
