:root { --cobalt: #1f3bff; --cobalt-deep: #0a12a8; --ink: #04061f; --lime: #c6ff2e; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: var(--ink); color: #fff; font-family: "Space Grotesk", system-ui, sans-serif; min-height: 100vh; overflow-x: hidden; }
.display { font-family: "Archivo Black", system-ui, sans-serif; font-weight: 900; }
a { color: var(--lime); }

.marquee { background: var(--lime); color: #000; overflow: hidden; white-space: nowrap; border-bottom: 3px solid #000; transform: rotate(-1.2deg) scale(1.02); position: relative; z-index: 5; }
.marquee-inner { display: inline-block; padding: 10px 0; font-family: "Archivo Black", sans-serif; font-size: 0.85rem; letter-spacing: 0.08em; animation: scroll 22s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero { background: radial-gradient(120% 90% at 50% 0%, var(--cobalt) 0%, var(--cobalt-deep) 55%, var(--ink) 100%); padding: 34px 0 44px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }
.wordmark { font-size: clamp(3rem, 13vw, 5.4rem); line-height: 0.95; letter-spacing: -0.02em; text-transform: lowercase; color: #fff; text-shadow: 4px 4px 0 rgba(198,255,46,0.9); }
.wordmark .dot { color: var(--lime); text-shadow: none; }
.tag { margin-top: 12px; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 16px 22px; border-radius: 14px; border: none; font-family: "Archivo Black", sans-serif; font-size: 0.95rem; text-transform: uppercase; cursor: pointer; text-decoration: none; text-align: center; }
.btn-lime { background: var(--lime); color: #000; box-shadow: 0 6px 0 #79a500; }
.btn-lime:active { transform: translateY(4px); box-shadow: 0 2px 0 #79a500; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.stats { margin-top: 22px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 6px; border-bottom: 2px solid rgba(255,255,255,0.15); padding-bottom: 10px; }
.section-title { font-family: "Archivo Black", sans-serif; font-size: 1.1rem; text-transform: uppercase; }
.section-sub { font-size: 0.7rem; color: var(--lime); letter-spacing: 0.2em; text-transform: uppercase; }

.card { display: block; text-decoration: none; color: #fff; margin: 22px 0; border: 2px solid rgba(255,255,255,0.14); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.03); transition: border-color 0.15s ease; }
.card:active { border-color: var(--lime); }
.card-photo-wrap { position: relative; aspect-ratio: 4/3; background: #0d1330; overflow: hidden; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-sticker { position: absolute; top: 14px; right: 14px; background: var(--lime); color: #000; font-family: "Archivo Black", sans-serif; font-size: 1.15rem; padding: 8px 14px; border-radius: 10px; transform: rotate(3deg); box-shadow: 0 4px 0 rgba(0,0,0,0.4); }
.card-body { padding: 18px; }
.card-label { font-family: "Archivo Black", sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.card-story { margin-top: 10px; font-size: 1.08rem; line-height: 1.55; color: rgba(255,255,255,0.92); }
.card-story::before { content: "\201C"; color: var(--lime); font-family: "Archivo Black", sans-serif; }
.card-meta { margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.card-meta b { color: var(--lime); font-weight: 600; }

.empty { margin: 50px 0; text-align: center; padding: 40px 20px; border: 2px dashed rgba(198,255,46,0.4); border-radius: 18px; }
.empty .big { font-family: "Archivo Black", sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.empty p { margin-top: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.footer { margin: 50px 0 40px; text-align: center; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

/* listing page */
.listing-wrap { max-width: 680px; margin: 0 auto; padding: 22px 18px 70px; }
.crumb { display: inline-block; margin-bottom: 16px; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; }
.posted-banner { margin: 6px 0 16px; padding: 14px; background: var(--lime); color: #000; font-family: "Archivo Black", sans-serif; text-transform: uppercase; border-radius: 12px; text-align: center; }
.listing-photo-wrap { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,0.15); }
.listing-photo { width: 100%; display: block; max-height: 70vh; object-fit: cover; }
.listing-label { margin-top: 18px; font-size: clamp(1.6rem, 7vw, 2.4rem); text-transform: uppercase; line-height: 1.05; }
.listing-meta { margin-top: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.listing-meta b { color: var(--lime); }
.story-card { margin-top: 22px; padding: 20px; border: 2px solid var(--cobalt); border-radius: 16px; background: rgba(31,59,255,0.12); }
.story-tag, .contact-tag { font-family: "Archivo Black", sans-serif; font-size: 0.75rem; letter-spacing: 0.25em; color: var(--lime); text-transform: uppercase; }
.story-tag .req { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--lime); border-radius: 999px; font-size: 0.6rem; }
.story-text { margin-top: 12px; font-size: 1.35rem; line-height: 1.55; color: #fff; }
.contact-card { margin-top: 18px; padding: 20px; border: 2px solid rgba(255,255,255,0.15); border-radius: 16px; }
.contact-card p { margin-top: 10px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.contact-value { margin-top: 12px; font-family: "Archivo Black", sans-serif; font-size: 1.15rem; color: var(--lime); word-break: break-all; }
.listing-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.listing-actions .btn { width: 100%; }

/* sell form */
.form-wrap { max-width: 640px; margin: 0 auto; padding: 26px 18px 80px; }
.form-title { font-size: clamp(1.8rem, 8vw, 2.6rem); text-transform: uppercase; line-height: 1.05; }
.form-sub { margin: 12px 0 26px; color: rgba(255,255,255,0.7); line-height: 1.55; }
label { display: block; margin: 22px 0 8px; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
label .req { color: var(--lime); }
input[type=text], input[type=number], input[type=email], textarea {
  width: 100%; padding: 16px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--lime); }
textarea { min-height: 150px; line-height: 1.5; resize: vertical; }
.hint { margin-top: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.45; }
.hint b { color: var(--lime); font-weight: 600; }
.photo-input { width: 100%; padding: 30px; border: 2px dashed rgba(198,255,46,0.5); border-radius: 16px; text-align: center; cursor: pointer; color: rgba(255,255,255,0.7); }
.photo-preview { margin-top: 12px; width: 100%; border-radius: 12px; display: none; }
.price-row { display: flex; gap: 10px; align-items: center; }
.price-row input { flex: 1; }
.free-toggle { padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.25); background: transparent; color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; cursor: pointer; white-space: nowrap; }
.free-toggle.on { background: var(--lime); color: #000; border-color: var(--lime); }
.story-count { text-align: right; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
.story-count.good { color: var(--lime); }
.submit-btn { margin-top: 30px; width: 100%; padding: 20px; background: var(--lime); color: #000; border: none; border-radius: 16px; font-family: "Archivo Black", sans-serif; font-size: 1.15rem; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 0 #79a500; }
.submit-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #79a500; }
.submit-btn[disabled] { opacity: 0.6; }
.form-note { margin-top: 14px; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.test-ribbon { display: inline-block; margin-top: 10px; padding: 4px 10px; border: 1.5px dashed var(--lime); color: var(--lime); border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.form-error { margin-top: 14px; padding: 12px; border: 2px solid #ff5470; color: #ff8aa0; border-radius: 12px; font-size: 0.9rem; display: none; }
.char-count { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* admin */
.admin-row { display: flex; gap: 12px; align-items: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 12px; margin: 10px 0; font-size: 0.85rem; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .lbl { font-weight: 700; }
.admin-row .meta { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.admin-row button { padding: 8px 14px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; }
.admin-row button.rm { background: #ff5470; color: #000; }
.admin-row button.rs { background: var(--lime); color: #000; }
.status-pill { font-size: 0.65rem; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.1em; }
.status-live { background: rgba(198,255,46,0.2); color: var(--lime); }
.status-removed { background: rgba(255,84,112,0.2); color: #ff8aa0; }
.status-pending_payment { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }

/* chat */
.chat-name, .chat-input { width: 100%; background: #0a0f2e; border: 1px solid #2a3577; color: #fff; border-radius: 10px; padding: 12px 14px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; margin-top: 10px; box-sizing: border-box; }
textarea.chat-input { min-height: 70px; resize: vertical; }
#chatStart .btn { margin-top: 10px; }
.chat-msgs { max-height: 320px; overflow-y: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.35; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: #c6ff2e; color: #04061f; border-bottom-right-radius: 4px; font-weight: 600; }
.bubble.theirs { align-self: flex-start; background: #182060; color: #fff; border-bottom-left-radius: 4px; }
.chat-send-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.chat-send-row .chat-input { margin-top: 0; flex: 1; }
.chat-send-row .btn { white-space: nowrap; }
.thread-row { display: block; width: 100%; text-align: left; background: #0a0f2e; border: 1px solid #2a3577; color: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 8px; cursor: pointer; font-family: 'Space Grotesk', sans-serif; }
.thread-row span { color: #9aa6e8; font-size: 13px; }
.manage-card { background: #0d1338; border: 1px solid #2a3577; border-radius: 14px; padding: 16px; margin-top: 18px; }
.manage-hint { color: #9aa6e8; font-size: 13px; }
#cancelMsg, #chatMsgLine { margin-top: 8px; font-size: 14px; color: #c6ff2e; }

/* brand */
.brand-row { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.brand-mark { width: 92px; height: auto; display: block; }
@media (max-width: 480px) { .brand-mark { width: 72px; } }

/* floating X share chip */
.x-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: rgba(4,6,31,0.92); color: #fff; border: 2px solid var(--lime); border-radius: 999px; padding: 10px 16px; font-family: "Archivo Black", sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.x-fab svg { width: 15px; height: 15px; fill: var(--lime); }
.x-fab:active { transform: scale(0.95); }


/* prominent secondary share button (listing pages) */
.share-x-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 4px; padding: 15px 22px; border-radius: 14px; border: 2px solid var(--lime); background: rgba(4,6,31,0.85); color: var(--lime); font-family: "Archivo Black", sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 0 rgba(121,165,0,0.35); }
.share-x-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(121,165,0,0.35); }
@media (min-width: 720px) { .share-x-btn { max-width: 420px; margin-left: auto; margin-right: auto; } }

/* featured spot */
.card.featured { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(198,255,46,0.25); }
.featured-tag { position: absolute; top: 14px; left: 14px; background: var(--cobalt); color: #fff; border: 2px solid var(--lime); font-family: "Archivo Black", sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; padding: 7px 12px; border-radius: 8px; transform: rotate(-2deg); }
.featured-card p { margin: 6px 0 12px; }
#featuredMsg { margin-top: 10px; font-size: 0.85rem; color: var(--lime); }
