:root {
  --bg: #050508;
  --panel: rgba(8, 8, 14, 0.72);
  --text: #f8f6ef;
  --muted: #aaa6b8;
  --line: rgba(255, 255, 255, 0.14);
  --pink: #ff3d9a;
  --cyan: #34d5ff;
  --lime: #d6ff4d;
  --violet: #8b5cf6;
  --amber: #ffc857;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0,0,0,.48);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,61,154,.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(52,213,255,.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 75%); z-index: 1; }
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 58px; padding: 10px clamp(12px, 2vw, 26px); backdrop-filter: blur(18px); background: rgba(5,5,8,.84); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #07070b; box-shadow: 0 0 34px rgba(255,61,154,.36); }
.top-stats { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; color: var(--muted); font-size: 12px; }
.top-stats::-webkit-scrollbar { display: none; }
.top-stats span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.055); padding: 7px 10px; }
.top-stats strong { color: var(--text); }
.nav { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.wallet-button, .primary-action, .secondary-action { border: 1px solid var(--line); border-radius: 999px; color: var(--text); cursor: pointer; background: rgba(255,255,255,.07); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.wallet-button { padding: 9px 14px; }
.wallet-button.connected { border-color: rgba(214,255,77,.7); color: var(--lime); }
.primary-action { display: inline-flex; justify-content: center; padding: 13px 20px; border: 0; color: #08080c; font-weight: 950; background: linear-gradient(135deg, var(--lime), var(--cyan)); box-shadow: 0 14px 45px rgba(52,213,255,.22); }
.secondary-action { display: inline-flex; justify-content: center; padding: 12px 18px; }
.primary-action:hover, .secondary-action:hover, .wallet-button:hover { transform: translateY(-2px); }
.primary-action:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.full { width: 100%; }
.eyebrow { margin: 0 0 9px; color: var(--lime); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 950; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3.3vw, 52px); line-height: .92; letter-spacing: -.065em; }
h2 { font-size: clamp(30px, 4vw, 58px); line-height: .92; letter-spacing: -.06em; margin-bottom: 12px; }
h3 { letter-spacing: -.035em; }
.wall-stage { position: relative; min-height: calc(100vh - 58px); padding: clamp(8px, 1.2vw, 16px); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; overflow: hidden; }
.canvas-wrap { position: relative; height: calc(100vh - 250px); min-height: 520px; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background: rgba(0,0,0,.42); box-shadow: var(--shadow); padding: clamp(7px, .9vw, 12px); overflow: auto; z-index: 2; }
.wall-canvas { --cols: 100; --rows: 100; position: relative; width: min(100%, 1280px); min-width: 760px; height: 100%; min-height: 580px; aspect-ratio: 1 / 1; margin: 0 auto; user-select: none; touch-action: none; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.052), rgba(255,255,255,.018)); overflow: hidden; border-radius: 18px; }
.cell-layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); gap: 1px; z-index: 1; }
.cell { background: rgba(255,255,255,.045); border: 0; padding: 0; min-width: 0; min-height: 0; cursor: crosshair; transition: background .08s ease; }
.cell:hover { background: rgba(214,255,77,.36); }
.region-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.region { position: absolute; border: 1px solid rgba(255,255,255,.78); border-radius: 5px; overflow: hidden; background: linear-gradient(135deg, rgba(52,213,255,.42), rgba(139,92,246,.28)); box-shadow: 0 8px 28px rgba(0,0,0,.34); background-size: cover; background-position: center; }
.region.pending { background: linear-gradient(135deg, rgba(255,200,87,.92), rgba(255,61,154,.72)); }
.region::after { content: none; }
.selection-box { position: absolute; pointer-events: none; border: 2px solid var(--lime); background: rgba(214,255,77,.22); box-shadow: 0 0 0 9999px rgba(0,0,0,.10), 0 0 34px rgba(214,255,77,.55); border-radius: 5px; z-index: 4; }
.wall-controls { position: relative; z-index: 8; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(320px, .72fr); gap: 12px; align-items: stretch; }
.wall-title-card { border: 1px solid var(--line); border-radius: 22px; padding: clamp(14px, 1.4vw, 20px); background: linear-gradient(135deg, rgba(5,5,8,.86), rgba(5,5,8,.58)); backdrop-filter: blur(16px); box-shadow: 0 18px 54px rgba(0,0,0,.30); }
.wall-title-card p:not(.eyebrow) { color: var(--muted); line-height: 1.45; margin-bottom: 0; }
.wall-legend { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 12px; }
.wall-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.wall-legend .available { background: rgba(255,255,255,.16); }
.wall-legend .claimed { background: var(--cyan); }
.wall-legend .pending { background: var(--amber); }
.wall-legend .selected { background: var(--lime); }
.plot-panel { border: 1px solid rgba(255,255,255,.18); background: linear-gradient(180deg, rgba(14,14,22,.82), rgba(8,8,14,.66)); box-shadow: 0 18px 54px rgba(0,0,0,.30); backdrop-filter: blur(18px); border-radius: var(--radius); padding: 16px; }
.plot-panel p { color: var(--muted); line-height: 1.45; }
.plot-meta { margin: 12px 0; display: grid; gap: 7px; }
.plot-meta div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; font-weight: 950; text-align: right; }
.section { padding: clamp(52px, 7vw, 95px) clamp(16px, 4vw, 56px); }
.section-heading { max-width: 920px; margin-bottom: 26px; }
.section-heading p:not(.eyebrow), .split p, .pricing-grid p { color: var(--muted); line-height: 1.6; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.steps, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps article, .pricing-grid article { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); border-radius: var(--radius); padding: 24px; }
.steps span { color: var(--cyan); font-weight: 950; }
.pricing-grid .featured { background: linear-gradient(135deg, rgba(255,61,154,.18), rgba(52,213,255,.12)); border-color: rgba(52,213,255,.45); }
.price { color: var(--text) !important; font-size: 34px; font-weight: 950; letter-spacing: -.05em; }
.claim-modal { width: min(560px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 28px; padding: 0; color: var(--text); background: #101018; box-shadow: var(--shadow); }
.claim-modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.claim-modal form { padding: 28px; display: grid; gap: 14px; position: relative; }
.close-modal { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 32px; cursor: pointer; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text); background: rgba(255,255,255,.07); outline: none; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(52,213,255,.12); }
.payment-box { border: 1px solid rgba(214,255,77,.32); border-radius: 16px; padding: 13px 14px; background: rgba(214,255,77,.075); color: var(--muted); }
.payment-box p { margin: 0 0 8px; line-height: 1.35; }
.payment-box p:last-child { margin-bottom: 0; }
.payment-box strong { color: var(--text); }
.payment-box code { display: block; overflow-wrap: anywhere; color: var(--lime); font-size: 12px; line-height: 1.35; }
.region[href] { pointer-events: auto; }
.form-status { min-height: 20px; color: var(--lime); font-size: 14px; }
.site-footer { padding: 30px clamp(16px, 4vw, 56px); color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; }
  .top-stats { grid-column: 1 / -1; justify-content: flex-start; order: 3; }
  .nav { justify-content: flex-end; }
  .canvas-wrap { height: calc(100vh - 286px); }
  .wall-controls { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .split, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .nav a { display: none; }
  .wall-canvas { min-width: 650px; }
  .wall-controls { grid-template-columns: 1fr; }
  .canvas-wrap { height: 62vh; min-height: 480px; }
}
@media (max-width: 640px) {
  .site-header { gap: 10px; }
  .brand span:last-child { display: none; }
  .wall-title-card h1 { font-size: 30px; }
  .wall-canvas { min-width: 600px; }
}

.admin-section { padding-top: 34px; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--lime); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.admin-table code { color: var(--cyan); overflow-wrap: anywhere; }
.wallet-logout { color: var(--muted); }
