:root {
  color-scheme: dark;
  --ink: #f5f2f8;
  --muted: #a7a1ad;
  --panel: rgba(18, 17, 22, 0.86);
  --panel-strong: rgba(27, 25, 32, 0.94);
  --field: #201b27;
  --field-2: #2b2a31;
  --line: rgba(168, 69, 255, 0.34);
  --line-soft: rgba(255, 255, 255, 0.11);
  --violet: #8c03e2;
  --violet-2: #a932ff;
  --cyan: #00d9d2;
  --danger: #ff304f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #0e0d12;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(9, 8, 12, 0.18), rgba(9, 8, 12, 0.54)),
    url("/assets/fondo-dm.png") center top / cover fixed no-repeat,
    #0e0d12;
}

body::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 43%, rgba(140, 3, 226, 0.28) 44% 45%, transparent 46% 100%),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 49% 51%, transparent 52% 100%),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(140, 3, 226, 0.08) 35px 37px, transparent 38px 92px);
  opacity: 0.55;
  mask-image: linear-gradient(90deg, #000 0 22%, transparent 45%, transparent 55%, #000 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(1216px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 28px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(19, 18, 23, 0.96);
  backdrop-filter: blur(14px);
}

.app-brand {
  width: min(1216px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.eyebrow {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 2px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

h2 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.tool-nav button {
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.tool-nav button.active {
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  color: #ffffff;
}

.tool-view {
  display: none;
}

.tool-view:not(.active) {
  display: none !important;
}

.tool-view.active {
  display: grid;
}

.builder-grid.tool-view.active {
  display: grid;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(360px, 492px) minmax(540px, 700px);
  grid-template-areas:
    "editor preview"
    "editor style";
  gap: 24px;
  align-items: start;
}

.tool-workspace {
  max-width: 1216px;
  width: 100%;
  min-height: calc(100vh - 128px);
  align-items: start;
  grid-template-columns: 1fr;
}

.tool-panel {
  padding: 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.editor-panel {
  grid-area: editor;
}

.preview-panel {
  grid-area: preview;
}

.style-panel {
  grid-area: style;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.editor-panel,
.style-panel,
.preview-panel {
  padding: 24px;
}

.editor-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.panel-title,
.saved-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title {
  justify-content: space-between;
  margin-bottom: 22px;
}

.button,
.icon-button {
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.button {
  padding: 0 16px;
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.primary,
.dark {
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(140, 3, 226, 0.32);
}

.soft {
  border: 1px solid var(--line);
  background: rgba(140, 3, 226, 0.12);
  color: #ffffff;
}

.icon-button {
  width: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(140, 3, 226, 0.12);
  color: #ffffff;
}

.icon-button svg {
  stroke: currentColor;
}

.icon-button.danger {
  border-color: rgba(255, 48, 79, 0.38);
  background: rgba(255, 48, 79, 0.1);
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.check-row.full {
  grid-column: 1 / -1;
}

.field span,
.check-row span,
.social-url span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input:not([type="color"]):not([type="range"]),
.field select,
.field textarea,
.social-url input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--field);
  color: #ffffff;
  padding: 0 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.social-url input:focus,
.rich-editor:focus {
  border-color: var(--violet-2);
  box-shadow: 0 0 0 3px rgba(169, 50, 255, 0.2);
}

.field input::placeholder,
.social-url input::placeholder {
  color: #827b8c;
}

.saved-row {
  align-items: end;
  margin-bottom: 14px;
}

.saved-row .field {
  flex: 1;
}

.folder-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.folder-tools > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.folder-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-filters button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(140, 3, 226, 0.08);
  color: #ffffff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.folder-filters button.active {
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  border-color: transparent;
}

.folder-filters small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.signature-library {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
  margin-bottom: 18px;
}

.signature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 8px 10px 12px;
}

.signature-card.active {
  border-color: var(--violet-2);
  background: rgba(140, 3, 226, 0.14);
}

.signature-main {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.signature-main strong,
.signature-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signature-main strong {
  font-size: 14px;
}

.signature-main span {
  color: var(--muted);
  font-size: 12px;
}

.signature-actions {
  display: flex;
  gap: 6px;
}

.signature-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b9b2c4;
}

.signature-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.signature-actions button:last-child {
  color: var(--danger);
}

.empty-library {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.upload {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 2px dashed rgba(169, 50, 255, 0.36);
  border-radius: 28px;
  background: rgba(140, 3, 226, 0.08);
  cursor: pointer;
  text-align: center;
}

.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(140, 3, 226, 0.25);
  color: #ffffff;
}

.upload strong,
.upload small {
  display: block;
}

.upload small {
  margin-top: 5px;
  color: #8d8795;
  font-size: 12px;
}

.social-list {
  display: grid;
  gap: 9px;
}

.social-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: end;
}

.switch {
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--field-2);
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  opacity: 0.36;
}

.switch input:checked + span {
  opacity: 1;
}

.rich-toolbar {
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.04);
}

.rich-toolbar button {
  width: 34px;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f4f5f7;
  color: #111111;
  font-weight: 950;
}

.rich-editor {
  min-height: 178px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 0 0 10px 10px;
  background: #fbfbfc;
  padding: 14px 16px;
  color: #57515d;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.rich-editor p {
  margin: 0 0 12px;
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--violet-2);
}

.range-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
  align-items: center;
}

.range-control input[type="number"] {
  min-width: 0;
  text-align: center;
}

.color-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}

.color-field input[type="color"] {
  width: 100%;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: var(--field);
  padding: 2px;
}

.color-field input[type="text"] {
  min-width: 0;
  font-family: "Courier New", monospace;
  text-transform: lowercase;
}

.icon-style-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.icon-style-cards button {
  min-height: 128px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff;
  padding: 14px 12px;
  text-align: center;
}

.icon-style-cards button.active {
  border: 2px solid var(--violet-2);
  background: rgba(140, 3, 226, 0.17);
}

.icon-style-cards strong {
  font-size: 14px;
}

.icon-style-cards small {
  max-width: 130px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.22;
}

.icon-demo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--violet-2);
  color: var(--violet-2);
}

.demo-solid {
  background: var(--violet);
  border-color: var(--violet);
}

.demo-rounded {
  border-radius: 8px;
}

.demo-circle {
  border-radius: 50%;
}

.demo-plain {
  border: 0;
}

.check-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--field);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--violet-2);
}

.status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signature-preview {
  min-height: 216px;
  overflow: auto;
  display: block;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.qr-preview-card,
.password-output {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ecard-preview:empty {
  display: none;
}

.ecard-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    var(--ecard-bg-image, none) center / cover no-repeat,
    var(--ecard-bg, rgba(255, 255, 255, 0.055));
  padding: 16px;
  color: var(--ecard-text, #ffffff);
}

.ecard-card > img {
  max-width: 78px;
  max-height: 56px;
  object-fit: contain;
}

.ecard-card strong {
  color: var(--ecard-text, #ffffff);
  font-size: 20px;
}

.ecard-card span {
  color: color-mix(in srgb, var(--ecard-text, #ffffff) 70%, transparent);
  font-size: 12px;
}

.ecard-card div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ecard-card a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ecard-accent, var(--line));
  border-radius: 999px;
  color: var(--ecard-text, #ffffff);
  text-decoration: none;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.qr-preview {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 24px;
}

.qr-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.qr-frame > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-logo {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #050505;
  padding: 3px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.qr-logo img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.ecard-public-view {
  min-height: calc(100vh - 130px);
  place-items: center;
}

.ecard-public-view.active {
  display: grid;
}

.public-ecard {
  width: min(100%, 520px);
}

.public-ecard-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 620px;
  align-content: center;
  border: 1px solid color-mix(in srgb, var(--ecard-accent, #8c03e2) 58%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    var(--ecard-bg-image, none) center / cover no-repeat,
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ecard-accent, #8c03e2) 28%, transparent), transparent 38%),
    var(--ecard-bg, #111015);
  color: var(--ecard-text, #ffffff);
  padding: 42px;
  text-align: center;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.public-ecard-logo {
  max-width: 180px;
  max-height: 130px;
  object-fit: contain;
}

.public-ecard-card small {
  color: var(--ecard-accent, #8c03e2);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-ecard-card h2 {
  margin: 0;
  color: var(--ecard-text, #ffffff);
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
}

.public-ecard-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ecard-text, #ffffff) 72%, transparent);
  font-size: 13px;
}

.public-ecard-links {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.public-ecard-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ecard-accent, #8c03e2) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ecard-accent, #8c03e2) 14%, transparent);
  color: var(--ecard-text, #ffffff);
  text-decoration: none;
  font-weight: 900;
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qr-library {
  display: grid;
  gap: 8px;
}

.qr-saved-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
}

.qr-saved-card.active {
  border-color: rgba(140, 3, 226, 0.82);
  background: rgba(140, 3, 226, 0.12);
}

.qr-saved-card button {
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.qr-saved-card > button {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.qr-saved-card strong,
.qr-saved-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-saved-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.qr-saved-card div {
  display: flex;
  gap: 4px;
}

.qr-saved-card div button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
}

.empty-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.password-output output {
  min-height: 84px;
  display: flex;
  align-items: center;
  word-break: break-all;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 18px;
  font-family: "Courier New", monospace;
  font-size: 22px;
  line-height: 1.25;
}

.brand-results {
  display: grid;
  gap: 48px;
}

.brand-hero {
  min-height: 420px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.brand-hero p {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-hero h2 {
  max-width: 720px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.92;
  text-transform: uppercase;
}

.brand-hero h2 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--violet-2);
}

.brand-hero small {
  color: var(--muted);
}

.brand-search {
  width: min(720px, 100%);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(13, 12, 16, 0.9);
  padding: 16px;
  text-align: left;
}

.brand-search label {
  display: grid;
  gap: 8px;
}

.brand-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-search input {
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
  outline: none;
}

.brand-metrics {
  display: flex;
  gap: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.brand-metrics strong {
  color: #ffffff;
  font-size: 18px;
  margin-right: 6px;
}

.brand-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #ffc400;
  background: rgba(255, 255, 255, 0.04);
}

.brand-summary > div {
  padding: 22px;
}

.brand-summary small,
.brand-section-title small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-summary strong {
  display: block;
  color: #ffc400;
  font-size: 24px;
  text-transform: uppercase;
}

.brand-summary.green {
  border-left-color: #25ff88;
}

.brand-summary.green strong {
  color: #25ff88;
}

.brand-summary.red {
  border-left-color: #ff315b;
}

.brand-summary.red strong {
  color: #ff315b;
}

.brand-summary span {
  color: var(--muted);
  font-size: 12px;
}

.brand-section {
  display: grid;
  gap: 18px;
}

.brand-section-title h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 24px;
  text-transform: uppercase;
}

.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-social-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.brand-social-card.available,
.domain-row.available {
  border-color: rgba(37, 255, 136, 0.42);
}

.brand-social-card.checking,
.domain-row.checking {
  border-color: rgba(255, 196, 0, 0.42);
}

.brand-social-card.occupied,
.domain-row.occupied {
  border-color: rgba(255, 49, 91, 0.42);
}

.brand-social-card strong,
.brand-social-card span,
.brand-social-card small {
  display: block;
}

.brand-social-card strong {
  color: #ffffff;
  text-transform: uppercase;
}

.brand-social-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
}

.brand-social-card small {
  color: var(--muted);
  font-size: 11px;
}

.brand-social-card em {
  display: inline-flex;
  margin-top: 8px;
  color: #ffc400;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-social-card a,
.brand-social-card button,
.domain-list a small,
.legal-row a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  padding: 0 10px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-social-card button {
  color: #33ff8a;
}

.brand-social-card .danger-mini {
  color: #ff3e68;
}

.brand-social-card.available button[data-status="available"],
.domain-row.available button[data-status="available"] {
  background: rgba(37, 255, 136, 0.12);
  border-color: rgba(37, 255, 136, 0.42);
}

.brand-social-card.available em {
  color: #25ff88;
}

.brand-social-card.occupied em {
  color: #ff315b;
}

.domain-row.checking a small {
  color: #ffc400;
}

.brand-social-card.occupied button[data-status="occupied"],
.domain-row.occupied button[data-status="occupied"] {
  background: rgba(255, 49, 91, 0.12);
  border-color: rgba(255, 49, 91, 0.42);
}

.domain-list {
  display: grid;
  border: 1px solid var(--line-soft);
}

.domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 16px;
}

.domain-row:first-child {
  border-top: 0;
}

.domain-list a {
  min-height: 54px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  padding: 0 16px;
}

.domain-list span {
  color: var(--muted);
}

.domain-row button {
  min-height: 30px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: #33ff8a;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.domain-row .danger-mini {
  color: #ff3e68;
}

.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(140, 3, 226, 0.08);
  padding: 20px;
}

.legal-row strong {
  color: #ffffff;
}

.copy-area {
  display: inline-block;
  width: 100%;
  min-width: min(100%, 460px);
  padding: 0;
  background: #ffffff;
  color: #111111;
}

.style-panel .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-panel .field.full,
.style-panel .check-row.full {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .builder-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "editor"
      "style";
  }

  .editor-panel {
    position: static;
    max-height: none;
  }

  .style-panel .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1216px);
    padding-top: 94px;
  }

  .topbar {
    min-height: 68px;
  }

  .top-actions {
    display: grid;
    justify-content: stretch;
  }

  .tool-nav {
    overflow: auto;
    max-width: calc(100vw - 24px);
  }

  .form-grid,
  .style-panel .form-grid,
  .social-row,
  .icon-style-cards {
    grid-template-columns: 1fr;
  }

  .saved-row {
    display: grid;
  }

  .panel {
    border-radius: 10px;
  }

  .editor-panel,
  .style-panel,
  .preview-panel {
    padding: 16px;
  }

  .signature-preview {
    padding: 14px;
  }

  .tool-grid,
  .brand-results,
  .brand-card-grid {
    grid-template-columns: 1fr;
  }

  .brand-summary,
  .brand-social-card,
  .domain-list a,
  .legal-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
