:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: rgba(13, 17, 29, 0.92);
  --panel-strong: #101522;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(110, 231, 255, 0.28);
  --text: #f7f8fc;
  --muted: #9aa4bb;
  --muted-2: #8993aa;
  --cyan: #6ee7ff;
  --cyan-strong: #14c7ec;
  --violet: #8878ff;
  --gold: #f4c96b;
  --danger: #ff7c91;
  --success: #54e6a6;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 15% 10%, rgba(63, 102, 255, 0.1), transparent 34%),
    #070a12;
  background-size: 48px 48px, 48px 48px, auto, auto;
  overflow-x: hidden;
}

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

button,
label[for],
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(110, 231, 255, 0.85);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: -15rem;
  left: -12rem;
  background: #1c8dff;
}

.ambient-two {
  right: -15rem;
  bottom: -18rem;
  background: #824eff;
}

.app-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: rotate(30deg);
  border: 1px solid rgba(110, 231, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(110, 231, 255, 0.2), rgba(136, 120, 255, 0.08));
  box-shadow: inset 0 0 18px rgba(110, 231, 255, 0.13), 0 0 24px rgba(110, 231, 255, 0.12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.7);
}

.brand-mark::before {
  transform: translateY(-6px);
}

.brand-mark::after {
  transform: translateY(6px);
}

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

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(84, 230, 166, 0.2);
  border-radius: 999px;
  color: #c7f8df;
  background: rgba(84, 230, 166, 0.07);
  font-size: 0.86rem;
  font-weight: 650;
}

.privacy-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(84, 230, 166, 0.8);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(580px, 1.42fr);
  gap: 18px;
  align-items: start;
  padding: 28px 0 22px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 26, 43, 0.94), rgba(9, 13, 23, 0.96));
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.65), transparent);
  opacity: 0.75;
}

.control-panel,
.preview-panel {
  padding: 25px;
}

.preview-panel {
  position: sticky;
  top: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.step-badge {
  display: grid;
  width: 40px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.safety-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 23px;
  padding: 14px;
  border: 1px solid rgba(84, 230, 166, 0.16);
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(84, 230, 166, 0.09), rgba(84, 230, 166, 0.025));
}

.shield {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(84, 230, 166, 0.12);
}

.shield svg {
  width: 20px;
  fill: none;
  stroke: var(--success);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-card strong {
  display: block;
  color: #dcfbed;
  font-size: 0.91rem;
}

.safety-card p {
  margin: 4px 0 0;
  color: #8fb2a2;
  font-size: 0.8rem;
  line-height: 1.48;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(2, 5, 12, 0.55);
}

.mode-description {
  margin: -10px 0 17px;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.45;
}

.mode-button {
  min-height: 43px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 760;
}

.mode-button:hover,
.mode-button.is-active {
  color: #061017;
  background: linear-gradient(100deg, #8df0ff, #76d9fb 55%, #a18cff);
  box-shadow: 0 8px 22px rgba(62, 199, 239, 0.14);
}

.workspace[data-mode="scan"] .manual-only,
.workspace[data-mode="manual"] .scanner-only {
  display: none !important;
}

.scan-workbench {
  display: grid;
  gap: 13px;
  margin-bottom: 21px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.scan-intro {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.scan-step {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(110, 231, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 850;
}

.scan-intro strong,
.scan-intro p {
  display: block;
  margin: 0;
}

.scan-intro strong {
  color: #eef6ff;
  font-size: 0.92rem;
}

.scan-intro p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.capture-dropzone {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 13px;
  border: 1px dashed rgba(110, 231, 255, 0.38);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(110, 231, 255, 0.075), rgba(136, 120, 255, 0.035));
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.capture-dropzone:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.72);
  background: linear-gradient(110deg, rgba(110, 231, 255, 0.12), rgba(136, 120, 255, 0.07));
}

.capture-input:focus-visible + .capture-dropzone {
  outline: 3px solid rgba(110, 231, 255, 0.85);
  outline-offset: 3px;
}

.capture-icon {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(110, 231, 255, 0.11);
  font-size: 1.6rem;
  box-shadow: inset 0 0 18px rgba(110, 231, 255, 0.08);
}

.capture-dropzone strong,
.capture-dropzone small {
  display: block;
}

.capture-dropzone strong {
  font-size: 0.9rem;
}

.capture-dropzone small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.75rem;
}

.scan-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scan-controls input {
  min-height: 41px;
}

.scan-hint {
  margin: -2px 0 0;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.5;
}

.scan-actions {
  display: flex;
  gap: 8px;
}

.button-scan {
  flex: 1;
  border-color: rgba(110, 231, 255, 0.34);
  color: #dffaff;
  background: rgba(110, 231, 255, 0.09);
}

.button-scan:not(:disabled):hover {
  background: rgba(110, 231, 255, 0.15);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.scan-summary {
  min-height: 40px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.8rem;
  line-height: 1.45;
}

.scan-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.07);
  appearance: none;
}

.scan-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.scan-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 16px rgba(110, 231, 255, 0.45);
}

.scan-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.crop-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
  gap: 14px;
  max-height: 620px;
  align-items: start;
  overflow: auto;
  padding-right: 3px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(110, 231, 255, 0.48) rgba(255, 255, 255, 0.04);
}

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

.crop-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #050812;
}

.crop-item {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.crop-item:hover img {
  border-color: rgba(255, 124, 145, 0.58);
}

.crop-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 8, 18, 0.82);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.crop-remove:hover,
.crop-remove:focus-visible {
  border-color: rgba(255, 124, 145, 0.72);
  color: #ffd7de;
  background: rgba(120, 22, 42, 0.9);
}

form {
  display: grid;
  gap: 20px;
}

.form-block {
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-block legend {
  width: 100%;
  margin-bottom: 12px;
  color: #dfe4ef;
  font-size: 0.875rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(4, 7, 14, 0.68);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 45px;
  padding: 0 12px;
  font-size: 0.9rem;
}

select {
  color-scheme: dark;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.17);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(110, 231, 255, 0.58);
  outline: 0;
  background: rgba(7, 11, 21, 0.95);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.07);
}

.field-help {
  margin: -4px 0 9px;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.5;
}

.catalog-heading,
.catalog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-heading {
  margin-bottom: 12px;
}

.catalog-heading h3 {
  margin: 0 0 5px;
  color: #e9effb;
  font-size: 1rem;
}

.catalog-heading .field-help {
  margin: 0;
}

.catalog-download {
  flex: 0 0 auto;
  text-decoration: none;
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 10px;
  margin-bottom: 11px;
}

.catalog-actions {
  margin-bottom: 12px;
}

.catalog-actions > span {
  color: var(--muted-2);
  font-size: 0.78rem;
  text-align: right;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 510px;
  overflow: auto;
  padding: 2px 4px 3px 2px;
  scrollbar-color: rgba(110, 231, 255, 0.28) rgba(255, 255, 255, 0.04);
}

.catalog-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.catalog-card:hover,
.catalog-card.is-selected {
  border-color: rgba(110, 231, 255, 0.58);
  background: rgba(110, 231, 255, 0.075);
}

.catalog-card input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--cyan);
}

.catalog-card-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.catalog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.055);
}

.catalog-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.catalog-skin-name {
  overflow: hidden;
  color: #eaf2ff;
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-title-row .catalog-rarity {
  flex: 0 0 auto;
  max-width: 35px;
  max-height: 19px;
  object-fit: contain;
}

.catalog-card small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-more {
  width: 100%;
  margin-top: 10px;
}

.catalog-note {
  margin: 11px 0 0;
}

.recognition-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 11px;
  background: rgba(110, 231, 255, 0.035);
}

.recognition-panel p {
  margin: 0;
  line-height: 1.45;
}

.crop-recognized-name {
  display: block;
  padding: 4px 2px;
  color: #eaf2ff;
  font-size: .76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crop-tier-source,
.crop-text-edit {
  color: var(--muted-2);
  font-size: .67rem;
  line-height: 1.45;
}

.crop-text-edit summary { cursor: pointer; }
.crop-text-edit label { display: grid; gap: 3px; margin-top: 7px; }
.crop-text-edit input { width: 100%; min-width: 0; padding: 6px; }

.poster-options {
  border-color: rgba(110, 231, 255, 0.24);
}

.poster-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.poster-choice {
  display: flex;
  min-height: 62px;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.poster-choice:has(input:checked) {
  border-color: rgba(110, 231, 255, 0.48);
  background: rgba(110, 231, 255, 0.065);
}

.poster-choice input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #69dff5;
}

.poster-choice span {
  display: grid;
  gap: 3px;
}

.poster-choice strong {
  color: var(--text);
  font-size: 0.82rem;
}

.poster-choice small,
.profile-upload > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.profile-inputs {
  margin-top: 2px;
}

.profile-upload input[type="file"] {
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-upload input[type="file"]::file-selector-button {
  min-height: 37px;
  margin-right: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-upload > small {
  grid-column: 1 / -1;
  margin-top: 1px;
}

.recognition-add {
  min-height: 36px;
  white-space: nowrap;
  font-size: 0.75rem;
}

.crop-item {
  display: grid;
  gap: 5px;
  cursor: default;
}

.crop-media {
  position: relative;
  min-width: 0;
}

.crop-media img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.crop-include {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.2;
  cursor: pointer;
}

.crop-include input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--cyan);
}

.crop-owner-confidence {
  display: block;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: normal;
}

.crop-owner-confidence.is-confirmed {
  color: #91edc5;
}

.crop-owner-confidence.is-review {
  color: #f1d18a;
}

.crop-remove-button {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.crop-remove {
  position: static;
}

.crop-remove-button:hover .crop-remove,
.crop-remove-button:focus-visible .crop-remove {
  border-color: rgba(255, 124, 145, 0.72);
  color: #ffd7de;
  background: rgba(120, 22, 42, 0.9);
}

.crop-match-select {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(5, 8, 18, 0.88);
  font-size: 0.63rem;
}

.crop-match-confidence {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: normal;
}

.crop-match-confidence.is-high {
  color: #91edc5;
}

.crop-match-confidence.is-medium {
  color: #f1d18a;
}

.crop-match-confidence.is-low {
  color: #aebbd0;
}

.crop-item.is-owned-card .crop-media img {
  aspect-ratio: 0.73 / 1;
  object-fit: contain;
}

.crop-tier-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.crop-tier-select {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(5, 8, 18, 0.88);
  font-size: 0.78rem;
}

.crop-preview-more {
  width: 100%;
  min-height: 38px;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #c9f4ff;
  background: rgba(110, 231, 255, 0.08);
}

.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 740;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-quiet {
  border-color: var(--line);
  color: #c5cddd;
  background: rgba(255, 255, 255, 0.025);
}

.button-quiet:hover {
  border-color: rgba(110, 231, 255, 0.26);
  color: #effbff;
  background: rgba(110, 231, 255, 0.06);
}

.file-button {
  user-select: none;
}

.file-input:focus-visible + .file-button,
.upload-input:focus-visible + .upload-card {
  outline: 3px solid rgba(110, 231, 255, 0.85);
  outline-offset: 3px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.upload-card {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 65px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-card:hover {
  border-color: rgba(110, 231, 255, 0.45);
  background: rgba(110, 231, 255, 0.045);
}

.upload-icon {
  display: grid;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(110, 231, 255, 0.08);
  font-size: 1.05rem;
}

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

.upload-card strong {
  font-size: 0.875rem;
}

.upload-card small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.68rem;
}

.upload-summary {
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.compact-block {
  padding-bottom: 0;
  border-bottom: 0;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.theme-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.875rem;
  font-weight: 700;
}

.theme-choice:hover,
.theme-choice.is-active {
  border-color: rgba(110, 231, 255, 0.42);
  color: var(--text);
  background: rgba(110, 231, 255, 0.055);
}

.swatch {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.swatch-aurora {
  background: linear-gradient(135deg, #33d8ff, #7c6bff);
}

.swatch-ember {
  background: linear-gradient(135deg, #ffcf61, #ff5c75);
}

.swatch-royal {
  background: linear-gradient(135deg, #d681ff, #6a80ff);
}

.button-primary {
  width: 100%;
  min-height: 54px;
  margin-top: 1px;
  border-color: rgba(110, 231, 255, 0.55);
  color: #061017;
  background: linear-gradient(100deg, #8df0ff, #5fd2fa 48%, #a18cff);
  box-shadow: 0 15px 34px rgba(47, 188, 237, 0.18);
  font-size: 0.92rem;
}

.button-primary:hover {
  box-shadow: 0 19px 42px rgba(47, 188, 237, 0.25);
}

.button-primary svg {
  transition: transform 160ms ease;
}

.button-primary:hover svg {
  transform: translateX(3px);
}

.canvas-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(110, 231, 255, 0.15);
  border-radius: 17px;
  background: #050811;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

.poster-stage { position: relative; width: 100%; height: 100%; }
.canvas-shell.is-long-poster .poster-stage { height: auto; }
.poster-order-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.poster-order-tools span { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.poster-order-tools .button { flex-shrink: 0; padding: 9px 12px; font-size: .72rem; }
.poster-order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.preview-protection-note { display: flex; align-items: center; gap: 7px; margin: 0 0 10px;
  color: var(--muted); font-size: .73rem; line-height: 1.5; }
.preview-protection-note span { color: var(--gold); font-size: 1rem; }
.poster-interactions { position: absolute; inset: 0; pointer-events: none; }
.poster-skin-item { position: absolute; pointer-events: none; }
.poster-skin-target { position: absolute; inset: 0; width: 100%; height: 100%; display: block; padding: 0; min-width: 0; border: 2px solid transparent;
  border-radius: 3px; background: transparent; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; }
.poster-skin-target:hover, .poster-skin-target:focus-visible { border-color: #6ee7ff; outline: 2px solid rgba(5, 15, 32, .65); outline-offset: 1px; }
.poster-skin-target.is-drop-target { border: 3px solid #f4c96b; background: rgba(244, 201, 107, .22); }
.poster-skin-target.is-drag-source { background: rgba(6, 13, 28, .6); }
.poster-skin-remove { position: absolute; z-index: 1; left: 2px; top: 2px; display: grid; place-items: center;
  width: 22px; height: 22px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px;
  color: #fff; background: rgba(6, 13, 28, .88); pointer-events: auto; cursor: pointer;
  font-size: 19px; line-height: 1; touch-action: manipulation; }
.poster-skin-remove:hover, .poster-skin-remove:focus-visible { background: #ab3047; border-color: #ff9bad; }
.poster-drag-grip { position: absolute; left: 3px; bottom: 3px; display: none; padding: 0 4px;
  border-radius: 3px; color: #fff; background: rgba(6, 13, 28, .85); font-size: 16px; line-height: 22px; }
.poster-skin-target:hover .poster-drag-grip, .poster-skin-target:focus-visible .poster-drag-grip { display: block; }
.poster-drag-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; border: 2px solid #f4c96b;
  border-radius: 3px; overflow: hidden; box-shadow: 0 12px 35px rgba(0, 0, 0, .65); }
.poster-drag-ghost canvas { width: 100%; height: 100%; display: block; }
body.is-reordering-poster, body.is-reordering-poster * { cursor: grabbing !important; user-select: none; }
.profile-stats-preview { display: block; width: 100%; max-height: 220px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 5px; background: #526b9e; }
.profile-stats-preview[hidden], .poster-interactions[hidden] { display: none; }

[hidden] { display: none !important; }
.skin-review-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 22px; border: 1px solid var(--line-bright); border-radius: 18px; color: var(--text);
  background: #101522; box-shadow: var(--shadow); }
.skin-review-dialog::backdrop { background: rgba(3, 7, 15, .8); }
.skin-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skin-review-heading h3 { margin: 0; font-size: 1rem; }
.skin-review-close { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); background: transparent; font-size: 24px; }
#skin-review-image { display: block; max-width: 100%; max-height: 42dvh; width: auto; height: auto; margin: 16px auto; border-radius: 4px; }
#skin-review-name { display: block; text-align: center; font-size: .88rem; }
.skin-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.skin-review-actions .button { padding: 11px 13px; font-size: .76rem; }
@media (pointer: coarse) { .poster-skin-remove { width: 26px; height: 26px; } }
@media (max-width: 680px) {
  .poster-order-tools { align-items: flex-start; flex-wrap: wrap; }
  .poster-order-actions { width: 100%; justify-content: flex-start; }
}

#collage-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-shell.is-long-poster {
  aspect-ratio: auto;
  max-height: min(72vh, 980px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(110, 231, 255, 0.5) rgba(255, 255, 255, 0.04);
}

.canvas-shell.is-long-poster #collage-canvas {
  height: auto;
}

.canvas-shell.is-long-poster .canvas-gloss {
  display: none;
}

.canvas-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 72%, rgba(110, 231, 255, 0.04));
  mix-blend-mode: screen;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 18px;
  border-bottom: 1px solid var(--line);
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.875rem;
}

.button-export {
  border-color: rgba(244, 201, 107, 0.34);
  color: #ffe9b6;
  background: rgba(244, 201, 107, 0.08);
}

.button-export:hover {
  border-color: rgba(244, 201, 107, 0.6);
  background: rgba(244, 201, 107, 0.13);
}

.mini-guide {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 2px;
}

.mini-guide > div:not(.guide-line) {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-guide span {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(110, 231, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-guide p,
.mini-guide strong,
.mini-guide small {
  display: block;
  margin: 0;
}

.mini-guide strong {
  color: #dce2ed;
  font-size: 0.74rem;
}

.mini-guide small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.guide-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.25), rgba(255, 255, 255, 0.05));
}

.format-help {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.format-help summary {
  padding: 13px 14px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.format-help pre {
  overflow: auto;
  margin: 0;
  padding: 0 14px 14px;
  color: #a9bfd0;
  font-size: 0.7rem;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px 30px;
  color: var(--muted-2);
  font-size: 0.73rem;
  line-height: 1.5;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid rgba(110, 231, 255, 0.3);
  border-radius: 12px;
  color: #e9fbff;
  background: rgba(10, 16, 28, 0.96);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .control-panel,
  .preview-panel {
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 22px, 1480px);
  }

  .topbar {
    min-height: 76px;
  }

  .privacy-pill {
    width: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .privacy-dot {
    width: 9px;
    height: 9px;
  }

  .workspace {
    padding-top: 14px;
  }

  .control-panel,
  .preview-panel {
    padding: 17px;
    border-radius: 17px;
  }

  .field-grid,
  .upload-grid,
  .catalog-tools,
  .poster-choice-list {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .preview-toolbar,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button-export {
    width: 100%;
  }

  .mini-guide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-line {
    display: none;
  }

  .mini-guide > div:not(.guide-line) {
    justify-content: flex-start;
  }

  .theme-choice {
    min-height: 43px;
  }

  .scan-controls {
    grid-template-columns: 1fr 1fr;
  }

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

  .catalog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-actions > span {
    text-align: left;
  }

  .crop-preview {
    grid-template-columns: repeat(auto-fill, minmax(min(145px, 100%), 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Auth UI Styles */
.auth-container {
  display: flex;
  align-items: center;
  margin-left: 16px;
}
.user-menu {
  position: relative;
  display: inline-block;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.user-menu-btn:hover {
  background: rgba(255,255,255,0.05);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.user-menu-chevron {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
}
.user-dropdown.show {
  display: flex;
}
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.user-dropdown button:hover {
  background: rgba(110, 231, 255, 0.1);
  color: var(--cyan);
}
.user-dropdown button svg {
  width: 18px;
  height: 18px;
}

/* Pricing UI */
.pricing-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(244, 201, 107, 0.1);
  border: 1px solid rgba(244, 201, 107, 0.3);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
}
#pricing-amount {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Export Actions & Purchase Button */
.export-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.export-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.beli-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(244, 201, 107, 0.08);
  border: 1px solid rgba(244, 201, 107, 0.25);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text, #e6edf8);
  white-space: nowrap;
}
.beli-current-badge strong {
  color: var(--gold, #f4c96b);
  font-size: 0.95rem;
}
.button-purchase {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4c96b, #e0a936);
  color: #101522;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(244, 201, 107, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.button-purchase:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 201, 107, 0.4);
}
.button-purchase svg {
  width: 20px;
  height: 20px;
}
.button-purchase.btn-insufficient {
  background: linear-gradient(135deg, #ff7675, #d63031);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(214, 48, 49, 0.35);
}

/* Insufficient BELI Alert Banner */
.beli-insufficient-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.45);
  border-radius: 12px;
  color: #ff6b81;
  font-size: 0.88rem;
  animation: fadeInNotice 0.25s ease-out;
}
@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.beli-insufficient-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.alert-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 10px #ff4757;
  animation: pulseRed 1.4s infinite;
  flex-shrink: 0;
}
@keyframes pulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.alert-title {
  color: #ff4757;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.button-topup-inline {
  background: #ff4757 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  transition: opacity 0.15s, transform 0.15s;
}
.button-topup-inline:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* My Posters Section */
.my-posters-section {
  margin-top: 24px;
  margin-bottom: 24px;
}
.my-posters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.poster-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.poster-card-info h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}
.poster-card-actions {
  display: flex;
  gap: 8px;
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 8px;
}
.status-badge.paid {
  background: rgba(84, 230, 166, 0.15);
  color: var(--success);
  border: 1px solid rgba(84, 230, 166, 0.3);
}
.status-badge.expired {
  background: rgba(255, 124, 145, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 124, 145, 0.3);
}
.status-badge.draft {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* BELI Wallet & Topup Dialog */
.beli-container {
  display: flex;
  align-items: center;
}
.beli-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 201, 107, 0.12);
  border: 1px solid rgba(244, 201, 107, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold, #f4c96b);
}
.beli-gem {
  font-size: 1rem;
}
.beli-topup-btn {
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
  background: rgba(244, 201, 107, 0.2) !important;
  color: var(--gold, #f4c96b) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(244, 201, 107, 0.4) !important;
  cursor: pointer;
  margin-left: 4px;
}
.beli-topup-btn:hover {
  background: rgba(244, 201, 107, 0.35) !important;
}

/* BELI Modal Dialog */
.beli-topup-dialog {
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  background: #0d121f;
  color: var(--text, #e6edf8);
  width: min(520px, 94vw);
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}
.beli-topup-dialog::backdrop {
  background: rgba(3, 8, 19, 0.8);
  backdrop-filter: blur(4px);
}
.beli-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.beli-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.beli-modal-title h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text, #fff);
}
.beli-modal-close {
  background: transparent;
  border: none;
  color: var(--muted, #9aa4bb);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}
.beli-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.beli-amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.beli-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  color: var(--text, #e6edf8);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.beli-chip small {
  font-size: 0.7rem;
  color: var(--muted, #9aa4bb);
  margin-top: 2px;
}
.beli-chip:hover, .beli-chip.active {
  background: rgba(244, 201, 107, 0.15);
  border-color: var(--gold, #f4c96b);
  color: var(--gold, #f4c96b);
}
.beli-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 16px;
}
.beli-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.beli-qr-img {
  width: 240px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.beli-transfer-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.beli-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.beli-copy-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.beli-copy-btn {
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.3);
  color: var(--cyan, #6ee7ff);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}
.beli-copy-btn:hover {
  background: rgba(110, 231, 255, 0.25);
}
.beli-memo-row {
  background: rgba(244, 201, 107, 0.08);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(244, 201, 107, 0.25);
}
.beli-memo-code {
  font-family: monospace;
  font-weight: 800;
  color: var(--gold, #f4c96b);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}
.beli-status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(84, 230, 166, 0.08);
  border: 1px solid rgba(84, 230, 166, 0.25);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text, #e6edf8);
}
.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54e6a6;
  box-shadow: 0 0 10px #54e6a6;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
