:root {
  --bg-dark: #05050c;
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --purple: #a200ff;
  --purple-glow: rgba(162, 0, 255, 0.35);
  --gold: #ffaa00;
  --green: #00ff66;
  --pink: #ff00ea;
  --text-main: #ffffff;
  --text-muted: #8b9bb4;
  --text-mute: #6b7590;
  --border-dark: #1e263d;
  --rail-max: 1600px;
  --pixel-nav-h: 62px;
  --pixel-sidebar-w: 300px;
  --pixel-footer-h: 46px;
}

body.pixel-board-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.pixel-preview-banner {
  flex-shrink: 0;
  padding: 10px 16px;
  background: rgba(255, 170, 0, 0.12);
  border-bottom: 1px solid rgba(255, 170, 0, 0.35);
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}
.pixel-preview-banner a { color: var(--cyan); }
.pixel-preview-banner code {
  font-size: 0.82em;
  color: var(--gold);
}

html {
  min-height: 100%;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at top right, rgba(162, 0, 255, 0.15), transparent 40%),
    radial-gradient(circle at bottom left, rgba(0, 240, 255, 0.15), transparent 40%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
  background-attachment: fixed;
}
html { scrollbar-width: thin; scrollbar-color: var(--cyan) rgba(5, 5, 12, 0.9); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(5, 5, 12, 0.92); border-left: 1px solid var(--border-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f0ff 0%, rgba(0, 200, 220, 0.75) 100%);
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  color: var(--text-main);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
body { background: transparent; overflow-x: clip; }
body.pixel-board-page { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.rail { width: 100%; max-width: var(--rail-max); margin: 0 auto; padding: 0 28px; }
.pixel-nav-inner,
.pixel-header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
}

/* Nav — matches explore / quest pages */
.pixel-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}
.pixel-nav-inner { display: flex; align-items: center; gap: 24px; height: var(--pixel-nav-h); }
.pixel-brand img { height: 34px; width: auto; }
.pixel-nav-links {
  display: flex;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pixel-nav-links a:hover,
.pixel-nav-links a.is-active { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
.pixel-nav-spacer { flex: 1; }
.btn-ghost-sm {
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(162, 0, 255, 0.45);
  color: var(--pink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pixel-auth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.pixel-auth-bar .auth-name { color: var(--cyan); font-weight: 700; letter-spacing: 0.5px; }
.pixel-auth-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.pixel-auth-link:hover { color: var(--cyan); }

/* Hero — full width band below nav */
.pixel-header {
  flex: none;
  width: 100%;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border-dark);
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.55) 0%, rgba(5, 5, 12, 0.35) 100%);
}
.pixel-header-inner { box-sizing: border-box; }
.pixel-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.pixel-kicker .gem { color: var(--gold); text-shadow: 0 0 10px rgba(255, 170, 0, 0.35); }
.pixel-header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.pixel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.45;
  margin-bottom: 10px;
  text-shadow: 0 0 24px rgba(162, 0, 255, 0.25);
}
.pixel-tagline { color: var(--text-muted); max-width: 720px; font-size: 14px; line-height: 1.6; }
.pixel-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pixel-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(11, 14, 23, 0.75);
  border: 1px solid var(--border-dark);
  min-width: 96px;
}
.pixel-stat-pill strong {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}
.pixel-stat-pill span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Workspace — sidebar + grid fill remaining viewport width */
.pixel-workspace {
  flex: 1;
  display: flex;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.pixel-layout {
  display: contents;
}

.pixel-sidebar {
  width: var(--pixel-sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  background: rgba(8, 10, 18, 0.88);
  border-right: 1px solid var(--border-dark);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  align-self: stretch;
  position: static;
  border-radius: 0;
}
.pixel-sidebar h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.pixel-block {
  padding: 12px;
  border-radius: 10px;
  background: rgba(5, 5, 12, 0.55);
  border: 1px solid rgba(30, 38, 61, 0.85);
}

.pixel-size-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pixel-size-toggle button[data-zoom="fit"] {
  grid-column: 1 / -1;
}
.pixel-size-toggle button {
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: rgba(5, 5, 12, 0.88);
  color: var(--text-muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pixel-size-toggle button:hover { color: #fff; border-color: rgba(0, 240, 255, 0.35); }
.pixel-size-toggle button.is-active {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.pixel-field label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.pixel-field input,
.pixel-field textarea,
.pixel-field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: rgba(8, 10, 18, 0.95);
  color: #fff;
  font: inherit;
}
.pixel-field input:focus,
.pixel-field textarea:focus {
  border-color: rgba(255, 170, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 170, 0, 0.2);
  outline: none;
}

.pixel-search { position: relative; }
.pixel-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}
.pixel-search input { padding-left: 38px; }

.pixel-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  cursor: pointer;
}
.pixel-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.pixel-dot.available { background: var(--green); box-shadow: 0 0 8px rgba(0, 255, 102, 0.4); }
.pixel-dot.owned { background: var(--purple); box-shadow: 0 0 8px var(--purple-glow); }
.pixel-dot.premium { background: var(--gold); box-shadow: 0 0 8px rgba(255, 170, 0, 0.4); }
.pixel-dot.partner { background: #ff4466; box-shadow: 0 0 8px rgba(255, 68, 102, 0.45); }
.pixel-dot.forsale { background: #00c8ff; box-shadow: 0 0 8px rgba(0, 200, 255, 0.45); }
.pixel-dot.selection { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.pixel-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pixel-filters input { accent-color: var(--cyan); }

.pixel-coords-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}
.pixel-go-btn {
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 0, 0.4);
  background: rgba(255, 170, 0, 0.08);
  color: var(--gold);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.pixel-selection-text { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.pixel-selection-text strong { color: #fff; }

.pixel-price-total {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 0, 234, 0.35);
  margin: 6px 0;
}
.pixel-price-usd { font-size: 13px; color: var(--text-mute); }
.pixel-price-per { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.pixel-price-per strong { color: var(--gold); }

.pixel-validation { font-size: 12px; min-height: 18px; margin-top: 8px; }
.pixel-validation.is-error { color: #ff6b8a; }
.pixel-validation.is-ok { color: var(--green); }

.btn-buy-pixels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(162, 0, 255, 0.95));
  color: #05050c;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-buy-pixels:hover:not(:disabled) { transform: translateY(-1px); }
.btn-buy-pixels:disabled { opacity: 0.4; cursor: not-allowed; }

.pixel-hint {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: center;
}

/* Grid area — fills all space right of sidebar */
.pixel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(5, 5, 12, 0.65);
}
.pixel-grid-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #05050c;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}
#pb-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.pixel-footer-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  min-height: var(--pixel-footer-h);
  border-top: 1px solid var(--border-dark);
  background: rgba(8, 10, 18, 0.92);
  font-size: 12px;
  border-radius: 0;
}
.pixel-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); }
.pixel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pixel-view-controls { display: flex; gap: 8px; align-items: center; }
.pixel-view-controls button {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: rgba(5, 5, 12, 0.88);
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.pixel-view-controls button:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.35);
}
.pixel-zoom-label {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  color: var(--gold);
  min-width: 40px;
  text-align: center;
}

/* Modals */
#pb-modal-root { position: relative; z-index: 500; }
.pb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pb-modal {
  width: min(520px, 100%);
  background: rgba(8, 10, 18, 0.96);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(162, 0, 255, 0.12);
}
.pb-modal-wide { width: min(640px, 100%); }
.pb-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--text-mute);
  font-size: 24px;
  cursor: pointer;
}
.pb-modal-close:hover { color: var(--cyan); }
.pb-modal-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.pb-modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.pb-modal-logo img { width: 100%; height: 100%; object-fit: cover; }
.pb-modal-logo-fallback { font-size: 28px; color: #fff; }
.pb-modal h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.pb-verified { color: var(--purple); }
.pb-modal-link { color: var(--cyan); font-size: 13px; }
.pb-modal-desc { color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; font-size: 14px; }
.pb-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.pb-modal-stats div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(5, 5, 12, 0.55);
  border: 1px solid rgba(30, 38, 61, 0.85);
}
.pb-modal-stats span {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.pb-modal-stats strong { font-family: 'Orbitron', monospace; font-size: 13px; }
.pb-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pb-modal-social { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pb-modal-social a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
}
.pb-btn {
  padding: 11px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.pb-btn-primary {
  border: none;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(162, 0, 255, 0.95));
  color: #05050c;
}
.pb-btn-outline {
  border: 1px solid rgba(162, 0, 255, 0.45);
  background: rgba(162, 0, 255, 0.08);
  color: var(--pink);
}
.pb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.pb-field input {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: rgba(8, 10, 18, 0.95);
  color: #fff;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.pb-pay-intro { color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.pb-pay-grid { display: grid; gap: 8px; margin: 16px 0; }
.pb-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(5, 5, 12, 0.55);
  border: 1px solid rgba(30, 38, 61, 0.85);
  font-size: 13px;
}
.pb-pay-row span { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; }
.pb-pay-row .mono { font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; text-align: right; color: var(--cyan); }
.pb-pay-note { font-size: 12px; color: var(--text-mute); margin-top: 12px; line-height: 1.6; }
.pb-pay-note code { color: var(--gold); font-size: 11px; }
.pb-auth-err { color: #ff6b8a; font-size: 13px; min-height: 18px; }
.pb-auth-switch { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.pb-link { background: none; border: none; color: var(--cyan); cursor: pointer; font: inherit; }

/* Account / admin pages */
.pixel-page { padding: 32px 0 64px; }
.pixel-page h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 12px;
}
.pixel-page-lead { color: var(--text-muted); margin-bottom: 24px; max-width: 640px; line-height: 1.65; }
.pixel-form { display: grid; gap: 14px; max-width: 640px; }
.pixel-save-msg { color: var(--green); font-size: 14px; }
.pixel-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  background: rgba(8, 10, 18, 0.72);
}
.pixel-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pixel-table th,
.pixel-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(30, 38, 61, 0.55);
  text-align: left;
}
.pixel-table th {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(5, 5, 12, 0.5);
}
.pixel-table code { font-size: 11px; color: var(--cyan); }
.pixel-actions { display: flex; gap: 6px; }
.pixel-actions button {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  background: rgba(5, 5, 12, 0.88);
  color: var(--text-muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.pixel-actions button:hover { color: var(--cyan); border-color: rgba(0, 240, 255, 0.35); }
.pixel-dash-pre {
  margin: 16px 0;
  padding: 14px;
  border-radius: 10px;
  background: rgba(5, 5, 12, 0.55);
  border: 1px solid var(--border-dark);
  overflow: auto;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  /* Full page scroll on tablet/phone — not a trapped inner panel */
  body.pixel-board-page {
    display: block;
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow-x: clip;
    overflow-y: auto;
  }
  .pixel-workspace {
    display: block;
    width: 100%;
    overflow: visible;
    min-height: auto;
  }
  .pixel-sidebar {
    width: 100%;
    max-height: none;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .pixel-main {
    display: block;
    width: 100%;
  }
  .pixel-grid-wrap {
    width: 100%;
    /* Square board area = full device width */
    height: 100vw;
    max-height: 80vh;
    min-height: 300px;
    position: relative;
  }
  .pixel-nav-links { display: none; }
}

@media (max-width: 768px) {
  .pixel-header {
    padding: 14px 0 12px;
  }
  .pixel-header-inner { padding: 0 16px; }
  .pixel-header-row { flex-direction: column; gap: 12px; }
  .pixel-stats { width: 100%; }
  .pixel-stat-pill { flex: 1 1 calc(50% - 10px); }
  .pixel-sidebar {
    padding: 12px 16px;
  }
  .pixel-title {
    font-size: clamp(14px, 4.5vw, 18px);
  }
  .pixel-tagline {
    font-size: 13px;
  }
  #pb-canvas {
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .pixel-select-mode-btn {
    width: 100%;
    margin-bottom: 10px;
  }
  .pixel-select-mode-btn.is-active {
    color: var(--cyan);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  }
  .pixel-hint-touch {
    color: var(--cyan);
    opacity: 0.85;
    margin-bottom: 6px;
  }
  .pb-ad-stats { grid-template-columns: 1fr; }
  .pb-ad-link-grid { grid-template-columns: 1fr 1fr; }
  .pb-ad-actions { flex-direction: column; }
}

/* Rich ad popup modal */
.pb-modal-ad {
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: 22px 22px 18px;
}
.pb-ad-header { margin-bottom: 14px; }
.pb-ad-head-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.pb-ad-logo { width: 56px; height: 56px; flex-shrink: 0; }
.pb-ad-head-copy h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 6px;
}
.pb-ad-tagline {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.5;
}
.pb-ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pb-ad-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(139, 155, 180, 0.35);
  color: var(--text-muted);
}
.pb-ad-tag-partner { border-color: rgba(255, 68, 102, 0.45); color: #ff6b8a; }
.pb-ad-tag-premium { border-color: rgba(255, 170, 0, 0.45); color: var(--gold); }
.pb-ad-tag-project { border-color: rgba(0, 240, 255, 0.35); color: var(--cyan); }
.pb-ad-tag-sale { border-color: rgba(0, 200, 255, 0.5); color: #67e8f9; }
.pb-ad-banner {
  width: 100%;
  aspect-ratio: 800 / 280;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(5, 5, 12, 0.6);
}
.pb-ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-ad-banner-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(162, 0, 255, 0.15), rgba(0, 240, 255, 0.1));
  color: rgba(255, 255, 255, 0.25);
  font-size: 28px;
}
.pb-ad-desc { margin-bottom: 14px; }
.pb-ad-desc p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}
.pb-ad-read-more {
  margin-top: 6px;
  border: none;
  background: none;
  color: var(--purple);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.pb-ad-read-more:hover { color: var(--cyan); }
.pb-ad-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.pb-ad-stat {
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(5, 5, 12, 0.55);
  border: 1px solid rgba(30, 38, 61, 0.85);
  text-align: center;
}
.pb-ad-stat-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.pb-ad-stat-label i { margin-right: 4px; color: var(--cyan); opacity: 0.8; }
.pb-ad-stat strong {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  margin-bottom: 2px;
}
.pb-ad-stat small {
  display: block;
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pb-ad-links-section { margin-bottom: 16px; }
.pb-ad-section-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.pb-ad-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pb-ad-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(30, 38, 61, 0.9);
  background: rgba(5, 5, 12, 0.55);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.pb-ad-link-btn:hover {
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
}
.pb-ad-link-btn .pb-ad-ext {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.45;
}
.pb-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pb-ad-actions .pb-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.pb-ad-btn-visit { flex: 1 1 100%; }
.pb-ad-btn-buy {
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
}
.pb-ad-btn-fav {
  border: 1px solid rgba(162, 0, 255, 0.45);
  background: rgba(162, 0, 255, 0.08);
  color: var(--pink);
}
.pb-ad-btn-fav.is-fav { color: #ff6b8a; border-color: rgba(255, 107, 138, 0.5); }
.pb-ad-btn-share {
  border: 1px solid rgba(139, 155, 180, 0.35);
  background: rgba(5, 5, 12, 0.55);
  color: var(--text-muted);
}
.pb-ad-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 38, 61, 0.55);
}
.pb-ad-disclaimer i { color: var(--cyan); opacity: 0.7; }
.pb-ad-resale-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.pb-ad-resale-lead {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Account form sections */
.pixel-form-section {
  padding: 18px 0;
  border-top: 1px solid rgba(30, 38, 61, 0.55);
}
.pixel-form-section:first-of-type { border-top: none; padding-top: 0; }
.pixel-form-heading {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.pixel-form-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: -6px 0 12px;
}
.pixel-field-hint {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: none;
  color: var(--text-mute);
  font-weight: 400;
  margin-top: 2px;
}
.pixel-char-count {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: none;
  color: var(--text-mute);
  text-align: right;
}
.pixel-field-check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: var(--text-muted);
}
.pixel-field-check input { width: auto; }
.pixel-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}
.pixel-form-actions .btn-buy-pixels { max-width: 280px; margin: 0; }

/* Admin panel */
.pixel-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.pixel-admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pixel-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.pixel-admin-stat {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-dark);
  background: rgba(8, 10, 18, 0.72);
}
.pixel-admin-stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.pixel-admin-stat strong {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  color: var(--cyan);
}
.pixel-admin-editor { margin-top: 20px; }
.pixel-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

