@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --black: #050708;
  --ink: #080b0c;
  --ink-2: #151a1d;
  --paper: #eef1ee;
  --card: #f5f7f5;
  --white: #ffffff;
  --green: #76b900;
  --green-dark: #5f9400;
  --green-light: #b8f34d;
  --muted: #657076;
  --line: #d7ddda;
  --ok: #4f9500;
  --shadow: 0 34px 90px -52px rgba(0, 0, 0, .82);
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .52; }
svg { display: block; }

.hub {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--black) 0, #0a0d0e 238px, var(--paper) 238px, var(--paper) 100%);
}
.hub::before {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  inset: 0 0 auto;
  height: 440px;
  opacity: .5;
  background-image:
    linear-gradient(rgba(184, 243, 77, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 243, 77, .07) 1px, transparent 1px),
    radial-gradient(circle at 78% 5%, rgba(118, 185, 0, .24), transparent 34%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.86) 54%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.86) 54%, transparent 100%);
}
.hub::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 430px;
  height: 430px;
  top: -255px;
  right: -110px;
  border: 1px solid rgba(184, 243, 77, .18);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(118, 185, 0, .15), inset 0 0 80px rgba(118, 185, 0, .08);
  animation: orbit 18s linear infinite;
}
.hub > * { position: relative; z-index: 1; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace; }
.heading { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.035em; }

.top-shell {
  position: sticky;
  z-index: 40;
  top: 0;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,7,8,.9);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.top-inner { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.system-strip {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #8c979c;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.system-strip > span { display: inline-flex; align-items: center; gap: 8px; }
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(118,185,0,.5);
  animation: pulse 2.1s infinite;
}
.top-main {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  min-width: 38px;
  height: 32px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 7px;
  border: 1.5px solid var(--green-light);
  border-radius: 8px;
  color: var(--green-light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(184,243,77,.22), 0 0 28px rgba(118,185,0,.11);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.52) 50%, transparent 58%);
  transform: translateX(-90%);
  animation: brand-sweep 5.2s ease-in-out infinite;
}
.brand-name {
  color: #f5f7f5;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.role-area { display: flex; align-items: center; gap: 8px; }
.role-caption { color: #8fa9af; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.role-switch {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.role-switch button {
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.role-switch button:hover { transform: translateY(-1px); }
.role-switch button.active { color: var(--ink); background: var(--green-light); }
.navbar {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  border-top: 1px solid var(--ink-2);
  scrollbar-width: none;
}
.navbar::-webkit-scrollbar { display: none; }
.navtab {
  min-width: max-content;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 2px 12px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #a9c0c6;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.navtab::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: var(--green-light);
  opacity: 0;
  transform: translateX(-50%) scaleX(.2);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 0 18px rgba(184,243,77,.75);
}
.navtab:hover { color: var(--green-light); transform: translateY(-1px); }
.navtab:hover::before { opacity: 1; transform: translateX(-50%) scaleX(1); }
.navtab.active { color: var(--green-light); border-bottom-color: var(--green-light); }

.content-shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding: 34px 0 70px; }
.page-surface {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid rgba(8,11,12,.11);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255,255,255,.985), rgba(245,247,245,.965));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
}
.page-surface::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light) 32%, transparent 68%);
  box-shadow: 0 0 26px rgba(118,185,0,.32);
}
.page-surface::after {
  content: 'DQ // MEMBER NETWORK';
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(8,11,12,.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .15em;
}
.page-enter { position: relative; z-index: 1; animation: page-enter .42s cubic-bezier(.2,.8,.2,1) both; }
.page-head { margin-bottom: 22px; }
.page-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-title { max-width: 900px; margin: 6px 0 0; font-size: clamp(29px, 4.1vw, 44px); line-height: 1.04; }
.lead { max-width: 640px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.alert { color: var(--green); }

.primary-btn, .outline-btn, .soft-btn, .danger-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease;
}
.primary-btn { background: var(--ink); color: var(--paper); }
.outline-btn { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.soft-btn { border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.danger-btn { background: var(--green); color: #fff; }
.primary-btn:hover:not(:disabled), .outline-btn:hover:not(:disabled), .soft-btn:hover:not(:disabled), .danger-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px -17px rgba(0,0,0,.7);
  filter: brightness(1.06);
}
.primary-btn:active:not(:disabled), .outline-btn:active:not(:disabled), .soft-btn:active:not(:disabled), .danger-btn:active:not(:disabled) { transform: translateY(1px); }
.full-btn { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.chip:hover { transform: translateY(-1px); border-color: var(--green); box-shadow: 0 8px 20px -16px rgba(118,185,0,.75); }
.chip.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 18px; }
.tile {
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(8,11,12,.12);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 13px 34px -27px rgba(8,11,12,.52);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
  animation: fade-up .42s ease both;
}
.tile::before {
  content: '';
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.tile::after {
  content: attr(data-pop);
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border: 1px solid rgba(184,243,77,.42);
  border-radius: 7px;
  background: rgba(5,7,8,.91);
  color: var(--green-light);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.9), 0 0 24px rgba(118,185,0,.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}
.tile:hover { transform: translateY(-7px); border-color: rgba(118,185,0,.38); box-shadow: 0 30px 58px -34px rgba(8,11,12,.68), 0 0 0 1px rgba(118,185,0,.08); }
.tile:hover::before { transform: scaleX(1); }
.tile:hover::after { opacity: 1; transform: translateY(0) scale(1); }
.tile-visual {
  height: 118px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
}
.tile.hub-offer .tile-visual { background: linear-gradient(135deg, var(--ink), var(--ink-2)); }
.tile-visual::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .62;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px),
    radial-gradient(circle at 82% 20%, rgba(184,243,77,.38), transparent 30%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}
.tile-visual::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -60%;
  bottom: -60%;
  width: 30%;
  left: -45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: rotate(13deg);
  transition: left .75s cubic-bezier(.2,.8,.2,1);
}
.tile:hover .tile-visual::after { left: 125%; }
.tile-visual > * { position: relative; z-index: 2; }
.hub-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border: 1px solid var(--green-light);
  border-radius: 999px;
  color: var(--green-light);
  font-size: 9px;
  letter-spacing: .12em;
}
.tile-logo { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; }
.hub-offer .tile-logo { color: var(--green-light); }
.tile-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.discount-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tile-title { margin: 0; font-size: 19px; }
.tile-desc { flex: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.48; }
.url-line, .owner-line { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--green-dark); font-size: 12px; }
.url-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-line { gap: 8px; color: var(--muted); font-size: 13px; }
.owner-id { color: var(--green-dark); font-size: 10px; }
.avatar { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); }
.old-price { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.new-price { color: var(--ink); font-size: 18px; font-weight: 700; }
.ref-price { color: var(--ink); font-size: 14px; font-weight: 700; }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.event-ticket {
  min-width: 0;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at left, transparent 6px, var(--white) 6px) left/51% 100% no-repeat,
    radial-gradient(circle at right, transparent 6px, var(--white) 6px) right/51% 100% no-repeat;
  box-shadow: 0 13px 32px -27px rgba(8,11,12,.58);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
  animation: fade-up .42s ease both;
}
.event-ticket:hover { transform: translateY(-4px); border-color: rgba(118,185,0,.32); box-shadow: 0 22px 44px -34px rgba(8,11,12,.72); }
.event-date { min-width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 16px; background: var(--ink); color: var(--paper); }
.event-day { color: var(--green-light); font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; }
.event-month { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.event-body { flex: 1; padding: 16px; border-left: 2px dashed var(--line); }
.event-title { margin: 0; font-size: 18px; }
.event-meta { display: grid; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.event-meta span { display: flex; align-items: center; gap: 6px; }

.profile-row { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.profile-copy { flex: 1; min-width: 260px; }
.pass-card {
  width: min(380px, 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid var(--ink-2);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.7);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
}
.pass-card.small { max-width: 320px; padding: 16px 18px; }
.pass-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, var(--ink-2), transparent 55%); }
.pass-card::after { content: ''; position: absolute; right: -60px; bottom: -70px; width: 170px; height: 170px; border: 1px solid rgba(184,243,77,.2); border-radius: 50%; box-shadow: 0 0 44px rgba(118,185,0,.1); }
.pass-card:hover { transform: translateY(-4px); border-color: rgba(118,185,0,.32); box-shadow: 0 22px 44px -34px rgba(8,11,12,.72); }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass-rule { height: 1px; margin: 12px 0 14px; background: var(--ink-2); }
.pass-id { color: var(--green-light); font-size: 30px; font-weight: 700; letter-spacing: .04em; }
.pass-card.small .pass-id { font-size: 22px; }
.pass-name { margin-top: 8px; font-size: 17px; font-weight: 600; }
.pass-card.small .pass-name { font-size: 15px; }
.pass-meta { margin-top: 3px; color: #9fb0b6; font-size: 12px; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
}
.metric-card::after {
  content: 'LIVE METRIC';
  position: absolute;
  right: 10px;
  top: 10px;
  color: rgba(8,11,12,.16);
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .1em;
}
.metric-card.hot { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.metric-card:hover { transform: translateY(-4px); border-color: rgba(118,185,0,.32); box-shadow: 0 22px 44px -34px rgba(8,11,12,.72); }
.metric-icon { margin-bottom: 8px; color: var(--green-dark); }
.metric-card.hot .metric-icon { color: var(--green-light); }
.metric-value { font-size: 24px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.panel-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-title { margin: 0; font-size: 16px; }
.count { color: var(--muted); font-size: 11px; }

.listing-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: transform .2s ease; }
.listing-row:last-child { border-bottom: 0; }
.listing-row:hover { transform: translateX(4px); }
.listing-logo { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, var(--green-dark), var(--green-light)); color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; }
.listing-logo.event { background: var(--ink); color: var(--green-light); }
.listing-copy { min-width: 0; flex: 1; }
.listing-name { font-size: 14px; font-weight: 600; }
.listing-meta { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 9px; }
.status.published, .status.approved { background: #e6f3d6; color: var(--ok); }
.status.pending { background: #f0f4e7; color: var(--green-dark); }
.status.rejected { background: var(--paper); color: var(--muted); }

.bar-chart { height: 160px; display: flex; align-items: flex-end; gap: 9px; padding: 14px 4px 0; }
.bar-col { min-width: 0; height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.bar-track { width: min(30px, 70%); height: calc(100% - 22px); position: relative; display: flex; align-items: flex-end; border-radius: 7px 7px 2px 2px; background: linear-gradient(to top, rgba(8,11,12,.05), rgba(8,11,12,.015)); }
.bar {
  width: 100%;
  position: relative;
  border-radius: 7px 7px 2px 2px;
  background: var(--ink);
  transform-origin: bottom;
  animation: grow-bar .62s cubic-bezier(.2,.8,.2,1) both;
}
.bar.hot { background: linear-gradient(to top, var(--green-dark), var(--green-light)); box-shadow: 0 0 20px rgba(118,185,0,.17); }
.bar::before {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  top: -32px;
  padding: 5px 7px;
  border: 1px solid rgba(184,243,77,.28);
  border-radius: 6px;
  background: var(--ink);
  color: var(--green-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.bar:hover::before { opacity: 1; transform: translate(-50%, 0); }
.bar-label { color: var(--muted); font-size: 10px; }

.coupons { display: grid; }
.coupon-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.coupon-row:last-child { border-bottom: 0; }
.coupon-code { font-size: 13px; font-weight: 700; }
.coupon-user { margin-top: 2px; color: var(--muted); font-size: 11px; }

.queue-preview { display: grid; }
.queue-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.queue-row:last-child { border-bottom: 0; }
.queue-kind { color: var(--green-dark); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.wait-pill { padding: 4px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: 9px; }

.moderation-list { max-width: 760px; display: grid; gap: 14px; }
.mod-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
  animation: fade-up .42s ease both;
}
.mod-card.approved { border-color: var(--ok); }
.mod-card:hover { transform: translateY(-3px); border-color: rgba(118,185,0,.32); box-shadow: 0 22px 44px -34px rgba(8,11,12,.72); }
.mod-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 11px; background: var(--paper); color: var(--ink); }
.mod-copy { flex: 1; min-width: 180px; }
.mod-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kind-pill { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-dark); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.mod-title { margin: 0; font-size: 17px; }
.mod-by, .mod-note { margin-top: 4px; font-size: 12px; }
.mod-by { color: var(--muted); }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  transform: rotate(-10deg);
  animation: stamp-in .45s cubic-bezier(.2,1.4,.4,1) both;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(3,5,6,.76);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  animation: backdrop-in .22s ease both;
}
.modal-panel {
  width: min(480px, 100%);
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(118,185,0,.34);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 34px 90px -30px rgba(0,0,0,.88), 0 0 0 1px rgba(184,243,77,.09), 0 0 56px rgba(118,185,0,.12);
  animation: modal-in .34s cubic-bezier(.18,.9,.28,1.08) both;
}
.modal-panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-light), transparent 78%); box-shadow: 0 0 24px rgba(118,185,0,.36); }
.modal-close { position: absolute; z-index: 3; top: 15px; right: 15px; display: grid; place-items: center; padding: 5px; border-radius: 8px; background: transparent; color: var(--muted); }
.modal-close:hover { background: rgba(8,11,12,.06); color: var(--ink); }
.modal-title { margin: 10px 34px 5px 0; font-size: 24px; }
.modal-copy { margin: 0 0 17px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-stack { display: grid; gap: 10px; }
.input-row { display: flex; gap: 9px; }
.input-row > .field { flex: 1; min-width: 0; }
.field {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea.field { min-height: 74px; resize: vertical; }
.field::placeholder { color: #859095; }
.field:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(118,185,0,.1); }
.logo-field { max-width: 92px; text-align: center; text-transform: uppercase; }
.form-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.info-box { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--muted); font-size: 12px; line-height: 1.45; }
.modal-pass { display: flex; justify-content: center; margin: 14px 0 16px; }
.success-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 8px auto 14px; border-radius: 50%; background: var(--ok); color: #fff; }
.center { text-align: center; }
.price-compare { display: flex; align-items: center; justify-content: space-around; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.price-compare strong { display: block; font-size: 20px; }
.price-compare .after strong { color: var(--ok); }
.copy-btn { width: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--green-dark); }
.type-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.type-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.type-tab.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 22px;
  max-width: min(92vw, 620px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(184,243,77,.25);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  box-shadow: 0 24px 62px -26px rgba(0,0,0,.9), 0 0 30px rgba(118,185,0,.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(.96);
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.9,.2,1.1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.empty-state { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes page-enter { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(-16deg) scale(1.8); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
@keyframes grow-bar { from { transform: scaleY(0); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(118,185,0,.5); } 70% { box-shadow: 0 0 0 8px rgba(118,185,0,0); } 100% { box-shadow: 0 0 0 0 rgba(118,185,0,0); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes brand-sweep { 0%, 68% { transform: translateX(-90%); } 88%, 100% { transform: translateX(90%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 720px) {
  .system-strip { display: none; }
  .top-inner, .content-shell { width: min(100% - 24px, 1120px); }
  .top-main { padding: 13px 0; }
  .brand-name { font-size: 16px; }
  .role-caption { display: none; }
  .role-area, .role-switch { width: 100%; }
  .role-switch button { flex: 1; }
  .navbar { gap: 18px; }
  .content-shell { padding: 18px 0 54px; }
  .page-surface { min-height: 480px; padding: 23px 16px 28px; border-radius: 20px; }
  .page-surface::after { display: none; }
  .grid-tiles { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .page-title { font-size: clamp(29px, 9vw, 38px); }
  .mod-card { align-items: flex-start; flex-wrap: wrap; }
  .mod-actions { width: 100%; }
  .mod-actions button { flex: 1; }
  .input-row { flex-direction: column; }
  .logo-field { max-width: none; }
}

@media (max-width: 430px) {
  .event-date { min-width: 78px; padding: 16px 10px; }
  .tile-top { align-items: flex-start; }
  .discount-badge { font-size: 9px; }
  .page-head.split { align-items: stretch; }
  .page-head.split .primary-btn { width: 100%; }
}
