﻿:root {
  --bg: #060912;
  --bg-soft: #0a0e18;
  --panel: rgba(14, 18, 29, .84);
  --panel-solid: #0e121d;
  --panel-hover: #131927;
  --text: #f2f4f7;
  --muted: #858c9b;
  --line: rgba(181, 191, 211, .16);
  --line-strong: rgba(190, 201, 221, .28);
  --lime: #7c3cff;
  --lime-soft: rgba(124, 60, 255, .12);
  --danger: #ff6e7e;
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(124,60,255,.08), transparent 24rem),
    radial-gradient(circle at 8% 85%, rgba(90,54,180,.09), transparent 28rem),
    var(--bg);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(124,60,255,.4) 0 1px, transparent 1.5px);
  background-position: 0 0, 80px 50px;
  background-size: 145px 145px, 230px 230px;
  opacity: .22;
  animation: stars 18s ease-in-out infinite alternate;
}
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.02; }
h2 { font-size: 1.5rem; }
.muted { color: var(--muted); }
.eyebrow {
  margin-bottom: 12px;
  color: var(--lime);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 18, .75);
  backdrop-filter: blur(22px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 1rem "Manrope"; }
.brand-logo { width: 100px; height: 30px; object-fit: contain; object-position: left center; opacity: .88; }
.brand-logo-auth { width: 120px; height: 36px; opacity: .86; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #080b12;
  background: var(--lime);
  border-radius: 10px;
  box-shadow: 0 0 28px rgba(124,60,255,.16);
}
.brand-light { position: absolute; top: 32px; left: 48px; color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.user-chip { color: #b7bdc9; font-size: .86rem; font-weight: 600; }

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 700;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-primary {
  color: #fff;
  background: var(--lime);
  box-shadow: 0 10px 35px rgba(124,60,255,.18);
}
.button-primary:hover { background: #9368ff; box-shadow: 0 13px 42px rgba(124,60,255,.28); }
.button-dark, .button-ghost, .button-ghost-dark {
  color: var(--text);
  background: rgba(255,255,255,.025);
  border-color: var(--line-strong);
}
.button-dark:hover, .button-ghost:hover, .button-ghost-dark:hover { border-color: rgba(124,60,255,.55); background: var(--lime-soft); }
.button-small { min-height: 38px; padding: 0 15px; font-size: .82rem; }
.button-full { width: 100%; }
.button-arrow { font-size: 1.2rem; }

.flash-stack { position: fixed; top: 90px; right: 24px; z-index: 100; display: grid; gap: 8px; }
.flash {
  max-width: 390px;
  padding: 14px 18px;
  color: var(--text);
  background: rgba(15,20,31,.96);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--lime);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: .3s;
}
.flash-error { border-left-color: var(--danger); }
.flash-hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }

input, textarea, select {
  width: 100%;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(5,8,15,.62);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #5e6573; }
select option { color: #111; background: #fff; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(124,60,255,.62);
  background: rgba(8,12,20,.9);
  box-shadow: 0 0 0 4px rgba(124,60,255,.07);
}

.auth-page { background: var(--bg); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; padding: 16px; }
.auth-visual {
  min-height: calc(100vh - 32px);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 73% 55%, rgba(124,60,255,.09), transparent 25rem),
    linear-gradient(145deg, rgba(124,60,255,.035), transparent 48%),
    #080b14;
  box-shadow: inset 0 0 100px rgba(0,0,0,.38);
}
.auth-visual::before, .auth-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.auth-visual::before { width: 520px; height: 520px; right: -280px; bottom: -290px; border: 1px solid rgba(124,60,255,.09); }
.auth-visual::after { width: 340px; height: 340px; left: -230px; top: -220px; background: rgba(124,60,255,.035); filter: blur(1px); }
.auth-visual-content { max-width: 700px; padding: 19vh 7vw 8vh; position: relative; z-index: 3; }
.auth-visual h1 { max-width: 640px; margin-bottom: 25px; }
.auth-visual p:not(.eyebrow) { max-width: 500px; color: #8f96a5; font-size: 1.08rem; line-height: 1.7; }
.galaxy-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.86) 72%, transparent 100%);
}
.galaxy-backdrop::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 25%;
  left: -7%;
  top: 43%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(111,56,230,.12), rgba(167,113,255,.18), transparent);
  filter: blur(32px);
  transform: rotate(-18deg);
  animation: galaxyBand 18s ease-in-out infinite alternate;
}
.galaxy-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,11,20,.06), rgba(8,11,20,.18) 65%, rgba(8,11,20,.52));
}
.galaxy-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.galaxy-nebula-one {
  width: 74%;
  height: 62%;
  left: 5%;
  top: 17%;
  opacity: .35;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(135,70,255,.72), transparent 38%),
    radial-gradient(ellipse at 68% 42%, rgba(73,35,170,.55), transparent 52%);
  animation: nebulaDrift 16s ease-in-out infinite alternate;
}
.galaxy-nebula-two {
  width: 56%;
  height: 55%;
  right: -5%;
  bottom: -8%;
  opacity: .25;
  background: radial-gradient(ellipse, rgba(166,116,255,.65), transparent 64%);
  animation: nebulaDriftTwo 20s ease-in-out infinite alternate;
}
.galaxy-stars {
  position: absolute;
  inset: -8%;
  background-repeat: repeat;
  will-change: transform, opacity;
}
.galaxy-stars-far {
  opacity: .26;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.78) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(160,120,255,.75) 0 1px, transparent 1.25px);
  background-size: 97px 97px, 151px 151px;
  background-position: 12px 23px, 67px 9px;
  animation: galaxyDrift 34s linear infinite;
}
.galaxy-stars-near {
  opacity: .42;
  background-image:
    radial-gradient(circle, #fff 0 1.2px, transparent 1.5px),
    radial-gradient(circle, rgba(182,148,255,.95) 0 1.4px, transparent 1.8px);
  background-size: 211px 211px, 283px 283px;
  background-position: 34px 73px, 151px 31px;
  filter: drop-shadow(0 0 4px rgba(124,60,255,.55));
  animation: galaxyDriftNear 24s linear infinite;
}
.galaxy-arc {
  position: absolute;
  border: 1px solid rgba(174,137,255,.1);
  border-radius: 50%;
  animation: galaxyArc 18s ease-in-out infinite alternate;
}
.galaxy-arc-one {
  width: 620px;
  height: 620px;
  left: 17%;
  top: 18%;
  transform: rotate(-15deg);
}
.galaxy-arc-two {
  width: 390px;
  height: 390px;
  left: 31%;
  top: 31%;
  border-color: rgba(255,255,255,.055);
  animation-delay: -7s;
}
.auth-form-panel { display: grid; place-items: center; padding: 50px; }
.auth-form-wrap { width: min(100%, 440px); }
.auth-form-wrap h2 { margin-bottom: 8px; font-size: 2.4rem; }
.form-stack { display: grid; gap: 17px; margin-top: 30px; }
.form-stack label > span { display: block; margin-bottom: 8px; color: #b9bfca; font-size: .82rem; font-weight: 700; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--lime); font-weight: 700; }
.registration-contact { margin-top: 26px; padding-top: 23px; display: grid; gap: 11px; text-align: center; border-top: 1px solid var(--line); }
.registration-contact > span { color: #aab1bd; font-size: .78rem; text-transform: capitalize; }
.registration-contact > small { color: #626a78; font-size: .7rem; line-height: 1.45; }
.whatsapp-button { color: #f6f3ff; background: rgba(124,60,255,.12); border-color: rgba(124,60,255,.3); box-shadow: none; }
.whatsapp-button:hover { background: rgba(124,60,255,.2); border-color: rgba(154,111,255,.55); box-shadow: 0 12px 35px rgba(70,35,155,.14); }
.whatsapp-mark { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--lime); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.first-access-logout { margin-top: 18px; text-align: center; }
.first-access-logout button { padding: 6px; color: var(--muted); background: transparent; border: 0; font-size: .78rem; }
.first-access-logout button:hover { color: var(--lime); }

.app-layout {
  max-width: 1500px;
  margin: auto;
  padding: 56px clamp(20px, 5vw, 72px) 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(35px, 6vw, 88px);
}
.sidebar {
  min-height: 560px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10,14,24,.48);
}
.sidebar h2 { font-size: 2rem; }
.sidebar p { line-height: 1.65; }
.credit-wallet {
  overflow: hidden;
  position: relative;
  padding: 19px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(124,60,255,.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(124,60,255,.16), transparent 55%),
    linear-gradient(145deg, rgba(124,60,255,.075), rgba(255,255,255,.02));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.credit-wallet::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -48px;
  bottom: -52px;
  border: 1px solid rgba(124,60,255,.18);
  border-radius: 50%;
}
.credit-wallet:hover { transform: translateY(-3px); border-color: rgba(124,60,255,.48); box-shadow: 0 15px 38px rgba(0,0,0,.22); }
.credit-wallet-label { display: flex; align-items: center; gap: 8px; color: #aeb5c2; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.credit-wallet-label i { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 12px rgba(124,60,255,.8); }
.credit-wallet-balance { display: flex; align-items: baseline; gap: 8px; }
.credit-wallet-balance strong { color: var(--text); font: 800 2.8rem/1 "Manrope"; letter-spacing: -.06em; }
.credit-wallet-balance small { color: var(--muted); font-size: .74rem; }
.credit-wallet-action { padding-top: 13px; display: flex; align-items: center; justify-content: space-between; color: var(--lime); border-top: 1px solid rgba(124,60,255,.14); font-size: .76rem; font-weight: 700; }
.credit-wallet-action b { width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--lime); border-radius: 7px; font-size: 1rem; }
.workspace { min-width: 0; }
.workspace-heading, .admin-heading, .detail-heading, .section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.workspace-heading h1 { margin-bottom: 0; }
.status-pill {
  width: max-content;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b6bdca;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); }
.status-online, .status-completed { color: var(--lime); border-color: rgba(124,60,255,.22); background: var(--lime-soft); }
.status-queued { color: #e6c86d; border-color: rgba(230,200,109,.2); background: rgba(230,200,109,.07); }
.status-processing { color: #afbcff; border-color: rgba(142,159,255,.22); background: rgba(111,131,240,.08); }
.status-failed { color: #ff8996; border-color: rgba(255,110,126,.22); background: rgba(255,110,126,.08); }

.chat-card, .history-card, .metric-card, .request-list, .detail-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
  backdrop-filter: blur(15px);
}
.chat-card { margin-top: 40px; overflow: hidden; border-radius: 24px; }
.chat-intro { padding: 28px 31px 23px; display: flex; align-items: flex-start; gap: 15px; border-bottom: 1px solid var(--line); }
.assistant-avatar, .request-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--lime);
  border-radius: 12px;
  font-weight: 800;
}
.chat-bubble p { margin: 5px 0 0; color: var(--muted); }
.request-composer { padding: 28px 31px 31px; }
.upload-box {
  min-height: 135px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(4,7,13,.25);
  transition: transform .25s, border-color .25s, background .25s;
}
.upload-box:hover, .upload-box.has-file { transform: translateY(-2px); border-color: rgba(124,60,255,.55); background: var(--lime-soft); }
.upload-icon { width: 29px; height: 29px; margin-bottom: 10px; display: grid; place-items: center; color: var(--lime); background: var(--lime-soft); border-radius: 9px; font-size: 1.25rem; }
.upload-box strong { font-size: .9rem; }
.upload-box small { margin-top: 3px; color: var(--muted); }
.file-name { max-width: 100%; margin-top: 8px; overflow: hidden; color: var(--lime); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-identity {
  min-height: 142px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 150px minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124,60,255,.18);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(124,60,255,.065), transparent 42%),
    rgba(6,9,16,.58);
}
.brand-identity::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -145px;
  top: -150px;
  border: 1px solid rgba(124,60,255,.1);
  border-radius: 50%;
  pointer-events: none;
}
.brand-logo-stage {
  height: 104px;
  padding: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(225,228,232,.95));
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.brand-logo-stage img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo-fallback { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--lime); border-radius: 14px; font: 800 1.3rem "Manrope"; }
.brand-identity-copy { min-width: 0; }
.brand-fixed-label { margin-bottom: 9px; display: inline-flex; align-items: center; gap: 7px; color: var(--lime); font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brand-fixed-label i { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--lime); border-radius: 50%; font-style: normal; font-size: .65rem; }
.brand-identity-copy strong { display: block; overflow: hidden; font: 700 1.25rem "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.brand-identity-copy p { max-width: 560px; margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.brand-lock { padding: 7px 10px; color: #98a0ad; border: 1px solid var(--line); border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reference-upload { margin-top: 20px; }
.upload-section-heading { margin-bottom: 11px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.upload-section-heading div { display: grid; gap: 4px; }
.upload-section-heading strong { font-size: .84rem; }
.upload-section-heading small, .upload-section-heading > span { color: var(--muted); font-size: .7rem; }
.reference-upload-box {
  min-height: 102px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  align-items: center;
}
.reference-upload-box .upload-icon { width: 42px; height: 42px; margin: 0; border: 1px solid rgba(124,60,255,.18); border-radius: 12px; }
.upload-copy { display: grid; }
.reference-upload-box .file-name { grid-column: 2; margin-top: -5px; }
.format-row { padding: 22px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.format-row > span { margin-right: 4px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.format-option input { display: none; }
.format-option span { display: block; padding: 8px 12px; cursor: pointer; color: #9aa1af; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 600; transition: .2s; }
.format-option input:checked + span { color: #fff; border-color: var(--lime); background: var(--lime); }
.message-box { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(4,7,13,.35); }
.message-box textarea { min-height: 130px; padding: 18px; resize: vertical; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.composer-footer { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.composer-tip { padding-left: 7px; color: var(--muted); font-size: .73rem; }
.history-section { margin-top: 58px; }
.section-title { align-items: center; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.section-title > span { color: var(--muted); font-size: .78rem; }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.history-card { overflow: hidden; border-radius: 17px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.history-card:hover { transform: translateY(-4px); border-color: rgba(124,60,255,.32); box-shadow: 0 22px 60px rgba(0,0,0,.3); }
.history-thumb { aspect-ratio: 1.4; overflow: hidden; background: #111622; }
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(124,60,255,.1), transparent 35%), #0b0f19; }
.mini-loader { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.13); border-top-color: var(--lime); border-radius: 50%; animation: spin 1.2s linear infinite; }
.history-info { padding: 15px; }
.history-info p { margin: 12px 0 10px; overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.history-info small { color: var(--muted); }

.generation-page, .admin-layout { max-width: 1400px; margin: auto; padding: 52px clamp(20px, 5vw, 72px) 100px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: .86rem; font-weight: 600; transition: color .2s; }
.back-link:hover { color: var(--lime); }
.generation-shell { min-height: 650px; display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(40px, 7vw, 105px); align-items: center; }
.generation-copy h1 { max-width: 560px; }
.generation-copy > p:not(.eyebrow) { max-width: 550px; color: var(--muted); line-height: 1.75; }
.generation-steps { margin-top: 46px; display: grid; gap: 21px; }
.generation-step { display: flex; gap: 15px; opacity: .35; transition: opacity .4s; }
.generation-step.active { opacity: 1; }
.generation-step > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: .76rem; font-weight: 700; }
.generation-step.active > span { color: #fff; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 20px rgba(124,60,255,.14); }
.generation-step p { margin: 0; display: grid; }
.generation-step small { margin-top: 3px; color: var(--muted); }
.generation-stage { min-height: 610px; padding: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 28px; background: rgba(10,14,24,.75); box-shadow: var(--shadow); }
.creative-loader { width: min(100%, 490px); text-align: center; }
.loader-canvas { position: relative; overflow: hidden; aspect-ratio: 1; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 22px; background: #080c15; }
.loader-canvas::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; }
.scan-line { position: absolute; z-index: 5; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lime), transparent); box-shadow: 0 0 24px var(--lime); animation: scan 4s ease-in-out infinite; }
.shape { position: absolute; border: 1px solid rgba(124,60,255,.25); border-radius: 28%; animation: float 6s ease-in-out infinite; }
.shape-one { width: 43%; height: 43%; left: 10%; top: 13%; background: linear-gradient(140deg, rgba(124,60,255,.23), rgba(124,60,255,.03)); }
.shape-two { width: 37%; height: 37%; right: 8%; bottom: 12%; background: linear-gradient(140deg, rgba(80,101,176,.35), rgba(25,31,55,.2)); animation-delay: -1.2s; }
.shape-three { width: 20%; height: 20%; right: 14%; top: 12%; background: rgba(124,60,255,.72); animation-delay: -2.1s; }
.loader-center { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; }
.loader-center span { width: 70px; height: 70px; border: 2px solid rgba(255,255,255,.14); border-top-color: var(--lime); border-radius: 50%; animation: spin 1.4s linear infinite; }
.creative-loader strong { display: block; font: 600 1.1rem "Manrope"; }
.creative-loader small { display: block; margin-top: 8px; color: var(--muted); }
.result-card { width: min(100%, 520px); }
.result-card.carousel-result { width: 100%; max-height: 550px; padding-right: 8px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; overflow-y: auto; }
.result-item { min-width: 0; }
.result-card-enter { animation: resultReveal .55s ease both; }
.result-card img { width: 100%; max-height: 530px; margin-bottom: 18px; object-fit: contain; border: 1px solid var(--line); border-radius: 16px; background: #05070c; }
.carousel-result img { aspect-ratio: 4/5; object-fit: cover; }

.admin-heading h1, .detail-heading h1 { margin-bottom: 4px; }
.admin-nav { margin-bottom: 36px; display: flex; gap: 8px; }
.admin-nav a { padding: 10px 15px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.admin-nav a.active { color: #fff; background: var(--lime); border-color: var(--lime); }
.metrics-grid { margin: 43px 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-card { padding: 22px; display: grid; gap: 16px; border-radius: 16px; transition: transform .25s, border-color .25s; }
.metric-card:hover { transform: translateY(-3px); border-color: rgba(124,60,255,.3); }
.metric-card span { color: var(--muted); font-size: .78rem; }
.metric-card strong { color: var(--lime); font: 700 2.1rem "Manrope"; }
.filter-tabs { margin-bottom: 17px; display: flex; gap: 7px; overflow-x: auto; }
.filter-tabs a { padding: 10px 15px; color: var(--muted); border: 1px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.filter-tabs a.active { color: #fff; background: var(--lime); }
.request-list { overflow: hidden; border-radius: 18px; }
.request-row { padding: 17px 20px; display: grid; grid-template-columns: 44px minmax(220px,1fr) 100px 105px 120px 25px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.request-row:last-child { border: 0; }
.request-row:hover { padding-left: 24px; background: var(--panel-hover); }
.request-main { min-width: 0; }
.request-main p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.request-format, .request-files { color: var(--muted); font-size: .76rem; text-transform: capitalize; }
.row-arrow { color: var(--lime); font-size: 1.15rem; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--text); }
.detail-heading { margin-bottom: 30px; align-items: center; }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.detail-column { display: grid; gap: 22px; }
.detail-card { padding: 25px; border-radius: 18px; }
.brief-text { margin-bottom: 0; font-size: 1.03rem; line-height: 1.75; white-space: pre-wrap; }
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reference-grid a { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #080b12; }
.reference-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.reference-grid a:hover img { transform: scale(1.04); }
.reference-grid span { position: absolute; left: 7px; bottom: 7px; padding: 5px 7px; color: #fff; background: var(--lime); border-radius: 6px; font-size: .63rem; font-weight: 700; }
.prompt-area { min-height: 410px; resize: vertical; font: .8rem/1.62 Consolas, monospace; }
.action-card .form-stack { margin-top: 14px; }
.divider { margin: 22px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .68rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.compact-upload input { font-size: .78rem; }
.error-box { padding: 12px; margin: 17px 0 0; color: var(--danger); background: rgba(255,110,126,.07); border: 1px solid rgba(255,110,126,.2); border-radius: 9px; font-size: .76rem; line-height: 1.5; }
.admin-result { width: 100%; max-height: 680px; object-fit: contain; border-radius: 12px; background: #05070c; }
.admin-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.narrow-layout { max-width: 1050px; }
.credits-layout { max-width: 1180px; }
.credits-hero {
  min-height: 300px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  gap: 50px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 15%, rgba(124,60,255,.13), transparent 28%),
    linear-gradient(135deg, rgba(20,26,40,.96), rgba(8,12,20,.96));
  box-shadow: var(--shadow);
}
.credits-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -190px; bottom: -230px; border: 1px solid rgba(124,60,255,.13); border-radius: 50%; }
.credits-hero-copy { position: relative; z-index: 1; }
.credits-hero-copy h1 { max-width: 620px; margin-bottom: 18px; font-size: clamp(2.2rem, 5vw, 4rem); }
.credits-hero-copy > p:last-child { max-width: 590px; margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.balance-card {
  padding: 25px;
  display: grid;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(124,60,255,.28);
  border-radius: 20px;
  background: rgba(124,60,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.balance-card > span { color: #b6bdc8; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.balance-card strong { margin: 14px 0 0; color: var(--lime); font: 800 4rem/1 "Manrope"; letter-spacing: -.07em; }
.balance-card small { color: #b7bec9; }
.balance-card i { margin-top: 22px; padding-top: 15px; color: var(--muted); border-top: 1px solid rgba(124,60,255,.14); font-size: .7rem; font-style: normal; }
.credits-grid { margin-top: 22px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.credit-request-card { position: relative; overflow: hidden; }
.credit-card-icon { width: 43px; height: 43px; margin-bottom: 25px; display: grid; place-items: center; color: #fff; background: var(--lime); border-radius: 13px; font: 700 1.4rem "Manrope"; box-shadow: 0 10px 30px rgba(124,60,255,.14); }
.credit-request-card h2 { font-size: 1.75rem; }
.credit-history-card .section-title { align-items: flex-start; }
.credit-history-card .section-title .eyebrow { margin-bottom: 7px; }
.history-credit-amount { display: flex; align-items: center; gap: 10px; }
.history-credit-amount i { width: 27px; height: 27px; display: grid; place-items: center; color: var(--lime); background: var(--lime-soft); border-radius: 8px; font-style: normal; }
.history-credit-amount > span { display: grid; gap: 3px; }
.history-credit-amount small { color: var(--muted); font-size: .7rem; }
.credit-checkout { margin-top: 22px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 22px; align-items: start; }
.credit-purchase-card h2, .pix-payment-card h2, .receipt-card h2 { font-size: 1.7rem; }
.credit-packages { margin: 25px 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.credit-package {
  min-height: 105px;
  padding: 13px 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--text);
  background: rgba(4,7,13,.35);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: transform .2s, border-color .2s, background .2s;
}
.credit-package:hover { transform: translateY(-2px); border-color: rgba(124,60,255,.4); }
.credit-package.active { color: #fff; background: var(--lime); border-color: var(--lime); }
.credit-package strong { font: 800 1.55rem/1 "Manrope"; }
.credit-package span { font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.credit-package small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.credit-package.active small { color: rgba(255,255,255,.72); }
.custom-credit-input > span, .pix-copy-field > span { display: block; margin-bottom: 8px; color: #b9bfca; font-size: .76rem; font-weight: 700; }
.price-summary { margin-top: 17px; padding: 17px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3px 15px; border: 1px solid rgba(124,60,255,.18); border-radius: 14px; background: var(--lime-soft); }
.price-summary > span { color: #b8bec8; font-size: .72rem; }
.price-summary strong { grid-row: span 2; color: var(--lime); font: 800 1.8rem "Manrope"; }
.price-summary small { color: var(--muted); font-size: .67rem; }
.pix-payment-card { min-height: 100%; }
.pix-content { margin-top: 22px; display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 25px; align-items: center; }
.pix-qr-frame { padding: 13px; background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.pix-qr-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pix-instructions p { line-height: 1.55; }
.pix-key { margin: 18px 0; padding: 12px 14px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4,7,13,.35); }
.pix-key span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.pix-key strong { font-size: .9rem; }
.pix-copy-field textarea { min-height: 76px; resize: none; word-break: break-all; font: .68rem/1.45 Consolas, monospace; }
.receipt-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px,1fr) minmax(280px,1fr) auto; gap: 25px; align-items: center; }
.receipt-card p:last-child { margin-bottom: 0; line-height: 1.55; }
.receipt-upload { min-height: 92px; padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 13px; border: 1px dashed var(--line-strong); border-radius: 14px; background: rgba(4,7,13,.3); transition: border-color .2s, background .2s; }
.receipt-upload:hover, .receipt-upload.has-file { border-color: rgba(124,60,255,.55); background: var(--lime-soft); }
.receipt-upload-icon { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; color: var(--lime); background: var(--lime-soft); border-radius: 11px; font-size: 1.15rem; }
.receipt-upload > span:last-child { min-width: 0; display: grid; gap: 3px; }
.receipt-upload small { color: var(--muted); font-size: .67rem; }
.receipt-upload .file-name { margin: 3px 0 0; font-style: normal; }
.credit-purchase-history { margin-top: 22px; }
.simple-list { display: grid; gap: 10px; }
.simple-list > div { padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.status-approved { color: var(--lime); border-color: rgba(124,60,255,.22); background: var(--lime-soft); }
.status-pending { color: #e6c86d; border-color: rgba(230,200,109,.2); background: rgba(230,200,109,.07); }
.status-rejected { color: var(--danger); border-color: rgba(255,110,126,.22); background: rgba(255,110,126,.08); }

.management-grid { margin-top: 35px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
.client-create-section {
  margin-top: 35px;
  display: grid;
  grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr);
  gap: 35px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(124,60,255,.08), transparent 30%),
    var(--panel);
}
.client-create-copy h2 { margin-bottom: 12px; font-size: 1.8rem; }
.client-create-copy p:last-child { margin-bottom: 0; line-height: 1.65; }
.client-create-copy strong { color: var(--lime); }
.client-create-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.client-create-form label > span { display: block; margin-bottom: 7px; color: #b9bfca; font-size: .76rem; font-weight: 700; }
.client-create-form .button { align-self: end; }
.company-list { display: grid; gap: 15px; }
.company-editor { padding: 17px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; }
.company-editor-head { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; }
.company-editor-head img { width: 62px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.company-editor textarea { resize: vertical; }
.management-section { margin-top: 22px; }
.accounts-table { display: grid; }
.account-row { padding: 14px 0; display: grid; grid-template-columns: minmax(210px,1.5fr) minmax(160px,1fr) 130px 90px 80px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row > div { min-width: 0; display: grid; gap: 4px; }
.account-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.account-row input, .account-row select { padding: 10px; }
.credit-request-row { grid-template-columns: minmax(190px,1fr) 125px 120px 90px 90px; }
.receipt-link { padding: 9px 10px; color: var(--lime); border: 1px solid rgba(124,60,255,.22); border-radius: 9px; font-size: .7rem; font-weight: 700; text-align: center; }
.receipt-link:hover { background: var(--lime-soft); }

.waiting-shell { min-height: calc(100vh - 76px); padding: 50px 20px; display: grid; place-items: center; }
.waiting-card { width: min(100%, 720px); padding: clamp(35px, 7vw, 75px); text-align: center; border: 1px solid var(--line-strong); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); }
.waiting-card h1 { margin: 20px auto; max-width: 620px; font-size: clamp(2.1rem, 6vw, 4rem); }
.waiting-card > .muted { max-width: 570px; margin: 0 auto; line-height: 1.7; }
.approval-animation { width: 150px; height: 150px; margin: 0 auto 34px; position: relative; display: grid; place-items: center; }
.approval-ring { position: absolute; border: 1px solid rgba(124,60,255,.35); border-radius: 50%; animation: approvalPulse 2.6s ease-in-out infinite; }
.ring-one { inset: 10px; }
.ring-two { inset: 0; animation-delay: -1.3s; }
.approval-core { width: 74px; height: 74px; display: grid; place-items: center; color: #fff; background: var(--lime); border-radius: 22px; font: 800 1.7rem "Manrope"; box-shadow: 0 0 55px rgba(124,60,255,.24); animation: coreFloat 2.6s ease-in-out infinite; }
.waiting-status { width: max-content; margin: 28px auto 0; padding: 10px 15px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(230,200,109,.22); border-radius: 999px; color: #e6c86d; background: rgba(230,200,109,.07); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.waiting-status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: statusBlink 1.5s ease-in-out infinite; }
.waiting-tip { margin: 20px 0 0; color: #606877; font-size: .75rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0%,100% { top: 7%; opacity: .2; } 50% { top: 92%; opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes stars { from { opacity: .13; transform: translateY(0); } to { opacity: .28; transform: translateY(-8px); } }
@keyframes nebulaDrift { from { transform: translate3d(-2%, 1%, 0) scale(.96) rotate(-3deg); opacity: .2; } to { transform: translate3d(6%, -3%, 0) scale(1.08) rotate(4deg); opacity: .34; } }
@keyframes nebulaDriftTwo { from { transform: translate3d(2%, 3%, 0) scale(1); } to { transform: translate3d(-7%, -5%, 0) scale(1.13); } }
@keyframes galaxyBand { from { transform: rotate(-20deg) translateX(-2%) scaleX(.95); opacity: .55; } to { transform: rotate(-15deg) translateX(5%) scaleX(1.08); opacity: .9; } }
@keyframes galaxyDrift { to { transform: translate3d(4%, 3%, 0); } }
@keyframes galaxyDriftNear { 0% { transform: translate3d(0,0,0); opacity: .28; } 50% { opacity: .5; } 100% { transform: translate3d(-4%, 5%, 0); opacity: .32; } }
@keyframes galaxyArc { from { transform: rotate(-17deg) scale(.98); opacity: .45; } to { transform: rotate(-10deg) scale(1.04); opacity: .8; } }
@keyframes resultReveal { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes approvalPulse { 0%,100% { opacity: .25; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
@keyframes coreFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes statusBlink { 0%,100% { opacity: .35; } 50% { opacity: 1; box-shadow: 0 0 12px currentColor; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1050px) {
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; flex-direction: row; }
  .credit-wallet { min-width: 230px; align-self: stretch; }
  .request-row { grid-template-columns: 44px 1fr 115px 25px; }
  .request-format, .request-files { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .management-grid { grid-template-columns: 1fr; }
  .client-create-section { grid-template-columns: 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
  .credit-checkout { grid-template-columns: 1fr; }
  .receipt-card { grid-column: auto; grid-template-columns: 1fr; }
  .account-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar { height: 66px; }
  .user-chip { display: none; }
  .auth-shell { display: block; padding: 0; }
  .auth-visual { min-height: 310px; border-width: 0 0 1px; border-radius: 0 0 24px 24px; }
  .auth-visual-content { padding: 105px 30px 35px; }
  .auth-visual-content h1 { font-size: 2.25rem; }
  .brand-light { top: 27px; left: 30px; }
  .brand-logo-auth { width: 108px; height: 33px; }
  .galaxy-backdrop { opacity: .65; mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.78)); }
  .galaxy-nebula-one { width: 105%; height: 80%; left: -20%; top: 5%; }
  .galaxy-nebula-two { width: 70%; height: 65%; right: -20%; bottom: -25%; }
  .galaxy-arc-one { width: 330px; height: 330px; left: 25%; top: 25%; }
  .galaxy-arc-two { width: 220px; height: 220px; left: 42%; top: 40%; }
  .auth-form-panel { padding: 45px 24px; }
  .app-layout, .admin-layout, .generation-page { padding-top: 34px; }
  .sidebar { display: block; padding: 24px; }
  .credit-wallet { min-width: 0; margin-top: 24px; }
  .workspace-heading, .detail-heading, .admin-heading { align-items: flex-start; flex-direction: column; }
  .chat-card { margin-top: 25px; border-radius: 18px; }
  .chat-intro, .request-composer { padding-left: 19px; padding-right: 19px; }
  .history-grid { grid-template-columns: 1fr; }
  .brand-identity { grid-template-columns: 100px minmax(0,1fr); padding: 15px; gap: 15px; }
  .brand-logo-stage { height: 86px; padding: 12px; }
  .brand-lock { display: none; }
  .brand-identity-copy strong { font-size: 1rem; }
  .brand-identity-copy p { font-size: .74rem; }
  .upload-section-heading > span { display: none; }
  .composer-footer { align-items: stretch; flex-direction: column; }
  .composer-tip { display: none; }
  .generation-shell { min-height: 0; grid-template-columns: 1fr; }
  .generation-stage { min-height: auto; padding: 18px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .request-row { grid-template-columns: 39px 1fr 25px; padding: 15px; }
  .request-row .status-pill { display: none; }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card.carousel-result, .admin-results { grid-template-columns: 1fr; }
  .account-row, .credit-request-row { grid-template-columns: 1fr; padding: 18px 0; }
  .client-create-form { grid-template-columns: 1fr; }
  .credits-hero { grid-template-columns: 1fr; gap: 28px; }
  .balance-card { width: 100%; }
  .pix-content { grid-template-columns: 1fr; }
  .pix-qr-frame { width: min(100%, 280px); margin: auto; }
  .credit-packages { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Light Destaque base theme */
:root {
  --bg: #f6fbf7;
  --bg-soft: #eef7f1;
  --panel: rgba(255, 255, 255, .92);
  --panel-solid: #ffffff;
  --panel-hover: #eef8f2;
  --text: #07160c;
  --muted: #647268;
  --line: rgba(10, 54, 28, .12);
  --line-strong: rgba(10, 54, 28, .2);
  --lime: #06c85f;
  --lime-soft: rgba(6, 200, 95, .1);
  --danger: #d9364f;
  --shadow: 0 24px 70px rgba(20, 74, 42, .12);
}

/* Minimal Destaque theme */
:root {
  --bg: #f7f8f5;
  --bg-soft: #eef3ed;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-hover: #f1f6f0;
  --text: #07120b;
  --muted: #667268;
  --line: rgba(7, 18, 11, .1);
  --line-strong: rgba(7, 18, 11, .18);
  --lime: #05c45d;
  --lime-soft: rgba(5, 196, 93, .09);
  --danger: #c9364b;
  --shadow: 0 18px 48px rgba(28, 52, 36, .08);
}

body {
  background: #f7f8f5;
}

body::before,
.ambient-grid {
  display: none;
}

h1, h2 {
  letter-spacing: 0;
}

.topbar {
  background: rgba(247, 248, 245, .9);
  border-bottom-color: rgba(7,18,11,.08);
  box-shadow: none;
}

.brand {
  width: max-content;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 12px;
}

.brand-logo {
  width: 154px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.brand-logo-auth {
  width: 180px;
  height: 52px;
}

.button {
  border-radius: 10px;
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.button-primary:hover {
  color: #fff;
  background: var(--lime);
  box-shadow: none;
}

.button-ghost,
.button-ghost-dark,
.button-dark {
  background: #fff;
}

input,
textarea,
select {
  background: #fff;
  border-color: rgba(7,18,11,.14);
  border-radius: 10px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(5,196,93,.58);
  box-shadow: 0 0 0 4px rgba(5,196,93,.08);
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 18px;
  padding: 18px;
}

.auth-visual {
  min-height: calc(100vh - 36px);
  border-color: rgba(7,18,11,.08);
  border-radius: 22px;
  background: #eef3ed;
  box-shadow: none;
}

.auth-visual::before,
.auth-visual::after {
  display: none;
}

.auth-visual-content {
  max-width: 650px;
  padding: 18vh 7vw 8vh;
}

.auth-visual h1 {
  max-width: 610px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.auth-visual p:not(.eyebrow) {
  color: #536157;
}

.auth-form-panel {
  padding: 36px;
  background: #fff;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 22px;
}

.auth-form-wrap h2 {
  font-size: 2.1rem;
}

.creation-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.creation-scene::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 28px;
}

.creation-scene::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,196,93,.45), transparent);
  animation: creationLine 3.8s ease-in-out infinite;
}

.creation-orbit {
  position: absolute;
  border: 1px solid rgba(5,196,93,.14);
  border-radius: 28px;
}

.orbit-one {
  width: 42%;
  height: 46%;
  right: 11%;
  top: 17%;
  animation: creationFrame 9s ease-in-out infinite alternate;
}

.orbit-two {
  width: 30%;
  height: 34%;
  right: 22%;
  top: 28%;
  animation: creationFrame 7s ease-in-out infinite alternate-reverse;
}

.creation-card {
  position: absolute;
  width: 180px;
  height: 126px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(28,52,36,.08);
  animation: creationFloat 4.8s ease-in-out infinite;
}

.creation-card i,
.creation-card b,
.creation-card em {
  display: block;
  border-radius: 999px;
  background: #e8efe8;
}

.creation-card i {
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5,196,93,.18), rgba(5,196,93,.04));
}

.creation-card b {
  width: 76%;
  height: 9px;
}

.creation-card em {
  width: 48%;
  height: 9px;
}

.card-one {
  right: 12%;
  top: 18%;
}

.card-two {
  right: 28%;
  bottom: 15%;
  animation-delay: -1.4s;
}

.card-three {
  right: 6%;
  bottom: 26%;
  animation-delay: -2.2s;
}

.creation-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  right: 28%;
  top: 48%;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(5,196,93,.1);
  animation: creationCursor 4s ease-in-out infinite;
}

.creation-word {
  position: absolute;
  padding: 8px 12px;
  color: #07120b;
  background: #fff;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(28,52,36,.08);
  animation: creationWord 4.5s ease-in-out infinite;
}

.word-one {
  right: 33%;
  top: 14%;
}

.word-two {
  right: 9%;
  top: 66%;
  animation-delay: -1.5s;
}

.word-three {
  right: 39%;
  bottom: 13%;
  animation-delay: -3s;
}

.sidebar,
.chat-card,
.history-card,
.metric-card,
.request-list,
.detail-card,
.waiting-card,
.generation-stage,
.client-create-section,
.credits-hero {
  background: #fff;
  border: 1px solid rgba(7,18,11,.09);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.sidebar,
.chat-card,
.detail-card,
.credits-hero,
.client-create-section {
  border-radius: 16px;
}

.credit-wallet,
.brand-identity,
.balance-card,
.price-summary {
  background: #f7fbf7;
  border-color: rgba(5,196,93,.18);
}

.brand-identity {
  grid-template-columns: 160px minmax(0,1fr) auto;
}

.brand-logo-stage,
.company-editor-head img,
.pix-qr-frame,
.brand {
  background: #fff;
}

.brand-logo-stage {
  width: 160px;
  height: 108px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(7,18,11,.1);
  border-radius: 12px;
  box-shadow: none;
}

.brand-logo-stage img,
.company-editor-head img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-fixed-label {
  color: #047d3c;
}

.status-pill {
  background: #fff;
}

.status-online,
.status-completed,
.status-approved {
  color: #047d3c;
  border-color: rgba(5,196,93,.2);
  background: rgba(5,196,93,.08);
}

.upload-box,
.message-box,
.credit-package,
.pix-key,
.receipt-upload,
.format-option span {
  background: #fff;
}

.upload-box:hover,
.upload-box.has-file,
.receipt-upload:hover,
.receipt-upload.has-file {
  background: #f2faf4;
}

.history-card:hover,
.metric-card:hover,
.credit-wallet:hover {
  border-color: rgba(5,196,93,.28);
  box-shadow: 0 18px 44px rgba(28,52,36,.1);
}

@keyframes creationFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes creationCursor {
  0%, 100% { transform: translate(0, 0) scale(.9); opacity: .65; }
  35% { transform: translate(-88px, -40px) scale(1); opacity: 1; }
  70% { transform: translate(58px, 54px) scale(.95); opacity: .8; }
}

@keyframes creationWord {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes creationLine {
  0%, 100% { transform: scaleX(.4); opacity: .18; }
  50% { transform: scaleX(1); opacity: .9; }
}

@keyframes creationFrame {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(10px) rotate(2deg); }
}

@media (max-width: 1050px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 0;
  }

  .auth-visual {
    min-height: 380px;
    border-radius: 0 0 22px 22px;
  }

  .auth-form-panel {
    border-width: 0;
    border-radius: 0;
  }

  .brand {
    padding: 6px 8px;
  }

  .brand-logo {
    width: 136px;
    height: 40px;
  }

  .brand-logo-auth {
    width: 150px;
    height: 44px;
  }

  .creation-card {
    width: 138px;
    height: 98px;
  }

  .card-one { right: 8%; top: 22%; }
  .card-two { right: 34%; bottom: 18%; }
  .card-three { display: none; }
  .creation-word { font-size: .62rem; }
  .word-one { right: 36%; top: 16%; }
  .word-two { right: 8%; top: 72%; }
  .word-three { display: none; }

  .brand-identity {
    grid-template-columns: 112px minmax(0,1fr);
  }

  .brand-logo-stage {
    width: 112px;
    height: 86px;
    padding: 10px;
  }
}

/* Numbered homepage carousel images */
body.landing-page .showcase-wrap {
  overflow: hidden;
}

body.landing-page .showcase-carousel {
  inset: auto auto 28px 0;
  width: max-content;
  height: 260px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  perspective: none;
  animation: showcaseMarquee 34s linear infinite;
}

body.landing-page .showcase-card {
  width: clamp(132px, 17vw, 210px);
  flex: 0 0 clamp(132px, 17vw, 210px);
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  animation: carouselBreath 5s ease-in-out infinite;
}

body.landing-page .showcase-card:nth-child(4n + 1) {
  transform: translateY(4px) rotate(-3deg);
}

body.landing-page .showcase-card:nth-child(4n + 2) {
  transform: translateY(-18px) rotate(2deg);
}

body.landing-page .showcase-card:nth-child(4n + 3) {
  transform: translateY(16px) rotate(3deg);
}

body.landing-page .showcase-card:nth-child(4n + 4) {
  transform: translateY(-8px) rotate(-2deg);
}

@keyframes showcaseMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  body.landing-page .showcase-carousel {
    height: 210px;
    gap: 12px;
    animation-duration: 26s;
  }

  body.landing-page .showcase-card {
    width: 132px;
    flex-basis: 132px;
    display: block;
  }
}

/* Landing final pass */
body.landing-page {
  color: #f4fff6;
  background:
    radial-gradient(circle at 50% 112%, rgba(128,255,159,.2), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(128,255,159,.08), transparent 24rem),
    #091C09;
}

body.landing-page::before {
  display: block;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .16;
  animation: none;
}

body.landing-page .ambient-grid {
  display: block;
  opacity: .18;
  background: radial-gradient(circle at 50% 42%, rgba(128,255,159,.14), transparent 28rem);
  mask-image: none;
}

body.landing-page .brand,
body.landing-page .landing-brand,
body.landing-page .brand-logo-stage {
  background: #fff;
}

body.landing-page .landing-brand {
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
}

body.landing-page .landing-brand img {
  width: 176px;
  height: 52px;
  object-fit: contain;
}

body.landing-page .button-primary {
  color: #07120b;
  background: #80ff9f;
  border-color: #80ff9f;
  box-shadow: 0 14px 40px rgba(128,255,159,.18);
}

body.landing-page .button-primary:hover {
  background: #a2ffb8;
}

body.landing-page input,
body.landing-page textarea,
body.landing-page select {
  color: #07120b;
  background: #fff;
}

body.landing-page .eyebrow {
  color: #80ff9f;
}

/* Global dark Destaque theme */
body:not(.landing-page) {
  --bg: #091C09;
  --bg-soft: #0d2610;
  --panel: rgba(9, 28, 9, .82);
  --panel-solid: #102713;
  --panel-hover: rgba(128,255,159,.08);
  --text: #f4fff6;
  --muted: rgba(244,255,246,.66);
  --line: rgba(244,255,246,.12);
  --line-strong: rgba(244,255,246,.2);
  --lime: #80ff9f;
  --lime-soft: rgba(128,255,159,.1);
  --danger: #ff6b7d;
  --shadow: 0 24px 70px rgba(0,0,0,.32);
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(128,255,159,.09), transparent 26rem),
    radial-gradient(circle at 8% 92%, rgba(128,255,159,.08), transparent 28rem),
    #091C09;
}

body:not(.landing-page)::before {
  display: block;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .14;
  animation: none;
}

body:not(.landing-page) .ambient-grid {
  display: block;
  opacity: .18;
  background: radial-gradient(circle at 50% 18%, rgba(128,255,159,.12), transparent 30rem);
  mask-image: none;
}

body:not(.landing-page) .topbar {
  background: rgba(9,28,9,.82);
  border-bottom-color: rgba(244,255,246,.1);
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
}

body:not(.landing-page) .brand {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

body:not(.landing-page) .brand-logo {
  width: 136px;
  height: 40px;
  opacity: 1;
}

body:not(.landing-page) .user-chip {
  color: rgba(244,255,246,.78);
}

body:not(.landing-page) .sidebar,
body:not(.landing-page) .chat-card,
body:not(.landing-page) .history-card,
body:not(.landing-page) .metric-card,
body:not(.landing-page) .request-list,
body:not(.landing-page) .detail-card,
body:not(.landing-page) .waiting-card,
body:not(.landing-page) .generation-stage,
body:not(.landing-page) .client-create-section,
body:not(.landing-page) .credits-hero,
body:not(.landing-page) .auth-form-panel,
body:not(.landing-page) .auth-visual {
  color: var(--text);
  background: rgba(10, 32, 12, .76);
  border: 1px solid rgba(244,255,246,.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body:not(.landing-page) .auth-visual {
  background:
    radial-gradient(circle at 72% 12%, rgba(128,255,159,.12), transparent 22rem),
    rgba(10,32,12,.72);
}

body:not(.landing-page) .auth-visual::before,
body:not(.landing-page) .auth-visual::after {
  display: none;
}

body:not(.landing-page) .credit-wallet,
body:not(.landing-page) .brand-identity,
body:not(.landing-page) .balance-card,
body:not(.landing-page) .price-summary {
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(128,255,159,.12), transparent 42%),
    rgba(13,38,16,.82);
  border-color: rgba(128,255,159,.18);
}

body:not(.landing-page) .button-primary {
  color: #07120b;
  background: #80ff9f;
  border-color: #80ff9f;
  box-shadow: 0 14px 40px rgba(128,255,159,.16);
}

body:not(.landing-page) .button-primary:hover {
  background: #a2ffb8;
  border-color: #a2ffb8;
}

body:not(.landing-page) .button-ghost,
body:not(.landing-page) .button-ghost-dark,
body:not(.landing-page) .button-dark {
  color: #f4fff6;
  background: rgba(255,255,255,.04);
  border-color: rgba(244,255,246,.16);
}

body:not(.landing-page) .button-ghost:hover,
body:not(.landing-page) .button-ghost-dark:hover,
body:not(.landing-page) .button-dark:hover {
  background: rgba(128,255,159,.1);
  border-color: rgba(128,255,159,.32);
}

body:not(.landing-page) input,
body:not(.landing-page) textarea,
body:not(.landing-page) select {
  color: #f4fff6;
  background: rgba(255,255,255,.055);
  border-color: rgba(244,255,246,.16);
}

body:not(.landing-page) input::placeholder,
body:not(.landing-page) textarea::placeholder {
  color: rgba(244,255,246,.42);
}

body:not(.landing-page) input:focus,
body:not(.landing-page) textarea:focus,
body:not(.landing-page) select:focus {
  background: rgba(255,255,255,.08);
  border-color: rgba(128,255,159,.6);
  box-shadow: 0 0 0 4px rgba(128,255,159,.1);
}

body:not(.landing-page) select option {
  color: #07120b;
  background: #fff;
}

body:not(.landing-page) .eyebrow,
body:not(.landing-page) .auth-switch a,
body:not(.landing-page) .row-arrow,
body:not(.landing-page) .receipt-link,
body:not(.landing-page) .credit-wallet-action,
body:not(.landing-page) .file-name,
body:not(.landing-page) .metric-card strong,
body:not(.landing-page) .balance-card strong,
body:not(.landing-page) .price-summary strong {
  color: #80ff9f;
}

body:not(.landing-page) .muted,
body:not(.landing-page) .chat-bubble p,
body:not(.landing-page) .request-main p,
body:not(.landing-page) .history-info small,
body:not(.landing-page) .upload-box small,
body:not(.landing-page) .upload-section-heading small,
body:not(.landing-page) .upload-section-heading > span,
body:not(.landing-page) .composer-tip,
body:not(.landing-page) .section-title > span,
body:not(.landing-page) .request-format,
body:not(.landing-page) .request-files,
body:not(.landing-page) .account-row small,
body:not(.landing-page) .credit-package small,
body:not(.landing-page) .pix-key span,
body:not(.landing-page) .receipt-upload small {
  color: rgba(244,255,246,.62);
}

body:not(.landing-page) .chat-intro,
body:not(.landing-page) .composer-footer,
body:not(.landing-page) .simple-list > div,
body:not(.landing-page) .request-row,
body:not(.landing-page) .account-row,
body:not(.landing-page) .registration-contact,
body:not(.landing-page) .divider::before,
body:not(.landing-page) .divider::after {
  border-color: rgba(244,255,246,.1);
}

body:not(.landing-page) .assistant-avatar,
body:not(.landing-page) .request-avatar,
body:not(.landing-page) .brand-logo-fallback,
body:not(.landing-page) .credit-wallet-action b,
body:not(.landing-page) .brand-fixed-label i,
body:not(.landing-page) .format-option input:checked + span,
body:not(.landing-page) .admin-nav a.active,
body:not(.landing-page) .filter-tabs a.active,
body:not(.landing-page) .credit-package.active,
body:not(.landing-page) .approval-core {
  color: #07120b;
  background: #80ff9f;
}

body:not(.landing-page) .status-pill {
  color: rgba(244,255,246,.76);
  background: rgba(255,255,255,.04);
  border-color: rgba(244,255,246,.12);
}

body:not(.landing-page) .status-online,
body:not(.landing-page) .status-completed,
body:not(.landing-page) .status-approved {
  color: #80ff9f;
  border-color: rgba(128,255,159,.24);
  background: rgba(128,255,159,.1);
}

body:not(.landing-page) .upload-box,
body:not(.landing-page) .message-box,
body:not(.landing-page) .credit-package,
body:not(.landing-page) .pix-key,
body:not(.landing-page) .receipt-upload,
body:not(.landing-page) .format-option span,
body:not(.landing-page) .company-editor,
body:not(.landing-page) .revision-form,
body:not(.landing-page) .revision-limit,
body:not(.landing-page) .revision-admin-item {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border-color: rgba(244,255,246,.14);
}

body:not(.landing-page) .upload-box:hover,
body:not(.landing-page) .upload-box.has-file,
body:not(.landing-page) .receipt-upload:hover,
body:not(.landing-page) .receipt-upload.has-file,
body:not(.landing-page) .request-row:hover {
  background: rgba(128,255,159,.08);
  border-color: rgba(128,255,159,.28);
}

body:not(.landing-page) .upload-icon,
body:not(.landing-page) .receipt-upload-icon,
body:not(.landing-page) .history-credit-amount i {
  color: #80ff9f;
  background: rgba(128,255,159,.1);
}

body:not(.landing-page) .brand-logo-stage,
body:not(.landing-page) .company-editor-head img,
body:not(.landing-page) .pix-qr-frame,
body:not(.landing-page) .reference-grid a,
body:not(.landing-page) .history-thumb,
body:not(.landing-page) .loader-canvas,
body:not(.landing-page) .result-card img,
body:not(.landing-page) .admin-result,
body:not(.landing-page) .revision-admin-item img {
  background: #fff;
}

body:not(.landing-page) .prompt-area {
  background: rgba(0,0,0,.18);
}

body:not(.landing-page) .flash {
  color: #f4fff6;
  background: rgba(10,32,12,.96);
  border-color: rgba(244,255,246,.14);
  border-left-color: #80ff9f;
}

body:not(.landing-page) .error-box {
  color: #ffd8de;
  background: rgba(255,107,125,.1);
  border-color: rgba(255,107,125,.28);
}

@media (max-width: 760px) {
  body:not(.landing-page) .brand-logo {
    width: 118px;
    height: 36px;
  }
}

.status-unavailable {
  color: #ff6b7d;
  border-color: rgba(255,107,125,.34);
  background: rgba(255,107,125,.12);
}

.status-unavailable i {
  background: #ff6b7d;
  box-shadow: 0 0 13px #ff6b7d;
}

.availability-warning {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #ffd8de;
  background: rgba(255,107,125,.1);
  border: 1px solid rgba(255,107,125,.28);
  border-radius: 12px;
  font-size: .85rem;
  line-height: 1.5;
}

.availability-toggle {
  padding: 10px;
  display: flex;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.availability-toggle label {
  display: grid;
  gap: 6px;
}

.availability-toggle label > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.availability-toggle select {
  min-width: 190px;
  padding: 9px 10px;
}

.brand-identity-simple {
  width: max-content;
  min-height: 0;
  grid-template-columns: auto;
  padding: 14px;
}

.sidebar .credit-wallet {
  margin-top: 26px;
}

.assistant-avatar-logo {
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.assistant-avatar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.upload-grid .reference-upload {
  margin-top: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(58px, auto) 1fr;
}

.upload-grid .reference-upload-box {
  min-height: 132px;
  height: 100%;
}

.upload-grid .upload-section-heading {
  min-height: 58px;
  align-items: start;
}

.upload-grid .upload-section-heading div {
  min-width: 0;
}

.upload-grid .upload-section-heading > span {
  flex: 0 0 auto;
  max-width: 86px;
  text-align: right;
  line-height: 1.25;
}

body:not(.landing-page) .assistant-avatar-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.upload-grid .brand-identity-simple {
  width: 100%;
  min-height: 100%;
  margin-top: 0;
  display: grid;
  place-items: center;
}

.upload-grid .brand-logo-stage {
  width: min(100%, 220px);
  height: 132px;
}

@media (max-width: 760px) {
  .availability-toggle {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .availability-toggle select {
    min-width: 0;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }
}

body.landing-page .landing-hero {
  min-height: calc(100vh - 108px);
  align-content: center;
}

@media (max-height: 760px) and (min-width: 761px) {
  body.landing-page .landing-shell {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  body.landing-page .landing-copy {
    padding-top: 14px;
  }

  body.landing-page .landing-copy h1 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
  }

  body.landing-page .showcase-wrap {
    height: clamp(240px, 32vw, 360px);
  }
}

@media (max-width: 520px) {
  body.landing-page .landing-topbar {
    gap: 10px;
  }

body.landing-page .landing-brand img {
  width: 104px;
  height: 32px;
}

body.landing-page .landing-brand img {
  width: 136px;
  height: 40px;
}

.revision-form {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

.revision-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}

.revision-form textarea {
  min-height: 86px;
  resize: vertical;
}

.revision-limit {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.6);
  font-size: .78rem;
}

.revision-list {
  display: grid;
  gap: 14px;
}

.revision-admin-item {
  padding: 12px;
  display: grid;
  grid-template-columns: 110px minmax(0,1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

.revision-admin-item img {
  width: 110px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 9px;
  background: #fff;
}

.revision-admin-item div {
  min-width: 0;
}

.revision-admin-item strong,
.revision-admin-item small {
  display: block;
}

.revision-admin-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.revision-admin-item p {
  margin: 8px 0 0;
  line-height: 1.55;
}

@media (max-width: 760px) {
  body.landing-page .landing-brand img {
    width: 104px;
    height: 32px;
  }

  .revision-admin-item {
    grid-template-columns: 82px minmax(0,1fr);
  }

  .revision-admin-item img {
    width: 82px;
  }
}

  body.landing-page .landing-actions .button {
    min-height: 32px;
    padding: 0 9px;
    font-size: .72rem;
  }
}

/* Full-width landing carousel */
body.landing-page .showcase-wrap {
  width: 100vw;
  height: clamp(250px, 35vw, 380px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 14px;
  overflow: visible;
}

body.landing-page .showcase-glow {
  width: 100vw;
}

body.landing-page .showcase-carousel {
  inset: 0 auto auto 0;
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  perspective: none;
  animation: showcaseMarquee 34s linear infinite;
}

body.landing-page .showcase-card {
  width: clamp(150px, 18vw, 260px);
  flex: 0 0 clamp(150px, 18vw, 260px);
  position: relative;
  left: auto;
  bottom: auto;
  display: block;
  transform: none;
  animation: carouselBreath 5s ease-in-out infinite;
}

body.landing-page .showcase-card:nth-child(4n + 1) { transform: translateY(4px) rotate(-3deg); }
body.landing-page .showcase-card:nth-child(4n + 2) { transform: translateY(-18px) rotate(2deg); }
body.landing-page .showcase-card:nth-child(4n + 3) { transform: translateY(16px) rotate(3deg); }
body.landing-page .showcase-card:nth-child(4n + 4) { transform: translateY(-8px) rotate(-2deg); }

body.landing-page .creation-timeline {
  display: none;
}

@media (max-width: 760px) {
  body.landing-page .showcase-wrap {
    height: 250px;
    overflow: visible;
  }

  body.landing-page .showcase-carousel {
    animation-duration: 26s;
  }

  body.landing-page .showcase-card {
    width: 138px;
    flex-basis: 138px;
  }
}

/* Center zoom carousel */
body.landing-page .showcase-wrap {
  overflow: hidden;
}

body.landing-page .showcase-carousel.is-slot-carousel {
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: none;
  perspective: 900px;
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card {
  width: clamp(160px, 22vw, 300px);
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  flex: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.58);
  transition: transform .85s cubic-bezier(.2,.8,.2,1), opacity .85s ease, filter .85s ease;
  animation: none;
  will-change: transform, opacity;
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="0"] {
  z-index: 7;
  opacity: 1;
  filter: saturate(1.08) brightness(1.06);
  transform: translate(-50%, -50%) scale(1.2);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-1"] {
  z-index: 6;
  opacity: .92;
  filter: saturate(.92) brightness(.92);
  transform: translate(calc(-50% - clamp(110px, 18vw, 245px)), calc(-50% + 18px)) rotate(-4deg) scale(.86);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="1"] {
  z-index: 6;
  opacity: .92;
  filter: saturate(.92) brightness(.92);
  transform: translate(calc(-50% + clamp(110px, 18vw, 245px)), calc(-50% + 18px)) rotate(4deg) scale(.86);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-2"] {
  z-index: 5;
  opacity: .58;
  filter: saturate(.76) brightness(.72);
  transform: translate(calc(-50% - clamp(210px, 32vw, 430px)), calc(-50% + 44px)) rotate(-8deg) scale(.68);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="2"] {
  z-index: 5;
  opacity: .58;
  filter: saturate(.76) brightness(.72);
  transform: translate(calc(-50% + clamp(210px, 32vw, 430px)), calc(-50% + 44px)) rotate(8deg) scale(.68);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-3"],
body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="3"] {
  z-index: 4;
  opacity: .18;
  filter: saturate(.55) brightness(.58);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-3"] {
  transform: translate(calc(-50% - clamp(300px, 46vw, 620px)), calc(-50% + 58px)) rotate(-10deg) scale(.55);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="3"] {
  transform: translate(calc(-50% + clamp(300px, 46vw, 620px)), calc(-50% + 58px)) rotate(10deg) scale(.55);
}

@media (max-width: 760px) {
  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card {
    width: 160px;
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="0"] {
    transform: translate(-50%, -50%) scale(1.12);
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-1"] {
    transform: translate(calc(-50% - 96px), calc(-50% + 20px)) rotate(-4deg) scale(.76);
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="1"] {
    transform: translate(calc(-50% + 96px), calc(-50% + 20px)) rotate(4deg) scale(.76);
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-2"],
  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="2"],
  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-3"],
  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="3"] {
    opacity: 0;
  }
}

/* Landing readability and carousel fit */
body.landing-page .landing-copy {
  width: min(100%, 680px);
  max-width: 680px;
  padding-top: clamp(18px, 4vh, 34px);
}

body.landing-page .landing-copy h1 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1;
}

body.landing-page .landing-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(.92rem, 1.25vw, 1.05rem);
  line-height: 1.65;
}

body.landing-page .showcase-wrap {
  height: clamp(280px, 38vw, 460px);
  overflow: visible;
}

body.landing-page .showcase-carousel.is-slot-carousel {
  overflow: visible;
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card {
  width: clamp(142px, 18vw, 250px);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="0"] {
  transform: translate(-50%, -50%) scale(1.08);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-1"] {
  transform: translate(calc(-50% - clamp(105px, 17vw, 230px)), calc(-50% + 18px)) rotate(-4deg) scale(.82);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="1"] {
  transform: translate(calc(-50% + clamp(105px, 17vw, 230px)), calc(-50% + 18px)) rotate(4deg) scale(.82);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-2"] {
  transform: translate(calc(-50% - clamp(195px, 30vw, 395px)), calc(-50% + 42px)) rotate(-8deg) scale(.64);
}

body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="2"] {
  transform: translate(calc(-50% + clamp(195px, 30vw, 395px)), calc(-50% + 42px)) rotate(8deg) scale(.64);
}

.access-modal,
.access-modal .muted,
.access-modal label > span,
.access-modal .eyebrow,
.registration-contact > span,
.registration-contact > small {
  color: #122016;
}

.access-modal .muted {
  color: #4d5b51;
}

.access-modal input::placeholder {
  color: #7b887f;
}

@media (max-width: 760px) {
  body.landing-page .landing-copy {
    padding-top: 18px;
  }

  body.landing-page .landing-copy h1 {
    max-width: 360px;
    font-size: clamp(2rem, 11vw, 3.15rem);
    line-height: 1.02;
  }

  body.landing-page .landing-copy p:not(.eyebrow) {
    max-width: 330px;
    font-size: .9rem;
    line-height: 1.55;
  }

  body.landing-page .showcase-wrap {
    height: clamp(245px, 62vw, 310px);
    margin-top: 4px;
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card {
    width: 140px;
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="0"] {
    transform: translate(-50%, -50%) scale(1.02);
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="-1"] {
    transform: translate(calc(-50% - 86px), calc(-50% + 20px)) rotate(-4deg) scale(.7);
  }

  body.landing-page .showcase-carousel.is-slot-carousel .showcase-card[data-slot="1"] {
    transform: translate(calc(-50% + 86px), calc(-50% + 20px)) rotate(4deg) scale(.7);
  }
}

/* Dark landing with artwork carousel */
body.landing-page {
  min-height: 100vh;
  color: #f4fff6;
  background:
    radial-gradient(circle at 50% 118%, rgba(5,196,93,.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(123,255,174,.1), transparent 24rem),
    #091C09;
}

body.landing-page::before,
body.landing-page .ambient-grid {
  display: block;
}

body.landing-page::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .16;
  animation: none;
}

body.landing-page .ambient-grid {
  opacity: .18;
  background:
    radial-gradient(circle at 50% 40%, rgba(5,196,93,.15), transparent 28rem);
  mask-image: none;
}

.landing-shell {
  min-height: 100vh;
  padding: 28px clamp(18px, 5vw, 72px) 54px;
  position: relative;
  overflow: hidden;
}

.landing-topbar {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 5;
}

.landing-brand {
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
}

.landing-brand img {
  width: 160px;
  height: 46px;
  object-fit: contain;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  backdrop-filter: blur(18px);
}

.landing-actions .button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
}

.landing-login {
  color: #eaffef;
  background: transparent;
  border-color: transparent;
}

.landing-page .button-primary {
  color: #07120b;
  background: #80ff9f;
  border-color: #80ff9f;
  box-shadow: 0 14px 40px rgba(128,255,159,.18);
}

.landing-page .button-primary:hover {
  background: #a2ffb8;
  border-color: #a2ffb8;
}

.landing-hero {
  width: min(100%, 1180px);
  min-height: calc(100vh - 128px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

.landing-copy {
  max-width: 790px;
  padding-top: 40px;
  position: relative;
  z-index: 4;
}

.landing-page .eyebrow {
  color: #80ff9f;
}

.landing-copy h1 {
  margin-bottom: 18px;
  color: #f7fff8;
  font-size: clamp(2.4rem, 6.8vw, 5.7rem);
  line-height: .96;
  letter-spacing: 0;
}

.landing-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto 25px;
  color: rgba(244,255,246,.68);
  line-height: 1.7;
}

.landing-cta {
  min-height: 44px;
}

.showcase-wrap {
  width: min(100%, 980px);
  height: 340px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.showcase-glow {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 72%;
  height: 130px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(128,255,159,.28), transparent 68%);
  filter: blur(10px);
}

.showcase-carousel {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  animation: showcaseTrack 15s linear infinite;
}

.showcase-card {
  width: clamp(132px, 20vw, 220px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  position: absolute;
  left: 50%;
  bottom: 28px;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.44);
  transform-origin: center bottom;
  animation: carouselBreath 5s ease-in-out infinite;
}

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

.showcase-card-1 { z-index: 5; transform: translateX(-50%) translateY(2px) rotate(0deg) scale(1.08); }
.showcase-card-2 { z-index: 4; transform: translateX(-92%) translateY(12px) rotate(-4deg) scale(.98); animation-delay: -.4s; }
.showcase-card-3 { z-index: 3; transform: translateX(-130%) translateY(34px) rotate(-8deg) scale(.88); animation-delay: -.8s; }
.showcase-card-4 { z-index: 4; transform: translateX(-8%) translateY(12px) rotate(4deg) scale(.98); animation-delay: -1.2s; }
.showcase-card-5 { z-index: 3; transform: translateX(30%) translateY(34px) rotate(8deg) scale(.88); animation-delay: -1.6s; }
.showcase-card-6 { z-index: 2; transform: translateX(-168%) translateY(56px) rotate(-10deg) scale(.78); animation-delay: -2s; }
.showcase-card-7 { z-index: 2; transform: translateX(68%) translateY(56px) rotate(10deg) scale(.78); animation-delay: -2.4s; }

.creation-timeline {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244,255,246,.72);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.creation-timeline i {
  width: 36px;
  height: 1px;
  background: rgba(128,255,159,.45);
}

.modal-open {
  overflow: hidden;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 22px;
}

.modal-layer.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}

.access-modal {
  width: min(100%, 460px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 30px;
  position: relative;
  z-index: 1;
  color: #07120b;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,.38);
}

.access-modal h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  color: #07120b;
  background: #f2f5f1;
  border: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}

.access-modal input {
  background: #fff;
}

@keyframes carouselBreath {
  0%, 100% { filter: saturate(.94); }
  50% { filter: saturate(1.12) brightness(1.04); }
}

@keyframes showcaseTrack {
  0% { transform: translateX(18%); }
  100% { transform: translateX(-18%); }
}

@media (max-width: 760px) {
  .landing-shell {
    padding: 18px 16px 34px;
  }

  .landing-topbar {
    align-items: flex-start;
  }

  .landing-brand img {
    width: 128px;
    height: 38px;
  }

  .landing-actions {
    padding: 5px;
    gap: 5px;
  }

  .landing-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: .75rem;
  }

  .landing-hero {
    min-height: calc(100vh - 92px);
  }

  .landing-copy {
    padding-top: 24px;
  }

  .landing-copy h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .showcase-wrap {
    height: 260px;
    margin-top: 6px;
  }

  .showcase-card {
    width: 136px;
  }

  .showcase-card-3,
  .showcase-card-5,
  .showcase-card-6,
  .showcase-card-7 {
    display: none;
  }

  .creation-timeline {
    width: 100%;
    justify-content: center;
    gap: 7px;
    font-size: .56rem;
  }

  .creation-timeline i {
    width: 18px;
  }
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 84% 10%, rgba(6,200,95,.14), transparent 24rem),
    radial-gradient(circle at 8% 90%, rgba(15,127,69,.1), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 55%, #edf8f0 100%);
}

body::before {
  background-image:
    radial-gradient(circle, rgba(6,200,95,.16) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(7,22,12,.08) 0 1px, transparent 1.5px);
  opacity: .4;
}

.ambient-grid {
  opacity: .45;
  background-image:
    linear-gradient(rgba(10,54,28,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,54,28,.035) 1px, transparent 1px);
}

h1, h2 { letter-spacing: 0; }

.topbar {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 32px rgba(10,54,28,.06);
}

.brand-logo {
  width: 150px;
  height: 42px;
  opacity: 1;
}

.brand-logo-auth {
  width: 176px;
  height: 50px;
  opacity: 1;
}

.brand-light { color: var(--text); }
.user-chip { color: #425248; }

.button-primary {
  color: #fff;
  background: var(--lime);
  box-shadow: 0 12px 34px rgba(6,200,95,.24);
}

.button-primary:hover {
  background: #05b857;
  box-shadow: 0 14px 42px rgba(6,200,95,.3);
}

.button-dark, .button-ghost, .button-ghost-dark {
  color: var(--text);
  background: rgba(255,255,255,.72);
  border-color: var(--line-strong);
}

.button-dark:hover, .button-ghost:hover, .button-ghost-dark:hover {
  border-color: rgba(6,200,95,.42);
  background: var(--lime-soft);
}

.flash {
  color: var(--text);
  background: rgba(255,255,255,.98);
}

input, textarea, select {
  color: var(--text);
  background: rgba(255,255,255,.92);
}

input::placeholder, textarea::placeholder { color: #87938a; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(6,200,95,.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(6,200,95,.1);
}

.auth-page { background: var(--bg); }
.auth-visual {
  background:
    radial-gradient(circle at 20% 18%, rgba(6,200,95,.18), transparent 22rem),
    linear-gradient(145deg, rgba(6,200,95,.16), rgba(255,255,255,.82) 46%),
    #f5fbf7;
  box-shadow: inset 0 0 80px rgba(6,200,95,.08);
}

.auth-visual::before { border-color: rgba(6,200,95,.18); }
.auth-visual::after { background: rgba(6,200,95,.08); }
.auth-visual p:not(.eyebrow), .form-stack label > span, .registration-contact > span, .custom-credit-input > span, .pix-copy-field > span, .client-create-form label > span { color: var(--muted); }

.galaxy-backdrop {
  opacity: .28;
  filter: hue-rotate(105deg) saturate(.7) brightness(1.45);
}

.auth-form-panel,
.app-layout,
.admin-layout,
.generation-page {
  color: var(--text);
}

.sidebar,
.chat-card,
.history-card,
.metric-card,
.request-list,
.detail-card,
.waiting-card,
.generation-stage {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.sidebar {
  background: rgba(255,255,255,.74);
}

.credit-wallet,
.client-create-section,
.credits-hero,
.brand-identity {
  border-color: rgba(6,200,95,.22);
  background:
    radial-gradient(circle at 100% 0, rgba(6,200,95,.14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,250,243,.9));
}

.credit-wallet::after,
.brand-identity::after,
.credits-hero::after {
  border-color: rgba(6,200,95,.16);
}

.credit-wallet:hover,
.history-card:hover,
.metric-card:hover {
  border-color: rgba(6,200,95,.36);
  box-shadow: 0 18px 46px rgba(20,74,42,.12);
}

.credit-wallet-label,
.status-pill,
.balance-card > span {
  color: #526258;
}

.chat-intro,
.composer-footer,
.simple-list > div,
.request-row,
.account-row {
  border-color: var(--line);
}

.assistant-avatar,
.request-avatar,
.brand-logo-fallback,
.credit-wallet-action b,
.brand-fixed-label i,
.format-option input:checked + span,
.admin-nav a.active,
.filter-tabs a.active,
.credit-package.active,
.approval-core {
  color: #fff;
  background: var(--lime);
}

.status-online,
.status-completed,
.status-approved {
  color: #047a3b;
  border-color: rgba(6,200,95,.24);
  background: var(--lime-soft);
}

.upload-box,
.message-box,
.credit-package,
.pix-key,
.receipt-upload {
  background: rgba(255,255,255,.72);
}

.upload-box:hover,
.upload-box.has-file,
.receipt-upload:hover,
.receipt-upload.has-file {
  border-color: rgba(6,200,95,.5);
  background: var(--lime-soft);
}

.upload-icon,
.receipt-upload-icon,
.history-credit-amount i {
  color: var(--lime);
  background: var(--lime-soft);
}

.format-option span {
  color: #59685e;
  background: rgba(255,255,255,.62);
}

.format-option input:checked + span {
  border-color: var(--lime);
}

.history-thumb,
.reference-grid a,
.loader-canvas,
.result-card img,
.admin-result {
  background: #eef7f1;
}

.request-row:hover { background: var(--panel-hover); }
.row-arrow,
.receipt-link {
  color: var(--lime);
}

.receipt-link {
  border-color: rgba(6,200,95,.24);
}

.receipt-link:hover { background: var(--lime-soft); }

.credits-hero {
  color: var(--text);
}

.balance-card,
.price-summary {
  border-color: rgba(6,200,95,.24);
  background: rgba(6,200,95,.08);
}

.credit-package:hover {
  border-color: rgba(6,200,95,.42);
}

.credit-package.active {
  border-color: var(--lime);
}

.credit-package small {
  color: var(--muted);
}

.pix-qr-frame {
  box-shadow: 0 14px 40px rgba(20,74,42,.14);
}

.brand-logo-stage {
  width: 150px;
  height: 104px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(10,54,28,.12);
  box-shadow: 0 12px 28px rgba(20,74,42,.1);
}

.brand-logo-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-identity {
  grid-template-columns: 150px minmax(0,1fr) auto;
}

@media (max-width: 760px) {
  .brand-logo { width: 132px; height: 38px; }
  .brand-logo-auth { width: 150px; height: 43px; }
  .brand-identity { grid-template-columns: 112px minmax(0,1fr); }
  .brand-logo-stage { width: 112px; height: 86px; padding: 10px; }
}

/* Final minimal Destaque overrides */
:root {
  --bg: #f7f8f5;
  --bg-soft: #eef3ed;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-hover: #f1f6f0;
  --text: #07120b;
  --muted: #667268;
  --line: rgba(7, 18, 11, .1);
  --line-strong: rgba(7, 18, 11, .18);
  --lime: #05c45d;
  --lime-soft: rgba(5, 196, 93, .09);
  --danger: #c9364b;
  --shadow: 0 18px 48px rgba(28, 52, 36, .08);
}

body {
  color: var(--text);
  background: #f7f8f5;
}

body::before,
.ambient-grid {
  display: none;
}

.topbar {
  background: rgba(247, 248, 245, .92);
  border-bottom-color: rgba(7,18,11,.08);
  box-shadow: none;
}

.brand,
.brand-logo-stage,
.company-editor-head img,
.pix-qr-frame {
  background: #fff;
}

.brand {
  width: max-content;
  padding: 8px 10px;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 12px;
}

.brand-logo {
  width: 154px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.brand-logo-auth {
  width: 180px;
  height: 52px;
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 18px;
  padding: 18px;
}

.auth-visual {
  min-height: calc(100vh - 36px);
  border-color: rgba(7,18,11,.08);
  border-radius: 22px;
  background: #eef3ed;
  box-shadow: none;
}

.auth-visual::before,
.auth-visual::after {
  display: none;
}

.auth-form-panel {
  padding: 36px;
  background: #fff;
  border: 1px solid rgba(7,18,11,.08);
  border-radius: 22px;
}

.button {
  border-radius: 10px;
  box-shadow: none;
}

.button-primary,
.button-primary:hover {
  color: #fff;
  background: var(--lime);
  box-shadow: none;
}

.button-ghost,
.button-ghost-dark,
.button-dark,
input,
textarea,
select,
.upload-box,
.message-box,
.credit-package,
.pix-key,
.receipt-upload,
.format-option span {
  background: #fff;
}

.sidebar,
.chat-card,
.history-card,
.metric-card,
.request-list,
.detail-card,
.waiting-card,
.generation-stage,
.client-create-section,
.credits-hero {
  background: #fff;
  border: 1px solid rgba(7,18,11,.09);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.sidebar,
.chat-card,
.detail-card,
.credits-hero,
.client-create-section {
  border-radius: 16px;
}

.credit-wallet,
.brand-identity,
.balance-card,
.price-summary {
  background: #f7fbf7;
  border-color: rgba(5,196,93,.18);
}

.brand-identity {
  grid-template-columns: 160px minmax(0,1fr) auto;
}

.brand-logo-stage {
  width: 160px;
  height: 108px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(7,18,11,.1);
  border-radius: 12px;
  box-shadow: none;
}

.brand-logo-stage img,
.company-editor-head img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.status-online,
.status-completed,
.status-approved {
  color: #047d3c;
  border-color: rgba(5,196,93,.2);
  background: rgba(5,196,93,.08);
}

.history-card:hover,
.metric-card:hover,
.credit-wallet:hover {
  border-color: rgba(5,196,93,.28);
  box-shadow: 0 18px 44px rgba(28,52,36,.1);
}

@media (max-width: 1050px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 0;
  }

  .auth-visual {
    min-height: 380px;
    border-radius: 0 0 22px 22px;
  }

  .auth-form-panel {
    border-width: 0;
    border-radius: 0;
  }

  .brand-logo {
    width: 136px;
    height: 40px;
  }

  .brand-logo-auth {
    width: 150px;
    height: 44px;
  }

  .brand-identity {
    grid-template-columns: 112px minmax(0,1fr);
  }

  .brand-logo-stage {
    width: 112px;
    height: 86px;
    padding: 10px;
  }
}

