/* ================================================================
   INthe-Q™ Panel — Standalone Dashboard Theme
   All classes prefixed with "p-" to avoid any collision with
   the main Vegas site styles.
   ================================================================ */

:root {
    --p-bg:          #0f1117;
    --p-sidebar-bg:  #161924;
    --p-topbar-bg:   #12151f;
    --p-card:        #1c2030;
    --p-card-hover:  #222640;
    --p-border:      #252a3a;
    --p-border-soft: #1e2238;
    --p-accent:      #FFD700;
    --p-accent-dim:  rgba(255,215,0,0.12);
    --p-accent-soft: rgba(255,215,0,0.06);
    --p-purple:      #7b5cf5;
    --p-purple-dim:  rgba(123,92,245,0.14);
    --p-green:       #22c55e;
    --p-green-dim:   rgba(34,197,94,0.12);
    --p-red:         #ef4444;
    --p-red-dim:     rgba(239,68,68,0.12);
    --p-amber:       #f59e0b;
    --p-amber-dim:   rgba(245,158,11,0.12);
    --p-text:        #e2e4f0;
    --p-text-soft:   #9095b0;
    --p-text-muted:  #cacbcf;
    --p-sidebar-w:   260px;
    --p-topbar-h:    64px;
    --p-radius:      10px;
    --p-radius-lg:   14px;
    --p-font:        'Inter', 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.p-body {
    font-family: var(--p-font);
    background: var(--p-bg);
    color: var(--p-text);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ---- Layout shell ---- */
.p-layout {
    display: flex;
    min-height: 100vh;
}

/* ================================================================
   Sidebar
   ================================================================ */
.p-sidebar {
    width: var(--p-sidebar-w);
    background: var(--p-sidebar-bg);
    border-right: 1px solid var(--p-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transition: transform 0.28s ease;
    overflow: hidden;
}

.p-sidebar__brand {
    padding: 0 20px;
    height: var(--p-topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--p-border);
    flex-shrink: 0;
}

.p-sidebar__brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--p-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: #0a0800;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.p-sidebar__brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--p-text);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.p-sidebar__brand-sub {
    font-size: 11px;
    color: var(--p-text-muted);
    letter-spacing: 0.5px;
}

.p-sidebar__role-badge {
    margin: 14px 16px 6px;
    padding: 6px 12px;
    background: var(--p-accent-dim);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--p-accent);
    text-align: center;
    flex-shrink: 0;
}

.p-sidebar__role-badge--admin {
    background: var(--p-purple-dim);
    border-color: rgba(123,92,245,0.2);
    color: #a78bfa;
}

.p-sidebar__role-badge--fan {
    background: var(--p-green-dim);
    border-color: rgba(34,197,94,0.2);
    color: #4ade80;
}

/* GEM artist (multi-city Show Campaign) */
.p-sidebar__role-badge--gem {
    background: rgba(56,189,248,0.12);
    border-color: rgba(56,189,248,0.25);
    color: #38bdf8;
}

/* Public city picker on a multi-city campaign */
.p-cities-pick { display: flex; flex-direction: column; gap: 12px; }
.p-cities-pick__head { margin-bottom: 2px; }
.p-cities-pick__step {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    color: #0a0800; background: linear-gradient(135deg, #FFE55C, #FFD700 55%, #E0A800);
    padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.p-cities-pick__title { margin: 0; font-size: 16px; font-weight: 800; color: var(--p-text); }
.p-cities-pick__sub { margin: 4px 0 0; font-size: 12.5px; color: var(--p-text-muted); line-height: 1.55; }

.p-city-pick {
    display: block; padding: 15px 16px; border: 1px solid var(--p-border); border-radius: 13px;
    background: rgba(255, 255, 255, 0.025); text-decoration: none;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
a.p-city-pick { cursor: pointer; }
a.p-city-pick:hover {
    border-color: var(--p-accent); background: rgba(255, 215, 0, 0.07);
    transform: translateY(-2px); text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.16);
}
a.p-city-pick:hover .p-city-pick__btn { background: linear-gradient(135deg, #FFE55C, #FFD700 55%, #E0A800); color: #1a1200; }
a.p-city-pick:hover .p-city-pick__btn i { transform: translateX(3px); }
.p-city-pick.is-full { opacity: 0.5; }

.p-city-pick__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.p-city-pick__info { min-width: 0; }
.p-city-pick__name { display: block; font-size: 15.5px; font-weight: 800; color: var(--p-text); line-height: 1.25; }
.p-city-pick__name i { color: var(--p-accent); font-size: 12px; margin-right: 4px; }
.p-city-pick__country { display: block; font-size: 12px; color: var(--p-text-muted); margin-top: 2px; }

/* Explicit call-to-action so it's obvious the card is tappable */
.p-city-pick__btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 30px; white-space: nowrap;
    background: rgba(255, 215, 0, 0.14); border: 1px solid rgba(255, 215, 0, 0.5);
    color: var(--p-accent); font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px;
    transition: background 0.18s, color 0.18s;
}
.p-city-pick__btn i { font-size: 10px; transition: transform 0.18s; }
.p-city-pick__btn--full {
    background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; font-size: 11px;
}
/* A city that is still open, shown to someone who can't reserve right now —
   readable rather than dimmed, since it is live information, not a dead end. */
.p-city-pick__btn--open {
    background: var(--p-accent-dim); border-color: rgba(255, 215, 0, 0.3);
    color: var(--p-accent); letter-spacing: .5px;
}
.p-city-pick.is-static { cursor: default; }

/* The read-only list keeps its own heading style: this is the campaign's city
   breakdown, not a step in a flow. */
.p-cities-pick.is-readonly .p-cities-pick__step {
    background: none; color: var(--p-text-muted);
    border: 1px solid var(--p-border); padding: 2px 9px;
}

.p-city-pick__track { height: 7px; background: rgba(255, 255, 255, 0.08); border-radius: 5px; overflow: hidden; }
.p-city-pick__fill { height: 100%; background: linear-gradient(90deg, #FFD700, #B8860B); border-radius: 5px; }
.p-city-pick__fill--hot { background: linear-gradient(90deg, #fb923c, #ef4444); }
.p-city-pick__fill--full { background: linear-gradient(90deg, #22c55e, #16a34a); }
.p-city-pick__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--p-text-muted); }
.p-city-pick__meta strong { color: var(--p-accent); font-size: 13.5px; }
/* Per-city outcome message once a city completes, qualifies or closes */
.p-city-pick__outcome { display: block; line-height: 1.55; font-size: 11.5px; }
.p-city-pick.is-closed { opacity: 0.55; }
.p-city-pick__fill--dead { background: linear-gradient(90deg, #64748b, #475569); }
.p-city-pick__hot { color: #fb923c; font-weight: 700; font-size: 11px; }

@media (max-width: 420px) {
    .p-city-pick__row { flex-direction: column; align-items: stretch; gap: 10px; }
    .p-city-pick__btn { justify-content: center; }
}

.p-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 20px;
}

.p-nav::-webkit-scrollbar { width: 4px; }
.p-nav::-webkit-scrollbar-track { background: transparent; }
.p-nav::-webkit-scrollbar-thumb { background: var(--p-border); border-radius: 4px; }

.p-nav__group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--p-text-muted);
    padding: 16px 20px 6px;
}

.p-nav__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px;
    color: var(--p-text-soft);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    position: relative;
}

.p-nav__item:hover {
    background: var(--p-accent-soft);
    color: var(--p-text);
    text-decoration: none;
}

.p-nav__item.active {
    background: var(--p-accent-dim);
    color: var(--p-accent);
    border-left-color: var(--p-accent);
    font-weight: 600;
}

.p-nav__item.active--admin {
    background: var(--p-purple-dim);
    color: #a78bfa;
    border-left-color: var(--p-purple);
}

.p-nav__item.active--fan {
    background: var(--p-green-dim);
    color: #4ade80;
    border-left-color: var(--p-green);
}

/* For labels too long to sit on one line: the icon tracks the first line rather
   than floating to the middle of a three-line block. */
.p-nav__item--wrap {
    align-items: flex-start;
    line-height: 1.35;
}

.p-nav__item--wrap .p-nav__icon { margin-top: 2px; }

.p-nav__icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 15px;
    opacity: 0.75;
}

.p-nav__item:hover .p-nav__icon,
.p-nav__item.active .p-nav__icon { opacity: 1; }

.p-nav__badge {
    margin-left: auto;
    background: var(--p-accent);
    color: #0a0800;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
    line-height: 1.4;
}

.p-sidebar__bottom {
    padding: 16px;
    border-top: 1px solid var(--p-border);
    flex-shrink: 0;
}

.p-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--p-radius);
    background: var(--p-border-soft);
}

.p-sidebar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p-accent), #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #0a0800;
    flex-shrink: 0;
}

.p-sidebar__user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--p-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-sidebar__user-role {
    font-size: 11px;
    color: var(--p-text-muted);
}

.p-sidebar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--p-text-muted);
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.p-sidebar__logout:hover {
    color: var(--p-red);
    background: var(--p-red-dim);
}

/* ================================================================
   Main content area
   ================================================================ */
.p-main {
    margin-left: var(--p-sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================================================================
   Top bar
   ================================================================ */
.p-topbar {
    height: var(--p-topbar-h);
    background: var(--p-topbar-bg);
    border-bottom: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.p-topbar__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--p-text-soft);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s;
}

.p-topbar__hamburger:hover { color: var(--p-text); }

.p-topbar__breadcrumb {
    flex: 1;
    font-size: 13px;
    color: var(--p-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-topbar__breadcrumb strong {
    color: var(--p-text);
    font-weight: 600;
}

.p-topbar__breadcrumb span { color: var(--p-text-muted); }

.p-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-topbar__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--p-border);
    background: transparent;
    color: var(--p-text-soft);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}

.p-topbar__icon-btn:hover {
    background: var(--p-card);
    color: var(--p-text);
}

.p-topbar__user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--p-border);
    border-radius: 50px;
    cursor: default;
}

.p-topbar__user-pill span {
    font-size: 13px;
    font-weight: 600;
    color: var(--p-text);
}

/* ================================================================
   Artist dashboard — active campaign status card
   ================================================================ */
.p-camp-status__title { font-size: 17px; font-weight: 800; color: var(--p-text); margin-bottom: 16px; }
.p-camp-status__grid { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.p-camp-status__metric {
    flex: 1; min-width: 130px;
    background: var(--p-bg);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 14px 16px;
}
.p-camp-status__metric-num { display: block; font-size: 24px; font-weight: 900; color: var(--p-text); line-height: 1; }
.p-camp-status__metric-num small { font-size: 13px; font-weight: 700; color: var(--p-text-soft); }
.p-camp-status__metric-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--p-text-muted); margin-top: 8px; }
.p-camp-status__rule {
    font-size: 13px; color: var(--p-text-soft); line-height: 1.6; margin: 0;
    background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.18);
    border-radius: var(--p-radius); padding: 12px 14px;
}
.p-camp-status__rule i { color: var(--p-accent); margin-right: 4px; }
.p-camp-status__rule strong { color: var(--p-text); }

/* ================================================================
   Notifications — bell + dropdown
   ================================================================ */
.p-notif { position: relative; }
.p-notif__bell { position: relative; overflow: visible; }
.p-notif__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a8c 0%, #ef4444 52%, #d61f3a 100%);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1;
    border: 2px solid var(--p-topbar-bg);
    box-shadow: 0 3px 8px rgba(239,68,68,0.5);
    animation: p-notif-pop 0.3s ease-out, p-notif-pulse 2.6s ease-out 0.3s infinite;
}
@keyframes p-notif-pop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes p-notif-pulse {
    0%   { box-shadow: 0 3px 8px rgba(239,68,68,0.5), 0 0 0 0 rgba(239,68,68,0.55); }
    70%  { box-shadow: 0 3px 8px rgba(239,68,68,0.5), 0 0 0 7px rgba(239,68,68,0); }
    100% { box-shadow: 0 3px 8px rgba(239,68,68,0.5), 0 0 0 0 rgba(239,68,68,0); }
}
/* When the panel is open the alert has served its purpose — calm the animation. */
.p-notif.open .p-notif__badge { animation: none; }
.p-notif.open .p-notif__bell { background: var(--p-card); color: var(--p-accent); border-color: rgba(255,215,0,0.35); }
@media (prefers-reduced-motion: reduce) {
    .p-notif__badge { animation: none; }
}

.p-notif__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 120;
    overflow: hidden;
}
.p-notif.open .p-notif__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.p-notif__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--p-border);
}
.p-notif__head-title { font-size: 13px; font-weight: 800; color: var(--p-text); letter-spacing: 0.3px; }
.p-notif__head-count { font-size: 11px; font-weight: 700; color: var(--p-accent); margin-left: 6px; }
.p-notif__markall { font-size: 12px; color: var(--p-text-soft); text-decoration: none; font-weight: 600; }
.p-notif__markall:hover { color: var(--p-accent); }

.p-notif__list { max-height: 380px; overflow-y: auto; }
.p-notif__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--p-border-soft, rgba(255,255,255,0.04));
    text-decoration: none;
    position: relative;
    transition: background 0.15s;
}
.p-notif__item:hover { background: var(--p-card-hover); }
.p-notif__item--unread { background: rgba(255,215,0,0.035); }
.p-notif__icon {
    width: 34px; height: 34px; min-width: 34px;
    border-radius: 9px;
    background: var(--p-accent-dim);
    color: var(--p-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.p-notif__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-notif__title { font-size: 13px; font-weight: 700; color: var(--p-text); line-height: 1.35; }
.p-notif__msg { font-size: 12px; color: var(--p-text-soft); line-height: 1.45; }
.p-notif__time { font-size: 11px; color: var(--p-text-muted); margin-top: 2px; }
.p-notif__dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: var(--p-accent); margin-top: 6px; }

.p-notif__empty { padding: 34px 20px; text-align: center; color: var(--p-text-muted); }
.p-notif__empty i { font-size: 26px; opacity: 0.5; display: block; margin-bottom: 10px; }
.p-notif__empty p { font-size: 13px; margin: 0; }

.p-notif__viewall {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--p-accent);
    text-decoration: none;
    border-top: 1px solid var(--p-border);
    background: var(--p-card);
}
.p-notif__viewall:hover { background: var(--p-card-hover); }

/* Notifications full page */
.p-notif-page { display: flex; flex-direction: column; }
.p-notif-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--p-border);
    text-decoration: none;
    position: relative;
    transition: background 0.15s;
}
.p-notif-row:last-child { border-bottom: none; }
.p-notif-row:hover { background: var(--p-card-hover); }
.p-notif-row--unread { background: rgba(255,215,0,0.04); }
.p-notif-row__icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 10px;
    background: var(--p-accent-dim);
    color: var(--p-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.p-notif-row__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-notif-row__title { font-size: 14px; font-weight: 700; color: var(--p-text); }
.p-notif-row__msg { font-size: 13px; color: var(--p-text-soft); line-height: 1.5; }
.p-notif-row__time { font-size: 12px; color: var(--p-text-muted); white-space: nowrap; }
.p-notif-row__dot { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; background: var(--p-accent); margin-top: 5px; }

@media (max-width: 480px) {
    .p-notif__panel { position: fixed; top: 62px; right: 16px; left: 16px; width: auto; }
}

/* ================================================================
   Page content
   ================================================================ */
.p-content {
    flex: 1;
    padding: 28px;
}

.p-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.p-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--p-text);
    margin: 0 0 4px;
    line-height: 1.2;
}

.p-page-subtitle {
    font-size: 14px;
    color: var(--p-text-muted);
    margin: 0;
}

/* ================================================================
   Stat cards row
   ================================================================ */
.p-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.p-stat-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.p-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.p-stat-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--p-text-muted);
    margin-bottom: 10px;
}

.p-stat-card__value {
    font-size: 30px;
    font-weight: 900;
    color: var(--p-text);
    line-height: 1;
    margin-bottom: 6px;
}

.p-stat-card__sub {
    font-size: 12px;
    color: var(--p-text-muted);
}

.p-stat-card__icon {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 26px;
    opacity: 0.18;
}

.p-stat-card--gold  { border-left: 3px solid var(--p-accent); }
.p-stat-card--green { border-left: 3px solid var(--p-green); }
.p-stat-card--purple{ border-left: 3px solid var(--p-purple); }
.p-stat-card--amber { border-left: 3px solid var(--p-amber); }
.p-stat-card--red   { border-left: 3px solid var(--p-red); }

/* ================================================================
   Panel cards (content blocks)
   ================================================================ */
.p-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-lg);
    overflow: hidden;
}

.p-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--p-border);
    gap: 12px;
    flex-wrap: wrap;
}

.p-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--p-text);
    margin: 0;
}

.p-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    line-height: 1.7;
    white-space: nowrap; /* a pill must never break across lines */
    vertical-align: middle;
}

/* Stacked status badges inside a table cell */
.p-badge-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.p-card__badge--gold   { background: var(--p-accent-dim); color: var(--p-accent); border: 1px solid rgba(255,215,0,0.2); }
.p-card__badge--green  { background: var(--p-green-dim);  color: var(--p-green);  border: 1px solid rgba(34,197,94,0.2); }
.p-card__badge--red    { background: var(--p-red-dim);    color: var(--p-red);    border: 1px solid rgba(239,68,68,0.2); }
.p-card__badge--purple { background: var(--p-purple-dim); color: #a78bfa;         border: 1px solid rgba(123,92,245,0.2); }
.p-card__badge--amber  { background: var(--p-amber-dim);  color: var(--p-amber);  border: 1px solid rgba(245,158,11,0.2); }
.p-card__badge--slate  { background: rgba(148,163,184,0.14); color: #94a3b8; border: 1px solid rgba(148,163,184,0.28); }

.p-card__body {
    padding: 22px;
}

.p-card__foot {
    padding: 14px 22px;
    border-top: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ================================================================
   Two / Three column panel layout
   ================================================================ */
.p-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.p-row--2 { grid-template-columns: 1fr 1fr; }
.p-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.p-row--1-2 { grid-template-columns: 1fr 2fr; }
.p-row--2-1 { grid-template-columns: 2fr 1fr; }

/* ================================================================
   Forms inside panel
   ================================================================ */
.p-form-group {
    margin-bottom: 18px;
}

.p-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--p-text-soft);
    margin-bottom: 7px;
}

.p-form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--p-bg);
    border: 1px solid var(--p-border);
    border-radius: 8px;
    color: var(--p-text);
    font-size: 14px;
    font-family: var(--p-font);
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
}

.p-form-control::placeholder { color: var(--p-text-muted); }
.p-form-control option { background: var(--p-card); }

.p-form-control:focus {
    border-color: var(--p-accent);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.08);
}

/* ── Native date, month and time fields ───────────────────────────
 *
 * These are rendered by the browser, not by us, and a browser that has not
 * been told the document is dark assumes it is light: the picker indicator
 * comes out as a near-black glyph on our near-black field, the empty
 * segments use a grey picked for white paper, and the dropdown calendar
 * opens as a white sheet. `color-scheme` is what fixes all three at once —
 * everything after it is polish on top.
 */

input[type="date"].p-form-control,
input[type="month"].p-form-control,
input[type="time"].p-form-control,
input[type="week"].p-form-control,
input[type="datetime-local"].p-form-control {
    color-scheme: dark;
    /* The whole field opens the picker, so it should look like it does. */
    cursor: pointer;
    padding-right: 12px;
}

/* The indicator, repainted in the accent and given room to be hit. A 16px
   glyph in the corner is a target you aim at; this is one you can just hit. */
input[type="date"].p-form-control::-webkit-calendar-picker-indicator,
input[type="month"].p-form-control::-webkit-calendar-picker-indicator,
input[type="time"].p-form-control::-webkit-calendar-picker-indicator,
input[type="week"].p-form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].p-form-control::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    background-size: 17px 17px;
    background-position: center;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0 -4px 0 6px;
    border-radius: 7px;
    cursor: pointer;
    opacity: .72;
    transition: opacity .15s, background-color .15s;
}

input[type="date"].p-form-control::-webkit-calendar-picker-indicator:hover,
input[type="month"].p-form-control::-webkit-calendar-picker-indicator:hover,
input[type="time"].p-form-control::-webkit-calendar-picker-indicator:hover,
input[type="week"].p-form-control::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"].p-form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: var(--p-accent-dim);
}

/* An empty field should read as "nothing chosen yet", not as damage. The
   browser default here is a grey chosen for white paper and lands almost
   invisible on ours. */
.p-form-control::-webkit-datetime-edit-year-field:not([aria-valuenow]),
.p-form-control::-webkit-datetime-edit-month-field:not([aria-valuenow]),
.p-form-control::-webkit-datetime-edit-day-field:not([aria-valuenow]),
.p-form-control::-webkit-datetime-edit-hour-field:not([aria-valuenow]),
.p-form-control::-webkit-datetime-edit-minute-field:not([aria-valuenow]) {
    color: var(--p-text-soft);
}

/* The separators sit between values and should not compete with them. */
.p-form-control::-webkit-datetime-edit-text {
    color: var(--p-text-soft);
    padding: 0 1px;
}

.p-form-control::-webkit-datetime-edit-fields-wrapper { padding: 0; }

/* The segment being edited, so it is obvious which part the arrow keys move. */
.p-form-control::-webkit-datetime-edit-year-field:focus,
.p-form-control::-webkit-datetime-edit-month-field:focus,
.p-form-control::-webkit-datetime-edit-day-field:focus,
.p-form-control::-webkit-datetime-edit-hour-field:focus,
.p-form-control::-webkit-datetime-edit-minute-field:focus,
.p-form-control::-webkit-datetime-edit-ampm-field:focus {
    background: var(--p-accent);
    color: #0f1117;
    border-radius: 4px;
    outline: none;
}

/* ── Selects ──────────────────────────────────────────────────────
 *
 * Same root cause as the date fields: without `color-scheme` the dropdown
 * list opens as a white sheet and the disclosure arrow is painted for light
 * paper. The native arrow is then replaced with one in the accent, so a
 * select reads as something you can open rather than a flat text box.
 */

select.p-form-control {
    color-scheme: dark;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px 15px;
    /* Room for the chevron, so a long option never runs underneath it. */
    padding-right: 34px;
}

select.p-form-control::-ms-expand { display: none; }

/* The open list. Chromium paints it from these; Firefox uses color-scheme. */
select.p-form-control option {
    background: var(--p-card);
    color: var(--p-text);
}

/* "Month" / "Year" before anything is chosen is a prompt, not a value, so it
   is toned down to read like placeholder text. */
select.p-form-control option[value=""] { color: var(--p-text-soft); }

/* Firefox has no shadow parts to style; color-scheme carries it there. */
@supports (-moz-appearance: none) {
    input[type="date"].p-form-control,
    input[type="month"].p-form-control,
    input[type="time"].p-form-control,
    input[type="datetime-local"].p-form-control { padding-right: 14px; }
}

.p-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.p-form-hint {
    font-size: 12px;
    color: var(--p-text-muted);
    margin-top: 5px;
}

.p-required { color: var(--p-accent); }

/* ================================================================
   Buttons
   ================================================================ */
.p-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
    white-space: nowrap;
}

.p-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.p-btn:active { transform: translateY(0); }

.p-btn--primary {
    background: linear-gradient(90deg, #FFD700, #c9a800);
    color: #0a0800;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(255,215,0,0.25);
}

.p-btn--secondary {
    background: var(--p-card-hover);
    color: var(--p-text);
    border: 1px solid var(--p-border);
}

.p-btn--danger {
    background: var(--p-red-dim);
    color: var(--p-red);
    border: 1px solid rgba(239,68,68,0.2);
}

.p-btn--success {
    background: var(--p-green-dim);
    color: var(--p-green);
    border: 1px solid rgba(34,197,94,0.2);
}

.p-btn--purple {
    background: var(--p-purple-dim);
    color: #a78bfa;
    border: 1px solid rgba(123,92,245,0.2);
}

.p-btn--sm { padding: 6px 13px; font-size: 12px; }
.p-btn--lg { padding: 12px 24px; font-size: 15px; }
.p-btn--full { width: 100%; justify-content: center; }

.p-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ================================================================
   Tables
   ================================================================ */
.p-table-wrap { overflow-x: auto; }

.p-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.p-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--p-text-muted);
    border-bottom: 1px solid var(--p-border);
    white-space: nowrap;
}

.p-table td {
    padding: 13px 16px;
    font-size: 13px;
    color: var(--p-text);
    border-bottom: 1px solid var(--p-border-soft);
    vertical-align: middle;
}

.p-table tr:last-child td { border-bottom: none; }

.p-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ================================================================
   Inline reservation progress (admin campaign list)
   ================================================================ */
.p-progress { min-width: 170px; }
.p-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 12px;
}
.p-progress__count { color: var(--p-text-soft); }
.p-progress__count strong { color: var(--p-text); font-weight: 800; font-size: 13px; }
.p-progress__pct { color: var(--p-text-soft); font-weight: 700; font-size: 11px; }
.p-progress__pct--full { color: var(--p-green); }
.p-progress__track {
    height: 7px;
    border-radius: 999px;
    background: var(--p-card-hover);
    overflow: hidden;
}
.p-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--p-accent), #ffe27a);
    transition: width 0.4s ease;
}
.p-progress__fill--hot  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.p-progress__fill--full { background: linear-gradient(90deg, var(--p-green), #4ade80); }
.p-progress--na { color: var(--p-text-muted); font-size: 12px; font-style: italic; }

/* Filter-tab count badges */
.p-tab-count {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    background: rgba(255,255,255,0.08);
    color: var(--p-text-muted);
}
.p-tab-count--active { background: rgba(0,0,0,0.25); color: inherit; }

/* ================================================================
   Artist "take it live" readiness card
   ================================================================ */
.p-golive { margin-bottom: 18px; border-color: rgba(245,158,11,0.35); }
.p-golive__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.p-golive__icon {
    width: 42px; height: 42px; min-width: 42px; border-radius: 11px;
    background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.32);
    color: var(--p-amber); font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.p-golive__title { font-size: 16px; font-weight: 800; color: var(--p-text); margin: 0 0 4px; }
.p-golive__sub { font-size: 13px; color: var(--p-text-soft); margin: 0; line-height: 1.5; }
.p-golive__sub strong { color: var(--p-text); }
.p-golive__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-golive__step {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 15px; border-radius: 10px;
    background: var(--p-bg); border: 1px solid var(--p-border);
}
.p-golive__step.is-done { border-color: rgba(34,197,94,0.32); background: rgba(34,197,94,0.05); }
.p-golive__step-ic {
    width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
    background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35);
    color: var(--p-amber); font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.p-golive__step.is-done .p-golive__step-ic { background: var(--p-green-dim); border-color: rgba(34,197,94,0.4); color: var(--p-green); }
.p-golive__step-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-golive__step-body strong { font-size: 13px; color: var(--p-text); }
.p-golive__step-body span { font-size: 12px; color: var(--p-text-soft); line-height: 1.4; }
@media (max-width: 640px) {
    .p-golive__steps { grid-template-columns: 1fr; }
}

/* A qualifier under a table heading, e.g. "Reserved / this week".
   Keeps long two-word column names from doubling the table's width. */
.p-th-sub {
    display: block; margin-top: 1px;
    font-size: 9px; font-weight: 600; letter-spacing: .6px;
    text-transform: none; color: var(--p-text-soft); opacity: .8;
}

/* ================================================================
   Confirmation block — the acknowledgements required before a
   signature or a payment. Custom tile checkbox, title + subtext per
   row, and a live counter in the header.
   ================================================================ */
.p-confirm {
    border: 1px solid var(--p-border); border-radius: var(--p-radius-lg);
    background: rgba(255, 255, 255, 0.02); overflow: hidden; margin-bottom: 18px;
}
.p-confirm.is-complete { border-color: rgba(34, 197, 94, 0.35); }
.p-confirm__head {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px; border-bottom: 1px solid var(--p-border);
    background: var(--p-accent-soft);
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--p-accent);
}
.p-confirm.is-complete .p-confirm__head { background: rgba(34, 197, 94, 0.06); color: var(--p-green); }
.p-confirm__count {
    margin-left: auto; letter-spacing: 0.4px; text-transform: none;
    font-size: 11px; font-weight: 700; color: var(--p-text-soft);
}
.p-confirm.is-complete .p-confirm__count { color: var(--p-green); }
.p-confirm__list { padding: 9px; display: flex; flex-direction: column; gap: 8px; }

.p-confirm__row {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 12px 14px; border-radius: 10px;
    background: var(--p-bg); border: 1px solid var(--p-border);
    transition: border-color .18s ease, background .18s ease;
}
.p-confirm__row:hover { border-color: rgba(255, 215, 0, 0.4); background: rgba(255, 215, 0, 0.035); }
/* The native input drives state; the tile is what people see. */
.p-confirm__row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.p-confirm__box {
    flex: 0 0 auto; width: 21px; height: 21px; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: #0a0800; font-size: 11px;
    transition: background .16s ease, border-color .16s ease;
}
.p-confirm__box i { opacity: 0; transform: scale(.5); transition: opacity .16s ease, transform .16s ease; }
.p-confirm__row input:checked ~ .p-confirm__box {
    background: linear-gradient(135deg, #FFE55C, #FFD700 55%, #B8860B); border-color: transparent;
}
.p-confirm__row input:checked ~ .p-confirm__box i { opacity: 1; transform: scale(1); }
.p-confirm__row input:focus-visible ~ .p-confirm__box { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.p-confirm__row:has(input:checked) { border-color: rgba(255, 215, 0, 0.4); background: rgba(255, 215, 0, 0.045); }

.p-confirm__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-confirm__txt strong { font-size: 13.5px; font-weight: 700; color: var(--p-text); line-height: 1.35; }
.p-confirm__txt span   { font-size: 12px; line-height: 1.6; color: var(--p-text-soft); }
.p-confirm__txt b      { color: var(--p-accent); font-weight: 700; }

/* Blue variant, matching the company-artist commitment accent. */
.p-confirm--blue .p-confirm__head { background: rgba(56, 189, 248, 0.07); color: #38bdf8; }
.p-confirm--blue .p-confirm__row:hover { border-color: rgba(56, 189, 248, 0.42); background: rgba(56, 189, 248, 0.04); }
.p-confirm--blue .p-confirm__row input:checked ~ .p-confirm__box {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8 55%, #0284c7); color: #04202e;
}
.p-confirm--blue .p-confirm__row:has(input:checked) { border-color: rgba(56, 189, 248, 0.42); background: rgba(56, 189, 248, 0.05); }
.p-confirm--blue .p-confirm__txt b { color: #38bdf8; }
.p-confirm--blue.is-complete { border-color: rgba(56, 189, 248, 0.4); }
.p-confirm--blue.is-complete .p-confirm__head { background: rgba(56, 189, 248, 0.09); color: #38bdf8; }
.p-confirm--blue.is-complete .p-confirm__count { color: #38bdf8; }

@media (max-width: 560px) {
    .p-confirm__row { padding: 11px 12px; gap: 10px; }
    .p-confirm__txt strong { font-size: 13px; }
}

/* ================================================================
   Company journey — "Path to a Live Campaign"
   Vertical stage timeline (.p-journey) + its compact dashboard
   counterpart (.p-journey-strip). State classes on the <li>:
   is-done | is-current | is-locked | is-blocked.
   ================================================================ */
.p-journey { list-style: none; margin: 0 0 18px; padding: 0; }
.p-journey__stage {
    display: grid; grid-template-columns: 44px 1fr; gap: 18px;
    padding-bottom: 18px;
    scroll-margin-top: 80px;            /* clear the 64px fixed topbar on anchor jumps */
}
.p-journey__stage:last-child { padding-bottom: 0; }

/* The rail is its own grid column, not a pseudo-element inside the card —
   .p-card has overflow:hidden, which would clip it. */
.p-journey__rail { position: relative; display: flex; justify-content: center; }
.p-journey__stage:not(:last-child) .p-journey__rail::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    top: 44px; bottom: -18px; width: 2px;
    background: linear-gradient(180deg, var(--p-border), rgba(37,42,58,0.2));
}
.p-journey__stage.is-done:not(:last-child) .p-journey__rail::after {
    background: linear-gradient(180deg, var(--p-green), rgba(34,197,94,0.15));
}
.p-journey__node {
    width: 40px; height: 40px; min-width: 40px; border-radius: 50%; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    background: var(--p-card); border: 2px solid var(--p-border); color: var(--p-text-soft);
}
.is-done    .p-journey__node { background: var(--p-green-dim);  border-color: rgba(34,197,94,0.45); color: var(--p-green); }
.is-current .p-journey__node { background: var(--p-accent-dim); border-color: var(--p-accent);      color: var(--p-accent); box-shadow: 0 0 0 5px rgba(255,215,0,0.08); }
.is-blocked .p-journey__node { background: var(--p-red-dim);    border-color: rgba(239,68,68,0.5);  color: var(--p-red); }

.p-journey__panel { position: relative; margin: 0; }
.is-done    .p-journey__panel { border-color: rgba(34,197,94,0.28); }
.is-current .p-journey__panel { border-color: rgba(255,215,0,0.42); }
.is-current .p-journey__panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, #B8860B, #FFD700);
}
.is-blocked .p-journey__panel { border-color: rgba(239,68,68,0.35); }
.is-locked  .p-journey__panel { opacity: 0.62; }   /* readable — locked stages still explain what's coming */

.p-journey__desc { margin: 5px 0 0; font-size: 12.5px; color: var(--p-text-soft); line-height: 1.6; max-width: 62ch; }
.p-journey__note { margin: 0; font-size: 13px; color: var(--p-text); line-height: 1.6; }
.p-journey__sub  { display: block; margin-top: 2px; font-size: 11px; color: var(--p-text-soft); line-height: 1.35; }
.p-journey__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-journey__ok {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--p-green-dim); border: 1px solid rgba(34,197,94,0.4);
    color: var(--p-green); font-size: 10px;
}
.p-journey__foot-note {
    margin: 14px 0 0; font-size: 11.5px; color: var(--p-text-soft); line-height: 1.6;
}
.p-journey__foot-note i { color: var(--p-amber); margin-right: 5px; }

/* Actor chips — one per player in the flow */
.p-journey__actor {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    white-space: nowrap;
}
.p-journey__actor--you     { background: var(--p-accent-dim);      color: var(--p-accent); border: 1px solid rgba(255,215,0,0.24); }
.p-journey__actor--artists { background: rgba(56,189,248,0.12);    color: #38bdf8;         border: 1px solid rgba(56,189,248,0.26); }
.p-journey__actor--admin   { background: var(--p-purple-dim);      color: #a78bfa;         border: 1px solid rgba(123,92,245,0.24); }

.p-journey__artists td { vertical-align: top; }
.p-journey__artists td .p-card__badge { white-space: nowrap; }
/* Wide: the per-gate columns carry the detail, so Status only summarises.
   Narrow: those columns are hidden, so Status takes over the full list. */
.p-journey__stack { display: none; }
.p-journey__summary { display: inline-flex; }

.p-journey__legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-journey__legend p { margin: 7px 0 0; font-size: 12.5px; color: var(--p-text-soft); line-height: 1.6; }

/* ── Compact strip ───────────────────────────────────────────── */
.p-journey-strip { margin-bottom: 18px; border-color: rgba(255,215,0,0.28); }
.p-journey-strip.is-complete { border-color: rgba(34,197,94,0.3); }
.p-journey-strip__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 11px; }
.p-journey-strip__title { font-size: 14px; font-weight: 800; color: var(--p-text); }
.p-journey-strip__title i { color: var(--p-accent); margin-right: 7px; }
.p-journey-strip__count { font-size: 12px; font-weight: 700; color: var(--p-text-soft); }
.p-journey-strip__more {
    margin-left: auto; font-size: 12px; font-weight: 700;
    color: var(--p-accent); text-decoration: none; white-space: nowrap;
}
.p-journey-strip__more:hover { text-decoration: underline; }
.p-journey-strip__track { margin-bottom: 13px; }

.p-journey-strip__steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.p-journey-strip__item { flex: 0 0 auto; }
.p-journey-strip__link { flex: 1 1 auto; height: 2px; min-width: 12px; background: var(--p-border); border-radius: 2px; }
.p-journey-strip__link.is-lit { background: rgba(34,197,94,0.45); }
.p-journey-strip__pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 10px; border-radius: 999px; text-decoration: none;
    border: 1px solid transparent; transition: background .18s ease, border-color .18s ease;
}
.p-journey-strip__pill:hover { background: var(--p-card-hover); border-color: var(--p-border); }
.p-journey-strip__dot {
    width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
    background: var(--p-bg); border: 1px solid var(--p-border); color: var(--p-text-soft);
}
.p-journey-strip__label { font-size: 11.5px; font-weight: 600; color: var(--p-text-soft); white-space: nowrap; }
.p-journey-strip__pill.is-done .p-journey-strip__dot    { background: var(--p-green-dim);  border-color: rgba(34,197,94,0.45); color: var(--p-green); }
.p-journey-strip__pill.is-done .p-journey-strip__label  { color: var(--p-text); }
.p-journey-strip__pill.is-current .p-journey-strip__dot { background: var(--p-accent-dim); border-color: var(--p-accent);      color: var(--p-accent); }
.p-journey-strip__pill.is-current .p-journey-strip__label { color: var(--p-accent); font-weight: 800; }
.p-journey-strip__pill.is-blocked .p-journey-strip__dot { background: var(--p-red-dim);    border-color: rgba(239,68,68,0.5);  color: var(--p-red); }

.p-journey-strip__next {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--p-border);
    font-size: 12.5px; color: var(--p-text-soft); line-height: 1.5;
}
.p-journey-strip__next strong { color: var(--p-text); }
.p-journey-strip__next .p-btn { margin-left: auto; flex: 0 0 auto; }

@media (max-width: 991px) {
    .p-journey__legend { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
    .p-journey__stage { grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 14px; }
    .p-journey__node  { width: 30px; height: 30px; min-width: 30px; font-size: 12px; }
    .p-journey__stage:not(:last-child) .p-journey__rail::after { top: 34px; bottom: -14px; }
    .p-journey__tags  { width: 100%; }
    .p-journey__panel .p-card__foot { flex-direction: column; align-items: stretch; }
    .p-journey__panel .p-card__foot .p-btn { width: 100%; justify-content: center; }

    /* Drop the per-gate columns and let Status carry the full blocker list. */
    .p-journey__artists th:nth-child(n+2):nth-child(-n+5),
    .p-journey__artists td:nth-child(n+2):nth-child(-n+5) { display: none; }
    .p-journey__stack   { display: flex; }
    .p-journey__summary { display: none; }
    /* Three columns fit a phone without the 520px table floor, so the wrap
       barely has to scroll. */
    .p-journey__artists { min-width: 400px; }
    .p-journey__artists th, .p-journey__artists td { padding-left: 8px; padding-right: 8px; }

    .p-journey-strip__steps { display: block; }
    .p-journey-strip__link  { display: none; }
    .p-journey-strip__item  { display: block; }
    .p-journey-strip__pill  { width: 100%; padding: 7px 8px; }
    .p-journey-strip__next .p-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* Go-live prompt modal */
.p-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}
.p-modal.is-open { opacity: 1; visibility: visible; }
.p-modal__overlay { position: absolute; inset: 0; background: rgba(4,5,10,0.72); backdrop-filter: blur(3px); }
.p-modal__box {
    position: relative; z-index: 1;
    width: 100%; max-width: 480px;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-lg);
    padding: 34px 32px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}
.p-modal.is-open .p-modal__box { transform: translateY(0) scale(1); }
.p-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 8px;
    background: transparent; border: 1px solid var(--p-border);
    color: var(--p-text-soft); cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.p-modal__close:hover { background: var(--p-card-hover); color: var(--p-text); }
.p-modal__icon {
    width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px;
    background: linear-gradient(135deg, #FFE55C, #FFD700 55%, #B8860B);
    color: #0a0800; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(255,215,0,0.35);
}
.p-modal__title { font-size: 20px; font-weight: 800; color: var(--p-text); margin: 0 0 8px; }
.p-modal__text { font-size: 13.5px; color: var(--p-text-soft); line-height: 1.6; margin: 0; }
.p-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.p-modal__actions .p-btn { width: 100%; justify-content: center; }
.p-btn--ghost { background: transparent; border: 1px solid var(--p-border); color: var(--p-text-soft); }
.p-btn--ghost:hover { background: var(--p-card-hover); color: var(--p-text); }

/* ================================================================
   Campaign change requests (admin diff review)
   ================================================================ */
.p-changereq { border-color: rgba(245,158,11,0.35); margin-bottom: 20px; }
.p-diff-list { display: flex; flex-direction: column; gap: 10px; }
.p-diff {
    background: var(--p-bg);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 14px 16px;
}
.p-diff__label {
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--p-accent); margin-bottom: 10px;
}
.p-diff__row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; font-size: 13px; line-height: 1.55; }
.p-diff__row:last-child { margin-bottom: 0; }
.p-diff__tag {
    flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px; margin-top: 1px;
}
.p-diff__tag--old { background: var(--p-red-dim); color: var(--p-red); }
.p-diff__tag--new { background: var(--p-green-dim); color: var(--p-green); }
.p-diff__old { color: var(--p-text-soft); text-decoration: line-through; word-break: break-word; }
.p-diff__new { color: var(--p-text); font-weight: 600; word-break: break-word; }

/* ================================================================
   Fan Insights (survey analytics)
   ================================================================ */
.p-insight-section { margin-bottom: 26px; }
.p-insight-section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.p-insight-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
}
.p-insight-section__badge--before { background: rgba(123,92,245,0.14); color: #a78bfa; border: 1px solid rgba(123,92,245,0.3); }
.p-insight-section__badge--after  { background: rgba(255,215,0,0.12);  color: var(--p-accent); border: 1px solid rgba(255,215,0,0.3); }
.p-insight-section__note { font-size: 12.5px; color: var(--p-text-soft); }

.p-insight-q { padding: 20px 0; border-bottom: 1px solid var(--p-border); }
.p-insight-q:first-child { padding-top: 4px; }
.p-insight-q:last-child { border-bottom: none; padding-bottom: 4px; }
.p-insight-q__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
}
.p-insight-q__title { font-size: 14.5px; font-weight: 700; color: var(--p-text); line-height: 1.4; }
.p-insight-q__num {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 6px;
    background: rgba(255,215,0,0.12);
    color: var(--p-accent);
    font-size: 12px;
    font-weight: 800;
    margin-right: 8px;
}
.p-insight-q__count { font-size: 12px; color: var(--p-text-soft); white-space: nowrap; font-weight: 600; }
.p-insight-q__empty { font-size: 13px; color: var(--p-text-muted); font-style: italic; margin: 0; }

.p-insight-bars { display: flex; flex-direction: column; gap: 9px; }
.p-insight-bar {
    display: grid;
    grid-template-columns: minmax(120px, 34%) 1fr 78px;
    align-items: center;
    gap: 14px;
}
.p-insight-bar__label { font-size: 13px; color: var(--p-text-muted); line-height: 1.35; }
.p-insight-bar__track { height: 12px; border-radius: 999px; background: var(--p-card-hover); overflow: hidden; }
.p-insight-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b4f6b, #6b6f95);
    transition: width 0.5s ease;
}
.p-insight-bar__val { font-size: 12.5px; color: var(--p-text-soft); text-align: right; white-space: nowrap; }
.p-insight-bar__val strong { color: var(--p-text); font-weight: 800; }
.p-insight-bar--top .p-insight-bar__fill { background: linear-gradient(90deg, var(--p-accent), #ffe27a); }
.p-insight-bar--top .p-insight-bar__label { color: var(--p-text); font-weight: 700; }

/* Scale (1–10) question */
.p-scale { display: flex; align-items: stretch; gap: 24px; flex-wrap: wrap; }
.p-scale__avg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 96px;
    padding: 12px 18px;
    border-radius: var(--p-radius-lg);
    background: rgba(255,215,0,0.07);
    border: 1px solid rgba(255,215,0,0.25);
}
.p-scale__avg-num { font-size: 34px; font-weight: 900; color: var(--p-accent); line-height: 1; }
.p-scale__avg-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--p-text-soft); margin-top: 6px; }
.p-scale__chart { flex: 1; min-width: 260px; display: flex; align-items: flex-end; gap: 6px; }
.p-scale__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.p-scale__col-track { width: 100%; height: 80px; display: flex; align-items: flex-end; border-radius: 5px 5px 0 0; overflow: hidden; background: var(--p-card-hover); }
.p-scale__col-fill { width: 100%; background: linear-gradient(180deg, #ffe27a, var(--p-accent)); border-radius: 5px 5px 0 0; transition: height 0.5s ease; }
.p-scale__col-n { font-size: 12px; font-weight: 700; color: var(--p-text-muted); }
.p-scale__col-c { font-size: 11px; color: var(--p-text-soft); }

@media (max-width: 640px) {
    .p-insight-bar { grid-template-columns: 1fr; gap: 4px; }
    .p-insight-bar__val { text-align: left; }
    .p-scale { gap: 16px; }
    .p-scale__chart { min-width: 0; }
    .p-scale__col-c { display: none; }
}

/* ================================================================
   Status pills
   ================================================================ */
.p-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.4px;
}

.p-status--pending  { background: var(--p-amber-dim); color: var(--p-amber); }
.p-status--approved { background: var(--p-green-dim); color: var(--p-green); }
.p-status--active   { background: var(--p-green-dim); color: var(--p-green); }
.p-status--success  { background: var(--p-green-dim); color: var(--p-green); }
.p-status--rejected { background: var(--p-red-dim);   color: var(--p-red); }
.p-status--suspended { background: var(--p-red-dim);  color: var(--p-red); }
.p-status--created  { background: var(--p-purple-dim); color: #a78bfa; }
.p-status--split    { background: var(--p-purple-dim); color: #a78bfa; }
.p-status--direct   { background: var(--p-accent-dim); color: var(--p-accent); }
.p-status--registration { background: var(--p-accent-dim); color: var(--p-accent); }
.p-status--closed   { background: var(--p-accent-dim); color: var(--p-accent); }
.p-status--unpublished { background: rgba(148,163,184,0.15); color: #94a3b8; }
.p-status--retired  { background: rgba(148,163,184,0.15); color: #94a3b8; }

/* ================================================================
   Alerts
   ================================================================ */
.p-alert {
    padding: 13px 16px;
    border-radius: var(--p-radius);
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.p-alert i { flex-shrink: 0; margin-top: 1px; }
.p-alert--success { background: var(--p-green-dim);  border: 1px solid rgba(34,197,94,0.2);  color: #4ade80; }
.p-alert--error   { background: var(--p-red-dim);    border: 1px solid rgba(239,68,68,0.2);  color: #f87171; }
.p-alert--warning { background: var(--p-amber-dim);  border: 1px solid rgba(245,158,11,0.2); color: var(--p-amber); }
.p-alert--info    { background: var(--p-purple-dim); border: 1px solid rgba(123,92,245,0.2); color: #a78bfa; }

/* ================================================================
   Profile info list
   ================================================================ */
.p-info-list { list-style: none; padding: 0; margin: 0; }

.p-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--p-border-soft);
    font-size: 14px;
}

.p-info-list li:last-child { border-bottom: none; }

.p-info-list__label {
    flex-shrink: 0;
    width: 160px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--p-text-muted);
    padding-top: 1px;
}

.p-info-list__value {
    color: var(--p-text);
    word-break: break-word;
}

/* ================================================================
   Empty state
   ================================================================ */
.p-empty {
    text-align: center;
    padding: 44px 24px;
    color: var(--p-text-muted);
}

.p-empty__icon { font-size: 40px; opacity: 0.3; margin-bottom: 12px; }
.p-empty p { margin: 0; font-size: 14px; }

/* ================================================================
   Pager
   ================================================================ */
.p-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

/* ================================================================
   Profile quote / tagline (editable)
   ================================================================ */
.p-quote-block { margin-top: 18px; text-align: left; }
.p-quote-display { position: relative; padding: 6px 26px 6px 22px; }
.p-quote-icon { position: absolute; top: 2px; left: 0; font-size: 13px; color: var(--p-accent); opacity: 0.6; }
.p-quote-text {
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--p-text-soft);
    margin: 0;
    word-wrap: break-word;
}
.p-quote-text--empty { font-style: normal; color: var(--p-text-muted); }
.p-quote-edit-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--p-text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    transition: color 0.18s;
}
.p-quote-edit-btn:hover { color: var(--p-accent); }
.p-quote-form textarea { resize: vertical; }
.p-quote-form__actions { display: flex; gap: 8px; margin-top: 8px; justify-content: center; }
.p-quote-count { font-size: 11px; color: var(--p-text-muted); text-align: right; margin-top: 4px; }

/* ================================================================
   Public Show Campaign cards — per-performance-type themed
   ================================================================ */
.p-campaigns-page { background: var(--p-bg); padding: 60px 0 100px; }
.p-campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}
@media (max-width: 992px) { .p-campaign-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-campaign-grid { grid-template-columns: 1fr; } }

/* Per-type vibe: each performance type sets its own accent (--cc) + dim tint (--cc-dim) */
.p-campaign-card { --cc: var(--p-accent); --cc-dim: rgba(255, 215, 0, 0.16); }
.p-campaign-card--music   { --cc: #FFD700; --cc-dim: rgba(255, 215, 0, 0.16); }
.p-campaign-card--dance   { --cc: #e879f9; --cc-dim: rgba(232, 121, 249, 0.18); }
.p-campaign-card--comedy  { --cc: #fb923c; --cc-dim: rgba(251, 146, 60, 0.18); }
.p-campaign-card--magic   { --cc: #a78bfa; --cc-dim: rgba(167, 139, 250, 0.20); }
.p-campaign-card--variety { --cc: #22d3ee; --cc-dim: rgba(34, 211, 238, 0.18); }
.p-campaign-card--spoken  { --cc: #4ade80; --cc-dim: rgba(74, 222, 128, 0.18); }
.p-campaign-card--other   { --cc: #FFD700; --cc-dim: rgba(255, 215, 0, 0.16); }

.p-campaign-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    position: relative;
    opacity: 0;
    animation: p-card-in 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.p-campaign-card:hover {
    transform: translateY(-8px);
    border-color: var(--cc);
    box-shadow: 0 18px 48px var(--cc-dim), 0 8px 20px rgba(0, 0, 0, 0.45);
}
@keyframes p-card-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.p-campaign-card__media { position: relative; height: 210px; overflow: hidden; background: var(--p-card-hover); }
/* Animated accent strip sweeping across the top edge */
.p-campaign-card__media::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, transparent 0%, var(--cc) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: p-strip-slide 3.2s linear infinite;
}
@keyframes p-strip-slide { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.p-campaign-card__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.p-campaign-card:hover .p-campaign-card__poster { transform: scale(1.09); }
.p-campaign-card__overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 18% 0%, var(--cc-dim), transparent 55%),
        linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.8) 100%);
}

/* Floating type-themed background particles inside the poster */
.p-campaign-card__particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.p-campaign-card__particles i {
    position: absolute;
    color: var(--cc);
    opacity: 0;
    text-shadow: 0 0 10px var(--cc-dim);
    animation: p-particle-float 5s ease-in-out infinite;
}
.p-campaign-card__particles i.p1 { left: 12%; bottom: 20%; font-size: 14px; animation-delay: 0s; }
.p-campaign-card__particles i.p2 { left: 76%; bottom: 32%; font-size: 17px; animation-delay: 1.4s; animation-duration: 6.2s; }
.p-campaign-card__particles i.p3 { left: 46%; bottom: 12%; font-size: 12px; animation-delay: 2.8s; animation-duration: 7s; }
.p-campaign-card__particles i.p4 { left: 60%; bottom: 45%; font-size: 10px; animation-delay: 4s;   animation-duration: 5.6s; }
@keyframes p-particle-float {
    0%   { transform: translateY(0) rotate(0deg) scale(0.9); opacity: 0; }
    15%  { opacity: 0.7; }
    60%  { opacity: 0.35; }
    100% { transform: translateY(-70px) rotate(16deg) scale(1.15); opacity: 0; }
}

.p-campaign-card__icon-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(8, 8, 12, 0.6);
    border: 1px solid var(--cc);
    display: flex; align-items: center; justify-content: center;
    color: var(--cc); font-size: 16px;
    box-shadow: 0 0 14px var(--cc-dim);
    backdrop-filter: blur(4px);
}
.p-campaign-card__hot-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: linear-gradient(90deg,#ff4d4d,#ff8a00);
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.2px;
    padding: 5px 11px; border-radius: 20px; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255,77,77,0.45);
    animation: p-badge-pulse 1.8s ease-in-out infinite;
}
.p-campaign-card__hot-badge--trend { background: linear-gradient(90deg,#22c55e,#0ea5e9); box-shadow: 0 2px 10px rgba(14,165,233,0.35); }
@keyframes p-badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.p-campaign-card__cta {
    position: absolute; left: 50%; bottom: 14px; z-index: 2;
    transform: translate(-50%, 12px);
    background: var(--cc); color: #0a0800; font-size: 12px; font-weight: 800;
    padding: 9px 18px; border-radius: 30px; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 18px var(--cc-dim);
    opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
}
.p-campaign-card:hover .p-campaign-card__cta { opacity: 1; transform: translate(-50%, 0); }

/* Act logo (or artist initial) overlapping the poster edge, with a pulsing accent ring */
.p-campaign-card__logo {
    position: absolute; right: 16px; bottom: -20px; z-index: 4;
    width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid var(--cc);
    background: var(--p-card-hover);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px; color: var(--cc);
    animation: p-logo-ring 2.4s ease-out infinite;
}
.p-campaign-card__logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes p-logo-ring {
    0%   { box-shadow: 0 0 0 0 var(--cc-dim); }
    70%  { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.p-campaign-card__body { padding: 18px 20px 20px; }
.p-campaign-card__title { font-size: 17px; font-weight: 800; color: var(--p-text); margin: 0 0 4px; padding-right: 52px; }
.p-campaign-card__artist { font-size: 13px; color: var(--cc); font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 7px; }
.p-campaign-card__artist i { font-size: 11px; opacity: 0.85; }
.p-campaign-card__excerpt {
    font-size: 13px; color: var(--p-text-muted); line-height: 1.55; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-campaign-card__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--p-text-muted); margin-bottom: 14px; }
.p-campaign-card__type-pill {
    display: inline-block;
    background: var(--cc-dim);
    border: 1px solid var(--cc);
    color: var(--cc);
    font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
    padding: 3px 11px; border-radius: 20px;
}

/* Multi-city (GEM) campaigns list every market they run in, not just the primary. */
.p-campaign-card__citylist { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.p-campaign-card__city-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--p-card-hover);
    border: 1px solid var(--p-border);
    color: var(--p-text); font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
.p-campaign-card__city-chip i { color: var(--cc); font-size: 10px; }
.p-campaign-card__city-chip--more { color: var(--p-text-muted); font-weight: 700; }
.p-campaign-card__hot-badge--multi {
    background: rgba(10, 10, 10, 0.78);
    border: 1px solid var(--cc);
    color: var(--cc);
}

.p-campaign-card__progress-track { height: 6px; border-radius: 4px; background: var(--p-card-hover); overflow: hidden; margin-bottom: 6px; position: relative; }
.p-campaign-card__progress-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--cc), #ff8a00);
    background-size: 200% 100%;
    animation: p-progress-shine 2.4s linear infinite;
    transition: width 0.6s ease;
}
@keyframes p-progress-shine { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.p-campaign-card__progress-label { font-size: 11px; color: var(--p-text-muted); }
.p-campaign-card__progress-label strong { color: var(--cc); font-weight: 800; }

/* ================================================================
   Campaign detail page — themed hero + reserve panel
   ================================================================ */
.p-cdetail { --cc: var(--p-accent); --cc-dim: rgba(255, 215, 0, 0.16); }

.p-cdetail__hero {
    position: relative;
    height: 420px;
    border-radius: var(--p-radius-lg);
    overflow: hidden;
    border: 1px solid var(--p-border);
    background: var(--p-card-hover);
    margin-top: 18px;
    opacity: 0;
    animation: p-card-in 0.6s ease forwards;
}
.p-cdetail__hero::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, transparent 0%, var(--cc) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: p-strip-slide 3.2s linear infinite;
}
.p-cdetail__hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-cdetail__hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 0%, var(--cc-dim), transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.88) 100%);
}
.p-cdetail__hero .p-campaign-card__icon-badge { width: 46px; height: 46px; font-size: 19px; top: 16px; left: 16px; }
.p-cdetail__hero .p-campaign-card__hot-badge { top: 18px; right: 18px; }
.p-cdetail__hero .p-campaign-card__particles i { font-size: 18px; }
.p-cdetail__hero .p-campaign-card__particles i.p2 { font-size: 22px; }

.p-cdetail__hero-content {
    position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 3;
    display: flex; align-items: flex-end; gap: 18px;
}
.p-cdetail__logo {
    width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
    border: 3px solid var(--cc);
    background: var(--p-card-hover);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 30px; color: var(--cc);
    animation: p-logo-ring 2.4s ease-out infinite;
}
.p-cdetail__logo img { width: 100%; height: 100%; object-fit: cover; }

.p-cdetail__title { color: #fff; font-size: 32px; font-weight: 900; margin: 0 0 6px; line-height: 1.2; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.p-cdetail__artist { color: var(--cc); font-size: 15px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.p-cdetail__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.p-cdetail__city-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: #eee; font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
    padding: 3px 11px; border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
/* Leads the city pills on a multi-city campaign, so the count reads before the list. */
.p-cdetail__city-pill--count {
    background: rgba(255, 215, 0, 0.16); border-color: rgba(255, 215, 0, 0.45);
    color: #FFD700;
}
/* A market that has finished taking reservations still belongs in the list. */
.p-cdetail__city-pill.is-closed { opacity: 0.55; text-decoration: line-through; }
.p-cdetail__city-pill.is-closed i { text-decoration: none; }
/* Closes the list when a tour has more markets than the hero names. */
.p-cdetail__city-pill--more {
    background: rgba(255, 255, 255, 0.05); border-style: dashed;
    color: #cfcfd8; cursor: help;
}

.p-cdetail__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}
@media (max-width: 992px) { .p-cdetail__grid { grid-template-columns: 1fr; } }

.p-cdetail__main, .p-cdetail__side { opacity: 0; animation: p-card-in 0.6s ease forwards; }
.p-cdetail__main { animation-delay: 0.15s; }
.p-cdetail__side { animation-delay: 0.28s; }

.p-cdetail__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 16px;
}
.p-cdetail__stat {
    background: var(--p-card-hover);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 12px 8px;
    text-align: center;
    transition: border-color 0.25s;
}
.p-cdetail__stat:hover { border-color: var(--cc); }
.p-cdetail__stat-num { display: block; font-size: 20px; font-weight: 900; color: var(--cc); }
.p-cdetail__stat-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--p-text-muted); margin-top: 2px; }

.p-cdetail__total {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--cc-dim);
    border: 1px solid var(--cc);
    border-radius: var(--p-radius);
    padding: 14px 18px;
    margin: 16px 0 18px;
}
.p-cdetail__total span { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--p-text-soft); }
.p-cdetail__total strong { font-size: 24px; font-weight: 900; color: var(--cc); }

.p-cdetail__cta {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--cc); color: #0a0800;
    font-size: 16px; font-weight: 900; letter-spacing: 0.3px;
    padding: 16px 20px; border: none; border-radius: 12px; cursor: pointer;
    box-shadow: 0 6px 24px var(--cc-dim);
    animation: p-cta-glow 2.2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p-cdetail__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--cc-dim); }
.p-cdetail__cta:disabled { opacity: 0.7; cursor: not-allowed; transform: none; animation: none; }
@keyframes p-cta-glow {
    0%, 100% { box-shadow: 0 6px 24px var(--cc-dim); }
    50%      { box-shadow: 0 6px 36px var(--cc-dim), 0 0 0 6px rgba(255,255,255,0.02); }
}

@media (max-width: 640px) {
    .p-cdetail__hero { height: 340px; }
    .p-cdetail__title { font-size: 24px; }
    .p-cdetail__hero-content { left: 16px; right: 16px; bottom: 16px; gap: 12px; }
    .p-cdetail__logo { width: 58px; height: 58px; font-size: 22px; }
}

/* Performance-type icon micro-animations */
.p-anim-bounce { animation: p-icon-bounce 1.4s ease-in-out infinite; }
@keyframes p-icon-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.p-anim-spin { animation: p-icon-spin 3.2s linear infinite; }
@keyframes p-icon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.p-anim-wobble { animation: p-icon-wobble 2.1s ease-in-out infinite; }
@keyframes p-icon-wobble { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.p-anim-glow { animation: p-icon-glow 1.8s ease-in-out infinite; }
@keyframes p-icon-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255,215,0,0)); } 50% { filter: drop-shadow(0 0 6px rgba(255,215,0,0.95)); } }
.p-anim-twinkle { animation: p-icon-twinkle 1.6s ease-in-out infinite; }
@keyframes p-icon-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.7; } }
.p-anim-pulse { animation: p-icon-pulse 1.5s ease-in-out infinite; }
@keyframes p-icon-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.p-anim-rotate { animation: p-icon-spin 6s linear infinite; }

.p-pager__label { font-size: 13px; color: var(--p-text-muted); }

/* ================================================================
   Show Campaign form (artist)
   ================================================================ */
.p-form-section { margin: 30px 0 18px; padding-top: 22px; border-top: 1px solid var(--p-border); }
.p-form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.p-form-section__title { font-size: 14px; font-weight: 800; color: var(--p-accent); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.p-form-section__hint { font-size: 12px; color: var(--p-text-muted); margin: 0 0 16px; }

.p-upload-tile { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--p-border); border-radius: var(--p-radius); background: var(--p-card-hover); }
.p-upload-tile__preview { width: 64px; height: 64px; border-radius: var(--p-radius); object-fit: cover; background: var(--p-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--p-text-muted); font-size: 20px; overflow: hidden; }
.p-upload-tile__preview img { width: 100%; height: 100%; object-fit: cover; }
.p-upload-tile__body { flex: 1; min-width: 0; }
.p-upload-tile__body input[type="file"] { width: 100%; }
.p-upload-tile__name { font-size: 12px; color: var(--p-text-muted); margin-top: 4px; word-break: break-all; }

.p-terms-card { background: var(--p-card-hover); border: 1px solid var(--p-border); border-radius: var(--p-radius-lg); padding: 20px 22px; margin-bottom: 18px; }
.p-terms-list { list-style: none; margin: 0; padding: 0; }
.p-terms-list li { position: relative; padding: 6px 0 6px 30px; font-size: 13px; line-height: 1.6; color: var(--p-text-soft); }
.p-terms-list li::before {
    content: "\f0c8";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--p-text-muted);
    font-size: 15px;
}
.p-terms-list li.is-checked { color: var(--p-text); }
.p-terms-list li.is-checked::before { content: "\f14a"; font-weight: 900; color: var(--p-accent); }
.p-terms-link { color: var(--p-accent); text-decoration: underline; }
.p-terms-summary { background: var(--p-bg); border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: 14px 18px; margin-top: 16px; }
.p-terms-summary__title { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--p-accent); margin: 0 0 8px; }
.p-terms-summary p:not(.p-terms-summary__title) { font-size: 13px; line-height: 1.7; color: var(--p-text-soft); margin: 0; }
.p-agree-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--p-text-soft); margin-bottom: 12px; }
.p-agree-row:last-child { margin-bottom: 0; }
.p-agree-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--p-accent); }

/* ================================================================
   Overlay (mobile sidebar)
   ================================================================ */
.p-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 190;
}

/* ================================================================
   Footer
   ================================================================ */
.p-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--p-border);
    font-size: 12px;
    color: var(--p-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.p-footer a { color: var(--p-accent); text-decoration: none; }
.p-footer a:hover { text-decoration: underline; }
.p-footer__links { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    .p-sidebar {
        transform: translateX(calc(-1 * var(--p-sidebar-w)));
    }

    .p-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0,0,0,0.6);
    }

    .p-overlay.open { display: block; }

    .p-main { margin-left: 0; }

    .p-topbar__hamburger { display: flex; }
}

@media (max-width: 768px) {
    .p-content { padding: 18px 16px; }
    .p-row--2, .p-row--3 { grid-template-columns: 1fr; }
    .p-row--1-2, .p-row--2-1 { grid-template-columns: 1fr; }
    .p-form-row { grid-template-columns: 1fr; }
    .p-stats { grid-template-columns: repeat(2, 1fr); }
    .p-topbar { padding: 0 16px; }
    .p-page-header { margin-bottom: 18px; }
    .p-page-title { font-size: 20px; }
}

@media (max-width: 480px) {
    .p-stats { grid-template-columns: 1fr 1fr; }
    .p-stat-card__value { font-size: 24px; }
}

/* ================================================================
   Fan Survey page (mandatory 10 questions before checkout)
   ================================================================ */
.p-survey-page { --cc: var(--p-accent); --cc-dim: rgba(255, 215, 0, 0.16); padding: 40px 0 100px; }
.p-survey-page .p-survey-container { max-width: 760px !important; }

.p-survey-intro { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; }
.p-survey-intro .p-campaign-card__icon-badge { position: static; width: 52px; height: 52px; font-size: 20px; flex-shrink: 0; }
.p-survey-intro__eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cc); margin-bottom: 4px; }
.p-survey-intro__title { font-size: 24px; font-weight: 900; color: var(--p-text); margin: 0 0 2px; }
.p-survey-intro__artist { font-size: 13px; font-weight: 700; color: var(--cc); margin: 0; display: flex; align-items: center; gap: 7px; }
.p-survey-intro__hint { font-size: 13px; color: var(--p-text-muted); line-height: 1.6; margin: 0 0 22px; }

.p-survey-card { opacity: 0; animation: p-card-in 0.5s ease forwards; }

.p-survey-q { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--p-border); }
.p-survey-q:last-of-type { border-bottom: none; margin-bottom: 6px; padding-bottom: 0; }
.p-survey-q__label { display: block; font-size: 14px; font-weight: 700; color: var(--p-text); margin-bottom: 14px; line-height: 1.5; }
.p-survey-q__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--cc-dim); border: 1px solid var(--cc); color: var(--cc);
    font-size: 11px; font-weight: 900; margin-right: 8px;
}
.p-survey-q__optional { color: var(--p-text-muted); font-weight: 400; text-transform: none; font-size: 12px; }

.p-survey-options { display: flex; flex-wrap: wrap; gap: 9px; }
.p-survey-option { position: relative; cursor: pointer; }
.p-survey-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.p-survey-option__box {
    display: block; padding: 9px 16px; border-radius: 30px;
    background: var(--p-card-hover); border: 1px solid var(--p-border);
    font-size: 13px; font-weight: 600; color: var(--p-text-soft);
    transition: all 0.2s ease;
}
.p-survey-option:hover .p-survey-option__box { border-color: var(--cc); color: var(--p-text); }
.p-survey-option input:checked + .p-survey-option__box {
    background: var(--cc); border-color: var(--cc); color: #0a0800; font-weight: 800;
    box-shadow: 0 4px 16px var(--cc-dim);
    transform: translateY(-1px);
}
.p-survey-option input:focus-visible + .p-survey-option__box { outline: 2px solid var(--cc); outline-offset: 2px; }

.p-survey-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.p-survey-scale__item { position: relative; cursor: pointer; }
.p-survey-scale__item input { position: absolute; opacity: 0; width: 0; height: 0; }
.p-survey-scale__item span {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--p-card-hover); border: 1px solid var(--p-border);
    font-size: 13px; font-weight: 700; color: var(--p-text-soft);
    transition: all 0.2s ease;
}
.p-survey-scale__item:hover span { border-color: var(--cc); color: var(--p-text); }
.p-survey-scale__item input:checked + span {
    background: var(--cc); border-color: var(--cc); color: #0a0800;
    box-shadow: 0 4px 16px var(--cc-dim);
    transform: scale(1.12);
}
.p-survey-scale__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--p-text-muted); margin-top: 8px; max-width: 380px; }

.p-survey-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.p-survey-actions .p-btn--secondary { flex: 1; min-width: 140px; justify-content: center; }

/* ================================================================
   Transaction Detail Drawer (admin transactions table)
   ================================================================ */
.p-txn-row { cursor: pointer; transition: background 0.15s ease; }
.p-txn-row:hover { background: var(--p-card-hover); }
.p-txn-row:focus-visible { outline: 2px solid var(--p-accent); outline-offset: -2px; }

.p-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(6, 6, 10, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}
.p-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.p-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 420px; max-width: 92vw;
    background: linear-gradient(160deg, var(--p-card) 0%, #171a2c 100%);
    border-left: 1px solid var(--p-border);
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.p-drawer.is-open { transform: translateX(0); }

.p-drawer__head {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 26px 26px 20px;
    background: inherit;
    border-bottom: 1px solid var(--p-border);
}
.p-drawer__eyebrow {
    display: block; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--p-accent); margin-bottom: 4px;
}
.p-drawer__title { font-size: 22px; font-weight: 800; color: var(--p-text); margin: 0; }
.p-drawer__close {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--p-card-hover); border: 1px solid var(--p-border); color: var(--p-text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.p-drawer__close:hover { background: var(--p-red); color: #fff; transform: rotate(90deg); }

.p-drawer__body { padding: 24px 26px 40px; flex: 1; }

.p-drawer__badges { display: flex; gap: 8px; margin-bottom: 22px; }

.p-drawer__amount {
    display: flex; flex-direction: column; align-items: center;
    background: var(--p-card-hover); border: 1px solid var(--p-border); border-radius: var(--p-radius-lg);
    padding: 22px; margin-bottom: 20px;
    text-align: center;
}
.p-drawer__amount-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--p-text-muted); margin-bottom: 6px; }
.p-drawer__amount-value { font-size: 38px; font-weight: 900; color: var(--p-accent); text-shadow: 0 2px 24px rgba(255, 215, 0, 0.25); }

.p-drawer__bar {
    display: flex; height: 12px; border-radius: 8px; overflow: hidden;
    background: var(--p-card-hover); margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px var(--p-border);
}
.p-drawer__bar-seg { height: 100%; width: 0; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.p-drawer__bar-seg--artist   { background: linear-gradient(90deg, var(--p-green), #16a34a); }
.p-drawer__bar-seg--platform { background: linear-gradient(90deg, var(--p-accent), #b8860b); }
.p-drawer__bar-seg--stripe   { background: linear-gradient(90deg, var(--p-red), #b91c1c); }
.p-drawer__bar.is-pending .p-drawer__bar-seg--stripe {
    background: repeating-linear-gradient(45deg, var(--p-text-muted) 0 6px, transparent 6px 12px);
    opacity: 0.35;
}

.p-drawer__legend { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.p-drawer__legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--p-text-soft); }
.p-drawer__legend strong { margin-left: auto; color: var(--p-text); font-weight: 800; }
.p-drawer__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.p-drawer__dot--artist   { background: var(--p-green); }
.p-drawer__dot--platform { background: var(--p-accent); }
.p-drawer__dot--stripe   { background: var(--p-red); }

.p-drawer__section { margin-bottom: 22px; }
.p-drawer__section-title {
    font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--p-text-muted); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--p-border);
}
.p-drawer__info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.p-drawer__info-list li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.p-drawer__info-list li span { color: var(--p-text-muted); }
.p-drawer__info-list li strong { color: var(--p-text); font-weight: 700; text-align: right; }

.p-drawer__session {
    display: flex; align-items: center; gap: 10px;
    background: var(--p-card-hover); border: 1px solid var(--p-border); border-radius: var(--p-radius);
    padding: 12px 14px;
}
.p-drawer__session code { flex: 1; font-size: 12px; color: var(--p-text-soft); word-break: break-all; }
.p-drawer__copy {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    background: transparent; border: 1px solid var(--p-border); color: var(--p-accent);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.p-drawer__copy:hover { background: rgba(255, 215, 0, 0.1); }
.p-drawer__copy:active { transform: scale(0.9); }

@media (max-width: 480px) {
    .p-drawer { width: 100vw; }
}
.p-survey-actions .p-cdetail__cta { flex: 2; min-width: 200px; }

@media (max-width: 480px) {
    .p-survey-intro { align-items: flex-start; }
    .p-survey-intro__title { font-size: 19px; }
    .p-survey-scale__item span { width: 30px; height: 30px; font-size: 12px; }
    .p-survey-actions { flex-direction: column; }
    .p-survey-actions .p-btn--secondary, .p-survey-actions .p-cdetail__cta { flex: none; width: 100%; }
}

/* ── Missing primitives ───────────────────────────────────
   These were referenced by several panel views (Messages, Contact FAQs, My
   Posts) before they existed, so those pages rendered without any layout at
   all — a header's buttons stacked, a two-column card became one, and a
   key/value table came out as bare rows. Defined here because they are generic
   panel furniture, not specific to one screen. */

/* Buttons grouped at the right of a page header. */
.p-page-header__acts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Two-column page body. The number pair is the column ratio. */
.p-grid { display: grid; gap: 18px; align-items: start; }
.p-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.p-grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

@media (max-width: 1100px) {
    .p-grid--2-1,
    .p-grid--1-2 { grid-template-columns: minmax(0, 1fr); }
}

/* Label/value detail table. */
.p-kv { width: 100%; border-collapse: collapse; }
.p-kv th,
.p-kv td {
    padding: 9px 0;
    border-bottom: 1px solid var(--p-border-soft);
    font-size: 13.5px;
    text-align: left;
    vertical-align: top;
}
.p-kv tr:last-child th,
.p-kv tr:last-child td { border-bottom: 0; }
.p-kv th {
    width: 116px;
    padding-right: 14px;
    color: var(--p-text-soft);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.p-kv td { color: var(--p-text); word-break: break-word; }

@media (max-width: 560px) {
    .p-kv th { width: 96px; font-size: 11px; }
    .p-kv th, .p-kv td { font-size: 13px; }
}

/* How someone got access to a private profile — invited outright, or approved
   after asking. Two routes now, and which one it was matters when reviewing. */
.rq-how {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: auto; padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.rq-how i { font-size: 10px; }
.rq-how--invited  { background: var(--p-accent-dim); color: var(--p-accent); }
.rq-how--approved { background: var(--p-green-dim);  color: var(--p-green); }

@media (max-width: 640px) {
    .rq-how { margin-left: 0; }
}

/* A reservation whose ticket was handed to another member: still paid for and
   still counted, but no longer this member's to use. Slate, not red — nothing
   went wrong. */
.p-status--transferred {
    background: rgba(148, 163, 184, 0.16);
    color: #94a3b8;
}

/* ── AIVA review: the Registration Key and the decision ────── */

.aiva-key {
    margin: 18px 0 0;
    padding: 15px 16px;
    border: 1px solid var(--p-border, #252a3a);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.022);
}

.aiva-key__label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--p-text-muted, #6b7280);
    margin-bottom: 7px;
}

.aiva-key__value {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--p-accent, #FFD700);
    word-break: break-all;
}

.aiva-key__used,
.aiva-key__unused {
    display: block;
    margin-top: 9px;
    font-size: 11.5px;
    line-height: 1.5;
}

.aiva-key__used   { color: var(--p-green, #22c55e); }
.aiva-key__unused { color: var(--p-text-muted, #6b7280); }

.aiva-decision {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
}

.aiva-decision__when {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--p-text, #e5e7eb);
}

.aiva-decision__reason {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--p-text-soft, #9095b0);
}

.aiva-decision__reason strong { color: var(--p-text, #e5e7eb); }

/* ── Email volume: bars read against the cap, not each other ── */

.mv-chart {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 190px;
    padding: 0 0 22px;
}

.mv-chart__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.mv-chart__stack {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1px;
}

.mv-chart__bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; }
.mv-chart__bar--sent   { background: linear-gradient(180deg, var(--p-accent, #FFD700), rgba(255,215,0,0.55)); }
.mv-chart__bar--failed { background: var(--p-red, #ef4444); border-radius: 3px 3px 0 0; }

.mv-chart__label {
    margin-top: 7px;
    font-size: 9.5px;
    color: var(--p-text-muted, #6b7280);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* The limit, drawn where it falls on this scale, so a bar near it reads as near it. */
.mv-chart__cap {
    position: absolute;
    left: 0;
    right: 0;
    margin-bottom: 22px;
    border-top: 1px dashed rgba(239, 68, 68, 0.55);
    pointer-events: none;
}

.mv-chart__cap-label {
    position: absolute;
    right: 0;
    top: -8px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--p-card);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fca5a5;
}

.mv-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--p-border, #252a3a);
    font-size: 12px;
    color: var(--p-text-muted, #6b7280);
}

.mv-legend__note { flex: 1 1 240px; font-size: 11.5px; }

.mv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.mv-dot--sent   { background: var(--p-accent, #FFD700); }
.mv-dot--failed { background: var(--p-red, #ef4444); }

/* ================================================================
   Campaign edit lock
   A submitted campaign is locked; its owner opens it to change it,
   and it locks again on save. Once published the lock is permanent,
   which is why that state gets its own, quieter treatment: there is
   no action attached to it, so it must not look like a button.
   ================================================================ */
.cl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.cl-chip i { font-size: 11px; }

.cl-chip--locked {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}
.cl-chip--final {
    background: var(--p-green-dim);
    border-color: rgba(34, 197, 94, 0.28);
    color: var(--p-green);
}
/* Open for editing is the state that needs noticing: an admin reading the
   campaign right now may be reading something half-changed. */
.cl-chip--open {
    background: var(--p-amber-dim);
    border-color: rgba(245, 158, 11, 0.34);
    color: var(--p-amber);
}

/* The buttons sit inline with the chip, so each form must not become a block. */
.cl-form { display: inline; margin: 0; }

.cl-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* The notice an admin sees while the owner has the campaign open. */
.cl-warn {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--p-radius);
    background: var(--p-amber-dim);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--p-text);
    font-size: 13.5px;
    line-height: 1.7;
}
.cl-warn i { color: var(--p-amber); font-size: 15px; margin-top: 2px; }
.cl-warn strong { color: var(--p-amber); }

/* State on one side, actions on the other. Without this the chip sits between
   two buttons in the same row and reads as a third one. */
.cl-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    margin: 0 3px;
    background: var(--p-border);
    vertical-align: middle;
}


/* Two or more buttons on the right of a page header. The header is a flex row
   with space-between, so bare siblings there spread apart instead of grouping. */
.p-page-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Browse Show Campaigns ───────────────────────────────────────────────
   The Fan dashboard's one outward-facing action. It is a whole-panel link
   rather than a card with a button inside it: there is exactly one thing to do
   here, and a 900px target beats a 160px one on a phone. */
.p-browse {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: var(--p-radius-lg);
    background:
        linear-gradient(135deg, var(--p-accent-dim) 0%, rgba(255,215,0,0) 46%),
        var(--p-card);
    color: var(--p-text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.p-browse:hover {
    transform: translateY(-2px);
    border-color: var(--p-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: var(--p-text);
    text-decoration: none;
}
.p-browse:focus-visible {
    outline: 2px solid var(--p-accent);
    outline-offset: 3px;
}

.p-browse__glyph {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--p-accent-dim);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--p-accent);
    font-size: 22px;
}
/* The needle turns toward the destination on hover — the one flourish here,
   and it is the same gesture the panel is asking for. */
.p-browse__glyph i { transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1); }
.p-browse:hover .p-browse__glyph i { transform: rotate(28deg); }

.p-browse__body { display: block; flex: 1 1 auto; min-width: 0; }

.p-browse__label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--p-accent);
    margin-bottom: 5px;
}
.p-browse__head {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--p-text);
}
.p-browse__count {
    font-size: 24px;
    font-weight: 900;
    color: var(--p-accent);
    font-variant-numeric: tabular-nums;
    margin-right: 4px;
}
.p-browse__text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--p-text-soft);
    max-width: 62ch;
}

.p-browse__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--p-accent);
    color: #14120a;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    transition: gap 0.2s ease;
}
.p-browse:hover .p-browse__go { gap: 14px; }

/* Nothing open. The panel still leads somewhere real, so it stays a link —
   it just stops shouting, because there is nothing to reserve yet. */
.p-browse--quiet {
    border-color: var(--p-border);
    background: var(--p-card);
}
.p-browse--quiet:hover { border-color: var(--p-accent); }
.p-browse--quiet .p-browse__glyph {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--p-border);
    color: var(--p-text-soft);
}
.p-browse--quiet .p-browse__label { color: var(--p-text-soft); }
.p-browse--quiet .p-browse__go {
    background: transparent;
    border: 1px solid var(--p-border);
    color: var(--p-text);
}

@media (max-width: 760px) {
    /* Stacked, not wrapped. Beside the glyph the copy had about 250px to work
       with and the headline ran to three lines; on its own row it gets the full
       width. Flex-basis is deliberately absent here — the main axis is now
       vertical, so a basis meant as a minimum width becomes a minimum HEIGHT. */
    .p-browse {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }
    .p-browse__glyph {
        width: 44px;
        height: 44px;
        font-size: 19px;
        border-radius: 12px;
    }
    .p-browse__body { flex: 0 0 auto; }
    .p-browse__go {
        flex: 0 0 auto;
        justify-content: center;
        padding: 13px 20px;
    }
    .p-browse__head { font-size: 16px; }
    .p-browse__count { font-size: 21px; }
    .p-browse__text { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .p-browse,
    .p-browse__glyph i,
    .p-browse__go { transition: none; }
    .p-browse:hover { transform: none; }
    .p-browse:hover .p-browse__glyph i { transform: none; }
}
