:root {
  color-scheme: dark;
  --bg: #09070b;
  --panel: #171118;
  --panel-2: #211721;
  --ink: #fff8fb;
  --muted: #b7a6b5;
  --pink: #ff2d86;
  --pink-soft: #ff7fba;
  --violet: #6d35ff;
  --chrome: #f7f1f7;
  --silver: #8f8996;
  --lime: #b7ff18;
  --orange: #ff7338;
  --sky: #75d7ff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --glow: 0 0 32px rgba(255, 45, 134, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    view-transition-name: app-root;
  }
}

body::before {
  display: none;
}

.hidden {
  display: none !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(18px);
}

.auth-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: 2rem;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.auth-message {
  color: #9f3554;
  font-weight: 800;
}

.auth-switch {
  width: 100%;
}

.upload-field input {
  padding: 10px;
}

.upload-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.image-preview {
  display: grid;
  gap: 8px;
}

.image-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.app-frame {
  position: relative;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  gap: 0;
  padding: 0;
}

.shell-panel,
.main-surface,
.mini-card,
.event-card,
.hero-panel,
.filter-deck,
.social-panel,
.profile-hero,
.recap-card,
.admin-form,
.admin-table,
.virtual-room,
.event-list-panel,
.chat-panel,
.closet-board,
.dressing-room,
.profile-edit-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}

.shell-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  padding: 22px 18px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  overflow: auto;
}

.main-surface {
  min-height: 100vh;
  padding: 32px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  overflow: hidden;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chrome-logo {
  transform: none;
  background: none;
  background-clip: text;
  color: var(--ink);
  filter: none;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-lockup h1 {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand-lockup p,
.eyebrow,
.event-body p,
.meta-line,
.notification-chip p,
.notification-chip span,
.profile-spotlight p,
label,
.admin-row p,
.group-row p,
.friend-card p {
  color: var(--muted);
}

.profile-switcher {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary {
  display: grid;
  gap: 10px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.account-row .person-chip {
  width: 44px;
  height: 44px;
}

.account-row p {
  color: var(--muted);
  font-size: 0.84rem;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: var(--panel-2);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 4px rgba(201, 95, 131, 0.1);
}

.main-nav {
  display: grid;
  gap: 9px;
}

.nav-pill,
.chrome-button,
.ghost-button,
.filter-chip,
.rsvp-row button,
.modal-rsvp button,
.closet-tabs button,
.closet-grid button,
.friend-card button,
.admin-row button,
.map-event-row,
.hot-row,
.emote-bar button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #344054;
  background: transparent;
  font-weight: 800;
  justify-content: flex-start;
  padding: 0 12px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.nav-pill:hover,
.chrome-button:hover,
.ghost-button:hover,
.filter-chip:hover,
.rsvp-row button:hover,
.modal-rsvp button:hover,
.closet-grid button:hover,
.friend-card button:hover,
.admin-row button:hover,
.map-event-row:hover,
.hot-row:hover {
  transform: translateY(-1px);
  box-shadow: none;
  background: var(--panel-2);
}

.nav-pill.active,
.chrome-button,
.filter-chip.active,
.rsvp-row button.selected,
.closet-tabs button.active,
.closet-grid button.active,
.friend-card button.selected,
.map-event-row.active {
  border-color: var(--line);
  color: white;
  background: var(--ink);
  box-shadow: none;
}

.ghost-button {
  padding: 0 16px;
}

.chrome-button {
  padding: 0 18px;
}

.full {
  width: 100%;
}

.mini-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}

.left-shell {
  background: var(--panel);
}

.right-shell .mini-card:nth-child(2) {
  background: var(--panel);
}

.right-shell {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.notification-rail {
  display: grid;
  gap: 9px;
}

.notification-chip {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  animation: soft-pop 320ms ease both;
}

.notification-chip strong {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.76rem;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.top-bar h2 {
  max-width: 680px;
  background: none;
  background-clip: text;
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -1px;
}

.top-actions,
.hero-actions,
.chip-row,
.rsvp-row,
.modal-rsvp,
.form-actions,
.badge-row,
.swatch-row,
.emote-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.view-canvas {
  animation: rise 420ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #293241);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 760px;
}

.hero-copy h3 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -1px;
  color: white;
}

.hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-scene {
  position: relative;
  min-height: 360px;
}

.floating-doll {
  position: absolute;
  display: grid;
  justify-items: center;
  animation: floaty 3s ease-in-out infinite;
}

.floating-doll span {
  margin-top: -18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 4, 10, 0.78);
  box-shadow: var(--glow);
  font-size: 0.8rem;
  font-weight: 900;
}

.doll-0 {
  left: 8%;
  top: 14%;
}

.doll-1 {
  right: 20%;
  top: 2%;
  animation-delay: 0.4s;
}

.doll-2 {
  right: 2%;
  bottom: 2%;
  animation-delay: 0.8s;
}

@keyframes floaty {
  50% {
    transform: translateY(-10px);
  }
}

.filter-deck {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.summary-card,
.page-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  backdrop-filter: none;
}

.summary-card {
  display: grid;
  gap: 4px;
  min-height: 108px;
  align-content: end;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
}

.summary-card b {
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1;
}

.summary-card span {
  color: var(--ink);
  font-weight: 900;
}

.page-grid {
  display: grid;
  gap: 14px;
}

.page-grid.two-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.page-panel {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
}

.section-heading h3 {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.filter-chip {
  padding: 0 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}

.section-heading h3 {
  font-size: 1.35rem;
}

.section-heading span {
  color: var(--muted);
  font-weight: 900;
}

.masonry-feed,
.popular-strip,
.mini-feed {
  display: grid;
  gap: 16px;
}

.masonry-feed {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
}

.popular-strip,
.mini-feed {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.event-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel);
  transform-origin: center;
  animation: card-in 260ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.event-card:nth-child(2) {
  animation-delay: 40ms;
}

.event-card:nth-child(3) {
  animation-delay: 80ms;
}

.event-card:nth-child(4) {
  animation-delay: 120ms;
}

.event-card:nth-child(5) {
  animation-delay: 160ms;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.event-card.compact {
  display: grid;
  grid-template-columns: 130px 1fr;
}

.event-cover {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, #7ec66a, #2c6e3f);
  background-position: center;
  background-size: cover;
}

.event-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-card.compact .event-cover {
  min-height: 100%;
}

.event-cover::after {
  position: absolute;
  inset: auto 16px 16px;
  height: 52px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  filter: blur(12px);
}

.event-cover span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 1000;
}

.cover-gloss {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 90%;
  height: 90%;
  transform: rotate(26deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
}

.event-cover.rooftop {
  background: linear-gradient(135deg, #f3b33f, #d76884 58%, #172331);
}

.event-cover.festival {
  background: linear-gradient(135deg, #63c5dd, #f3b33f 58%, #172331);
}

.event-cover.cafe {
  background: linear-gradient(135deg, #ef9e90, #d76884);
}

.event-cover.art,
.event-cover.gallery {
  background: linear-gradient(135deg, #63c5dd, #172331);
}

.event-cover.picnic,
.event-cover.beach {
  background: linear-gradient(135deg, #63c5dd, #f3b33f);
}

.event-cover.networking {
  background: linear-gradient(135deg, #f7f4ef, #ef9e90 48%, #172331);
}

.event-cover.has-photo {
  background-position: center !important;
  background-size: cover !important;
}

.event-cover.has-photo .cover-gloss,
.event-cover.has-photo::after {
  display: none;
}

.event-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.event-card-top,
.meta-line,
.attendee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-badge,
.price-badge,
.mood-pill,
.badge-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.event-body h3 {
  font-size: 1.3rem;
  text-transform: none;
  line-height: 1.05;
}

.event-body p {
  line-height: 1.42;
}

.friends-going {
  color: var(--pink);
  font-weight: 900;
}

.tiny-stack {
  display: flex;
  min-height: 34px;
}

.person-chip {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #120714;
  background: var(--accent);
  box-shadow: none;
  font-weight: 1000;
}

.large-chip {
  width: 92px;
  height: 92px;
  font-size: 1.5rem;
}

.hero-chip {
  width: 180px;
  height: 180px;
  font-size: 3rem;
}

.tiny-chip {
  width: 34px;
  height: 34px;
  margin-left: -7px;
  font-size: 0.72rem;
}

.tiny-stack .tiny-chip:first-child {
  margin-left: 0;
}

.rsvp-row button,
.modal-rsvp button {
  flex: 1;
  min-width: 92px;
  padding: 0 12px;
}

.ticket-link {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  background: var(--ink);
  box-shadow: none;
  font-weight: 1000;
}

.action-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(320px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #172331, #d76884);
  box-shadow: var(--shadow);
  font-weight: 900;
  animation: toast-in 220ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-spotlight {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.profile-spotlight:hover,
.filter-deck:hover {
  transform: translateY(-2px);
}

.simple-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
}

.hero-friends {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-friends div {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.hero-friends span {
  font-weight: 900;
}

.spotlight-orbit {
  width: 128px;
  height: 152px;
  overflow: hidden;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.stat-grid span,
.recap-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  text-align: center;
}

.hot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  text-align: left;
}

.map-layout {
  display: grid;
  grid-template-columns: 250px minmax(360px, 1fr) 280px;
  gap: 14px;
}

.event-list-panel,
.chat-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
}

.map-event-row {
  display: grid;
  gap: 3px;
  padding: 12px;
  text-align: left;
  border-radius: 16px;
}

.map-event-row small {
  color: var(--muted);
}

.virtual-room {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 86%, rgba(255, 107, 230, 0.42), transparent 28%),
    linear-gradient(rgba(255, 184, 242, 0.12), rgba(7, 4, 9, 0.82)),
    linear-gradient(#54234f 0 50%, #140a16 50% 100%);
}

.virtual-room.rooftop::before,
.virtual-room.festival::before,
.virtual-room.cafe::before,
.virtual-room.gallery::before,
.virtual-room.beach::before {
  position: absolute;
  inset: 120px 8% auto;
  height: 220px;
  content: "";
  opacity: 0.65;
}

.virtual-room.rooftop::before {
  background: linear-gradient(90deg, transparent 0 8%, #170b1a 8% 15%, transparent 15% 22%, #261027 22% 32%, transparent 32% 44%, #140914 44% 52%, transparent 52% 60%, #2d1431 60% 74%, transparent 74%);
}

.virtual-room.festival::before {
  background: radial-gradient(circle at 20% 40%, #ffd76e, transparent 10%), radial-gradient(circle at 70% 35%, #ff6be6, transparent 12%), linear-gradient(90deg, transparent 0 28%, #1a0a18 28% 72%, transparent 72%);
}

.virtual-room.cafe::before {
  background: linear-gradient(90deg, transparent 0 12%, #2c1426 12% 24%, transparent 24% 40%, #2c1426 40% 58%, transparent 58% 72%, #2c1426 72% 86%, transparent 86%);
}

.virtual-room.gallery::before {
  background: linear-gradient(90deg, transparent 0 12%, rgba(223, 229, 255, 0.65) 12% 26%, transparent 26% 40%, rgba(255, 107, 230, 0.5) 40% 55%, transparent 55% 70%, rgba(223, 229, 255, 0.6) 70% 84%, transparent 84%);
}

.virtual-room.beach::before {
  background: radial-gradient(ellipse at center, rgba(126, 224, 255, 0.42), transparent 40%);
}

.room-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.room-top h3 {
  font-size: 1.8rem;
}

.room-sign {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 10px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 4, 12, 0.78);
  box-shadow: var(--glow);
  color: var(--pink-soft);
  font-weight: 1000;
  text-transform: uppercase;
}

.dance-floor {
  position: absolute;
  inset: 230px 0 58px;
}

.room-avatar {
  position: absolute;
  display: grid;
  justify-items: center;
  width: 118px;
  height: 192px;
  border: 0;
  background: transparent;
  color: var(--ink);
  animation: idle 2.8s ease-in-out infinite;
}

.room-avatar span {
  margin-top: -22px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 4, 11, 0.76);
  box-shadow: var(--glow);
  font-size: 0.78rem;
  font-weight: 900;
}

.avatar-pos-0 { left: 10%; top: 16%; }
.avatar-pos-1 { left: 34%; top: 4%; animation-delay: 0.2s; }
.avatar-pos-2 { left: 62%; top: 18%; animation-delay: 0.4s; }
.avatar-pos-3 { left: 20%; top: 46%; animation-delay: 0.6s; }
.avatar-pos-4 { left: 50%; top: 44%; animation-delay: 0.8s; }
.avatar-pos-5 { left: 76%; top: 48%; animation-delay: 1s; }
.avatar-pos-6 { left: 5%; top: 62%; animation-delay: 1.2s; }
.avatar-pos-7 { left: 40%; top: 66%; animation-delay: 1.4s; }

@keyframes idle {
  50% { transform: translateY(-7px); }
}

.emote-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
}

.emote-bar button {
  padding: 0 14px;
}

.chat-log {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.chat-log p {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8e5f6;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-form button {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  background: rgba(255, 107, 230, 0.42);
  font-weight: 900;
}

.avatar-creator {
  display: grid;
  grid-template-columns: 110px minmax(240px, 330px) minmax(320px, 1fr) minmax(240px, 320px);
  gap: 14px;
}

.closet-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.closet-tabs button {
  min-height: 68px;
  text-transform: uppercase;
}

.closet-board,
.dressing-room,
.profile-edit-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
}

.closet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.closet-grid button {
  min-height: 84px;
  padding: 10px;
  border-radius: 18px;
  text-transform: uppercase;
}

.swatch-row {
  align-items: center;
}

.swatch {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--swatch);
}

.swatch.active {
  box-shadow: var(--glow);
}

.dressing-room {
  position: relative;
  min-height: 660px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at bottom, rgba(255, 107, 230, 0.32), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
    linear-gradient(#5a2452 0 44%, #1a0c1a 44%);
  background-size: auto, 84px 100%, auto;
}

.mirror-glow {
  position: absolute;
  bottom: 54px;
  width: 72%;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 107, 230, 0.24);
  filter: blur(4px);
}

.avatar-nameplate {
  position: absolute;
  bottom: 22px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 4, 10, 0.78);
  box-shadow: var(--glow);
  font-weight: 1000;
  text-transform: uppercase;
}

.stack-form,
.admin-form {
  display: grid;
  gap: 12px;
}

.stack-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.social-panel {
  padding: 16px;
  border-radius: 26px;
}

.email-preview-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(95, 29, 82, 0.76), rgba(20, 8, 22, 0.78));
  box-shadow: var(--shadow), inset 0 0 24px rgba(255, 255, 255, 0.05);
}

.email-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 184, 242, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at 90% 0%, rgba(255, 107, 230, 0.28), transparent 30%),
    rgba(255, 255, 255, 0.07);
}

.email-topline {
  color: var(--pink-soft);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 1000;
}

.email-card h4 {
  font-size: 1.5rem;
}

.email-card p,
.automation-list p {
  color: var(--muted);
}

.email-gloss,
.automation-list p {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 184, 242, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.email-gloss b {
  color: var(--ink);
}

.wide-social {
  grid-column: 1 / -1;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.friend-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}

.friend-card button {
  width: 100%;
}

.group-row,
.activity-list p {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.group-row + .group-row,
.activity-list p + p {
  margin-top: 10px;
}

.activity-list span {
  color: var(--pink-soft);
  font-weight: 900;
}

.profile-page {
  display: grid;
  gap: 16px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
}

.simple-profile {
  grid-template-columns: auto 1fr;
}

.profile-hero h3 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.profile-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.login-prompt {
  min-height: 360px;
  align-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 45, 134, 0.28), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.login-prompt-mark {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid rgba(255, 127, 186, 0.52);
  border-radius: 30px;
  color: var(--lime);
  background: linear-gradient(135deg, #ff2d86, #681236);
  box-shadow: var(--glow);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4rem;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.recap-card b {
  color: var(--ink);
  font-size: 2rem;
}

.memory-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.memory-card {
  display: grid;
  min-height: 170px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 92, 168, 0.22), rgba(125, 220, 255, 0.2), rgba(183, 243, 107, 0.22)), #fffaf0;
  box-shadow: var(--shadow);
}

.memory-card span {
  font-weight: 1000;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.admin-quick-import {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 45, 134, 0.2), transparent 16rem),
    rgba(13, 10, 15, 0.86);
  box-shadow: var(--shadow);
}

.admin-quick-import h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-quick-import p:not(.eyebrow),
.import-draft p,
.import-draft span,
.import-message {
  color: var(--muted);
}

.quick-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quick-import-results {
  display: grid;
  gap: 10px;
}

.import-actions,
.import-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.import-actions {
  padding-top: 4px;
}

.import-draft-list {
  display: grid;
  gap: 8px;
}

.import-draft {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.import-draft strong {
  color: var(--ink);
}

.import-draft button {
  min-height: 36px;
  border: 1px solid rgba(183, 255, 24, 0.62);
  border-radius: 10px;
  color: #070508;
  background: var(--lime);
  font-weight: 1000;
}

.admin-form,
.admin-table {
  padding: 16px;
  border-radius: 18px;
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form .full,
.form-actions {
  grid-column: 1 / -1;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.admin-row + .admin-row {
  margin-top: 10px;
}

.admin-row div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-row button {
  padding: 0 12px;
}

dialog {
  width: min(940px, calc(100% - 22px));
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

dialog::backdrop {
  background: rgba(3, 1, 4, 0.68);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: modal-in 220ms ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fffaf0;
  font-size: 1.6rem;
}

.event-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
}

.event-detail .event-cover {
  min-height: 620px;
}

.event-detail-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
}

.event-detail-body h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.9;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf0;
  color: var(--muted);
}

.detail-grid b {
  color: var(--ink);
}

.attendee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.attendee-list div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: #fffaf0;
}

.modal-form {
  padding: 26px;
}

.modal-form h3 {
  font-size: 2.2rem;
}

.empty-state {
  color: var(--muted);
  padding: 18px;
}

.avatar-doll {
  position: relative;
  width: 220px;
  height: 430px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.5));
}

.avatar-doll.large {
  transform: scale(1.08);
}

.avatar-doll.mini {
  transform: scale(0.38);
  transform-origin: top center;
}

.avatar-doll.tiny {
  transform: scale(0.42);
  transform-origin: top center;
}

.doll-hair {
  position: absolute;
  left: 48px;
  top: 18px;
  z-index: 1;
  width: 124px;
  height: 172px;
  border-radius: 66px 66px 44px 44px;
  background: var(--hair);
  box-shadow: inset -16px -10px rgba(0, 0, 0, 0.25);
}

.doll-hair.blowout {
  width: 142px;
  left: 39px;
  border-radius: 72px 72px 64px 64px;
}

.doll-hair.curls {
  background:
    radial-gradient(circle at 22px 42px, rgba(255, 255, 255, 0.13), transparent 18px),
    radial-gradient(circle at 78px 86px, rgba(0, 0, 0, 0.24), transparent 24px),
    var(--hair);
}

.doll-hair.high-pony::after {
  position: absolute;
  right: -24px;
  top: 44px;
  width: 48px;
  height: 120px;
  border-radius: 999px;
  content: "";
  background: var(--hair);
}

.doll-head {
  position: absolute;
  left: 60px;
  top: 56px;
  z-index: 2;
  width: 100px;
  height: 116px;
  border: 3px solid #11080f;
  border-radius: 52% 52% 46% 46%;
  background: var(--skin);
}

.eye {
  position: absolute;
  top: 50px;
  width: 24px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: inset 0 -4px rgba(0, 0, 0, 0.18);
}

.eye::after {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #10070e;
}

.eye.left { left: 18px; }
.eye.right { right: 18px; }

.mouth {
  position: absolute;
  left: 36px;
  top: 86px;
  width: 30px;
  height: 14px;
  border-radius: 50%;
  background: #8d2634;
  box-shadow: inset 0 5px rgba(255, 195, 205, 0.36);
}

.doll-neck {
  position: absolute;
  left: 94px;
  top: 160px;
  z-index: 1;
  width: 34px;
  height: 42px;
  background: var(--skin);
}

.doll-arm {
  position: absolute;
  top: 202px;
  z-index: 1;
  width: 30px;
  height: 118px;
  border: 3px solid #11080f;
  border-radius: 999px;
  background: var(--skin);
}

.doll-arm.left {
  left: 38px;
  transform: rotate(10deg);
}

.doll-arm.right {
  right: 38px;
  transform: rotate(-15deg);
}

.doll-top {
  position: absolute;
  left: 58px;
  top: 190px;
  z-index: 2;
  width: 106px;
  height: 90px;
  border: 3px solid #11080f;
  border-radius: 34px 34px 18px 18px;
  background: var(--top);
}

.doll-top.chrome-cami {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), transparent 38%), var(--top);
}

.doll-top.baby-tee {
  border-radius: 20px;
}

.doll-top.corset {
  clip-path: polygon(18% 0, 82% 0, 96% 100%, 4% 100%);
}

.doll-bottom {
  position: absolute;
  left: 52px;
  top: 270px;
  z-index: 2;
  width: 116px;
  height: 116px;
  border: 3px solid #11080f;
  background: var(--bottom);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 58% 100%, 50% 30%, 42% 100%, 12% 100%);
}

.doll-bottom.mini-skirt,
.doll-bottom.cargo-skirt {
  height: 76px;
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
}

.doll-leg {
  position: absolute;
  top: 356px;
  z-index: 1;
  width: 42px;
  height: 56px;
  border-radius: 20px;
  background: var(--skin);
}

.doll-leg.left { left: 63px; }
.doll-leg.right { right: 63px; }

.doll-shoe {
  position: absolute;
  top: 402px;
  z-index: 4;
  width: 64px;
  height: 34px;
  border: 3px solid #11080f;
  border-radius: 22px 22px 10px 10px;
  background: var(--shoe);
}

.doll-shoe.left { left: 45px; }
.doll-shoe.right { right: 45px; }
.doll-shoe.boots { top: 390px; height: 46px; border-radius: 16px 16px 8px 8px; }
.doll-shoe.heels { height: 27px; border-radius: 24px 10px 8px 8px; }

.doll-accessory {
  position: absolute;
  z-index: 5;
}

.doll-accessory.hoops::before,
.doll-accessory.hoops::after {
  position: absolute;
  top: 104px;
  width: 18px;
  height: 28px;
  border: 3px solid #f3d47a;
  border-radius: 50%;
  content: "";
}

.doll-accessory.hoops::before { left: 48px; }
.doll-accessory.hoops::after { left: 154px; }

.doll-accessory.tiny-bag::after {
  position: absolute;
  left: 148px;
  top: 252px;
  width: 38px;
  height: 34px;
  border: 3px solid #11080f;
  border-radius: 10px;
  content: "";
  background: #0f0a0f;
}

.doll-accessory.sunglasses::after {
  position: absolute;
  left: 73px;
  top: 103px;
  width: 74px;
  height: 20px;
  border: 3px solid #11080f;
  border-radius: 999px;
  content: "";
}

.doll-accessory.pearls::after {
  position: absolute;
  left: 88px;
  top: 178px;
  width: 46px;
  height: 22px;
  border-bottom: 5px dotted #fff8df;
  border-radius: 50%;
  content: "";
}

/* Nightlife editorial skin: pink TV wall, dance studio energy, clean product layout. */
body {
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 45, 134, 0.34), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(109, 53, 255, 0.26), transparent 22rem),
    linear-gradient(135deg, #070508 0%, #120b12 42%, #050505 100%);
}

body::before {
  display: block;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

.auth-gate {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 45, 134, 0.38), transparent 28rem),
    rgba(8, 5, 10, 0.9);
}

.auth-card,
.shell-panel,
.main-surface,
.mini-card,
.event-card,
.hero-panel,
.filter-deck,
.social-panel,
.profile-hero,
.recap-card,
.admin-form,
.admin-table,
.virtual-room,
.event-list-panel,
.chat-panel,
.closet-board,
.dressing-room,
.profile-edit-panel,
.modal-shell,
.page-panel,
.summary-card,
.profile-spotlight,
.notification-chip,
.friend-card,
.group-row,
.admin-row {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.app-frame {
  gap: 14px;
  padding: 14px;
  background: transparent;
}

.shell-panel {
  border-width: 1px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 45, 134, 0.13), transparent 34%),
    rgba(13, 9, 14, 0.88);
}

.main-surface {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 45, 134, 0.2), transparent 24rem),
    rgba(11, 9, 13, 0.82);
}

.chrome-logo,
.top-bar h2,
.hero-copy h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.02em;
}

.chrome-logo {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 45, 134, 0.6);
  transform: rotate(-4deg);
}

.brand-lockup h1,
.event-body h3,
.section-heading h3,
.summary-card span,
.notification-chip strong,
.mini-card .eyebrow,
.top-bar .eyebrow {
  color: var(--ink);
}

.brand-lockup p,
.eyebrow,
.event-body p,
.meta-line,
.notification-chip p,
.notification-chip span,
.profile-spotlight p,
label,
.admin-row p,
.group-row p,
.friend-card p,
.section-heading span {
  color: var(--muted);
}

.top-bar {
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.top-bar h2 {
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 45, 134, 0.22);
}

select,
input,
textarea {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 45, 134, 0.18);
  background: rgba(0, 0, 0, 0.4);
}

.account-row,
.notification-chip,
.stat-grid span,
.recap-card {
  background: rgba(255, 255, 255, 0.065);
}

.nav-pill,
.chrome-button,
.ghost-button,
.filter-chip,
.rsvp-row button,
.modal-rsvp button,
.friend-card button,
.admin-row button,
.hot-row,
.map-event-row,
.ticket-link {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-pill:hover,
.ghost-button:hover,
.filter-chip:hover,
.rsvp-row button:hover,
.modal-rsvp button:hover,
.friend-card button:hover,
.admin-row button:hover,
.map-event-row:hover,
.hot-row:hover {
  background: rgba(255, 45, 134, 0.13);
  border-color: rgba(255, 45, 134, 0.42);
}

.nav-pill.active,
.chrome-button,
.filter-chip.active,
.rsvp-row button.selected,
.modal-rsvp button.selected,
.friend-card button.selected,
.map-event-row.active,
.ticket-link {
  color: #070508;
  border-color: rgba(183, 255, 24, 0.84);
  background: linear-gradient(135deg, var(--lime), #f6ff88);
  box-shadow: 0 10px 28px rgba(183, 255, 24, 0.16);
}

.chrome-button:hover,
.ticket-link:hover {
  background: linear-gradient(135deg, #fff, var(--lime));
}

.ghost-button {
  color: var(--pink-soft);
}

.hero-panel {
  min-height: 380px;
  isolation: isolate;
  border-color: rgba(255, 45, 134, 0.36);
  background:
    linear-gradient(120deg, rgba(8, 5, 10, 0.92), rgba(42, 7, 27, 0.82) 46%, rgba(9, 7, 12, 0.92)),
    radial-gradient(circle at 76% 18%, rgba(255, 45, 134, 0.45), transparent 18rem);
  box-shadow: 0 30px 90px rgba(255, 45, 134, 0.18);
}

.hero-panel::before {
  position: absolute;
  inset: 22px 22px 22px auto;
  z-index: -1;
  width: min(430px, 42%);
  border: 1px solid rgba(255, 127, 186, 0.42);
  border-radius: 20px;
  content: "";
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 45, 134, 0.28) 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, rgba(255, 45, 134, 0.25) 49% 51%, transparent 52%),
    radial-gradient(circle at 35% 28%, rgba(183, 255, 24, 0.72), transparent 5rem),
    linear-gradient(135deg, #e30063, #421139 52%, #0b080d);
  background-size: 50% 50%, 50% 50%, auto, auto;
  opacity: 0.7;
  transform: rotate(1deg);
}

.hero-panel::after {
  position: absolute;
  right: 44px;
  bottom: 34px;
  z-index: -1;
  width: min(280px, 30%);
  height: 80px;
  border: 1px solid rgba(183, 255, 24, 0.46);
  border-radius: 12px;
  content: "MTL SUMMER TICKETS";
  display: grid;
  place-items: center;
  color: var(--lime);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 9px),
    rgba(0, 0, 0, 0.34);
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h3 {
  max-width: 680px;
  text-transform: uppercase;
  color: white;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 248, 251, 0.84);
}

.tv-hero {
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  min-height: 540px;
  padding: 34px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 145, 191, 0.58), transparent 17rem),
    radial-gradient(circle at 18% 18%, rgba(255, 45, 134, 0.38), transparent 20rem),
    linear-gradient(135deg, #2c071a 0%, #7b123d 46%, #16070d 100%);
}

.tv-hero::before,
.tv-hero::after {
  display: none;
}

.tv-hero .hero-copy {
  position: relative;
  z-index: 2;
  align-content: end;
  padding: 18px 0;
}

.tv-hero .eyebrow {
  color: #ffd8ea;
  letter-spacing: 0.08em;
}

.tv-hero h3 {
  max-width: 520px;
  font-size: clamp(4.2rem, 8vw, 8.5rem);
  line-height: 0.78;
  text-shadow:
    0 0 30px rgba(255, 45, 134, 0.42),
    0 8px 0 rgba(94, 8, 45, 0.55);
}

.tv-hero .hero-copy p:not(.eyebrow) {
  max-width: 470px;
  color: rgba(255, 246, 250, 0.88);
  font-weight: 760;
}

.tv-wall {
  position: relative;
  min-height: 470px;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.42));
}

.tv-frame {
  position: absolute;
  display: grid;
  padding: 14px;
  border: 1px solid rgba(255, 165, 205, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 139, 190, 0.38), transparent 20%),
    linear-gradient(180deg, #cf1b65, #861344 58%, #5a0f31);
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.22),
    inset 0 -12px 20px rgba(66, 5, 32, 0.55),
    0 18px 38px rgba(41, 4, 22, 0.52);
}

.tv-frame::before {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 14px;
  border-radius: 999px;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(47, 4, 24, 0.72) 0 7px, transparent 7px 12px);
}

.tv-frame::after {
  position: absolute;
  right: 11px;
  top: 28px;
  width: 12px;
  height: 54px;
  border-radius: 999px;
  content: "";
  background:
    radial-gradient(circle, #ffd0e6 0 3px, transparent 4px),
    radial-gradient(circle at 50% 78%, #3f061f 0 4px, transparent 5px);
  background-size: 100% 22px;
}

.tv-screen {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100%;
  padding: 18px;
  border: 2px solid rgba(83, 8, 42, 0.72);
  border-radius: 17px;
  overflow: hidden;
  color: #8a123f;
  text-align: center;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.9), transparent 3.2rem),
    linear-gradient(135deg, #ffd6e9, #ff85be 55%, #ff4b94);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.32),
    inset 0 0 50px rgba(105, 9, 48, 0.18);
}

.tv-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.tv-screen span,
.tv-screen b {
  position: relative;
  z-index: 1;
}

.tv-screen span {
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.tv-screen b {
  max-width: 100%;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.tv-large {
  left: 11%;
  top: 0;
  width: 46%;
  height: 38%;
  transform: rotate(-2deg);
}

.tv-one {
  right: 0;
  top: 4%;
  width: 36%;
  height: 32%;
  transform: rotate(2deg);
}

.tv-two {
  left: 0;
  top: 38%;
  width: 30%;
  height: 25%;
  transform: rotate(1deg);
}

.tv-three {
  left: 32%;
  top: 39%;
  width: 34%;
  height: 30%;
  transform: rotate(-1deg);
}

.tv-four {
  right: 4%;
  bottom: 2%;
  width: 38%;
  height: 34%;
  transform: rotate(1deg);
}

.tv-blank {
  left: 7%;
  bottom: 0;
  width: 28%;
  height: 23%;
  opacity: 0.72;
}

.tv-photo .tv-screen {
  color: #fff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.44), transparent 3.8rem),
    linear-gradient(135deg, rgba(255, 45, 134, 0.92), rgba(43, 6, 33, 0.88)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 9px);
}

.dashboard-grid {
  gap: 14px;
}

.summary-card {
  min-height: 126px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, 0.08) 72% 73%, transparent 73%),
    linear-gradient(180deg, rgba(255, 45, 134, 0.16), rgba(255, 255, 255, 0.035));
}

.summary-card b {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(183, 255, 24, 0.22);
}

.page-panel,
.filter-deck {
  background: rgba(18, 13, 19, 0.78);
}

.section-heading h3 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-card {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(14, 10, 15, 0.9);
}

.event-card:hover {
  border-color: rgba(255, 45, 134, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.masonry-feed {
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}

.popular-strip,
.mini-feed {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-card.compact {
  display: block;
}

.event-cover {
  min-height: 136px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.32), transparent 5rem),
    linear-gradient(135deg, #ff2d86, #61163e 58%, #070508);
}

.event-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-card.compact .event-cover {
  min-height: 112px;
}

.event-body {
  gap: 8px;
  padding: 12px;
}

.event-body h3 {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.02;
}

.event-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.event-card-top {
  align-items: flex-start;
}

.meta-line {
  font-size: 0.82rem;
}

.mood-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 9px;
  font-size: 0.75rem;
}

.rsvp-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.rsvp-row button {
  min-width: 0;
  min-height: 34px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.rsvp-row button[data-clear-rsvp] {
  grid-column: 1 / -1;
}

.event-cover::before {
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  content: "";
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.1);
}

.event-cover span {
  z-index: 2;
  color: #070508;
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--lime);
}

.event-cover.rooftop {
  background: linear-gradient(135deg, #ff2d86, #d64d13 56%, #08080c);
}

.event-cover.festival {
  background: linear-gradient(135deg, #732cff, #ff2d86 52%, #070508);
}

.event-cover.cafe {
  background: linear-gradient(135deg, #ff7fba, #4b1236 62%, #09070b);
}

.event-cover.art,
.event-cover.gallery {
  background: linear-gradient(135deg, #75d7ff, #6d35ff 48%, #09070b);
}

.event-cover.picnic,
.event-cover.beach {
  background: linear-gradient(135deg, #b7ff18, #ff7338 54%, #16070d);
}

.event-cover.networking {
  background: linear-gradient(135deg, #f7f1f7, #ff2d86 46%, #09070b);
}

.event-cover.has-photo {
  background-position: center !important;
  background-size: cover !important;
}

.event-cover.has-photo .cover-gloss,
.event-cover.has-photo::after {
  display: none;
}

.date-badge,
.price-badge,
.mood-pill,
.badge-row span {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.price-badge {
  color: #070508;
  background: var(--chrome);
}

.friends-going {
  color: var(--lime);
}

.person-chip {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.admin-table,
.admin-form,
.profile-hero,
.friend-card {
  background: rgba(13, 10, 15, 0.86);
}

.admin-row {
  background: rgba(255, 255, 255, 0.055);
}

.action-toast {
  color: #070508;
  border-color: rgba(183, 255, 24, 0.6);
  background: linear-gradient(135deg, var(--lime), #fff);
}

@media (max-width: 1220px) {
  .app-frame {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .right-shell {
    display: none;
  }

  .map-layout,
  .avatar-creator,
  .admin-layout,
  .page-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .closet-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-frame {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .shell-panel {
    position: static;
    height: auto;
    border-radius: 24px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .left-shell {
    order: 2;
  }

  .main-surface {
    order: 1;
    min-height: auto;
    padding: 14px;
    border-radius: 24px;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-pill {
    padding: 0 8px;
  }

  .top-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-bar h2 {
    font-size: 2.6rem;
    letter-spacing: -1px;
  }

  .hero-panel {
    min-height: 360px;
    padding: 20px;
  }

  .hero-copy h3 {
    font-size: 2.35rem;
  }

  .filter-deck {
    padding: 14px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    min-height: 98px;
    padding: 14px;
  }

  .summary-card b {
    font-size: 1.9rem;
  }

  .page-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .hero-actions,
  .form-actions {
    width: 100%;
  }

  .top-actions > *,
  .hero-actions > *,
  .form-actions > * {
    flex: 1;
  }

  .event-card {
    border-radius: 22px;
  }

  .event-card.compact {
    display: block;
  }

  .event-card.compact .event-cover {
    min-height: 170px;
  }

  .event-card-top,
  .meta-line,
  .attendee-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rsvp-row button {
    min-width: calc(50% - 5px);
  }

  .hero-panel,
  .profile-hero,
  .event-detail,
  .event-card.compact,
  .social-grid,
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .hero-friends {
    justify-content: start;
  }

  .hero-chip {
    width: 120px;
    height: 120px;
    font-size: 2rem;
  }

  .hero-scene {
    min-height: 290px;
  }

  .event-detail .event-cover {
    min-height: 260px;
  }

  .popular-strip,
  .mini-feed,
  .masonry-feed {
    grid-template-columns: 1fr;
  }

  .friend-grid {
    grid-template-columns: 1fr;
  }

  .virtual-room {
    min-height: 560px;
  }

  .dance-floor {
    top: 190px;
  }

  .avatar-creator {
    grid-template-columns: 1fr;
  }

  .dressing-room {
    min-height: 540px;
  }

  .avatar-doll.large {
    transform: scale(0.86);
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row div:last-child {
    flex-wrap: wrap;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .tv-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tv-hero .hero-copy {
    align-content: start;
  }

  .tv-wall {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .tv-hero {
    padding: 22px;
  }

  .tv-hero h3 {
    font-size: clamp(3.1rem, 17vw, 5.4rem);
  }

  .tv-wall {
    min-height: 360px;
    margin-top: 8px;
  }

  .tv-frame {
    border-radius: 18px;
    padding: 10px;
  }

  .tv-large {
    left: 4%;
    top: 0;
    width: 58%;
    height: 30%;
  }

  .tv-one {
    right: 0;
    top: 7%;
    width: 39%;
    height: 27%;
  }

  .tv-two {
    left: 0;
    top: 34%;
    width: 36%;
    height: 23%;
  }

  .tv-three {
    left: 38%;
    top: 36%;
    width: 50%;
    height: 24%;
  }

  .tv-four {
    right: 4%;
    bottom: 3%;
    width: 54%;
    height: 30%;
  }

  .tv-blank {
    left: 3%;
    bottom: 2%;
    width: 33%;
    height: 24%;
  }

  .tv-screen b {
    font-size: clamp(1.3rem, 6vw, 2.2rem);
  }
}

@media (max-width: 760px) {
  .quick-import-form {
    grid-template-columns: 1fr;
  }

  .import-actions,
  .import-draft {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 92px;
  }

  .app-frame {
    gap: 10px;
    padding: 0;
  }

  .main-surface {
    padding: 12px;
    border-radius: 0;
  }

  .left-shell {
    position: fixed;
    top: auto !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    display: block;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    background: rgba(9, 7, 11, 0.94);
    backdrop-filter: blur(18px);
    overflow: visible;
  }

  .left-shell.shell-panel {
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .left-shell .brand-lockup,
  .left-shell .account-summary,
  .left-shell .mini-card {
    display: none;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  .nav-pill {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding: 0 2px;
    border-radius: 14px;
    font-size: clamp(0.5rem, 2vw, 0.6rem);
    line-height: 0.96;
    text-align: center;
    letter-spacing: 0;
    white-space: normal;
    overflow: hidden;
  }

  .nav-pill span {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .nav-pill[data-view="events"],
  .nav-pill[data-view="plans"] {
    font-size: clamp(0.48rem, 1.9vw, 0.56rem);
  }

  .nav-pill[data-view="admin"] {
    display: none;
  }

  .top-bar {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: -12px -12px 10px;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 7, 11, 0.92);
    backdrop-filter: blur(16px);
  }

  .top-bar h2 {
    font-size: 1.62rem;
    line-height: 1.02;
    letter-spacing: 0;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .top-actions button,
  .hero-actions button {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .hero-panel {
    min-height: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-copy h3 {
    font-size: 2rem;
    line-height: 0.98;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .tv-wall {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-card {
    min-height: 78px;
    border-radius: 18px;
  }

  .summary-card b {
    font-size: 1.65rem;
  }

  .filter-deck {
    display: grid;
    gap: 10px;
    margin: 0 -2px 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .chip-row {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 36px;
    border-radius: 999px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .section-heading {
    margin: 20px 0 10px;
  }

  .section-heading h3 {
    font-size: 1.05rem;
  }

  .masonry-feed,
  .popular-strip,
  .mini-feed {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-card,
  .event-card.compact {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 168px;
    border-radius: 22px;
  }

  .event-cover,
  .event-card.compact .event-cover {
    min-height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
  }

  .event-cover span {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 9px;
    font-size: 0.62rem;
  }

  .event-body {
    min-width: 0;
    padding: 12px;
  }

  .event-body h3 {
    font-size: 1.1rem;
    line-height: 1.04;
  }

  .event-body p {
    -webkit-line-clamp: 2;
    font-size: 0.86rem;
  }

  .event-card-top {
    gap: 6px;
  }

  .date-badge,
  .price-badge,
  .mood-pill {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
  }

  .meta-line {
    gap: 3px;
    font-size: 0.76rem;
  }

  .rsvp-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rsvp-row button,
  .rsvp-row button[data-clear-rsvp] {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    justify-content: center;
    font-size: 0.72rem;
  }

  dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
  }

  .modal-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    overflow: auto;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .event-detail {
    grid-template-columns: 1fr;
  }

  .event-detail .event-cover {
    min-height: 280px;
  }

  .event-detail-body {
    padding: 18px;
  }

  .event-detail-body h3 {
    font-size: 2rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-rsvp {
    grid-template-columns: 1fr;
  }

  .page-grid.two-columns,
  .admin-layout,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .admin-row div:last-child {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-row div:last-child {
    display: grid;
  }
}
