body {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.element {
  position: absolute;
  cursor: move;
  z-index: 2;
  box-sizing: border-box;
  user-select: none;
}

.background {
  z-index: -1;
}

.context-menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu ul li {
  padding: 8px 12px;
  cursor: pointer;
}

.context-menu ul li:hover {
  background: #f0f0f0;
}

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  right: -7px;
  bottom: -7px;
  background: #007bff;
  cursor: se-resize;
  border-radius: 50%;
  display: none;
}

.resize-mode .resize-handle,
.element.resizing-active .resize-handle {
  display: block;
}

.element.resizing-active {
  outline: 2px dashed #007bff;
  outline-offset: 2px;
}

#layout {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

.zone-bar {
  display: flex;
  width: 100%;
  height: 120px;
  flex: 0 0 120px;
}

#main-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Side zone — uses position: relative + absolute child to bulletproof centering */
.zone-side {
  width: 280px;
  flex: 0 0 280px;
  box-sizing: border-box;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#board {
  flex: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
}

.zone-bar > .zone-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.zone-side > .zone-item {
  display: block;
  width: 240px;
  height: 240px;
  min-width: 240px;
  min-height: 240px;
  flex: 0 0 240px;
  max-width: 100%;
  overflow: hidden;
}

/* Editor-only layout aids: a faint outline on side zones so the empty area
   is visible while editing, plus a visible empty-slot marker. */
body.editor-mode .zone-side {
  outline: 1px dashed rgba(255, 255, 255, 0.18);
  outline-offset: -8px;
}

body.editor-mode .zone-item-empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

/* The image / video MUST own its own box. Some sites apply a global `img { ... }`
   reset that can collapse the asset; reset that here. */
.zone-side > .zone-item > img,
.zone-side > .zone-item > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  margin: 0;
  padding: 0;
}

.zone-item img,
.zone-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Dashboard styles ===== */
.dashboard {
  font-family: 'Roboto', sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
  color: #1a1a1a;
}

.dashboard h1 {
  margin: 0 0 8px;
}

.dashboard p.subtitle {
  margin: 0 0 32px;
  color: #555;
}

.dashboard .menu-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  margin-bottom: 12px;
}

.dashboard .menu-card .meta {
  flex: 1;
  min-width: 0;
}

.dashboard .menu-card .name {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 2px;
}

.dashboard .menu-card .slug {
  font-size: 13px;
  color: #777;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.dashboard .menu-card a,
.dashboard .menu-card button {
  font: inherit;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

.dashboard .menu-card a.admin {
  background: #007bff;
  color: white;
}

.dashboard .menu-card a.view {
  background: #28a745;
  color: white;
}

.dashboard .menu-card button.delete {
  background: white;
  color: #c62828;
  border-color: #ddd;
}

.dashboard .menu-card button.delete:hover {
  background: #c62828;
  color: white;
}

.dashboard form.create {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

.dashboard form.create input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
}

.dashboard form.create button {
  padding: 8px 18px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

body.dashboard-page {
  background: #f4f4f6;
  overflow: auto;
  height: auto;
}

/* ===== Dashboard header / sections ===== */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  font-size: 28px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.brand-sub {
  margin: 0 0 24px;
  color: #555;
  text-align: center;
}

.dash-userbar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.dash-userbar button {
  font: inherit;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.dash-userbar button:hover { background: #f4f4f6; }

.dash-section {
  margin-bottom: 40px;
}

.dash-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.muted { color: #888; }
.small { font-size: 13px; }

/* ===== Advert zone blocks ===== */
.zone-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.zone-block {
  background: white;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 16px;
}

.zone-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: capitalize;
}

.zone-block .count {
  color: #888;
  font-weight: normal;
  font-size: 13px;
}

.ad-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ad-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #fafafa;
  border-radius: 6px;
}

.ad-thumb {
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.ad-thumb img,
.ad-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-meta { min-width: 0; }
.ad-name {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-date {
  margin: 2px 0 0;
  font-size: 12px;
  color: #777;
}

.ad-actions {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.ad-actions button {
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}
.ad-actions .delete:hover { background: #c62828; color: white; border-color: #c62828; }

/* ===== Advert form (multi-input) ===== */
form.create #ad-zone,
form.create #ad-file {
  flex: 0 0 auto;
}

form.create #ad-file {
  padding: 6px;
}

/* ===== Users / admins ===== */
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.user-card .meta { flex: 1; min-width: 0; }
.user-card .name { margin: 0; font-weight: 500; }
.user-card .role {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #eef;
  color: #335;
  margin-right: 6px;
  text-transform: uppercase;
}
.user-card .perms {
  font-size: 12px;
  color: #777;
}
.user-card button {
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}
.user-card button.delete:hover { background: #c62828; color: white; border-color: #c62828; }

form.create-user {
  flex-wrap: wrap;
}
form.create-user .perms {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #555;
}
form.create-user .perms label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ===== Login page ===== */
.login-shell {
  max-width: 360px;
  margin: 80px auto 0;
  padding: 32px;
  background: white;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  font-family: 'Roboto', sans-serif;
}
.login-shell .brand { text-align: center; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #555;
}

.login-form input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.login-form button {
  font: inherit;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
}

.login-form .error {
  margin: 0;
  color: #c62828;
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.btn-ghost {
  font: inherit;
  padding: 4px 10px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
}
.btn-ghost:hover { background: #f4f4f6; }

/* ===== Coin stats per menu ===== */
.coin-stats {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.coin-stats > div {
  display: flex;
  flex-direction: column;
  min-width: 56px;
}
.coin-stats .label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}
.coin-stats .value {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

/* ===========================================================================
   DARK NEON ARCADE THEME — applies to dashboard + login pages only
   (the editor/public-display surfaces stay neutral)
   =========================================================================== */

body.dashboard-page {
  background: #07071a;
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 0, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(0, 240, 255, 0.10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: #e6e6f0;
  font-family: 'Roboto', sans-serif;
  overflow: auto;
  height: auto;
  min-height: 100vh;
}

.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 22px 80px;
  color: #e6e6f0;
}

.dashboard h1, .dashboard h2, .dashboard h3 { color: #fff; }
.dashboard p.subtitle, .subtitle { color: #8a8aa6; }
.dashboard .muted, .muted { color: #6e6e88; }

.brand {
  font-family: 'Orbitron', 'Roboto', sans-serif;
  font-size: 34px;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  color: #ff00d4;
  text-shadow:
    0 0 4px #ff00d4,
    0 0 14px rgba(255, 0, 212, 0.55),
    0 0 30px rgba(255, 0, 212, 0.25);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.dash-userbar { color: #8a8aa6; }
.dash-userbar #who { font-family: 'VT323', monospace; font-size: 16px; color: #00ff88; }

.dash-userbar button {
  background: transparent;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.5);
  transition: all 0.15s ease;
}
.dash-userbar button:hover {
  background: rgba(0, 240, 255, 0.10);
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

.dash-section { margin-bottom: 44px; }

.dash-section h2,
.section-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.20);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { margin-bottom: 0; padding-bottom: 6px; flex: 1; }

.btn-ghost {
  font: inherit;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.10);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

/* === Menu cards === */
.dashboard .menu-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px 18px 26px;
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.85), rgba(15, 15, 30, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.dashboard .menu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #ff00d4, #00f0ff);
  box-shadow: 0 0 10px rgba(255, 0, 212, 0.6);
}

.dashboard .menu-card .meta { flex: 1; min-width: 220px; }

.dashboard .menu-card .name {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: 0.02em;
}

.dashboard .menu-card .slug {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.dashboard .menu-card a,
.dashboard .menu-card button {
  font: inherit;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.15s ease;
}
.dashboard .menu-card a.admin {
  border-color: #00f0ff; color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}
.dashboard .menu-card a.admin:hover {
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}
.dashboard .menu-card a.view {
  border-color: #00ff88; color: #00ff88;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}
.dashboard .menu-card a.view:hover {
  background: rgba(0, 255, 136, 0.14);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
}
.dashboard .menu-card button.delete {
  border-color: #ff3060; color: #ff3060;
  background: transparent;
}
.dashboard .menu-card button.delete:hover {
  background: #ff3060; color: #fff;
  box-shadow: 0 0 14px rgba(255, 48, 96, 0.55);
}

/* === Coin stats — neon green digital readout === */
.coin-stats {
  display: flex;
  gap: 22px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.coin-stats > div {
  display: flex;
  flex-direction: column;
  min-width: 64px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 4px;
}
.coin-stats .label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e8a76;
}
.coin-stats .value {
  font-family: 'VT323', 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.55);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* === Forms (create menu / advert / admin) === */
.dashboard form.create {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  background: rgba(20, 20, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.dashboard form.create input,
.dashboard form.create select {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: #e6e6f0;
  font: inherit;
}
.dashboard form.create input:focus,
.dashboard form.create select:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}
.dashboard form.create input::placeholder { color: #4a4a6a; }
.dashboard form.create button {
  padding: 10px 22px;
  background: transparent;
  color: #ff00d4;
  border: 1px solid #ff00d4;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(255, 0, 212, 0.55);
  transition: all 0.15s ease;
}
.dashboard form.create button:hover {
  background: rgba(255, 0, 212, 0.14);
  box-shadow: 0 0 16px rgba(255, 0, 212, 0.5);
}

/* Permission checklist */
form.create-user .perms {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #b0b0d0;
  border: 0;
  margin: 0;
  padding: 0;
}
form.create-user .perms label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
form.create-user .perms input[type="checkbox"] { accent-color: #00f0ff; }

/* === Advert zone blocks === */
.zone-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.zone-block {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.75), rgba(12, 12, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px;
}
.zone-block h3 {
  font-family: 'Orbitron', sans-serif;
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ff00d4;
  text-shadow: 0 0 6px rgba(255, 0, 212, 0.45);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 0, 212, 0.18);
}
.zone-block .count { color: #6e6e88; font-weight: normal; font-size: 12px; }

.ad-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.ad-thumb {
  width: 64px; height: 64px;
  background: #000;
  border: 1px solid rgba(0, 240, 255, 0.20);
  border-radius: 4px;
  overflow: hidden;
}
.ad-name { color: #fff; font-weight: 500; margin: 0; }
.ad-date { color: #6e6e88; font-size: 11px; margin-top: 2px; }
.ad-actions { display: flex; flex-direction: column; gap: 4px; }
.ad-actions button {
  font: inherit;
  font-size: 10px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #b0b0d0;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ad-actions button.edit:hover { border-color: #00f0ff; color: #00f0ff; }
.ad-actions button.delete:hover {
  border-color: #ff3060; color: #ff3060;
  background: rgba(255, 48, 96, 0.10);
}

/* === User cards === */
.user-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.75), rgba(12, 12, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 10px;
}
.user-card .meta { flex: 1; min-width: 200px; }
.user-card .name {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  color: #fff;
  font-size: 16px;
}
.user-card .role {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 240, 255, 0.14);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  text-transform: uppercase;
  margin-right: 8px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.4);
}
.user-card .perms { color: #8a8aa6; font-size: 12px; }
.user-card button {
  font: inherit;
  font-size: 11px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #b0b0d0;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.user-card button:hover { border-color: #00f0ff; color: #00f0ff; }
.user-card button.delete:hover {
  border-color: #ff3060; color: #ff3060;
  background: rgba(255, 48, 96, 0.10);
}

/* === Login shell === */
.login-shell {
  max-width: 380px;
  margin: 100px auto 0;
  padding: 38px 32px 32px;
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(8, 8, 22, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.18),
    0 0 60px rgba(255, 0, 212, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: 'Roboto', sans-serif;
}
.login-shell .brand { text-align: center; margin: 0 0 6px; }
.login-shell .brand-sub { text-align: center; color: #8a8aa6; margin: 0 0 28px; }
.login-form label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a8aa6;
}
.login-form input {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #e6e6f0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
}
.login-form input:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.login-form button {
  background: transparent;
  color: #ff00d4;
  border: 1px solid #ff00d4;
  padding: 13px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  text-shadow: 0 0 6px rgba(255, 0, 212, 0.55);
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.login-form button:hover {
  background: rgba(255, 0, 212, 0.14);
  box-shadow: 0 0 16px rgba(255, 0, 212, 0.5);
}
.login-form .error { color: #ff3060; text-shadow: 0 0 6px rgba(255, 48, 96, 0.4); }

/* ===========================================================================
   MOBILE
   =========================================================================== */
@media (max-width: 720px) {
  .dashboard { padding: 22px 14px 80px; }

  .dash-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .dash-userbar { justify-content: space-between; }
  .brand { font-size: 26px; }

  .dashboard .menu-card,
  .user-card {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard .menu-card .meta,
  .user-card .meta { width: 100%; min-width: 0; }
  .dashboard .menu-card a,
  .dashboard .menu-card button,
  .user-card button {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .coin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .coin-stats > div { min-width: 0; }

  .dashboard form.create { flex-direction: column; }
  .dashboard form.create input,
  .dashboard form.create select,
  .dashboard form.create button {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
  form.create-user .perms label { flex: 1 0 calc(50% - 8px); }

  .zone-blocks { grid-template-columns: 1fr; }

  .ad-card { grid-template-columns: 50px 1fr auto; gap: 10px; font-size: 13px; }
  .ad-thumb { width: 50px; height: 50px; }
  .ad-actions button { font-size: 10px; padding: 4px 8px; }

  .login-shell {
    margin: 32px 14px 32px;
    padding: 28px 22px 24px;
  }
}
