:root {
  --bg-canvas: #ffffff;
  --bg-surface: #f7fbf9;
  --bg-card: #ffffff;
  --bg-subtle: #f1f8f4;
  --bg-header: rgba(255, 255, 255, 0.96);
  --text-primary: #0b2419;
  --text-secondary: #335344;
  --text-muted: #617d70;
  --emerald-800: #063d23;
  --emerald-700: #0b5330;
  --emerald-600: #0e8a4e;
  --emerald-500: #10b981;
  --emerald-100: #dcf5e8;
  --gold-700: #92400e;
  --gold-600: #b45309;
  --gold-500: #d99b1a;
  --gold-400: #f59e0b;
  --gold-100: #fef3c7;
  --gold-stroke: rgba(217, 155, 26, 0.42);
  --gold-stroke-strong: #d99b1a;
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.1);
  --border: rgba(14, 138, 78, 0.16);
  --border-row: rgba(11, 36, 25, 0.08);
  --shadow-card: 0 10px 28px -8px rgba(9, 56, 33, 0.08), 0 0 0 1px rgba(217, 155, 26, 0.14);
  --shadow-poster: 0 16px 36px -12px rgba(6, 61, 35, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme='dark'] {
  --bg-canvas: #071710;
  --bg-surface: #0a2016;
  --bg-card: #0d2419;
  --bg-subtle: #123123;
  --bg-header: rgba(10, 29, 20, 0.95);
  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  --emerald-700: #6ee7b7;
  --emerald-600: #10b981;
  --emerald-500: #34d399;
  --emerald-100: rgba(16, 185, 129, 0.18);
  --gold-600: #fbbf24;
  --gold-500: #f59e0b;
  --gold-400: #fcd34d;
  --gold-100: rgba(245, 158, 11, 0.18);
  --gold-stroke: rgba(245, 158, 11, 0.4);
  --gold-stroke-strong: #f59e0b;
  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.18);
  --border: rgba(52, 199, 123, 0.24);
  --border-row: rgba(255, 255, 255, 0.09);
  --shadow-card: 0 14px 36px -8px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(245, 158, 11, 0.22);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
}

body {
  padding-bottom: 84px;
}

/* Sticky Social Top Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--gold-stroke);
  box-shadow: 0 4px 18px -6px rgba(9, 56, 33, 0.08);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0e8a4e 0%, #064e2c 100%);
  border: 1.5px solid var(--gold-stroke-strong);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(14, 138, 78, 0.35);
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--gold-stroke-strong);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-emerald {
  background: linear-gradient(135deg, #0e8a4e 0%, #0b6b3c 100%);
  border: 1px solid var(--gold-stroke-strong);
  color: #ffffff;
  box-shadow: 0 4px 12px -3px rgba(14, 138, 78, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #b45309 0%, #d99b1a 100%);
  border: 1px solid #f59e0b;
  color: #fffbeb;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
}

/* Responsive Desktop 3-Column Social Shell & Mobile Single Column */
.desktop-layout {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 14px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.left-rail,
.right-rail {
  display: none;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 74px;
  min-width: 0;
}

@media (min-width: 960px) {
  .desktop-layout {
    padding: 18px 20px 36px;
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .right-rail {
    display: flex;
  }
}

@media (min-width: 1220px) {
  .desktop-layout {
    grid-template-columns: 265px minmax(0, 1fr) 315px;
    gap: 20px;
  }
  .left-rail {
    display: flex;
  }
}

.rail-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-stroke);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.rail-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-row);
}

.rail-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-nav-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: all 0.15s ease;
}

.rail-nav-item:hover {
  background: var(--bg-subtle);
}

.rail-nav-item.is-active {
  background: var(--emerald-100);
  border-color: var(--gold-stroke-strong);
  color: var(--emerald-700);
}

.rail-badge {
  font-size: 10.5px;
  font-weight: 900;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.rail-mini-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-row);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rail-mini-event:hover {
  border-color: var(--gold-stroke-strong);
}

.rail-mini-date {
  width: 40px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b5330, #0e8a4e);
  border: 1px solid var(--gold-stroke-strong);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rail-mini-date span {
  font-size: 8px;
  font-weight: 900;
  color: #fde68a;
  letter-spacing: 0.06em;
}

.rail-mini-date strong {
  font-size: 14px;
  font-family: var(--font-mono);
  line-height: 1.05;
}

/* Main Feed Shell */
.shell {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Top Search + Quick Filter Strip */
.feed-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 11px 74px 11px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--gold-stroke);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  box-shadow: var(--shadow-card);
}

.search-input:focus {
  border-color: var(--emerald-600);
}

.search-clear {
  position: absolute;
  right: 8px;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
}

.search-clear.is-visible {
  display: inline-flex;
}

.filter-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  appearance: none;
  border: 1.5px solid var(--gold-stroke);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip.is-active {
  background: var(--emerald-600);
  border-color: var(--gold-stroke-strong);
  color: #ffffff;
}

/* Featured Hero / Promoter Quick Bar */
.promoter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--gold-stroke);
}

.promoter-strip-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.promoter-strip-text strong {
  color: var(--text-primary);
}

/* Social News Feed Event Card */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-post-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.post-author-bar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-author-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.arena-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b5330, #0e8a4e);
  border: 2px solid var(--gold-stroke-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.arena-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-arena-name {
  font-size: 13.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.verified-dot {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--gold-stroke);
}

.post-meta-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.countdown-pill {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--emerald-100);
  color: var(--emerald-700);
  border: 1px solid var(--border);
}

.countdown-pill.is-full {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.25);
}

.countdown-pill.is-live {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@keyframes livePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.78); }
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fef08a;
  display: inline-block;
  animation: livePulseDot 1.15s ease-in-out infinite;
  flex-shrink: 0;
}

.event-post-card.is-live-started {
  border: 2px solid #dc2626;
  box-shadow:
    0 14px 34px -8px rgba(220, 38, 38, 0.24),
    0 0 0 2px rgba(217, 155, 26, 0.34);
}

.event-post-card.is-archived {
  opacity: 0.84;
  border-style: dashed;
}

.live-started-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 55%, #b45309 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-started-banner-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-started-banner-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(254, 240, 138, 0.5);
  color: #fef3c7;
  font-size: 10px;
  font-weight: 800;
}

.archived-footer-bar {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Rich Full-Bleed Poster Banner */
.poster-stage {
  position: relative;
  width: 100%;
  min-height: 240px;
  background:
    radial-gradient(circle at 80% 15%, rgba(217, 155, 26, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.22) 0%, transparent 55%),
    linear-gradient(145deg, #062b19 0%, #0b5330 55%, #072214 100%);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.poster-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.poster-scrim {
  position: relative;
  z-index: 2;
  padding: 20px 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(6, 28, 17, 0.15) 0%,
    rgba(6, 28, 17, 0.65) 45%,
    rgba(4, 20, 12, 0.94) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poster-top-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.poster-format-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14, 138, 78, 0.88);
  border: 1px solid rgba(253, 230, 138, 0.7);
  color: #ffffff;
}

.poster-prize-tag {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  color: #fffbeb;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.poster-title {
  margin: 2px 0 0;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.poster-desc {
  margin: 0;
  font-size: 12.5px;
  color: #d1fae5;
  line-height: 1.45;
}

.poster-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

@media (min-width: 560px) {
  .poster-rules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.poster-rule-tile {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(253, 230, 138, 0.28);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.poster-rule-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.poster-rule-val {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  word-break: break-word;
}

.poster-rule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.poster-rule-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(6, 61, 35, 0.72);
  border: 1px solid rgba(253, 230, 138, 0.35);
  color: #fef3c7;
}

.poster-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px dashed rgba(253, 230, 138, 0.35);
  font-size: 11px;
  color: #ecfdf5;
}

.poster-spec-row strong {
  color: #fde68a;
}

/* Slot Progress Bar */
.slot-progress-wrap {
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slot-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
}

.slot-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-row);
  overflow: hidden;
}

.slot-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e8a4e 0%, #d99b1a 100%);
  transition: width 0.25s ease;
}

.slot-bar-fill.is-full {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

/* Social Action Footer */
.post-actions-bar {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btns-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.social-btn.is-liked {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.45);
  color: #dc2626;
}

.social-btn.is-following {
  background: var(--gold-100);
  border-color: var(--gold-stroke-strong);
  color: var(--gold-600);
}

/* Calendar Agenda Cards */
.calendar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-month-heading {
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  padding: 4px 2px;
  border-bottom: 1.5px solid var(--gold-stroke);
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--gold-stroke);
  box-shadow: var(--shadow-card);
}

.cal-date-badge {
  width: 54px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b5330, #0e8a4e);
  border: 1.5px solid var(--gold-stroke-strong);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cal-date-mon {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
}

.cal-date-day {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1.05;
}

.cal-body {
  flex: 1;
  min-width: 0;
}

.cal-title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px;
}

.cal-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Digital Gate Priority QR Pass */
.pass-card {
  background: var(--bg-card);
  border: 2px solid var(--gold-stroke-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pass-top-ribbon {
  background: linear-gradient(135deg, #07321d 0%, #0e8a4e 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pass-queue-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 900;
  color: #fde68a;
}

.pass-body {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

@media (max-width: 520px) {
  .pass-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--gold-stroke);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  justify-self: center;
}

.qr-token-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #0b2419;
}

/* Profile & Generic Cards */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-stroke);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1.5px dashed var(--gold-stroke);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.empty-state p {
  margin: 0;
  max-width: 440px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modals & Bottom Sheets */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6, 24, 15, 0.58);
  backdrop-filter: blur(5px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 18px;
  }
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-top: 2px solid var(--gold-stroke-strong);
  border-radius: 20px 20px 0 0;
  padding: 20px 18px 26px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 640px) {
  .modal-sheet {
    border: 1.5px solid var(--gold-stroke-strong);
    border-radius: 20px;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--emerald-600);
}

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

.alert-banner {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.alert-banner.is-error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-banner.is-success {
  display: block;
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.wingband-result-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--gold-stroke);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.wingband-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--gold-stroke-strong);
  flex-shrink: 0;
}

/* View Sections */
.view-section {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.view-section.is-active {
  display: flex;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: #072918;
  color: #ffffff;
  border: 1.5px solid var(--gold-stroke-strong);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  max-width: 92vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Fixed Sticky Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 90;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--gold-stroke);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.bottom-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  padding: 7px 2px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bottom-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.bottom-tab.is-active {
  color: var(--emerald-700);
  background: var(--emerald-100);
  border-color: var(--gold-stroke-strong);
}

@media (min-width: 1220px) {
  .bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 32px;
  }
}
