/* =========================================================================
   pxbHub.net — Member Account & Dashboard Stylesheet
   Unified palette & borders matching style.css and converter.css
   ========================================================================= */

.account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(59, 47, 77, 0.25);
}

.account-header h1 {
  margin-bottom: 4px;
}

.account-sub {
  font-size: 14px;
  color: var(--text-dark-purple);
  opacity: 0.85;
  margin-bottom: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.account-card {
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 20px;
}

.account-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.account-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

/* Avatar Box (21x21 @ 5x = 125x125 px) */
.avatar-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.2);
  margin-bottom: 14px;
}

.avatar-frame {
  width: 125px;
  height: 125px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(59, 47, 77, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.avatar-frame canvas {
  width: 125px;
  height: 125px;
  display: block;
  image-rendering: pixelated;
}

.avatar-empty {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark-purple);
  text-align: center;
  padding: 8px;
}

.avatar-frame:hover {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: var(--universe-purple);
}

.spec-hint {
  font-size: 12px;
  color: var(--text-dark-purple);
  opacity: 0.9;
  background-color: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.18);
  padding: 8px 10px;
  margin-bottom: 12px;
}

/* Buttons & Form Controls */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: var(--universe-purple);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.account-btn:hover:not(:disabled) {
  background-color: var(--accent-deep-purple);
}

.account-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-btn.secondary {
  background-color: rgba(255, 255, 255, 0.75);
  color: var(--text-dark-purple);
  border: 1px solid rgba(59, 47, 77, 0.35);
}

.account-btn.secondary:hover:not(:disabled) {
  background-color: var(--universe-purple);
  color: #ffffff;
  border-color: var(--universe-purple);
}

.account-btn.danger {
  background-color: rgba(153, 27, 27, 0.1);
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.3);
}

.account-btn.danger:hover:not(:disabled) {
  background-color: #991b1b;
  color: #ffffff;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-purple);
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field textarea {
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid rgba(59, 47, 77, 0.35);
  background-color: rgba(255, 255, 255, 0.78);
  color: var(--text-dark-purple);
  font-family: inherit;
  font-size: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--universe-purple);
  outline-offset: -1px;
  background-color: rgba(255, 255, 255, 0.95);
}

.status-msg {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
}

/* Quick Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.summary-tile {
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.summary-tile h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.summary-stat {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-deep-purple);
}

/* Left column vertical stack (Avatar + Public Profile Settings) */
.account-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Left column vertical stack (Avatar + Public Profile Settings) */
.account-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Two-column grid for right dashboard tiles so Pixel Scene sits on row 2 */
.summary-cards.dashboard-summary-cards {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .summary-cards.dashboard-summary-cards {
    grid-template-columns: 1fr;
  }
}

/* Full-width tile spanning across both columns (e.g. Pixel Scene) */
.summary-tile.summary-tile-wide {
  grid-column: 1 / -1;
}



/* =========================================================================
   Member Artwork Page (/account/artwork.html)
   ========================================================================= */
.artwork-spec-box {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.artwork-spec-box code {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--accent-deep-purple);
}

/* Edge-to-edge 3-column grid aligned with Artwork Settings box above */
.artwork-grid.member-artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 359px);
  justify-content: space-between;
  gap: 18px 14px;
}

@media (max-width: 1180px) {
  .artwork-grid.member-artwork-grid {
    grid-template-columns: repeat(auto-fill, 359px);
    justify-content: center;
  }
}

.artwork-drop-slot {
  width: 359px;
  height: 299px;
  cursor: pointer;
  padding: 16px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(59, 47, 77, 0.55);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.artwork-drop-slot:hover,
.artwork-drop-slot:focus-visible,
.artwork-drop-slot.dragover {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: var(--universe-purple);
  color: var(--text-dark-purple);
}

.drop-slot-plus {
  font-size: 15px;
  font-weight: 700;
}

.member-art-card,
.member-art-drop-card {
  width: 359px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Preserve exact 1:1 pixel dimensions (359x299 px) without extra background box */
.member-art-card canvas {
  width: 359px;
  height: 299px;
  display: block;
  image-rendering: pixelated;
}

.member-art-controls {
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-art-filename {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-art-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dark-purple);
  cursor: pointer;
}

.member-art-toggle.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-art-actions {
  margin-top: 4px;
}

.member-art-actions .account-btn {
  padding: 4px 10px;
  font-size: 12px;
}

/* Shared disabled placeholder styling for both Artwork and Swap drop cards */
.member-art-controls.is-disabled-placeholder {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: rgba(59, 47, 77, 0.12);
  pointer-events: none;
  user-select: none;
}

.is-disabled-placeholder .member-art-filename,
.is-disabled-placeholder .swap-url-field,
.is-disabled-placeholder .member-art-toggle {
  color: rgba(59, 47, 77, 0.36);
  opacity: 1;
}

.is-disabled-placeholder input[type="url"] {
  background-color: rgba(255, 255, 255, 0.42);
  border-color: rgba(59, 47, 77, 0.15);
  color: rgba(59, 47, 77, 0.35);
}

.is-disabled-placeholder input[type="url"]::placeholder {
  color: rgba(59, 47, 77, 0.3);
}

.is-disabled-placeholder input[type="checkbox"] {
  opacity: 0.35;
}

.is-disabled-placeholder .account-btn.secondary,
.is-disabled-placeholder .account-btn.danger {
  background-color: rgba(255, 255, 255, 0.38);
  color: rgba(59, 47, 77, 0.35);
  border-color: rgba(59, 47, 77, 0.15);
  opacity: 1;
}

/* =========================================================================
   Member pxb Swap Categorized Table Overview (/account/swap.html)
   ========================================================================= */
.swap-detail-top {
  margin-bottom: 14px;
}

.swap-category-section {
  margin-bottom: 24px;
}

.swap-category-heading {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep-purple);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(59, 47, 77, 0.25);
}

.swap-table {
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(59, 47, 77, 0.25);
}

.swap-table-head,
.swap-table-row {
  display: grid;
  grid-template-columns: 130px 1fr 140px 110px 120px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.swap-table-head {
  background-color: rgba(27, 14, 54, 0.06);
  border-bottom: 1px solid rgba(59, 47, 77, 0.22);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark-purple);
}

.swap-table-row + .swap-table-row {
  border-top: 1px solid rgba(59, 47, 77, 0.2);
}

.swap-table-row:hover {
  background-color: rgba(255, 255, 255, 0.72);
}

.swap-cell-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background-color: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.2);
  padding: 6px;
}

.swap-ratio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(59, 47, 77, 0.55);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark-purple);
}

.swap-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 3px;
}

.swap-dim-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  background-color: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.2);
  color: var(--text-dark-purple);
}

.swap-size-specs {
  font-size: 12px;
  opacity: 0.85;
}

.swap-cell-stat {
  font-size: 13px;
  line-height: 1.35;
}

.swap-sub-stat {
  font-size: 11px;
  opacity: 0.75;
}

.swap-cell-action {
  text-align: right;
}

@media (max-width: 900px) {
  .swap-table-head {
    display: none;
  }

  .swap-table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .swap-cell-action {
    text-align: left;
  }
}

/* =========================================================================
   Member pxb Swap Detail Grid & Framed Banner Slots
   ========================================================================= */
.swap-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--swap-card-min, 260px), 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 14px;
}

.swap-banner-grid .member-swap-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
}

/* Shared stage container for both Drop Slot and Rendered Banner Canvas */
.swap-banner-grid .swap-canvas-stage {
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background-color: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.2);
  border-radius: 0;
  box-sizing: border-box;
}

.swap-banner-grid .swap-drop-stage {
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.swap-banner-grid .swap-drop-stage:hover,
.swap-banner-grid .swap-drop-stage:focus-visible,
.swap-banner-grid .swap-drop-stage.dragover {
  background-color: rgba(255, 255, 255, 0.45);
  border-color: var(--universe-purple);
}

/* Lock drop target to exact 1:1 banner pixel dimensions */
.swap-banner-grid .swap-drop-inner {
  width: var(--swap-render-w, auto);
  height: var(--swap-render-h, auto);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  color: var(--text-dark-purple);
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(59, 47, 77, 0.55);
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.swap-banner-grid .swap-drop-stage:hover .swap-drop-inner,
.swap-banner-grid .swap-drop-stage.dragover .swap-drop-inner {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: var(--universe-purple);
}

/* Lock canvas to exact 1:1 pixel dimensions so raster lines never distort */
.swap-banner-grid .swap-canvas-stage canvas {
  width: var(--swap-render-w, auto) !important;
  height: var(--swap-render-h, auto) !important;
  flex: 0 0 auto;
  display: block;
  image-rendering: pixelated;
}

/* Matching metadata line height for both drop card and banner cards */
.swap-banner-grid .swap-stage-caption {
  min-height: 16px;
  line-height: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--universe-purple);
  text-align: center;
}

/* Muted, lighter disabled placeholder form under the Add Banner card */
.swap-banner-grid .member-art-controls.is-disabled-placeholder {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: rgba(59, 47, 77, 0.12);
  pointer-events: none;
  user-select: none;
}

.swap-banner-grid .is-disabled-placeholder .member-art-filename,
.swap-banner-grid .is-disabled-placeholder .swap-url-field,
.swap-banner-grid .is-disabled-placeholder .member-art-toggle {
  color: rgba(59, 47, 77, 0.36);
  opacity: 1;
}

.swap-banner-grid .is-disabled-placeholder input[type="url"] {
  background-color: rgba(255, 255, 255, 0.42);
  border-color: rgba(59, 47, 77, 0.15);
  color: rgba(59, 47, 77, 0.35);
}

.swap-banner-grid .is-disabled-placeholder input[type="url"]::placeholder {
  color: rgba(59, 47, 77, 0.3);
}

.swap-banner-grid .is-disabled-placeholder input[type="checkbox"] {
  opacity: 0.35;
}

.swap-banner-grid .is-disabled-placeholder .account-btn.secondary,
.swap-banner-grid .is-disabled-placeholder .account-btn.danger {
  background-color: rgba(255, 255, 255, 0.38);
  color: rgba(59, 47, 77, 0.35);
  border-color: rgba(59, 47, 77, 0.15);
  opacity: 1;
}

.swap-url-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark-purple);
}

.swap-url-field input[type="url"] {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-dark-purple);
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(59, 47, 77, 0.35);
  box-sizing: border-box;
}

.swap-url-field input[type="url"]:focus {
  outline: 2px solid var(--universe-purple);
  outline-offset: -1px;
  background-color: rgba(255, 255, 255, 0.95);
}

/* =========================================================================
   Wide Banner Formats (e.g., 600x124 Widescreen LED)
   Full-width edge-to-edge card with controls on the right on desktop
   ========================================================================= */
.swap-banner-grid.is-wide-format {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.swap-banner-grid.is-wide-format .member-swap-card {
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}

.swap-banner-grid.is-wide-format .swap-canvas-stage {
  width: var(--swap-stage-width, 626px);
  flex: 0 0 var(--swap-stage-width, 626px);
}

.swap-banner-grid.is-wide-format .member-art-controls {
  flex: 1 1 260px;
  min-width: 0;
  justify-content: center;
}

@media (max-width: 960px) {
  .swap-banner-grid.is-wide-format .member-swap-card {
    flex-direction: column;
    gap: 8px;
  }

  .swap-banner-grid.is-wide-format .swap-canvas-stage {
    width: 100%;
    flex: 0 0 auto;
    overflow-x: auto;
  }

  .swap-banner-grid.is-wide-format .member-art-controls {
    flex: 0 0 auto;
  }
}

/* =========================================================================
   Public Creator Profile Page (/@username, /@username/artwork, /@username/banners)
   ========================================================================= */
.public-profile-grid {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(59, 47, 77, 0.25);
}

.public-profile-sidebar .avatar-stage {
  margin-bottom: 12px;
}

.public-avatar-frame {
  cursor: default;
  border-style: solid;
  border-color: rgba(59, 47, 77, 0.35);
}

.public-avatar-frame:hover {
  background-color: rgba(255, 255, 255, 0.55);
  border-color: rgba(59, 47, 77, 0.35);
}

.public-profile-handle {
  font-size: 20px;
  margin-bottom: 6px;
  word-break: break-word;
}

.public-profile-about {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 10px;
}

.public-profile-links {
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

.public-profile-links a {
  color: var(--universe-purple);
  text-decoration: underline;
}

.public-profile-links a:hover {
  color: var(--accent-deep-purple);
}

.public-summary-cards {
  margin-top: 0;
}

.public-tile-desc {
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 0;
}

.summary-tile.is-active-tile {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: var(--universe-purple);
}

.public-showcase-section {
  width: 100%;
}

.public-empty-msg {
  font-size: 14px;
  opacity: 0.8;
  padding: 12px 0;
}

.public-banners-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Read-only wide banner cards on public profile keep stage width without empty right column */
.public-banner-grid.is-wide-format {
  align-items: flex-start;
}

.public-banner-grid.is-wide-format .member-swap-card {
  width: var(--swap-stage-width, 626px);
  max-width: 100%;
}

/* =========================================================================
   Artwork & Banner Title Inputs + Integrated Caption Styling
   ========================================================================= */
.swap-url-field input[type="text"] {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-dark-purple);
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(59, 47, 77, 0.35);
  box-sizing: border-box;
}

.swap-url-field input[type="text"]:focus {
  outline: 2px solid var(--universe-purple);
  outline-offset: -1px;
  background-color: rgba(255, 255, 255, 0.95);
}

.is-disabled-placeholder input[type="text"] {
  background-color: rgba(255, 255, 255, 0.42);
  border-color: rgba(59, 47, 77, 0.15);
  color: rgba(59, 47, 77, 0.35);
}

.is-disabled-placeholder input[type="text"]::placeholder {
  color: rgba(59, 47, 77, 0.3);
}

/* Integrated piece title before technical metadata (e.g. "Birdnest - pxi 5x...") */
.pxb-caption-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pxb-piece-title {
  font-weight: 700;
  color: var(--accent-deep-purple);
  cursor: help;
}

.pxb-piece-sep {
  font-weight: 600;
  color: var(--text-dark-purple);
  opacity: 0.75;
}

/* =========================================================================
   Compact Embed Code & Site Verification Box (/account/swap.html?format=...)
   ========================================================================= */
.swap-detail-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 14px;
}

.swap-detail-left {
  flex: 1 1 320px;
}

.swap-detail-left .artwork-header {
  margin-bottom: 0;
}

.swap-embed-box {
  flex: 0 1 430px;
  width: 430px;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(59, 47, 77, 0.32);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.swap-embed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.swap-embed-tabs,
.swap-embed-themes {
  display: inline-flex;
  gap: 4px;
}

.swap-embed-tab,
.swap-theme-pill {
  padding: 3px 8px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-dark-purple);
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 47, 77, 0.35);
  cursor: pointer;
}

.swap-embed-tab.is-active,
.swap-theme-pill.is-active {
  background-color: var(--universe-purple);
  color: #ffffff;
  border-color: var(--universe-purple);
}

.swap-embed-textarea {
  width: 100%;
  resize: none;
  padding: 6px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dark-purple);
  background-color: rgba(27, 14, 54, 0.06);
  border: 1px solid rgba(59, 47, 77, 0.28);
  box-sizing: border-box;
}

.swap-embed-textarea:focus {
  outline: 2px solid var(--universe-purple);
  outline-offset: -1px;
  background-color: rgba(255, 255, 255, 0.92);
}

.swap-embed-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.swap-embed-footer .account-btn {
  padding: 4px 10px;
  font-size: 12px;
}

.swap-verify-group {
  display: flex;
  flex: 1 1 180px;
  min-width: 0;
  gap: 4px;
}

.swap-verify-group input[type="url"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 7px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text-dark-purple);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(59, 47, 77, 0.35);
}

.swap-verify-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  background-color: rgba(27, 14, 54, 0.08);
  border: 1px solid rgba(59, 47, 77, 0.25);
  color: var(--text-dark-purple);
  white-space: nowrap;
}

.swap-verify-badge.is-verified {
  background-color: rgba(22, 101, 52, 0.14);
  border-color: rgba(22, 101, 52, 0.4);
  color: #166534;
}

.swap-verify-badge.is-paused {
  background-color: rgba(180, 83, 9, 0.14);
  border-color: rgba(180, 83, 9, 0.4);
  color: #92400e;
}

/* Pixel Scene Dashboard Card */
.scene-dashboard-card {
  gap: 14px;
}

.scene-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.scene-description {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px 0;
  color: var(--text-dark-purple);
}

.scene-spec-list {
  margin: 0 0 14px 18px;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dark-purple);
}

.scene-spec-list li {
  margin-bottom: 4px;
}

/* Unlock Dropzone matching .artwork-drop-slot */
.scene-unlock-dropzone {
  min-height: 180px;
  border: 2px dashed rgba(59, 47, 77, 0.55);
  background-color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
  cursor: pointer;
  color: var(--text-dark-purple);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.scene-unlock-dropzone:hover,
.scene-unlock-dropzone:focus-visible,
.scene-unlock-dropzone.dragover {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: var(--universe-purple);
  outline: none;
}

.scene-unlock-dropzone strong {
  font-size: 14px;
}

.scene-unlock-dropzone small {
  font-size: 12px;
  opacity: 0.85;
}

/* 600x500 Clickable Preview Container */
.scene-preview-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 12px auto;
  border: 2px solid rgba(59, 47, 77, 0.45);
  background: #1b0e36;
  line-height: 0;
  overflow-x: auto;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scene-preview-link:hover {
  border-color: var(--universe-purple);
  box-shadow: 0 4px 14px rgba(27, 14, 54, 0.25);
}

.scene-preview-stage {
  width: 600px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.scene-preview-stage canvas {
  display: block;
  width: 600px;
  height: 500px;
  image-rendering: pixelated;
}

.scene-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(59, 47, 77, 0.25);
}

.scene-publish-toggle {
  font-weight: 700;
  font-size: 13px;
}

/* Overlay & Mouseover Assets Library */
.scene-assets-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(59, 47, 77, 0.2);
}

.scene-assets-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.scene-assets-header h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--text-dark-purple);
}

.scene-assets-header p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dark-purple);
  opacity: 0.9;
}

.scene-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.scene-assets-empty {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-dark-purple);
  opacity: 0.8;
  margin: 4px 0;
}

.scene-asset-item {
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scene-asset-thumb {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(59, 47, 77, 0.06);
  overflow: hidden;
}

.scene-asset-thumb canvas {
  max-width: 100%;
  max-height: 72px;
  width: auto !important;
  height: auto !important;
  image-rendering: pixelated;
}

.scene-asset-meta {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--text-dark-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-asset-actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.scene-asset-actions .account-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 8px;
  font-size: 11px;
  text-align: center;
}


/* Ensure HTML hidden attribute overrides flex/inline-flex buttons and containers */
.account-btn[hidden],
.scene-dashboard-card [hidden] {
  display: none !important;
}

/* ==========================================================================
   Pixel Scene Modify & Zone Editor (/account/scene.html)
   ========================================================================== */
.scene-workspace-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scene-stage-topbar {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.scene-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-mode-bar[hidden] {
  display: none !important;
}

.scene-mode-hint,
.scene-tool-badge {
  font-size: 12.5px;
  color: var(--text-dark-purple);
}

.scene-tool-badge {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 5px 10px;
  font-weight: 600;
}

/* Outer scroll wrapper for smaller screens */
.scene-stage-outer {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

/* Fixed 600x500 interactive stage */
.scene-editor-stage {
  position: relative;
  width: 600px;
  height: 500px;
  flex: 0 0 600px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(59, 47, 77, 0.45);
  box-sizing: content-box;
  user-select: none;
  overflow: hidden;
}

.scene-editor-stage.has-bg {
  border: 2px solid rgba(59, 47, 77, 0.55);
  background-color: #1b0e36;
}

.scene-editor-stage.is-editing {
  cursor: crosshair;
  border-color: var(--universe-purple);
}

.scene-stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dark-purple);
  pointer-events: none;
}

.scene-stage-empty[hidden] {
  display: none !important;
}

.scene-bg-layer,
.scene-zones-layer {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 500px;
}

.scene-bg-layer canvas {
  display: block;
  width: 600px;
  height: 500px;
  image-rendering: pixelated;
  pointer-events: none;
}

/* Individual Hotspot Zones */
.scene-zone-box {
  position: absolute;
  box-sizing: border-box;
  overflow: visible;
}

.scene-zone-box canvas {
  display: block;
  image-rendering: pixelated;
  pointer-events: none;
}

/* Preview mode: clean invisible hitboxes, pointer cursor if clickable */
.scene-editor-stage:not(.is-editing) .scene-zone-box.is-clickable {
  cursor: pointer;
}

/* Edit mode: dashed outlines, index badge & selected highlight */
.scene-editor-stage.is-editing .scene-zone-box {
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.scene-editor-stage.is-editing .scene-zone-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(27, 14, 54, 0.65);
  pointer-events: none;
  z-index: 3;
}

.scene-editor-stage.is-editing .scene-zone-box.is-selected {
  border: 2px solid #facc15;
  background-color: rgba(250, 204, 21, 0.22);
  z-index: 15;
}

.scene-zone-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #1b0e36;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  pointer-events: none;
}

/* Marquee box while dragging a new selection + Create button */
.scene-selection-box {
  position: absolute;
  border: 2px dashed #facc15;
  background-color: rgba(250, 204, 21, 0.2);
  box-shadow: 0 0 0 1px #1b0e36;
  z-index: 25;
  pointer-events: auto;
}

.scene-selection-box[hidden] {
  display: none !important;
}

.scene-create-zone-btn {
  position: absolute;
  bottom: -34px;
  right: 0;
  padding: 5px 12px;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

/* Zone Properties Inspector Panel */
.zone-inspector {
  width: 100%;
  max-width: 600px;
  margin: 4px auto 0 auto;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 47, 77, 0.35);
}

.zone-inspector[hidden] {
  display: none !important;
}

.zone-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.zone-inspector-header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-dark-purple);
}

.zone-coords-readout {
  font-size: 12px;
  font-family: monospace;
  color: var(--universe-purple);
  margin-bottom: 12px;
}

.zone-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .zone-form-grid {
    grid-template-columns: 1fr;
  }
}

.zone-form-grid select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(59, 47, 77, 0.35);
  background-color: #fff;
  color: var(--text-dark-purple);
  font-family: inherit;
  font-size: 13px;
}

/* Configured Zones Quick List */
.scene-zones-list-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(59, 47, 77, 0.2);
}

.scene-zones-list-wrap[hidden] {
  display: none !important;
}

.scene-zones-list-wrap h4 {
  margin: 0 0 8px 0;
  font-size: 13.5px;
  color: var(--text-dark-purple);
}

.scene-zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scene-zone-chip {
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(59, 47, 77, 0.3);
  color: var(--text-dark-purple);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.scene-zone-chip.is-selected {
  background-color: var(--universe-purple);
  color: #fff;
  border-color: var(--universe-purple);
}

/* Two-column workspace on desktop: 600px stage left, accordion zones right */
.scene-workspace-grid {
  display: grid;
  grid-template-columns: 604px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1020px) {
  .scene-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.scene-stage-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-stage-topbar {
  width: 100%;
  max-width: 604px;
  margin: 0;
}

.scene-stage-outer {
  justify-content: flex-start;
}

.scene-sidebar-col {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(59, 47, 77, 0.25);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
}

.scene-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59, 47, 77, 0.2);
}

.scene-sidebar-header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-dark-purple);
}

.scene-sidebar-hint {
  font-size: 11.5px;
  color: var(--universe-purple);
}

.scene-zones-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-zones-empty {
  font-size: 12.5px;
  color: var(--text-dark-purple);
  opacity: 0.8;
  margin: 4px 0;
}

/* Individual Collapsible Zone Accordion Item */
.zone-accordion-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 47, 77, 0.3);
}

.zone-accordion-item.is-selected {
  border-color: var(--universe-purple);
  box-shadow: 0 0 0 1px var(--universe-purple);
}

.zone-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-dark-purple);
  font-family: inherit;
}

.zone-accordion-header:hover {
  background-color: rgba(141, 123, 168, 0.12);
}

.zone-accordion-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.zone-accordion-coords {
  display: block;
  font-size: 11px;
  font-family: monospace;
  font-weight: 400;
  color: var(--universe-purple);
}

.zone-accordion-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--universe-purple);
  flex-shrink: 0;
}

.zone-accordion-body {
  padding: 10px;
  border-top: 1px solid rgba(59, 47, 77, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zone-accordion-body[hidden] {
  display: none !important;
}

.zone-accordion-body .form-field {
  margin: 0;
}

.zone-accordion-body label {
  font-size: 11.5px;
}

.zone-accordion-body select,
.zone-accordion-body input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(59, 47, 77, 0.35);
  background-color: #fff;
  color: var(--text-dark-purple);
  font-family: inherit;
  font-size: 12.5px;
  box-sizing: border-box;
}

/* Reserve fixed height under the 600x500 stage so the box never jumps when coordinates appear/clear */
#scene-editor-status {
  min-height: 22px;
  line-height: 22px;
  margin: 2px 0 0 0;
}


/* ==========================================================================
   Public Profile Pixel Scene Special Landing Layout
   ========================================================================== */
.public-home-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.public-home-link:hover {
  opacity: 0.9;
}

/* When viewing the special Pixel Scene landing page:
   Left column (300px) stacks Profile + Artwork card + Banners card;
   Right column (1fr) displays the full 600x500 Pixel Scene at the top */
#profile-view.is-scene-landing .public-profile-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

#profile-view.is-scene-landing .public-profile-sidebar {
  grid-column: 1;
  grid-row: 1;
}

#profile-view.is-scene-landing .public-profile-header-cards {
  grid-column: 1;
  grid-row: 2;
  margin-top: -8px;
}

#profile-view.is-scene-landing .public-summary-cards {
  grid-template-columns: 1fr;
  margin-top: 0;
  gap: 16px;
}

#profile-view.is-scene-landing .public-scene-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

@media (max-width: 980px) {
  #profile-view.is-scene-landing .public-profile-grid {
    grid-template-columns: 1fr;
  }

  #profile-view.is-scene-landing .public-profile-sidebar,
  #profile-view.is-scene-landing .public-profile-header-cards,
  #profile-view.is-scene-landing .public-scene-card {
    grid-column: 1;
    grid-row: auto;
  }
}

.public-scene-card[hidden] {
  display: none !important;
}

.public-scene-outer {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.public-scene-stage {
  position: relative;
  width: 600px;
  height: 500px;
  flex: 0 0 600px;
  background-color: #1b0e36;
  border: 2px solid rgba(59, 47, 77, 0.55);
  box-sizing: content-box;
  overflow: hidden;
}

.public-scene-stage .scene-bg-layer canvas,
.public-scene-stage .scene-zone-box canvas {
  display: block;
  image-rendering: pixelated;
}

.public-scene-stage .scene-zone-box.is-clickable {
  cursor: pointer;
}

.public-scene-inner {
  width: 100%;
  max-width: 604px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.public-scene-title {
  margin: 0;
  font-size: 18px;
  color: var(--text-dark-purple);
  text-align: left;
}

.public-scene-story {
  margin: 2px 0 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dark-purple);
  white-space: pre-line;
  text-align: left;
}
