:root {
  --ee-ink: #121826;
  --ee-muted: #687386;
  --ee-pink: #b8325e;
  --ee-blue: #2563eb;
  --ee-green: #059669;
  --ee-gold: #d99a1e;
  --ee-bg: #f7f8fb;
  --ee-line: rgba(18, 24, 38, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ee-ink);
  background:
    linear-gradient(180deg, rgba(184, 50, 94, 0.07), rgba(255, 255, 255, 0) 360px),
    var(--ee-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.event-card a {
  text-decoration: none;
}

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #fbfcff;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.page-preloader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ee-pink), var(--ee-blue));
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(184, 50, 94, 0.28);
  animation: loaderPulse 900ms ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  from {
    transform: translateY(0) scale(0.98);
  }
  to {
    transform: translateY(-6px) scale(1.03);
  }
}

.app-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 18px 52px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, 1180px);
  min-height: 70px;
  padding: 12px 0;
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-menu-button {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ee-ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ee-pink);
  border-radius: 14px;
  font-weight: 800;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.status-pill,
.chip,
.event-meta,
.friend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-pill {
  min-height: 36px;
  padding: 7px 12px;
  color: #285042;
  background: #e8f7ef;
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: 999px;
  font-size: 0.875rem;
  white-space: normal;
}

.hero-band {
  min-height: calc(100vh - 98px);
  display: grid;
  align-items: center;
  padding: 24px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.hero-copy,
.phone-stage,
.phone-frame,
.phone-screen,
.feed-content,
.event-card,
.event-body,
.wide-feed,
.search-panel,
.section-band {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.3rem);
  line-height: 0.96;
  font-weight: 850;
  overflow-wrap: break-word;
}

.hero-copy p {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--ee-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-ee {
  --bs-btn-bg: var(--ee-pink);
  --bs-btn-border-color: var(--ee-pink);
  --bs-btn-hover-bg: #9f294f;
  --bs-btn-hover-border-color: #9f294f;
  --bs-btn-active-bg: #8d2446;
  --bs-btn-active-border-color: #8d2446;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.btn-quiet {
  border-color: var(--ee-line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-weight: 700;
}

.phone-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
}

.phone-frame {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 20px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 44px;
  box-shadow: 0 34px 90px rgba(31, 41, 55, 0.25);
}

.phone-screen {
  overflow: hidden;
  min-height: 720px;
  background: #f8fafc;
  border-radius: 31px;
}

.mobile-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 8px;
  background: var(--ee-pink);
  color: #fff;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
}

.feed-content {
  height: 653px;
  overflow: auto;
  padding: 18px;
  scrollbar-width: none;
}

.feed-content::-webkit-scrollbar {
  display: none;
}

.welcome-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.welcome-row h2 {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 800;
}

.welcome-row p,
.section-title span,
.event-card p,
.mini-post p {
  color: var(--ee-muted);
}

.story-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 18px 0 20px;
  scrollbar-width: none;
}

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

.story {
  width: 58px;
  flex: 0 0 auto;
  text-align: center;
  font-size: 0.78rem;
}

.story-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  color: #fff;
  background: var(--ee-blue);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  font-weight: 800;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 12px;
}

.section-title h2,
.section-title h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
}

.section-title h3 {
  font-size: 1rem;
  font-weight: 800;
}

.section-title span {
  flex: 0 0 auto;
}

.live-row {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.live-tile {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -70px 70px rgba(0, 0, 0, 0.45);
}

.event-card,
.mini-post,
.search-panel {
  border: 1px solid var(--ee-line);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.event-card {
  overflow: hidden;
  margin-bottom: 14px;
}

.event-media {
  display: block;
  min-height: 172px;
  background: #d8dee9 center / cover;
}

.event-body {
  padding: 15px;
}

.event-card h4 {
  margin: 0 0 7px;
  font-size: 1.07rem;
  font-weight: 800;
}

.event-meta {
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  min-height: 30px;
  padding: 5px 9px;
  background: #f2f5f9;
  border-radius: 999px;
  color: #465367;
  font-size: 0.78rem;
}

.event-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 13px;
}

.event-actions > .d-flex {
  min-width: 0;
  flex-wrap: wrap;
}

.event-detail-link {
  flex: 0 0 auto;
}

.feed-social-action.is-active,
.social-action.is-active {
  color: #fff;
  background: var(--ee-pink);
  border-color: var(--ee-pink);
}

.feed-social-action:disabled,
.social-action:disabled {
  opacity: 0.72;
}

.social-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: #fff;
  background: #121826;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.friend-stack {
  display: flex;
  align-items: center;
}

.friend-chip {
  width: 28px;
  height: 28px;
  justify-content: center;
  margin-left: -8px;
  color: #fff;
  background: var(--ee-green);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

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

.mini-post {
  padding: 15px;
  margin-top: 14px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--ee-line);
}

.bottom-nav button,
.bottom-nav a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  color: #64748b;
  background: transparent;
  border-radius: 16px;
  text-decoration: none;
}

.bottom-nav button.active,
.bottom-nav a.active {
  color: var(--ee-pink);
  background: rgba(184, 50, 94, 0.09);
}

.search-panel {
  padding: 16px;
  margin-top: 22px;
}

.search-panel .form-control,
.search-panel .form-select {
  min-height: 46px;
  border-radius: 16px;
}

.trend-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.section-band {
  padding: 26px 0 0;
}

.wide-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wide-feed .event-card {
  margin-bottom: 0;
}

.flutter-host {
  display: none;
}

.detail-page {
  background:
    linear-gradient(180deg, rgba(184, 50, 94, 0.08), rgba(255, 255, 255, 0) 420px),
    var(--ee-bg);
}

.detail-shell {
  max-width: 1120px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0;
}

.detail-media,
.detail-panel,
.detail-card,
.detail-empty {
  border: 1px solid var(--ee-line);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.detail-media {
  min-height: 520px;
  background: #d8dee9 center / cover;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.detail-panel h1,
.detail-empty h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.98;
  font-weight: 850;
}

.detail-panel .lead {
  margin: 18px 0 0;
  color: var(--ee-muted);
}

.detail-facts,
.detail-actions,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-facts {
  margin-top: 22px;
}

.detail-facts span,
.stat-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: #465367;
  background: #f2f5f9;
  border-radius: 999px;
  font-size: 0.92rem;
}

.detail-actions {
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  padding-bottom: 44px;
}

.detail-card {
  padding: 22px;
}

.detail-card h2 {
  margin: 0 0 16px;
  font-size: 1.18rem;
  font-weight: 800;
}

.detail-card-wide {
  grid-column: 1 / -1;
}

.ticket-list,
.comment-list {
  display: grid;
  gap: 10px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-form .form-control {
  min-height: 104px;
  border-radius: 18px;
}

.comment-form .btn {
  justify-self: start;
}

.social-message {
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--ee-muted);
  font-size: 0.92rem;
}

.ticket-row,
.comment-row {
  padding: 14px;
  border: 1px solid var(--ee-line);
  background: #fbfcff;
  border-radius: 18px;
}

.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ticket-purchase-form {
  display: grid;
  gap: 14px;
}

.ticket-choice-list {
  display: grid;
  gap: 10px;
}

.ticket-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ee-line);
  background: #fbfcff;
  border-radius: 18px;
  cursor: pointer;
}

.ticket-choice:has(input:checked) {
  border-color: rgba(184, 50, 94, 0.42);
  background: rgba(184, 50, 94, 0.06);
}

.ticket-choice.is-sold-out {
  color: var(--ee-muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.ticket-choice span {
  display: grid;
  min-width: 0;
}

.ticket-choice small {
  color: var(--ee-muted);
}

.ticket-choice b {
  white-space: nowrap;
}

.ticket-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
}

.ticket-quantity-row label {
  font-weight: 800;
}

.ticket-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #f2f5f9;
  border-radius: 18px;
}

.ticket-confirmation {
  display: grid;
  gap: 12px;
}

.ticket-confirmation h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 850;
}

.ticket-code-list {
  display: grid;
  gap: 8px;
}

.ticket-code-list code {
  display: block;
  padding: 10px 12px;
  color: var(--ee-ink);
  background: #f2f5f9;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.ticket-wallet-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 44px;
}

.wallet-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--ee-line);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.wallet-ticket.is-checked-in {
  opacity: 0.72;
}

.wallet-ticket-main {
  min-width: 0;
}

.wallet-ticket-main h2 {
  margin: 12px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-weight: 850;
}

.wallet-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wallet-ticket-code {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: #fff;
  background: #121826;
  border-radius: 20px;
}

.wallet-ticket-code span,
.wallet-ticket-code small {
  color: rgba(255, 255, 255, 0.72);
}

.wallet-ticket-code code {
  display: block;
  color: #fff;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.ticket-qr {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #fff;
  border-radius: 18px;
}

.ticket-qr img,
.ticket-qr canvas {
  width: 132px !important;
  height: 132px !important;
}

.checkin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding-bottom: 44px;
}

.checkin-status-card {
  display: grid;
  align-content: start;
  gap: 14px;
  grid-row: span 2;
}

.checkin-status-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 850;
}

.checkin-status-card code {
  display: block;
  padding: 14px;
  color: var(--ee-ink);
  background: #f2f5f9;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.checkin-status-card.is-checked-in {
  border-color: rgba(5, 150, 105, 0.28);
  background: #f4fbf7;
}

.ticket-row span,
.comment-row span {
  display: block;
  color: var(--ee-muted);
  font-size: 0.88rem;
}

.comment-row p {
  margin: 4px 0;
  color: #3d485a;
}

.detail-empty {
  max-width: 640px;
  margin: 72px auto;
  padding: 34px;
  text-align: center;
}

.detail-empty p {
  color: var(--ee-muted);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 480px);
}

.auth-brand {
  justify-content: center;
  margin-bottom: 18px;
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--ee-line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
}

.auth-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--ee-pink);
  border-radius: 22px;
  font-size: 1.6rem;
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 850;
}

.auth-card p {
  margin: 12px 0 22px;
  color: var(--ee-muted);
  text-align: center;
}

.auth-form .form-control,
.auth-form .form-select {
  min-height: 48px;
  border-radius: 16px;
}

.phone-input-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
}

.otp-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  font-weight: 800;
}

.account-shell {
  max-width: 1040px;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0 18px;
}

.account-avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ee-pink);
  border-radius: 28px;
  font-size: 2rem;
  font-weight: 850;
  box-shadow: 0 18px 42px rgba(184, 50, 94, 0.24);
}

.account-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 850;
}

.account-header p {
  margin: 8px 0 0;
  color: var(--ee-muted);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 42px;
}

.organizer-page {
  background: #f5f7fb;
}

.organizer-layout {
  min-height: 100vh;
  --organizer-sidebar-width: 280px;
  --organizer-topbar-height: 76px;
}

.organizer-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--organizer-sidebar-width);
  height: 100vh;
  overflow-y: auto;
  padding: 22px;
  color: #fff;
  background: #121826;
}

.organizer-brand {
  color: #fff;
  margin-bottom: 24px;
}

.organizer-id {
  display: grid;
  gap: 3px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.organizer-id span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.organizer-nav {
  display: grid;
  gap: 8px;
}

.organizer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-radius: 14px;
}

.organizer-nav a.active,
.organizer-nav a:hover {
  color: #fff;
  background: rgba(184, 50, 94, 0.82);
}

.offcanvas .organizer-nav a {
  color: var(--ee-ink);
  background: #f7f9fc;
}

.offcanvas .organizer-nav a.active,
.offcanvas .organizer-nav a:hover {
  color: #fff;
  background: var(--ee-pink);
}

.organizer-main {
  min-width: 0;
  margin-left: var(--organizer-sidebar-width);
  padding: var(--organizer-topbar-height) 18px 18px;
}

.organizer-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--organizer-sidebar-width);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--organizer-topbar-height);
  padding: 12px 18px 14px;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
}

.organizer-topbar > div:first-of-type {
  display: grid;
}

.organizer-topbar span {
  color: var(--ee-muted);
  font-size: 0.9rem;
}

.organizer-menu {
  display: none;
}

.organizer-top-actions,
.org-action-stack,
.org-card-actions,
.org-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.org-hero,
.org-stats,
.org-event-card,
.org-form .detail-card {
  border: 1px solid var(--ee-line);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.org-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  margin-bottom: 16px;
}

.org-hero.compact {
  align-items: flex-start;
}

.org-hero h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 850;
}

.org-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--ee-muted);
}

.org-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 22px;
}

.org-stats div {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #fff;
}

.org-stats span,
.org-event-card p,
.org-event-card dt {
  color: var(--ee-muted);
}

.org-stats strong {
  font-size: 1.5rem;
}

.org-section {
  margin-top: 22px;
}

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

.org-event-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.org-event-card h3 {
  margin: 10px 0 4px;
  font-size: 1.16rem;
  font-weight: 800;
}

.org-event-card p {
  margin: 0;
}

.org-event-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.org-event-card dl div {
  padding: 10px;
  background: #f7f9fc;
  border-radius: 14px;
}

.org-event-card dt {
  font-size: 0.76rem;
}

.org-event-card dd {
  margin: 2px 0 0;
  font-weight: 800;
}

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

.org-media-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.org-media-preview {
  overflow: hidden;
  border: 1px solid var(--ee-line);
  background: #fbfcff;
  border-radius: 18px;
}

.org-media-preview img,
.org-media-preview video,
.org-media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #e8edf5;
}

.org-media-grid.compact .org-media-preview img,
.org-media-grid.compact .org-media-preview video,
.org-media-grid.compact .org-media-placeholder {
  aspect-ratio: 4 / 3;
}

.org-media-placeholder {
  display: grid;
  place-items: center;
  color: var(--ee-muted);
  font-size: 2rem;
}

.org-media-preview div:not(.org-media-placeholder) {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.org-media-preview strong,
.org-media-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-media-preview span {
  color: var(--ee-muted);
  font-size: 0.84rem;
}

.org-form {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
}

.org-form .detail-card h2 {
  margin-bottom: 14px;
}

.org-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.org-form-grid.three {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.org-form label {
  font-weight: 700;
}

.org-form .form-control,
.org-form .form-select {
  min-height: 46px;
  margin-top: 6px;
  border-radius: 14px;
  font-weight: 400;
}

.org-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.org-segment label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  background: #f7f9fc;
  border: 1px solid var(--ee-line);
  border-radius: 999px;
}

.ticket-editor-list {
  display: grid;
  gap: 12px;
}

.ticket-editor {
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid var(--ee-line);
  border-radius: 18px;
}

.ticket-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.org-form-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .hero-band {
    min-height: auto;
  }

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

  .topbar-actions {
    display: none !important;
  }

  .detail-shell .topbar-actions,
  .account-shell .topbar-actions {
    display: flex !important;
  }

  .nav-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .detail-shell .nav-menu-button,
  .account-shell .nav-menu-button {
    display: none;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .phone-frame {
    min-height: 700px;
  }

  .phone-screen {
    min-height: 660px;
  }

  .feed-content {
    height: 593px;
  }

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

  .detail-media {
    min-height: 380px;
  }

  .organizer-layout {
    grid-template-columns: 1fr;
    --organizer-sidebar-width: 0px;
    --organizer-topbar-height: 64px;
  }

  .organizer-sidebar {
    display: none;
  }

  .organizer-main {
    margin-left: 0;
    padding-top: var(--organizer-topbar-height);
  }

  .organizer-topbar {
    left: 0;
    min-height: var(--organizer-topbar-height);
  }

  .organizer-menu {
    display: inline-flex;
  }

  .organizer-top-actions {
    display: none;
  }

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

  .org-event-grid,
  .org-form-grid,
  .org-form-grid.two,
  .org-form-grid.three {
    grid-template-columns: 1fr;
  }

  .wallet-ticket {
    grid-template-columns: 1fr;
  }

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

  .checkin-status-card {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 82px 12px 36px;
  }

  .topbar {
    width: calc(100% - 20px);
    min-height: 64px;
    gap: 8px;
    padding: 8px 0;
  }

  .brand-lockup {
    gap: 7px;
    min-width: 0;
  }

  .brand-name {
    font-size: 1rem;
  }

  .topbar-actions {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .topbar-actions .btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 7px 10px;
    font-size: 0.78rem;
    line-height: 1.05;
    border-radius: 999px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 3.2rem);
    line-height: 1.02;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .search-panel .d-flex.align-items-center.justify-content-between {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 6px !important;
  }

  .search-panel .d-flex.align-items-center.justify-content-between span:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(184, 50, 94, 0.09), rgba(255, 255, 255, 0) 260px),
      var(--ee-bg);
  }

  .app-shell {
    padding: 76px 10px 28px;
  }

  .topbar {
    align-items: center;
    width: calc(100% - 16px);
    min-height: 58px;
    padding: 7px 0;
  }

  .detail-shell .topbar-actions,
  .account-shell .topbar-actions {
    display: flex !important;
  }

  .nav-menu-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .topbar-actions .btn {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .topbar-actions .btn i {
    margin-right: 0;
  }

  .hero-band {
    padding: 12px 0 24px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(1.98rem, 10.6vw, 2.34rem);
    line-height: 1;
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    padding-inline: 14px !important;
    white-space: normal;
  }

  .search-panel {
    padding: 12px;
    margin-top: 16px;
    border-radius: 18px;
  }

  .trend-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .trend-strip .chip {
    flex: 0 0 auto;
  }

  .phone-stage {
    display: none;
  }

  .phone-frame {
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-screen {
    min-height: auto;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--ee-line);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  }

  .feed-content {
    height: auto;
    max-height: none;
    padding: 14px;
  }

  .mobile-appbar {
    padding: 14px;
  }

  .welcome-row h2 {
    font-size: 1.18rem;
  }

  .live-row {
    display: flex;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
  }

  .live-tile {
    width: min(43vw, 150px);
    min-width: 124px;
    min-height: 126px;
    border-radius: 18px;
  }

  .event-media {
    min-height: 150px;
  }

  .event-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .event-detail-link {
    order: 3;
    width: 100%;
  }

  .wide-feed {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .section-band > .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-band > .section-title span {
    font-size: 0.9rem;
  }

  .bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    border-radius: 0 0 24px 24px;
  }

  .bottom-nav button,
  .bottom-nav a {
    min-width: 0;
  }

  .detail-shell {
    padding: 10px 10px 30px;
  }

  .detail-hero {
    gap: 12px;
    padding: 14px 0;
  }

  .detail-media,
  .detail-panel,
  .detail-card,
  .detail-empty {
    border-radius: 20px;
  }

  .detail-media {
    min-height: 260px;
  }

  .detail-panel {
    padding: 18px;
  }

  .detail-panel h1,
  .detail-empty h1 {
    font-size: 2.15rem;
  }

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

  .detail-actions .btn {
    width: 100%;
  }

  .detail-grid {
    gap: 12px;
  }

  .detail-card {
    padding: 16px;
  }

  .ticket-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-empty {
    margin: 36px auto;
    padding: 24px 18px;
  }

  .auth-page {
    align-items: start;
    padding: 14px;
  }

  .auth-card {
    padding: 20px;
    border-radius: 22px;
  }

  .auth-card h1 {
    font-size: 1.72rem;
  }

  .phone-input-row {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .account-avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 1.6rem;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .organizer-main {
    padding: var(--organizer-topbar-height) 10px 10px;
  }

  .organizer-topbar {
    padding: 8px 10px 12px;
  }

  .org-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
  }

  .org-hero .btn {
    width: 100%;
  }

  .org-stats {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .org-event-card {
    border-radius: 18px;
  }

  .org-event-card dl {
    grid-template-columns: 1fr;
  }

  .org-media-grid {
    grid-template-columns: 1fr;
  }

  .org-action-stack,
  .org-card-actions,
  .org-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .org-action-stack .btn,
  .org-card-actions .btn,
  .org-form-actions .btn {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .wallet-ticket-actions {
    display: none !important;
  }

  .app-shell {
    max-width: none;
    padding: 0;
  }

  .wallet-ticket {
    break-inside: avoid;
    box-shadow: none;
  }

  .ticket-qr {
    border: 1px solid #ddd;
  }
}
