/**
 * Member Event Journey — mobile-first dashboard (scoped).
 */

.mj-dash {
    --mj-header: #0f2744;
    --mj-header-text: #ffffff;
    --mj-card: #ffffff;
    --mj-text: #0f172a;
    --mj-muted: #64748b;
    --mj-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
    --mj-shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.12);
    max-width: 32rem;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.mj-dash__header {
    background: var(--mj-header);
    color: var(--mj-header-text);
    border-radius: 0 0 1rem 1rem;
    padding: 1.15rem 1.25rem 1.35rem;
    margin: -0.25rem -0.5rem 1.25rem;
    box-shadow: var(--mj-shadow);
}

.mj-dash__header h1 {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

.mj-dash__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.mj-dash__metric {
    background: var(--mj-card);
    border-radius: 0.85rem;
    padding: 0.85rem 0.75rem;
    box-shadow: var(--mj-shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .mj-dash__metric:hover {
        box-shadow: var(--mj-shadow-hover);
        transform: translateY(-1px);
    }
}

.mj-dash__metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mj-muted);
    margin-bottom: 0.25rem;
}

.mj-dash__metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--mj-text);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mj-dash__section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mj-muted);
    margin: 0 0 0.65rem;
}

.mj-dash__hscroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.mj-dash__live-card {
    flex: 0 0 min(16.5rem, 82vw);
    scroll-snap-align: start;
    background: var(--mj-card);
    border-radius: 1rem;
    padding: 1rem 1rem 0.95rem;
    box-shadow: var(--mj-shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.mj-dash__live-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mj-text);
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.mj-dash__live-meta {
    font-size: 0.8rem;
    color: var(--mj-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.mj-dash__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.65rem;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.mj-dash__btn--checkin {
    background: #0f2744;
    color: #fff;
}

.mj-dash__btn--checkin:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.mj-dash__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mj-dash__row {
    background: var(--mj-card);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    box-shadow: var(--mj-shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .mj-dash__row:hover {
        box-shadow: var(--mj-shadow-hover);
    }
}

.mj-dash__row h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--mj-text);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.mj-dash__row-meta {
    font-size: 0.82rem;
    color: var(--mj-muted);
    line-height: 1.45;
    margin-bottom: 0.65rem;
}

.mj-dash__btn--ticket {
    background: #fff;
    color: #0f2744;
    border: 2px solid #0f2744;
}

.mj-dash__btn--ticket:hover {
    background: #0f2744;
    color: #fff;
}

.mj-dash__empty {
    font-size: 0.9rem;
    color: var(--mj-muted);
    padding: 0.75rem 0;
}

/* Member portal profile — same shell as journey */
.mp-profile .mj-dash__header p {
    line-height: 1.35;
    max-width: 28rem;
}

.mp-profile .mj-profile__lede {
    line-height: 1.4;
    max-width: 28rem;
}

.mp-profile__form .form-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mj-muted);
    margin-bottom: 0.25rem;
}

.mp-profile__form .form-control {
    border-radius: 0.65rem;
    min-height: 2.75rem;
}

.mp-profile__form hr {
    border-color: rgba(15, 23, 42, 0.08);
    margin: 1rem 0;
}

.mp-profile__form .mj-dash__btn--checkin {
    margin-top: 0.25rem;
}
