:root {
  /* TourStubs — Digital Stub Mint palette (see brand guide §6/§13).
     Dark obsidian/charcoal base with Digital Teal + Electric Violet neon. */
  --bg: #050608;        /* Obsidian Black — app world */
  --panel: #0b0d10;     /* Deep Charcoal — surfaces */
  --panel-2: #121722;   /* Layered panel */
  --line: #202631;      /* Graphite hairlines, borders */
  --text: #f7f8fa;      /* Stub White */
  --muted: #727a86;     /* Muted Steel — secondary text */
  --accent: #00f3d1;    /* Digital Teal — primary neon accent */
  --accent-2: #8a5cff;  /* Electric Violet — secondary neon accent */
  --signal: #ff2d55;    /* Signal Red — alerts, rare accents */
  --glow-teal: 0 0 24px rgba(0, 243, 209, 0.22);
  --glow-violet: 0 0 24px rgba(138, 92, 255, 0.22);
  /* Glassmorphism: frosted translucent surfaces with a faint lit top edge. */
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022));
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 34px rgba(0, 0, 0, 0.42);
  --blur: blur(18px) saturate(135%);
  /* Holographic silver/iridescent sweep (brand guide §6) for premium marks. */
  --holo: linear-gradient(115deg, #edeff2 0%, #b58cff 22%, #f7f8fa 42%, #00f3d1 62%, #d6d9de 78%, #ffedf5 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* The root element's background paints the whole viewport, so short pages stay
   dark without forcing the body to a full 100vh (which left a large empty
   scroll area below the content, especially on iOS). */
html {
  /* Digital Stub Mint "app world": deep obsidian with soft teal/violet glow.
     Fixed to the viewport so it stays put behind scrolling content. */
  background:
    radial-gradient(circle at 28% 12%, rgba(138, 92, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(0, 243, 209, 0.13), transparent 38%),
    var(--bg);
  background-attachment: fixed;
}
body {
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent); }
img, video, svg { max-width: 100%; }

.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(5,6,8,0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 14px;
}
.topbar nav a .nav-ic { width: 22px; height: 22px; object-fit: contain; display: block; opacity: 0.85; transition: opacity 0.12s, filter 0.12s; }
.topbar nav a:hover .nav-ic, .topbar nav a.active .nav-ic { opacity: 1; }
.topbar nav a.active .nav-ic { filter: drop-shadow(0 0 6px rgba(0, 243, 209, 0.55)); }
.topbar nav a.active, .topbar nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.topbar nav a.active { color: var(--accent); background: rgba(0, 243, 209, 0.10); box-shadow: inset 0 0 0 1px rgba(0, 243, 209, 0.25); }
.profile-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 99px; padding: 6px 13px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.profile-chip .chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chip:hover { border-color: var(--accent); box-shadow: var(--glow-teal); }
/* Hide the chip until JS fills it in, so an empty pill doesn't flash on load. */
.profile-chip:empty { display: none; }

main#view { max-width: 1060px; margin: 0 auto; padding: 28px 20px 48px; }

h2.page-title { font-size: 26px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
p.page-sub { color: var(--muted); margin: 0 0 24px; }

.btn {
  position: relative; display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #050608; font-weight: 800; font-size: 14px; letter-spacing: 0.04em;
  padding: 10px 18px; border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px rgba(0, 243, 209, 0.18);
}
/* glassy iridescent sheen across the top half */
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%);
}
.btn:hover { filter: brightness(1.06); box-shadow: var(--glow-teal), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn.ghost {
  background: var(--glass); color: var(--text); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: none;
}
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: var(--accent); filter: none; box-shadow: var(--glow-teal); }
.btn.danger { color: var(--signal); border-color: rgba(255, 45, 85, 0.5); }
.btn.danger:hover { border-color: var(--signal); filter: none; box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---- stats strip ---- */
.stats { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; justify-content: center; }
.stat {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 14px 20px; min-width: 130px; box-shadow: var(--glass-shadow); text-align: center;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.stat b { display: block; font-size: 26px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 13px; }
.stat-memories { border-color: rgba(0,243,209,.4); background: linear-gradient(120deg, rgba(0,243,209,.14), rgba(138,92,255,.14)); }
.stat-memories span { color: var(--text); }

/* ---- badge wall ---- */
/* ---- stubs tab: toggles, mint reminder, upcoming/planned stubs ---- */
.wall-subtabs { justify-content: center; margin: 4px auto 18px; }
.planned-wrap { max-width: 640px; margin: 0 auto; } /* center the upcoming column on desktop */
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  margin-left: 7px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 800;
  background: var(--accent); color: #04110e;
}
.mint-reminder {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--text);
  background: linear-gradient(120deg, rgba(0,243,209,.14), rgba(138,92,255,.14));
  border: 1px solid rgba(0,243,209,.4);
}
.mint-reminder:hover { border-color: var(--accent); }
.mint-reminder .ico { width: 22px; height: 22px; flex: none; }
.mint-nudge {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px;
  font-size: 14px; color: var(--text); background: linear-gradient(120deg, rgba(0,243,209,.14), rgba(138,92,255,.14));
  border: 1px solid rgba(0,243,209,.4);
}
.mint-nudge .ico { width: 22px; height: 22px; flex: none; }

.planned-list { display: flex; flex-direction: column; gap: 12px; }
.planned-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.planned-card.ready { border-color: rgba(0,243,209,.5); box-shadow: inset 0 0 0 1px rgba(0,243,209,.2); }
.planned-info { flex: 1; min-width: 0; }
.planned-info h3 { margin: 0 0 2px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planned-info p { margin: 0 0 6px; font-size: 13px; }
.planned-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.planned-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.planned-meta .ico { width: 14px; height: 14px; }
.planned-when { font-weight: 700; }
.planned-when.ready { color: var(--accent); }
.planned-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.planned-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.planned-actions .btn .ico { width: 16px; height: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-border); cursor: pointer;
}
.icon-btn:hover { border-color: var(--signal); }
.icon-btn .ico { width: 18px; height: 18px; }
.ev-add-stub { width: 100%; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ev-add-stub .ico { width: 18px; height: 18px; }
.planned-card { cursor: pointer; }
.planned-mint { display: inline-flex; align-items: center; gap: 6px; }
.planned-mint.locked { opacity: .85; cursor: default; }
.planned-media { display: inline-flex; align-items: center; gap: 5px; }
.planned-media .ico { width: 14px; height: 14px; }

/* memories library */
.mem-tabs { justify-content: center; margin: 0 auto 22px; }
.mem-groups { display: flex; flex-direction: column; gap: 28px; }
.mem-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; background: none; border: none; cursor: pointer; padding: 0 2px 10px;
  border-bottom: 1px solid var(--line);
}
.mem-head:hover b { color: var(--accent); }
.mem-head-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mem-head-main b { font-size: 16px; }
.mem-head-sub { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-count { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; flex: none; }
.mem-count .ico { width: 16px; height: 16px; }
.mem-grid { margin-top: 12px; }
@media (max-width: 560px) {
  .planned-card { flex-wrap: wrap; }
  .planned-actions { width: 100%; }
  .planned-actions .btn { flex: 1; }
}

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.stub-card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 14px; cursor: pointer; transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  text-align: left; color: inherit; font: inherit; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
/* holographic hairline that lights up on hover */
.stub-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--holo); opacity: 0; transition: opacity 0.16s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.stub-card:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: var(--glass-shadow), var(--glow-violet); }
.stub-card:hover::before { opacity: 0.9; }
.stub-card .stub-img svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.stub-card h3 { margin: 10px 4px 2px; font-size: 16px; }
.stub-card p { margin: 0 4px; color: var(--muted); font-size: 13px; }
.stub-card .badge-row { display: flex; gap: 8px; margin: 8px 4px 0; color: var(--muted); font-size: 12px; }

.empty {
  border: 2px dashed var(--line); border-radius: 18px; padding: 60px 30px; text-align: center; color: var(--muted);
}
.empty .big { font-size: 44px; }

/* ---- forms ---- */
form.panel, .panel {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 22px;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; background: rgba(5, 6, 8, 0.5); color: var(--text);
  border: 1px solid var(--glass-border); border-radius: 10px; padding: 10px 12px; font-family: inherit;
  font-size: 16px; /* ≥16px stops iOS Safari from zooming in on focus */
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-teal); }
/* date inputs have a large intrinsic min-width on iOS/WebKit that can
   overflow the grid cell — normalize them so they respect the column */
input { min-width: 0; }
input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; max-width: 100%; min-height: 46px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid > label { min-width: 0; }
.log-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.preview-box { position: sticky; top: 80px; }
.preview-box .hint { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.preview-box svg { width: 100%; height: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.5)); }
@media (max-width: 860px) { .log-layout { grid-template-columns: 1fr; } .preview-box { position: static; } }

/* ---- show detail ---- */
.show-hero svg { width: 100%; height: auto; filter: drop-shadow(0 16px 34px rgba(0,0,0,0.55)); }
.show-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 30px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.gallery .tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.tile-open { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.gallery .tile img, .gallery .tile video { width: 100%; height: 150px; object-fit: cover; display: block; }
.tile-video { position: relative; display: block; }
.tile-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); pointer-events: none;
}
.gallery .tile .del {
  position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.65); color: #fff;
  border: none; border-radius: 8px; cursor: pointer; padding: 3px 8px; font-size: 12px; z-index: 2;
}

/* ---- full-screen media carousel (lightbox) ---- */
.media-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.94); display: flex; }
.mc-card { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; }
.mc-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 14px 120px; }
.mc-media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.mc-close {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; font-size: 18px;
  background: rgba(255,255,255,0.14); color: #fff;
}
.mc-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.mc-nav:hover, .mc-close:hover { background: rgba(255,255,255,0.28); }
.mc-prev { left: 10px; }
.mc-next { right: 10px; }
.mc-counter { position: fixed; left: 0; right: 0; bottom: calc(86px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 1px; }
/* filmstrip of thumbnails for quick jumping */
.mc-strip {
  position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2;
  display: flex; gap: 8px; justify-content: flex-start; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 14px; scrollbar-width: none;
}
.mc-strip::-webkit-scrollbar { display: none; }
.mc-thumb {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: rgba(255,255,255,0.08); opacity: 0.5; transition: opacity 0.12s, border-color 0.12s;
}
.mc-thumb.on { border-color: var(--accent); opacity: 1; }
.mc-thumb img, .mc-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-thumb .tile-video, .mc-thumb .tile-video video { width: 100%; height: 100%; }
.mc-thumb .tile-play { font-size: 15px; }
/* center the strip when it doesn't overflow */
@media (min-width: 480px) { .mc-strip { justify-content: center; } }

/* community event-modal media tiles */
.em-tile { display: block; padding: 0; border: none; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer;
}
.dropzone.drag, .dropzone:hover { border-color: var(--accent); color: var(--text); }

/* ---- feed ---- */
.feed { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
/* Infinite-scroll loader: present while more pages can load, removed at the end. */
.scroll-sentinel { height: 44px; display: flex; align-items: center; justify-content: center; }
.scroll-sentinel::after { content: "•••"; color: var(--muted); letter-spacing: 5px; font-size: 18px; animation: sentinel-pulse 1.2s ease-in-out infinite; }
@keyframes sentinel-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }
.post {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  animation: post-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes post-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.clickable { cursor: pointer; }
/* Show metadata footer — a clean, uncluttered band beneath the night's media. */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 12px 16px 2px; margin-top: 10px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.post-meta-tag {
  display: inline-flex; align-items: center; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-meta-tag.link {
  color: var(--muted); text-decoration: none; cursor: pointer;
  border-radius: 6px; transition: color 0.15s ease;
}
.post-meta-tag.link:hover, .post-meta-tag.link:focus-visible {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.post-meta-tag.rating { color: #ffc94d; letter-spacing: 1px; }

/* Active date/venue filter banner on the feed */
.feed-pin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; margin: 0 auto 16px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--accent); border-radius: 14px;
}
.feed-pin-tx { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-pin-clear {
  flex: none; font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap;
}
.feed-pin-clear:hover { color: var(--accent); border-color: var(--accent); }
.pill.pop { animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { 35% { transform: scale(1.22) rotate(-4deg); } }
.pm-tile { position: relative; border-radius: 10px; overflow: hidden; padding: 0; border: none; background: none; cursor: zoom-in; display: block; }
.pm-tile img, .pm-tile video { width: 100%; height: 200px; object-fit: cover; display: block; }
.pm-tile .tile-video, .pm-tile .tile-video video { display: block; width: 100%; }
.pm-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 22px; font-weight: 800;
}

/* ---- event detail modal ---- */
.event-card { max-width: 640px; max-height: 92vh; overflow-y: auto; }
.event-head { display: flex; gap: 12px; align-items: center; margin: 2px 28px 14px 0; }
.event-head .small { font-size: 12px; margin-top: 2px; }
.event-stub svg { width: 100%; height: auto; }
.event-liner { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0 0; }
.event-liner dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.event-liner dd { margin: 0; font-size: 14px; font-weight: 600; }
.event-media-title { font-size: 15px; margin: 18px 0 10px; }
.event-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.event-media img, .event-media video {
  width: 100%; height: 150px; object-fit: cover; display: block;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
}
.event-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; }
/* Post header — two lines so the band/event name is never clipped by the
   follow button or timestamp. Avatar | (name + follow) over (band · time · ★). */
.post-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px 2px; }
.ph-avatar {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; padding: 0; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ph-avatar:hover { border-color: var(--accent); box-shadow: var(--glow-teal); }
.ph-avatar .avatar { font-size: 23px; line-height: 1; }
.ph-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ph-top { display: flex; align-items: center; gap: 8px; }
.ph-name {
  flex: 1; min-width: 0; text-align: left; background: none; border: none; padding: 0;
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ph-name:hover { color: var(--accent); }
.ph-sub {
  display: block; text-align: left; background: none; border: none; padding: 0;
  cursor: pointer; font-size: 13px; line-height: 1.4; color: var(--muted);
}
.ph-band { color: var(--muted); font-weight: 600; }
.ph-sub:hover .ph-band { color: var(--text); }
.ph-when { margin-left: 5px; color: var(--muted); }
.ph-rating { margin-left: 7px; color: #ffc94d; font-size: 12px; letter-spacing: 1.5px; white-space: nowrap; }
/* Round checkmark follow control used on cards — ＋ to follow, ✓ when following. */
.follow-dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.follow-dot:hover { border-color: var(--accent); color: var(--text); }
.follow-dot:active { transform: scale(0.9); }
.follow-dot.on {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #08110f; font-weight: 800;
}
.follow-dot.pop { animation: follow-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes follow-pop {
  0% { transform: scale(0.5); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.event-follow { margin: -4px 0 6px; }
.feed-tabs { display: flex; gap: 8px; max-width: 720px; margin: 0 auto 12px; flex-wrap: wrap; }
/* ---- feed location picker (branded count badges) ---- */
.locpick { position: relative; max-width: 720px; margin: 0 auto 16px; }
.locpick-trigger {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.locpick-trigger:hover { border-color: var(--accent); }
.lp-pin { line-height: 1; }
.lp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-caret { color: var(--muted); font-size: 12px; }
.locpick-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: none;
  min-width: 250px; max-width: min(360px, 92vw); max-height: 60vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 44px rgba(0,0,0,0.55);
}
.locpick-menu.open { display: block; }
.lp-group { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 9px 10px 4px; }
.lp-opt { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: none; color: var(--text); cursor: pointer; padding: 7px 10px; border-radius: 10px; font: inherit; }
.lp-opt:hover, .lp-opt.on { background: var(--panel-2); }
.lp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lp-check { color: var(--accent); font-weight: 800; }
.lp-globe { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
/* the branded count circle */
.lp-count {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #1a1300;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 3px 10px rgba(0,243,209,0.28);
}

/* ---- leaderboard ---- */
.lb-wrap { max-width: 600px; margin: 0 auto; } /* center the whole column on desktop */
.lb-hidden { margin: -10px 0 16px; font-size: 13px; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; color: var(--text);
}
.lb-row:hover { border-color: var(--accent); }
.lb-row.top { background: linear-gradient(120deg, rgba(0,243,209,0.12), var(--panel)); }
.lb-row.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.lb-rank { width: 38px; text-align: center; font-size: 18px; font-weight: 800; color: var(--muted); }
.lb-row.top .lb-rank { font-size: 22px; }
.lb-avatar { font-size: 24px; line-height: 1; }
.lb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lb-sub { font-size: 12px; }
.lb-count {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: #1a1300;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 3px 10px rgba(0,243,209,0.28);
}
.toggle-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.toggle-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.toggle-row .field-hint { display: block; }

/* ---- who else was here ---- */
.attendees { margin: 18px 0 6px; }
.attendee-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attendee { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 8px; cursor: pointer; color: var(--text); font: inherit; }
.attendee:hover { border-color: var(--accent); }
.attendee .avatar { font-size: 20px; }
.attendee b { font-size: 14px; }

/* ---- list popup (artists / festivals behind a stat) ---- */
.scene-stat.tappable { cursor: pointer; transition: border-color 0.12s, transform 0.12s; font: inherit; text-align: center; }
.scene-stat.tappable:hover { border-color: var(--accent); transform: translateY(-2px); }
.list-modal { max-width: 440px; }
.list-modal h1 { font-size: 20px; margin: 0 0 12px; }
.list-modal-rows { max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.lm-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.lm-row:last-child { border-bottom: none; }
.lm-rank { color: var(--muted); font-size: 13px; font-weight: 700; width: 34px; }
.lm-name { flex: 1; min-width: 0; font-weight: 600; }
.lm-meta { font-size: 13px; white-space: nowrap; }
.post-caption { padding: 8px 16px 0; margin: 0; font-size: 15px; }
.post-stub { padding: 12px 16px 0; }
.post-stub svg { width: 100%; height: auto; border-radius: 10px; }
.post-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; padding: 10px 16px 0; }
.post-media img, .post-media video { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; display: block; }
.post-foot { display: flex; gap: 8px; padding: 12px 16px 8px; align-items: stretch; }
.pill {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 99px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.pill:hover { border-color: var(--accent); }
.pill.on { border-color: var(--accent-2); color: var(--accent-2); }
/* Action row: three equal, centred, never-wrapping buttons. */
.post-foot .pill {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; white-space: nowrap; padding: 10px 8px; font-size: 14px;
}
/* The standout "add this to my wall" call-to-action. */
.post-cta {
  display: block; width: calc(100% - 32px); margin: 2px 16px 14px;
  background: rgba(0, 243, 209,0.10); border: 1px solid rgba(0, 243, 209,0.45);
  color: var(--accent); border-radius: 12px; padding: 11px; font-size: 14px;
  font-weight: 700; cursor: pointer; text-align: center;
}
.post-cta:hover { background: rgba(0, 243, 209,0.18); border-color: var(--accent); }
.comments { border-top: 1px solid var(--line); padding: 12px 16px; display: none; }
.comments.open { display: block; }
.comment { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; line-height: 1.45; }
.comment-av { flex: none; display: inline-flex; }
.comment-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } /* min-width:0 lets the body wrap instead of overflow */
.comment-name { font-weight: 700; }
.comment-body { color: var(--text); overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input { flex: 1; }

/* ---- modal / welcome ---- */
.modal { position: fixed; inset: 0; background: rgba(5,5,10,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.hidden { display: none; }
.modal-card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 30px; max-width: 440px; width: 100%; overflow: hidden;
  box-shadow: var(--glass-shadow), 0 24px 60px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
/* holographic accent line along the top of the card */
.modal-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--holo); opacity: 0.85;
}
.modal-card h1 { margin: 0 0 10px; font-size: 24px; }
.modal-card p { color: var(--muted); }

/* ---- email + password (login / claim / reset) ---- */
.auth-overlay { z-index: 60; }
.auth-gate { z-index: 90; } /* required gate sits above everything else */
.auth-card h1 { display: flex; align-items: center; gap: 10px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.auth-form input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 16px; /* ≥16px: no iOS focus zoom */
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form .btn { margin-top: 4px; }
.auth-msg { color: var(--accent-2); font-size: 13px; margin: 2px 0 0; min-height: 1em; }
.auth-alt { font-size: 13px; margin: 16px 0 0; text-align: center; }
.linklike { background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.auth-page { max-width: 440px; margin: 40px auto; text-align: center; }
.auth-page .auth-form { text-align: left; }

/* ---- onboarding (guided signup) ---- */
.onboard {
  position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; overflow-y: auto;
  padding: 20px; background: rgba(5,5,10,0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.onboard-gate { z-index: 90; } /* the required claim gate sits above everything */
.onboard-card {
  position: relative; max-width: 460px; width: 100%; margin: auto; display: flex; flex-direction: column;
  padding: 24px 28px 28px; overflow: hidden;
}
/* soft holographic glow in the card corners for depth */
.onboard-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(150px 150px at 10% -2%, rgba(0,243,209,.10), transparent 70%),
    radial-gradient(180px 180px at 102% 16%, rgba(138,92,255,.13), transparent 70%);
}
.onboard-card > * { position: relative; z-index: 1; }

.onboard-dots { display: flex; gap: 7px; justify-content: center; margin: 2px 0 8px; }
.onboard-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.16); transition: all .3s ease; }
.onboard-dot.active { width: 24px; border-radius: 4px; background: var(--accent, #00f3d1); box-shadow: 0 0 10px rgba(0,243,209,.6); }

.onboard-slide { display: block; }
.onboard-step { display: flex; flex-direction: column; width: 100%; text-align: center; }
.onboard-main { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.onboard-main .auth-form { width: 100%; max-width: 340px; text-align: left; margin: 2px auto 0; }
.onboard-slide h1 { margin: 0; font-size: 24px; line-height: 1.2; outline: none; }
.onboard-body { font-size: 15px; line-height: 1.6; margin: 0; max-width: 34ch; }
.onboard .emoji-grid { justify-content: center; margin-bottom: 4px; }

.onboard-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.onboard-nav.center { justify-content: center; }
.onboard-nav .btn { min-width: 104px; }
.onboard-skip { white-space: nowrap; }
.onboard .auth-alt { margin-top: 14px; }
.onboard-secondary { display: block; margin: 14px auto 0; }

/* hero: floating branded illustration + rotating holographic halo */
.onboard-hero { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 2px auto; }
.onboard-halo {
  position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #00f3d1, #8a5cff, #ff7ad9, #00f3d1);
  filter: blur(20px); opacity: .42; animation: onbSpin 9s linear infinite;
}
.onboard-hero-ico {
  position: relative; z-index: 1; width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); animation: onbFloat 4.6s ease-in-out infinite;
}
/* card-3: three icons floating at offsets within the halo */
.onboard-cluster .onboard-hero-ico { position: absolute; width: 58px; height: 58px; }
.onboard-cluster .c0 { left: 12px; top: 50px; animation-delay: .2s; }
.onboard-cluster .c1 { left: calc(50% - 37px); top: 14px; width: 74px; height: 74px; z-index: 2; }
.onboard-cluster .c2 { right: 12px; top: 52px; animation-delay: .8s; }

@keyframes onbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes onbSpin { to { transform: rotate(360deg); } }

/* holographic sample ticket stub (card 2) */
.onboard-stub-wrap { position: relative; display: inline-grid; place-items: center; padding: 16px 22px; margin: 2px auto; }
.onboard-stub-wrap .onboard-halo { inset: 6px; border-radius: 40px; opacity: .38; }
.onboard-stub {
  position: relative; z-index: 1; display: flex; align-items: stretch; width: 300px; max-width: 74vw; overflow: hidden;
  border-radius: 13px; border: 1px solid rgba(255,255,255,.12); text-align: left;
  background: linear-gradient(135deg, #151a26, #0b0e15); box-shadow: 0 16px 40px rgba(0,0,0,.5);
  animation: onbFloat 5s ease-in-out infinite;
}
.onboard-stub-shine {
  position: absolute; top: 0; left: -60%; width: 45%; height: 100%; z-index: 3; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: onbShine 3.6s ease-in-out infinite;
}
.onboard-stub-main { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; border-top: 3px solid var(--accent, #00f3d1); }
.onboard-stub-band { font-weight: 800; font-size: 14px; letter-spacing: .04em; color: var(--text, #e9ebef); }
.onboard-stub-meta { font-size: 12px; color: var(--muted, #9aa3af); }
.onboard-stub-tear {
  display: flex; align-items: center; justify-content: center; width: 42px;
  border-left: 2px dashed rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(0,243,209,.16), rgba(138,92,255,.16));
}
.onboard-stub-tear span {
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 800;
  letter-spacing: .18em; color: var(--accent, #00f3d1);
}
@keyframes onbShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* staggered entrance: content lifts in, then the nav */
.onboard-slide.in-fwd .onboard-main > *, .onboard-slide.in-back .onboard-main > * { opacity: 0; animation: onbUp .5s cubic-bezier(.2,.7,.2,1) forwards; }
.onboard-main > *:nth-child(1) { animation-delay: .05s; }
.onboard-main > *:nth-child(2) { animation-delay: .13s; }
.onboard-main > *:nth-child(3) { animation-delay: .21s; }
.onboard-main > *:nth-child(4) { animation-delay: .29s; }
.onboard-slide.in-fwd .onboard-nav, .onboard-slide.in-back .onboard-nav,
.onboard-slide.in-fwd .auth-alt, .onboard-slide.in-back .auth-alt,
.onboard-slide.in-fwd .onboard-secondary, .onboard-slide.in-back .onboard-secondary {
  opacity: 0; animation: onbUp .5s .32s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes onbUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .onboard-halo, .onboard-hero-ico, .onboard-stub, .onboard-stub-shine { animation: none; }
  .onboard-slide.in-fwd .onboard-main > *, .onboard-slide.in-back .onboard-main > *,
  .onboard-slide.in-fwd .onboard-nav, .onboard-slide.in-back .onboard-nav { animation: onbFade .25s both; }
  @keyframes onbFade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 560px) {
  .onboard { padding: 14px; }
  .onboard-card { max-width: none; padding: 22px 22px 24px; }
}
.emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.emoji-grid button { font-size: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; cursor: pointer; }
.emoji-grid button.sel { border-color: var(--accent); background: var(--panel-2); }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--accent); color: var(--text);
  padding: 10px 20px; border-radius: 12px; font-size: 14px; z-index: 60;
}
.toast.hidden { display: none; }

/* ---- public share page ---- */
.share-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; }
.share-card { max-width: 820px; text-align: center; }
.share-kicker { color: var(--muted); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.share-stub svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6)); }
.share-card h1 { font-size: 26px; margin: 22px 0 4px; }
.share-meta { color: var(--muted); margin: 0 0 8px; }
.share-notes { color: var(--text); font-style: italic; }
.share-card .btn { margin: 14px 6px 0; }

.muted { color: var(--muted); }
.section-title { font-size: 18px; margin: 26px 0 4px; }

/* ---- 3D tilt: tickets follow the pointer/finger ---- */
.tilt-stage { perspective: 1000px; }
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s;
  will-change: transform;
}
.tilt.tilting { transition: filter 0.35s; }
.tilt.tilt-touch { touch-action: none; }
.tilt svg { display: block; }
.tilt-glare {
  position: absolute; inset: 0; border-radius: 18px;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.tilt.tilting .tilt-glare { opacity: 1; }
.tilt-hint { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; letter-spacing: 1px; }

/* ---- attach moments while logging a show ---- */
.attach-zone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 18px 14px;
  text-align: center; color: var(--muted); cursor: pointer; font-size: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.attach-zone:hover, .attach-zone.drag { border-color: var(--accent); color: var(--text); }
.attach-zone .big { font-size: 26px; display: block; margin-bottom: 4px; }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 10px; }
.attach-tile { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.attach-tile img, .attach-tile video { width: 100%; height: 86px; object-fit: cover; display: block; }
.attach-tile .kind {
  position: absolute; left: 4px; bottom: 4px; font-size: 12px;
  background: rgba(0,0,0,0.6); border-radius: 6px; padding: 1px 5px;
}
.attach-tile .rm {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.7); color: #fff;
  border: none; border-radius: 7px; cursor: pointer; padding: 2px 7px; font-size: 12px; line-height: 1.4;
}

/* ---- fullscreen ticket viewer (double-tap a ticket) ---- */
.ticket-modal {
  position: fixed; inset: 0; z-index: 80; overflow: hidden;
  background: rgba(4,4,9,0.95);
  display: flex; align-items: center; justify-content: center;
  animation: ticket-in 0.22s ease;
}
@keyframes ticket-in { from { opacity: 0; } to { opacity: 1; } }
/* flex:none so the rotor keeps the (large) width JS sets — even when that width
   exceeds the screen before the 90° rotation stands it up to fit. */
.ticket-rotor { width: 94vw; flex: none; } /* real size set in px by JS from the viewport */
.ticket-rotor svg { width: 100%; height: auto; filter: drop-shadow(0 24px 60px rgba(0,0,0,0.7)); }
.ticket-close {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 81;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 99px; width: 42px; height: 42px; font-size: 17px; cursor: pointer;
}
.ticket-close:hover { border-color: var(--accent); }
.post-stub, .stub-card .stub-img { touch-action: manipulation; }

/* ---- share page album ---- */
.share-album-title { font-size: 17px; margin: 30px 0 12px; }
.share-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.share-album img, .share-album video {
  width: 100%; height: 180px; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
}

/* ---- log form extras: stars + flyer import ---- */
.stars { display: flex; gap: 2px; padding: 6px 0; }
.stars button {
  background: none; border: none; cursor: pointer; font-size: 30px; line-height: 1;
  color: var(--line); padding: 2px 4px; transition: color 0.12s, transform 0.12s;
}
.stars button.on { color: var(--accent); }
.stars button:hover { transform: scale(1.15); }
.flyer-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.flyer-btn { width: 100%; text-align: center; }
.flyer-btn:has(.ico) { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.flyer-btn .ico { width: 30px; height: 30px; }

/* ---- share modal: preview + platforms ---- */
.story-card { max-width: 520px; max-height: 92vh; overflow-y: auto; position: relative; }
.story-tabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.story-preview {
  display: flex; justify-content: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; overflow: hidden;
}
.story-preview svg { width: auto; height: min(42vh, 480px); max-width: 100%; border-radius: 10px; }
.story-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.story-actions .btn { flex: 1; text-align: center; }

.platform-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; margin-top: 14px;
}
.platform {
  background: none; border: none; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 6px 2px; border-radius: 12px;
}
.platform:hover { background: var(--panel-2); }
.brand-icon { display: block; line-height: 0; }
.brand-icon svg { border-radius: 50%; }
.share-fine { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.modal-x {
  position: absolute; top: 14px; right: 14px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 99px; width: 34px; height: 34px; font-size: 14px; cursor: pointer;
}
.modal-x:hover { border-color: var(--accent); }
.modal-card { position: relative; }

/* ---- profile dropdown ---- */
.profile-menu {
  position: fixed; z-index: 70; min-width: 250px;
  background: linear-gradient(160deg, rgba(18,23,34,0.86), rgba(11,13,16,0.86));
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 8px; box-shadow: var(--glass-shadow), 0 18px 50px rgba(0,0,0,0.55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  animation: menu-in 0.14s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; }
.menu-avatar {
  font-size: 26px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 8px;
}
.menu-head b { display: block; font-size: 15px; }
.menu-head .muted { font-size: 12px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: left;
}
.menu-item:hover { background: var(--panel-2); }
.menu-item.active { color: var(--accent); }
.menu-item.danger { color: var(--signal); }
.menu-item.danger.arm { background: rgba(255,45,85,0.12); }
.mi-icon { width: 22px; text-align: center; }
.mi-check { margin-left: auto; }
.menu-label {
  color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px;
}
.menu-sep { border-top: 1px solid var(--line); margin: 6px 0; }

/* ---- show page liner notes ---- */
.liner { margin: 4px 0 10px; }
.liner h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: 1px; }
.liner dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.liner dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.liner dd { margin: 0; font-size: 14px; font-weight: 600; }
.liner-quote {
  margin: 14px 0 0; padding: 10px 14px; color: var(--text); font-style: italic;
  border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 10px 10px 0;
}

/* ---- mobile ---- */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; padding: 10px 12px; gap: 8px 10px; }
  /* Cap the brand + chip widths so their (max-clamped) hypothetical sizes always
     fit one line with the bell — otherwise flex-wrap drops the chip onto its own
     row on narrow phones before any shrinking happens. The logo then scales down
     proportionally inside its cap, keeping the chip/name top-right. */
  .brand { font-size: 18px; min-width: 0; flex: 0 1 auto; max-width: 34vw; }
  .brand-logo { height: auto; max-height: 32px; max-width: 100%; width: auto; }
  .profile-chip { margin-left: auto; max-width: 37vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar nav {
    order: 3; flex-basis: 100%; gap: 4px; margin-top: 4px;
    padding-top: 8px; border-top: 1px solid var(--line);
  }
  .topbar nav a {
    flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px;
    border-radius: 12px; text-align: center; justify-content: center;
  }
  .topbar nav a .nav-ic { width: 28px; height: 28px; }
  .topbar nav a .nav-tx { font-size: 11px; font-weight: 600; }
  .topbar nav a.active { background: var(--panel-2); }

  main#view { padding: 18px 14px 28px; }
  h2.page-title { font-size: 21px; }
  p.page-sub { font-size: 14px; margin-bottom: 18px; }

  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { min-width: 0; padding: 10px 10px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 11px; }

  .form-grid { grid-template-columns: 1fr; gap: 0; }
  form.panel, .panel { padding: 16px; }
  .btn { padding: 12px 18px; }
  .show-actions { gap: 8px; }
  .show-actions .btn { flex: 1 1 calc(50% - 8px); text-align: center; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .post-media img, .post-media video { height: 170px; }
  .modal-card { padding: 22px 18px; }
  .share-card h1 { font-size: 21px; }
}

/* ---- scene dashboard ---- */
.stat { font: inherit; }
button.stat { cursor: pointer; transition: border-color 0.12s, transform 0.12s; text-align: center; }
button.stat:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Scene header: title + sub on the left, a compact Share button on the right. */
.scene-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.scene-head-tx { min-width: 0; }
.scene-head .page-sub { margin-bottom: 18px; }
.scene-share-btn { flex: none; margin-top: 4px; }

/* Spotlight card for the most-seen artist. */
.hero-band {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(0,243,209,0.16), rgba(138,92,255,0.16));
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px;
}
.hb-crown {
  flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; border-radius: 50%; background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border); box-shadow: 0 0 18px rgba(245,185,66,0.18);
}
.hb-info { min-width: 0; }
.hb-label { color: var(--muted); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; }
.hb-name {
  font-size: 28px; font-weight: 800; margin: 3px 0 3px; line-height: 1.1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow: hidden; text-overflow: ellipsis;
}
.hb-count { color: var(--muted); font-size: 13.5px; }

.scene-section { margin-top: 26px; }
.scene-section .section-title { margin-top: 0; }
.scene-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 6px; }
.scene-stat { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; text-align: center; }
.scene-stat b { display: block; font-size: 25px; color: var(--accent); }
.scene-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.scene-stat small { display: block; font-size: 10.5px; color: var(--muted); opacity: 0.85; margin-top: 4px; }
/* Tappable stats get a corner cue so it's clear they expand into a list. */
.scene-stat.tappable::after {
  content: '⤢'; position: absolute; top: 7px; right: 9px;
  font-size: 12px; color: var(--muted); opacity: 0.55;
}
.scene-stat.tappable:hover::after { opacity: 1; color: var(--accent); }
.fact-img { width: 42px; height: 42px; flex: none; object-fit: contain; }

.artist-bars { display: flex; flex-direction: column; gap: 8px; }
.artist-bar { display: grid; grid-template-columns: 30px 1fr 90px 38px; align-items: center; gap: 10px; }
.ab-rank { color: var(--muted); font-weight: 700; font-size: 13px; }
.ab-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ab-track { background: var(--panel-2); border-radius: 99px; height: 10px; overflow: hidden; }
.ab-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: ab-grow 0.6s ease; }
@keyframes ab-grow { from { width: 0 !important; } }
.ab-count { text-align: right; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---- artist web ---- */
.web-sub { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.web-wrap {
  background: radial-gradient(circle at 50% 38%, rgba(0,243,209,0.07), transparent 70%), var(--panel);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.artist-web { width: 100%; height: auto; aspect-ratio: 600 / 460; display: block; touch-action: manipulation; }
.webedge { stroke: var(--line); stroke-opacity: 0.75; transition: stroke-opacity 0.2s, stroke 0.2s; }
.webnode { cursor: pointer; }
.webnode circle { stroke: rgba(0,0,0,0.35); stroke-width: 1; transition: opacity 0.2s, stroke 0.2s; }
.wn-head { fill: var(--accent); }
.wn-supp { fill: var(--accent-2); }
.webnode text {
  fill: var(--text); font-size: 11px; font-weight: 600;
  paint-order: stroke; stroke: var(--bg); stroke-width: 3px; pointer-events: none;
}
.artist-web.has-sel .webedge:not(.hot) { stroke-opacity: 0.08; }
.artist-web.has-sel .webedge.hot { stroke: var(--accent); stroke-opacity: 0.95; }
.artist-web.has-sel .webnode.faded { opacity: 0.18; }
.artist-web.has-sel .webnode.hot circle { stroke: #fff; stroke-width: 2; }
.web-cap { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 4px 0; }

.facts-block { margin-top: 6px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.fact { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fact-icon { font-size: 34px; }
.fact b { font-size: 13px; }
.fact .muted { font-size: 13px; }

.field-hint { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* ---- multi-date picker ---- */
/* Flex column with an internally-scrolling list so a long tour routing never
   overflows the viewport and traps the user. */
.datepick-card { max-width: 420px; max-height: 84vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.datepick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 4px; }
.datepick-head h1 { margin: 0; font-size: 19px; }
.datepick-head .modal-x { position: static; flex: none; }
.datepick-note { padding: 0 20px; color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.datepick-list {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 0 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0;
}
.datepick-opt {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.datepick-opt:hover { border-color: var(--accent); }
.dp-date { font-size: 15px; font-weight: 600; }
.dp-city { font-size: 12px; color: var(--muted); }
.datepick-skip { margin: 12px 20px 18px; text-align: center; }

/* ---- city / state row ---- */
.city-state { grid-template-columns: 1.6fr 1fr; }

/* ---- share-my-scene button ---- */
.scene-share { margin: 4px 0 22px; }

/* ---- find-collectors search box ---- */
.usearch { margin: 0 0 20px; }
.usearch-input {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 16px; /* ≥16px: no iOS focus zoom */
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.usearch-input:focus { outline: none; border-color: var(--accent); }
.usearch-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.usearch-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 12px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
}
.usearch-row:hover { border-color: var(--accent); }
.usearch-row .avatar { font-size: 22px; }
.usearch-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usearch-meta { font-size: 13px; }
.usearch-empty { padding: 8px 4px; font-size: 14px; }

/* ---- upcoming-show bulletin board ---- */
.ev-modes { margin: 0 0 14px; }
.ev-scene-note { margin: 0 0 16px; font-size: 13px; }
.ev-search { display: flex; gap: 10px; margin: 0 0 14px; }
.ev-search .ev-artist { flex: 1 1 auto; min-width: 0; } /* let the input shrink so the button keeps its padding */
.ev-search .btn { flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; }
.ev-scene-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.ev-scene-filters select { flex: 1 1 150px; }
.ev-browse { margin: 0 0 18px; }
.ev-browse-label { display: block; font-size: 12px; margin: 0 0 8px 2px; }
.ev-filters { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.ev-city { flex: 1 1 200px; }
.ev-genre {
  flex: 0 0 auto; padding: 11px 14px; border-radius: 12px; font-size: 15px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.ev-genre:focus { outline: none; border-color: var(--accent); }
.ev-loading { padding: 24px 4px; }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ev-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.ev-img { height: 150px; background: var(--panel-2); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ev-when { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .3px; }
.ev-name { margin: 2px 0 0; font-size: 18px; line-height: 1.2; }
.ev-where { font-size: 14px; color: var(--muted); }
.ev-genre-chip {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; margin-top: 2px;
}
.ev-goers { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 4px; margin-top: 2px; }
.ev-goer {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel-2); cursor: pointer; font-size: 15px; line-height: 24px; padding: 0;
  margin-left: -6px; display: inline-flex; align-items: center; justify-content: center;
}
.ev-goer:first-child { margin-left: 0; }
.ev-goers-label { font-size: 12px; margin-left: 6px; }
/* Equal-width action row (cheer · comment · tickets), never wraps. */
.ev-actions { display: flex; gap: 8px; margin-top: 10px; }
.ev-actions .pill {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; white-space: nowrap; padding: 9px 8px; text-decoration: none;
}
/* Prominent full-width RSVP; fills solid once you're going. */
.ev-cta {
  display: block; width: 100%; margin-top: 8px; text-align: center; cursor: pointer;
  border-radius: 12px; padding: 11px; font-size: 14px; font-weight: 700;
  background: rgba(0,243,209,0.10); border: 1px solid rgba(0,243,209,0.45); color: var(--accent);
}
.ev-cta:hover { background: rgba(0,243,209,0.18); border-color: var(--accent); }
.ev-cta.on { background: var(--accent); border-color: var(--accent); color: #1a1300; }
.ev-card .comments { border-top: 1px solid var(--line); margin-top: 12px; padding: 12px 0 0; }

/* ---- "hear them" streaming links on posts ---- */
.listen-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px 4px; }
.listen-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.listen-icons { display: inline-flex; gap: 8px; }
.listen-link { display: inline-flex; line-height: 0; border-radius: 50%; transition: transform .12s ease, filter .12s ease; }
.listen-link:hover { transform: translateY(-1px); filter: brightness(1.12); }
.event-card .listen-row { padding-left: 0; padding-right: 0; }

/* ---- seat / admission row: stays three-up even on phones (short values) ---- */
.seat-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 0 12px; }
.seat-hint { margin-top: 2px; }

@media (max-width: 720px) {
  .scene-stats { grid-template-columns: repeat(2, 1fr); }
  .hb-name { font-size: 24px; }
  .hb-crown { width: 46px; height: 46px; font-size: 22px; }
  .artist-bar { grid-template-columns: 26px 1fr 60px 34px; gap: 8px; }
  .scene-head { gap: 10px; }
  .scene-share-btn { padding: 8px 12px; }
}

/* ---- generated ticket artwork ---- */
.tilt-stage { position: relative; }
.art-gen {
  position: absolute; inset: 0; z-index: 2; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(8,8,14,0.72); color: var(--text); font-weight: 600; font-size: 14px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); text-align: center; padding: 16px;
}
.art-gen-spin { font-size: 34px; animation: art-spin 1.3s ease-in-out infinite; }
@keyframes art-spin { 0%,100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.12); } }

/* ---- fullscreen ticket inner (closes on background tap) ---- */
.ticket-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* ---- event modal (redesigned, simplified) ---- */
.event-card { max-width: 600px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.event-user {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 13px 5px 7px; margin: 2px 40px 14px 0;
}
.event-user:hover { border-color: var(--accent); }
.eu-avatar { font-size: 20px; line-height: 1; }
.eu-name { font-weight: 700; font-size: 14px; }
.eu-go { color: var(--muted); font-size: 12px; }
.event-title { font-size: 25px; margin: 2px 0 2px; line-height: 1.12; }
.event-pre { color: var(--muted); font-weight: 600; font-size: 13px; display: block; letter-spacing: 1px; text-transform: uppercase; }
.event-sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.event-stub svg { width: 100%; height: auto; border-radius: 10px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ev-chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.event-mem { margin-top: 16px; }
.event-media-title { font-size: 15px; margin: 0 0 10px; }
.event-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.event-media img, .event-media video { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: var(--panel-2); }
.event-foot { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 16px; font-size: 14px; }
.event-foot-actions { display: flex; gap: 8px; }
.event-foot-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }

/* ---- public profile ---- */
.profile-hero { text-align: center; padding: 8px 0 18px; }
.profile-avatar {
  font-size: 40px; line-height: 1; width: 84px; height: 84px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(0,243,209,0.18), rgba(138,92,255,0.18));
  border: 1px solid var(--line); border-radius: 50%;
}
.profile-name { font-size: 24px; margin: 10px 0 2px; }
.profile-since { color: var(--muted); font-size: 13px; margin: 0; }

/* Illustrated avatar images (mapped from the picker emoji); sized per context. */
.avatar-img { flex: none; display: inline-block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.menu-avatar .avatar-img { width: 30px; height: 30px; }
.lb-avatar .avatar-img { width: 32px; height: 32px; }
.eu-avatar .avatar-img { width: 26px; height: 26px; }
.attendee .avatar-img { width: 24px; height: 24px; }
.ph-avatar .avatar-img { width: 38px; height: 38px; }
.profile-avatar .avatar-img { width: 72px; height: 72px; }
.emoji-grid button .avatar-img { width: 34px; height: 34px; }
.mi-icon .avatar-img { width: 22px; height: 22px; }
.ev-goer .avatar-img { width: 100%; height: 100%; }
/* Inline branded icons (replacing emoji); scale with the surrounding text. */
/* Branded icon PNGs carry transparent padding, so size their box a bit larger
   than an emoji to read at the same visual weight. */
.ico { flex: none; width: 1.75em; height: 1.75em; object-fit: contain; vertical-align: -0.42em; }
.ico-btn { width: 1.85em; height: 1.85em; }
.ico-big { width: 60px; height: 60px; display: block; margin: 0 auto 10px; }
.section-title .ico { width: 1.65em; height: 1.65em; }
/* Icon-bearing containers align the icon with its label and add a small gap. */
.btn:has(.ico), .pill:has(.ico), label:has(.ico),
.section-title:has(.ico), .event-media-title:has(.ico),
.badge-row span:has(.ico), .feed-pin-tx, .ev-foot-counts, .post-meta-tag {
  display: inline-flex; align-items: center; gap: 6px;
}
.post-cta:has(.ico) { display: flex; align-items: center; justify-content: center; gap: 6px; }
.post-meta-tag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* More icon-bearing containers across the app. */
.listen-label:has(.ico), .fr-bell,
.ev-chip:has(.ico), .liner dt:has(.ico), .toggle-row b:has(.ico),
h3:has(.ico) {
  display: inline-flex; align-items: center; gap: 6px;
}
.ev-cta:has(.ico), .sheet-row:has(.ico) { display: flex; align-items: center; justify-content: center; gap: 6px; }
.sheet-row:has(.ico) { justify-content: flex-start; }
.menu-item .mi-icon .ico { width: 22px; height: 22px; }
.fr-bell .ico { width: 19px; height: 19px; }
.go-ic { display: inline-flex; }
.liner-ic, .chip-ic { width: 1.3em; height: 1.3em; }
.hb-crown .ico { width: 34px; height: 34px; }
/* Inline avatar spots (chip, titles, comments, notifications). */
.profile-chip .avatar-img { width: 22px; height: 22px; }
.page-title .avatar-img { width: 34px; height: 34px; }
.sheet-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sheet-title .avatar-img { width: 30px; height: 30px; }
.comment-av .avatar-img { width: 24px; height: 24px; }
.ni-text .avatar-img { width: 18px; height: 18px; }

/* ---- following ---- */
.follow-control { display: inline-flex; }
/* The labeled button (profile hero) wants breathing room; the card dot does not. */
.follow-control:has(.follow-btn) { margin-top: 14px; }
.follow-btn.on { border-color: var(--accent); color: var(--accent); }
.follow-sheet { max-width: 380px; text-align: center; }
.follow-sheet h1 { font-size: 20px; margin: 0 0 8px; }
.follow-prompt-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sheet-row {
  display: block; width: 100%; text-align: left; margin-top: 10px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 13px 16px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.sheet-row:hover { border-color: var(--accent); }
.sheet-row.danger { color: var(--accent-2); }
.following-list { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.follow-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.fr-user { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; background: none; border: none; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.fr-user .avatar { font-size: 22px; }
.fr-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-bell { background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; width: 42px; height: 36px; font-size: 16px; cursor: pointer; }
.fr-bell.on { border-color: var(--accent); }
.fr-unfollow { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fr-unfollow:hover { border-color: var(--accent-2); color: var(--accent-2); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.badge { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; }
.badge.earned { border-color: var(--accent); background: linear-gradient(160deg, rgba(0,243,209,0.15), var(--panel)); }
.badge.locked { opacity: 0.45; filter: grayscale(0.7); }
.badge-emoji { font-size: 30px; display: block; }
.badge-emoji .badge-ic { width: 44px; height: 44px; margin: 0 auto; display: block; }
.badge-name { display: block; font-weight: 700; font-size: 13px; margin-top: 6px; }
.badge-desc { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.mini-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.mini-stub { background: none; border: none; padding: 0; cursor: pointer; }
.mini-stub svg { width: 100%; height: auto; border-radius: 8px; display: block; }
.mini-stub:hover { transform: translateY(-2px); transition: transform 0.12s; }

/* ---- skeleton loaders ---- */
.sk {
  background: linear-gradient(100deg, var(--panel) 28%, var(--panel-2) 48%, var(--panel) 68%);
  background-size: 220% 100%; animation: sk-shimmer 1.25s ease-in-out infinite; border-radius: 12px;
}
@keyframes sk-shimmer { from { background-position: 220% 0; } to { background-position: -120% 0; } }
.sk-row { display: flex; align-items: center; gap: 12px; }
.sk-post { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stub-card { animation: card-in 0.4s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  .stub-card, .post { animation: none; }
}

/* ---- notifications ---- */
.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--text); border-radius: 99px; width: 40px; height: 36px; font-size: 16px; cursor: pointer; flex: none; }
.notif-bell-ic { width: 22px; height: 22px; object-fit: contain; display: block; }
.notif-bell:hover { border-color: var(--accent); box-shadow: var(--glow-teal); }
.notif-badge {
  position: absolute; top: -5px; right: -5px; background: var(--accent-2); color: #fff;
  border-radius: 99px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.notif-badge.hidden { display: none; }
.notif-panel {
  position: fixed; z-index: 70; width: min(360px, 92vw); max-height: 70vh;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(18,23,34,0.86), rgba(11,13,16,0.86));
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 16px; box-shadow: var(--glass-shadow), 0 18px 50px rgba(0,0,0,0.55); overflow: hidden; animation: menu-in 0.14s ease;
}
.notif-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.notif-list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.notif-item {
  display: flex; gap: 10px; width: 100%; text-align: left; align-items: flex-start;
  background: none; border: none; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; padding: 12px 16px;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--panel-2); }
.notif-item.unread { background: rgba(0,243,209,0.09); }
.notif-item.unread:hover { background: rgba(0,243,209,0.15); }
.ni-icon { font-size: 18px; flex: none; line-height: 1.4; }
.ni-body { min-width: 0; }
.ni-text { font-size: 13.5px; line-height: 1.35; }
.ni-time { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.notif-empty { text-align: center; color: var(--muted); padding: 30px 20px; }
.notif-empty .big { font-size: 34px; }
.notif-empty p { font-size: 13px; margin: 8px 0 0; }
@media (max-width: 720px) {
  .notif-bell { margin-left: auto; }
  .topbar .profile-chip { margin-left: 8px; }
}

/* ---- golden milestone stubs (every 10th time seeing a band) ---- */
.stub-card.golden {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(245,185,66,0.16), var(--panel));
  box-shadow: 0 0 0 1px var(--accent), 0 12px 30px rgba(245,185,66,0.22);
}
.golden-tag {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1300; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(245,185,66,0.4);
}
/* The big show-page stub: glowing gold frame + a slow shimmer sweep. */
.golden-stage { position: relative; }
.golden-stage::before {
  content: ''; position: absolute; inset: -8px; border-radius: 16px; z-index: -1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: blur(14px); opacity: 0.45; animation: golden-pulse 2.6s ease-in-out infinite;
}
.show-hero.golden { position: relative; border-radius: 10px; overflow: hidden; }
.show-hero.golden::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,242,200,0.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: golden-sweep 3.4s ease-in-out infinite;
}
@keyframes golden-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.6; } }
@keyframes golden-sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
.golden-banner {
  text-align: center; font-weight: 800; color: var(--accent); margin: 12px 0 0; font-size: 15px;
}
/* one-shot sparkle burst */
.golden-burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.gb-spark {
  position: absolute; left: 50%; top: 50%; font-size: 20px; opacity: 0;
  animation: gb-fly 1.3s ease-out forwards;
}
@keyframes gb-fly {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .golden-stage::before, .show-hero.golden::after, .gb-spark { animation: none; }
  .gb-spark { display: none; }
}

/* ---- golden: profile mini-stubs, feed posts, recap ---- */
.mini-stub { position: relative; }
.mini-stub.golden svg, .post-stub.golden svg { box-shadow: 0 0 0 2px var(--accent), 0 8px 22px rgba(245,185,66,0.28); }
.golden-tag.mini { top: 4px; right: 4px; font-size: 10px; padding: 2px 6px; }
.post-stub { position: relative; }
.post-stub.golden { /* gold glow comes from the svg box-shadow above */ }

.golden-recap {
  margin: 22px 0 6px; background: linear-gradient(160deg, rgba(245,185,66,0.10), var(--panel));
  border: 1px solid rgba(245,185,66,0.45); border-radius: 16px; padding: 14px 16px;
}
.golden-recap .section-title { margin-top: 0; }
.recap-sub { font-size: 13px; margin: 0 0 10px; }
.recap-list { display: flex; flex-direction: column; gap: 6px; }
.recap-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text);
}
.recap-row:hover { border-color: var(--accent); }
.recap-row.current { border-color: var(--accent); background: rgba(245,185,66,0.12); cursor: default; }
.recap-n { color: var(--accent); font-weight: 800; font-size: 13px; width: 34px; }
.recap-when { font-weight: 700; font-size: 14px; white-space: nowrap; }
.recap-where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.recap-here { color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---- admin panel + support tickets ---- */
.admin-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-head-row .page-title { margin: 0; }
.admin-title-mark { font-size: 22px; line-height: 1; }
.admin-back { display: inline-block; margin-bottom: 4px; }
.admin-dot { color: var(--muted); margin: 0 2px; }

/* status pills */
.admin-pill {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap;
  border: 1px solid var(--glass-border);
}
.admin-pill-teal { color: var(--accent); border-color: rgba(0, 243, 209, 0.45); background: rgba(0, 243, 209, 0.10); }
.admin-pill-violet { color: var(--accent-2); border-color: rgba(138, 92, 255, 0.45); background: rgba(138, 92, 255, 0.10); }
.admin-pill-muted { color: var(--muted); background: rgba(255, 255, 255, 0.03); }

/* ticket / support lists */
.admin-ticket-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.admin-ticket-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: border-color 0.12s, transform 0.12s;
}
.admin-ticket-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.admin-tr-main { flex: 1; min-width: 0; }
.admin-tr-subject { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-tr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ticket thread */
.admin-ticket-header { margin-bottom: 16px; }
.admin-th-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-th-top .page-title { margin: 0; font-size: 22px; }
.admin-th-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.admin-ticket-controls { display: flex; gap: 16px; margin-bottom: 16px; max-width: 760px; }
.admin-ticket-controls label { flex: 1; margin: 0; }

.admin-thread { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 18px; }
.admin-msg {
  align-self: flex-start; max-width: 88%;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 14px;
}
.admin-msg-staff {
  align-self: flex-end; border-radius: 14px 14px 4px 14px;
  background: linear-gradient(150deg, rgba(0, 243, 209, 0.12), rgba(138, 92, 255, 0.08));
  border-color: rgba(0, 243, 209, 0.30);
}
.admin-msg-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.admin-msg-avatar { width: 26px; height: 26px; font-size: 15px; }
.admin-msg-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(0, 243, 209, 0.4); border-radius: 999px; padding: 1px 7px;
}
.admin-msg-when { font-size: 12px; margin-left: auto; }
.admin-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }

.admin-reply { max-width: 760px; }
.admin-reply textarea { resize: vertical; }
.admin-reply-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* admin dashboard */
.admin-tabs, .admin-filter { justify-content: flex-start; max-width: 760px; margin-left: 0; margin-right: 0; }
.admin-tab-content { max-width: 920px; }
.admin-sub-title { font-size: 15px; margin: 22px 0 12px; color: var(--text); }
.admin-sub-title:first-child { margin-top: 4px; }
.admin-count { margin: 12px 2px 0; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.admin-stat {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); text-align: center;
}
.admin-stat b { display: block; font-size: 24px; color: var(--accent); line-height: 1.2; }
.admin-stat span { color: var(--muted); font-size: 12.5px; }

.admin-spark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.admin-spark-card { padding: 16px; }
.admin-spark-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.admin-spark-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-spark-total { font-size: 22px; color: var(--accent); }
.admin-spark { display: block; width: 100%; height: 48px; }
.admin-spark-note { display: block; font-size: 11.5px; margin-top: 6px; }

.admin-rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.admin-rank-block .lb-list { gap: 6px; }
.admin-rank-block .lb-row { padding: 8px 12px; }

/* users tab */
.admin-search-row { max-width: 480px; margin-bottom: 16px; }
.admin-user-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.admin-user-id { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.admin-user-avatar { width: 34px; height: 34px; font-size: 18px; }
.admin-user-name { min-width: 0; }
.admin-user-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-id:hover .admin-user-name b { color: var(--accent); }
.admin-user-email { font-size: 12.5px; }
.admin-verified { color: var(--accent); font-weight: 800; }
.admin-user-stats { display: none; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@media (min-width: 640px) { .admin-user-stats { display: flex; } }

.admin-del-btn {
  flex: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 15px;
  background: rgba(255, 45, 85, 0.08); border: 1px solid rgba(255, 45, 85, 0.35); color: var(--signal);
}
.admin-del-btn:hover { background: rgba(255, 45, 85, 0.16); border-color: var(--signal); }
.admin-more { margin-top: 14px; }

/* content tab */
.admin-content-list { display: flex; flex-direction: column; gap: 8px; }
.admin-content-card, .admin-comment-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.admin-cc-main, .admin-cmt-main { flex: 1; min-width: 0; }
.admin-cc-head { font-size: 14px; }
.admin-cc-when { font-size: 12.5px; }
.admin-cc-place { font-size: 12.5px; margin-top: 3px; }
.admin-cc-caption { font-size: 13.5px; margin-top: 6px; overflow-wrap: anywhere; }
.admin-cc-counts { font-size: 12px; margin-top: 7px; }
.admin-cmt-body { font-size: 14px; margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }

/* recent stubs (mints) feed */
.admin-stub-note { font-size: 13px; margin: 0 0 12px; }
.admin-refresh { padding: 7px 14px; font-size: 13px; }
.admin-stub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 10px; margin-bottom: 22px;
}
.admin-stub-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.admin-stub-thumb {
  flex: none; width: 96px; aspect-ratio: 1.9 / 1; border-radius: 8px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
}
.admin-stub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-stub-main { flex: 1; min-width: 0; }
.admin-stub-band { font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-stub-meta { font-size: 12.5px; margin-top: 2px; }
.admin-stub-by { font-size: 12.5px; margin-top: 5px; display: flex; align-items: center; gap: 2px; }

/* confirm modal */
.admin-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
