/* My Account — EDMCalendar.lk (responsive) */
:root {
  --ma-bg: #060608;
  --ma-panel: #101014;
  --ma-panel-2: #14141a;
  --ma-border: rgba(255, 255, 255, 0.08);
  --ma-text: #f4f4f5;
  --ma-text-soft: #d4d4d8;
  --ma-muted: #9ca3af;
  --ma-pink: #e11d48;
  --ma-pink-glow: rgba(225, 29, 72, 0.35);
  --ma-magenta: #d946ef;
  --ma-sidebar-w: 252px;
  --ma-right-w: 320px;
  --ma-header-h: 64px;
  --ma-bottom-nav-h: 62px;
  --ma-font: "Inter", system-ui, sans-serif;
  --ma-display: "Montserrat", system-ui, sans-serif;
  --ma-accent-font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

.ma-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ma-font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ma-bg);
  color: var(--ma-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ma-app {
  display: grid;
  grid-template-columns: var(--ma-sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.ma-sidebar {
  background: linear-gradient(180deg, #0c0c10 0%, #08080b 100%);
  border-right: 1px solid var(--ma-border);
  padding: 1.25rem 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
}

.ma-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ma-sidebar-close {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ma-border);
  border-radius: 10px;
  background: var(--ma-panel);
  color: var(--ma-text);
  cursor: pointer;
}

.ma-brand {
  display: block;
  text-decoration: none;
}

.ma-brand img {
  max-width: 140px;
  height: auto;
}

.ma-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}

.ma-nav a,
.ma-nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--ma-muted);
  text-decoration: none;
  font-family: var(--ma-accent-font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  line-height: 1.3;
}

.ma-nav a:hover,
.ma-nav button:hover {
  color: var(--ma-text);
  background: rgba(255, 255, 255, 0.04);
}

.ma-nav a.is-active {
  color: #fff;
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(225, 29, 72, 0.35);
}

.ma-nav a i {
  width: 1.15rem;
  text-align: center;
  color: var(--ma-pink);
  flex-shrink: 0;
}

.ma-nav .ma-logout {
  margin-top: 0.35rem;
  color: var(--ma-text-soft);
}

.ma-promo {
  margin-top: auto;
  border-radius: 14px;
  border: 1px solid var(--ma-border);
  background: linear-gradient(145deg, #1a0a12, #0f0f14);
  padding: 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.ma-promo-visual {
  height: 72px;
  position: relative;
}

.ma-promo-visual .ma-banner-img {
  transform: none;
}

.ma-promo-visual.is-fallback,
.ma-promo-visual.ma-banner-placeholder.is-fallback {
  background: linear-gradient(135deg, #2a0f1c, #14101a);
}

.ma-promo p {
  margin: 0.85rem 0 0.35rem;
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fda4af;
}

.ma-promo-desc {
  display: block;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--ma-muted);
  line-height: 1.4;
}

.ma-promo .ma-btn-sm {
  margin: 0 1rem 1rem;
  display: inline-flex;
}

/* ── Main shell ──────────────────────────────────────────── */
.ma-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.ma-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  min-height: var(--ma-header-h);
  border-bottom: 1px solid var(--ma-border);
  background: rgba(8, 8, 11, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.ma-menu-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border: 1px solid var(--ma-border);
  border-radius: 10px;
  background: var(--ma-panel);
  color: var(--ma-text);
  cursor: pointer;
}

.ma-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  min-width: 0;
}

.ma-search i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ma-muted);
  pointer-events: none;
}

.ma-search input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--ma-border);
  background: var(--ma-panel);
  color: var(--ma-text);
  font: inherit;
  font-size: 0.92rem;
}

.ma-search input::placeholder {
  color: rgba(156, 163, 175, 0.85);
}

.ma-search input:focus {
  outline: none;
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.ma-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.ma-icon-btn {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  border: 1px solid var(--ma-border);
  background: var(--ma-panel);
  color: var(--ma-text);
  cursor: pointer;
}

.ma-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ma-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ma-user-chip {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--ma-border);
  background: var(--ma-panel);
  max-width: 180px;
  overflow: hidden;
}

.ma-user-chip-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.ma-user-chip-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ma-user-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ma-user-chip span {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Content layout ──────────────────────────────────────── */
.ma-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ma-right-w);
  gap: 1.25rem;
  padding: 1.25rem 1.25rem 2rem;
  padding-bottom: max(2rem, calc(var(--ma-bottom-nav-h) + 1rem));
  flex: 1;
}

.ma-center {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.ma-welcome {
  font-family: var(--ma-display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ma-muted);
  margin: 0;
  line-height: 1.5;
}

.ma-welcome strong {
  color: var(--ma-text);
  font-weight: 600;
}

/* ── Cards ───────────────────────────────────────────────── */
.ma-card {
  background: var(--ma-panel);
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  padding: 1.25rem;
}

.ma-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ma-card-head--stack {
  flex-wrap: wrap;
}

.ma-card-title {
  margin: 0;
  font-family: var(--ma-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ma-text);
}

.ma-card-title--solo {
  margin-bottom: 1rem;
}

.ma-card-desc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ma-muted);
  line-height: 1.45;
  max-width: 42ch;
}

.ma-card-desc strong {
  color: var(--ma-text-soft);
  font-weight: 600;
}

.ma-link {
  color: #fb7185;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.ma-link:hover {
  text-decoration: underline;
}

.ma-link-btn {
  border: none;
  background: none;
  color: #fb7185;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.ma-link-btn:hover {
  text-decoration: underline;
}

/* ── Profile hero ────────────────────────────────────────── */
.ma-hero-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ma-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.ma-banner-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1a0a14 0%, #120818 35%, #0a0a12 70%, #060608 100%);
}

.ma-banner-placeholder.is-fallback .ma-banner-img {
  opacity: 0;
}

.ma-banner-placeholder.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 40%, rgba(225, 29, 72, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(217, 70, 239, 0.2), transparent 50%),
    linear-gradient(135deg, #1a0a14, #0a0a12);
  animation: ma-banner-glow 8s ease-in-out infinite alternate;
}

.ma-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-hero-banner:hover .ma-banner-img {
  transform: scale(1.06);
}

.ma-banner-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: ma-shimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}

.ma-banner-placeholder.is-loaded .ma-banner-shimmer,
.ma-banner-placeholder.is-fallback .ma-banner-shimmer {
  display: none;
}

.ma-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(6, 6, 8, 0.9) 0%, rgba(6, 6, 8, 0.65) 45%, rgba(6, 6, 8, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(225, 29, 72, 0.18), transparent 60%);
  pointer-events: none;
}

.ma-hero-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
  padding: 1.25rem;
}

.ma-profile-hero {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.ma-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ma-avatar {
  width: clamp(72px, 18vw, 96px);
  height: clamp(72px, 18vw, 96px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ma-pink);
  box-shadow: 0 0 24px var(--ma-pink-glow);
  display: block;
  background: var(--ma-panel-2);
}

.ma-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 2px solid var(--ma-bg);
  background: var(--ma-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ma-avatar-edit:hover {
  background: #be123c;
  transform: scale(1.05);
}

.ma-avatar-edit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ma-profile-meta {
  min-width: 0;
}

.ma-raver-rank {
  margin-top: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 20, 0.62);
  backdrop-filter: blur(10px);
  max-width: 520px;
}

.ma-raver-rank__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ma-raver-rank__badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(217, 70, 239, 0.12));
  border: 1px solid rgba(225, 29, 72, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fb7185;
  flex-shrink: 0;
}

.ma-raver-rank__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ma-raver-rank__title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ma-text);
  line-height: 1.2;
}

.ma-raver-rank__points {
  font-size: 0.8rem;
  color: var(--ma-text-soft);
}

.ma-raver-rank__level {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.ma-raver-progress {
  margin-top: 0.55rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ma-raver-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ma-pink), var(--ma-magenta));
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.25);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-raver-rank__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--ma-muted);
  line-height: 1.35;
}

.ma-display-name {
  margin: 0 0 0.35rem;
  font-family: var(--ma-display);
  font-size: clamp(1.28rem, 4vw, 1.72rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.ma-role-badge {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ma-pink), var(--ma-magenta));
  color: #fff;
  font-family: var(--ma-accent-font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 0.4rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ma-member-since {
  font-family: var(--ma-accent-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--ma-muted);
  margin: 0;
}

.ma-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 0.65rem;
  align-self: center;
}

.ma-stat {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 118px;
  padding: 0.75rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 54, 86, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 54, 86, 0.08), rgba(125, 28, 255, 0.05)),
    rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 0 1px rgba(125, 28, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(225, 29, 72, 0.13);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 92px;
  overflow: hidden;
}

.ma-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.11), transparent 48%);
}

.ma-stat i {
  color: var(--ma-pink);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.ma-stat .num {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  font-family: var(--ma-accent-font);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.ma-stat .lbl {
  font-family: var(--ma-accent-font);
  font-size: 0.76rem;
  color: var(--ma-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* ── Grids ───────────────────────────────────────────────── */
.ma-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ma-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ── Events list ─────────────────────────────────────────── */
.ma-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ma-event-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ma-border);
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ma-event-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(3px);
}

.ma-event-item:active {
  transform: scale(0.99);
}

.ma-event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ma-event-thumb-wrap {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1f1f28;
  position: relative;
}

.ma-event-thumb-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(217, 70, 239, 0.08));
  z-index: 0;
}

.ma-event-thumb-wrap .ma-event-thumb,
.ma-event-thumb-wrap .ma-event-thumb--fallback {
  position: relative;
  z-index: 1;
}

.ma-event-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ma-event-thumb--fallback {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ma-event-info {
  flex: 1;
  min-width: 0;
}

.ma-event-date {
  text-align: right;
  flex-shrink: 0;
  min-width: 52px;
  padding-left: 0.35rem;
}

.ma-event-date__month {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ma-pink);
  line-height: 1.2;
}

.ma-event-date__day {
  display: block;
  font-family: var(--ma-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ma-text);
}

.ma-event-date__dow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ma-muted);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.ma-event-info h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ma-text);
}

.ma-event-info p {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--ma-muted);
  line-height: 1.4;
}

.ma-event-info p i {
  color: var(--ma-pink);
  margin-right: 0.35rem;
  width: 14px;
}

.ma-event-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ma-text-soft);
  margin-bottom: 0.35rem;
}

.ma-event-tag--ticket {
  background: rgba(225, 29, 72, 0.15);
  color: #fda4af;
}

.ma-event-tag--saved {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

.ma-event-tag--platform {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

/* ── DJ promo ────────────────────────────────────────────── */
.ma-dj-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(217, 70, 239, 0.08));
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.ma-dj-promo-text p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ma-text-soft);
}

.ma-dj-promo-icon {
  font-size: 2rem;
  color: #fbbf24;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.35));
}

.ma-btn-sm--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ma-text);
}

/* ── Activity ────────────────────────────────────────────── */
.ma-activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ma-border);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ma-text-soft);
  align-items: flex-start;
}

.ma-activity-item:last-child {
  border-bottom: none;
}

.ma-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.12);
  color: var(--ma-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ma-activity-time {
  margin-left: auto;
  color: var(--ma-muted);
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 0.5rem;
}

/* ── Tickets ─────────────────────────────────────────────── */
.ma-ticket-card {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  background: linear-gradient(135deg, #1a1020, #12121a);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.22);
}

.ma-ticket-visual {
  width: 96px;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #1a1020;
  background-image: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(217, 70, 239, 0.12));
}

.ma-ticket-body {
  flex: 1;
  padding: 0.85rem 0;
  min-width: 0;
}

.ma-ticket-body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.ma-ticket-tier {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 0.25rem;
}

.ma-ticket-meta {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--ma-muted);
}

.ma-ticket-meta i {
  color: var(--ma-pink);
  margin-right: 0.3rem;
}

.ma-ticket-qr {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
  align-self: center;
  margin-right: 0.65rem;
}

/* ── DJ votes ────────────────────────────────────────────── */
.ma-dj-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

.ma-dj-item {
  text-align: center;
  min-width: 72px;
}

.ma-dj-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ma-pink);
  margin-bottom: 0.35rem;
}

.ma-dj-item .name {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  color: var(--ma-text-soft);
}

.ma-dj-item .votes {
  font-size: 0.75rem;
  color: var(--ma-muted);
}

/* ── Settings ────────────────────────────────────────────── */
.ma-settings-list a,
.ma-settings-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--ma-border);
  background: none;
  color: var(--ma-text-soft);
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.ma-settings-list a:last-child,
.ma-settings-btn:last-child {
  border-bottom: none;
}

.ma-settings-list a i:first-child,
.ma-settings-btn i:first-child {
  color: var(--ma-pink);
  margin-right: 0.65rem;
  width: 1.1rem;
}

.ma-settings-list a i:last-child,
.ma-settings-btn i:last-child {
  margin-left: auto;
  color: var(--ma-muted);
  font-size: 0.75rem;
}

/* ── Right column ────────────────────────────────────────── */
.ma-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ma-bio {
  color: var(--ma-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.ma-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ma-genre-pill {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 600;
}

.ma-detail-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: var(--ma-muted);
  line-height: 1.45;
  word-break: break-word;
}

.ma-detail-row i {
  color: var(--ma-pink);
  width: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Role access ─────────────────────────────────────────── */
.ma-hint,
.ma-card-desc {
  font-size: 0.88rem;
  color: var(--ma-muted);
}

.ma-role-access {
  margin-bottom: 0;
  background: linear-gradient(160deg, rgba(225, 29, 72, 0.06), rgba(217, 70, 239, 0.04));
  border-color: rgba(225, 29, 72, 0.22);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.08) inset;
}

.ma-role-grants__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-muted);
  margin: 0 0 0.5rem;
}

.ma-role-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin: 0 0.35rem 0.35rem 0;
}

.ma-role-pill--approved {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.ma-role-pill--pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.ma-role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.ma-role-card {
  background: var(--ma-panel-2);
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  padding: 1rem;
}

.ma-role-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.ma-role-card p {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--ma-muted);
  line-height: 1.45;
}

.ma-role-card--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.ma-role-msg {
  min-height: 1.2em;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.ma-role-msg.is-error { color: #f87171; }
.ma-role-msg.is-success { color: #4ade80; }

/* ── Buttons & utilities ─────────────────────────────────── */
.ma-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1rem;
  border-radius: 8px;
  background: var(--ma-pink);
  color: #fff;
  font-family: var(--ma-accent-font);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.035em;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.ma-btn-sm:hover { background: #be123c; }

.ma-btn-sm--ghost {
  background: transparent;
  border: 1px solid var(--ma-border);
  color: var(--ma-text);
}

.ma-empty {
  color: var(--ma-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 1rem 0;
  text-align: center;
}

.ma-loading {
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--ma-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ma-hidden { display: none !important; }

/* ── Bottom nav (mobile) ─────────────────────────────────── */
.ma-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--ma-bottom-nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 10, 14, 0.96);
  border-top: 1px solid var(--ma-border);
  backdrop-filter: blur(14px);
}

.ma-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--ma-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

.ma-bottom-nav a i {
  font-size: 1.05rem;
}

.ma-bottom-nav a.is-active {
  color: #fb7185;
}

/* ── Sidebar backdrop ────────────────────────────────────── */
.ma-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 55;
  backdrop-filter: blur(2px);
}

/* ── Modal ───────────────────────────────────────────────── */
.ma-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.ma-modal {
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--ma-panel);
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  padding: 1.35rem;
}

.ma-modal-title {
  margin: 0 0 0.35rem;
  font-family: var(--ma-display);
  font-size: 1.2rem;
}

.ma-modal-lead {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--ma-muted);
  line-height: 1.45;
}

.ma-modal-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ma-border);
}

.ma-modal-avatar-row img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ma-pink);
}

.ma-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  color: var(--ma-muted);
}

.ma-modal label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ma-muted);
  margin-bottom: 0.4rem;
}

.ma-modal input,
.ma-modal textarea {
  width: 100%;
  margin-bottom: 0.95rem;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--ma-border);
  background: var(--ma-panel-2);
  color: var(--ma-text);
  font: inherit;
  font-size: 0.92rem;
}

.ma-modal textarea {
  resize: vertical;
  min-height: 88px;
}

.ma-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.ma-btn-ghost {
  background: transparent;
  border: 1px solid var(--ma-border);
  color: var(--ma-text);
  padding: 0.58rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* ── Role Request Modal extras ───────────────────────────── */
.ma-modal--role {
  text-align: center;
}

.ma-modal--role form {
  text-align: left;
}

.ma-modal-role-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.22), rgba(88, 28, 135, 0.28));
  border: 1px solid rgba(225, 29, 72, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.35rem;
  color: var(--ma-pink);
}

.ma-required {
  color: var(--ma-pink);
  font-weight: 800;
}

.ma-optional {
  color: var(--ma-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7em;
}

.ma-role-req-err {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

/* ── Toast ───────────────────────────────────────────────── */
.ma-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ma-bottom-nav-h) + 1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: #18181f;
  border: 1px solid var(--ma-border);
  color: var(--ma-text);
  font-size: 0.88rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.ma-toast.is-success { border-color: rgba(74, 222, 128, 0.35); }
.ma-toast.is-error { border-color: rgba(248, 113, 113, 0.35); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes ma-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ma-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes ma-banner-glow {
  0% { opacity: 0.85; filter: hue-rotate(0deg); }
  100% { opacity: 1; filter: hue-rotate(12deg); }
}

@keyframes ma-stat-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes ma-loading-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.ma-loading i {
  animation: ma-loading-pulse 1.2s ease-in-out infinite;
}

.ma-reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.ma-app.ma-is-ready .ma-reveal.is-visible {
  animation: ma-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ma-app.ma-is-ready .ma-reveal-group .ma-reveal.is-visible:nth-child(1) { animation-delay: 0.04s; }
.ma-app.ma-is-ready .ma-reveal-group .ma-reveal.is-visible:nth-child(2) { animation-delay: 0.1s; }
.ma-app.ma-is-ready .ma-reveal-group .ma-reveal.is-visible:nth-child(3) { animation-delay: 0.16s; }
.ma-app.ma-is-ready .ma-reveal-group .ma-reveal.is-visible:nth-child(4) { animation-delay: 0.22s; }

.ma-app.ma-is-ready .ma-stat {
  animation: ma-stat-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ma-app.ma-is-ready .ma-stat:nth-child(1) { animation-delay: 0.12s; }
.ma-app.ma-is-ready .ma-stat:nth-child(2) { animation-delay: 0.18s; }
.ma-app.ma-is-ready .ma-stat:nth-child(3) { animation-delay: 0.24s; }

.ma-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ma-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.ma-modal-backdrop:not(.ma-hidden) .ma-modal {
  animation: ma-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-sidebar {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-toast:not(.ma-hidden) {
  animation: ma-fade-up 0.35s ease;
}

.ma-role-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ma-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.35);
}

.ma-btn-sm,
.ma-btn-ghost {
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.ma-btn-sm:active,
.ma-btn-ghost:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .ma-reveal,
  .ma-banner-shimmer,
  .ma-banner-placeholder.is-fallback::before {
    animation: none !important;
    transition: none !important;
  }

  .ma-reveal {
    opacity: 1;
    transform: none;
  }

  .ma-app.ma-is-ready .ma-reveal.is-visible,
  .ma-app.ma-is-ready .ma-stat {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .ma-event-item:hover {
    transform: none;
  }
}

/* ── Responsive breakpoints ──────────────────────────────── */
@media (max-width: 1280px) {
  .ma-content-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .ma-right .ma-role-access {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .ma-app {
    display: block;
    width: 100%;
  }

  .ma-main {
    width: 100%;
    max-width: 100vw;
  }

  .ma-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 300px);
    height: 100dvh;
    transform: translateX(-105%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    z-index: 70;
  }

  .ma-sidebar.is-open {
    transform: translateX(0);
  }

  .ma-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ma-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ma-bottom-nav {
    display: flex;
  }

  .ma-content-wrap {
    padding-bottom: calc(var(--ma-bottom-nav-h) + 1.25rem + env(safe-area-inset-bottom));
  }

  .ma-promo {
    display: none;
  }

  .ma-right {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ma-grid-2,
  .ma-grid-3 {
    grid-template-columns: 1fr;
  }

  .ma-hero-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ma-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .ma-stat {
    min-width: 0;
    max-height: 104px;
    padding: 0.65rem 0.45rem;
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  .ma-search {
    max-width: none;
  }

  .ma-hero-banner {
    border-radius: 16px;
  }

  .ma-hero-row {
    padding: 1rem;
  }

  .ma-event-item {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.75rem 0;
  }

  .ma-event-thumb-wrap {
    width: 68px;
    height: 68px;
  }

  .ma-event-date__day {
    font-size: 1.25rem;
  }

  .ma-event-info h3 {
    font-size: 0.9rem;
  }

  .ma-event-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .ma-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0.5rem;
  }

  .ma-search input {
    font-size: 16px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .ma-user-chip {
    max-width: none;
  }

  .ma-user-chip span {
    display: none;
  }

  .ma-content-wrap {
    padding: 0.85rem 0.75rem;
    padding-bottom: calc(var(--ma-bottom-nav-h) + 0.85rem + env(safe-area-inset-bottom));
    gap: 0.85rem;
  }

  .ma-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .ma-card-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ma-card-desc {
    max-width: none;
  }

  .ma-profile-hero {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

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

  .ma-stat .num {
    font-size: 1.2rem;
  }

  .ma-stat .lbl {
    font-size: 0.65rem;
  }

  .ma-ticket-card {
    flex-direction: column;
  }

  .ma-ticket-visual {
    width: 100%;
    min-height: 100px;
  }

  .ma-ticket-qr {
    align-self: flex-start;
    margin: 0 0 0.75rem 0.75rem;
  }

  .ma-activity-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .ma-activity-time {
    margin-left: calc(36px + 0.5rem);
    width: 100%;
    padding-left: 0;
    margin-top: 0;
  }

  .ma-dj-promo {
    flex-direction: column;
    text-align: center;
  }

  .ma-toast {
    bottom: calc(var(--ma-bottom-nav-h) + 0.65rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 1.5rem);
  }
}

@media (max-width: 480px) {
  .ma-welcome {
    font-size: 0.92rem;
  }

  .ma-display-name {
    font-size: 1.2rem;
  }

  .ma-role-badge {
    font-size: 0.62rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  .ma-event-item {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "thumb date";
    align-items: start;
  }

  .ma-event-thumb-wrap {
    grid-area: thumb;
    width: 60px;
    height: 60px;
  }

  .ma-event-info {
    grid-area: info;
  }

  .ma-event-date {
    grid-area: date;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    padding-left: 0;
    margin-top: -0.15rem;
  }

  .ma-event-date__month,
  .ma-event-date__day,
  .ma-event-date__dow {
    display: inline;
    font-size: 0.72rem;
  }

  .ma-event-date__day {
    font-size: 0.85rem;
    font-weight: 800;
  }

  .ma-event-date__dow::before {
    content: "· ";
  }

  .ma-role-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .ma-icon-btn {
    width: 2.4rem;
    height: 2.4rem;
  }

  .ma-menu-toggle {
    width: 2.4rem;
    height: 2.4rem;
  }
}
