/* ============================================================
   ClubAccess Member — mobile-first premium styles
   Distinct from the Admin. Inspired by Airbnb / Uber / Wallet.
   ============================================================ */

:root {
    /* CHECKCLUB — aligned with the Admin portal (indigo #3F51B5 / charcoal) */
    --m-primary: #3F51B5;
    --m-primary-2: #303F9F;
    --m-gold: #C8A415;
    --m-bg: #F4F5FA;
    --m-surface: #FFFFFF;
    --m-ink: #22252E;
    --m-muted: #64708A;
    --m-line: #E3E6F0;
    --m-radius: 16px;
    --m-shadow: 0 10px 30px rgba(31, 41, 89, 0.12);
    --m-nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--m-bg);
    color: var(--m-ink);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--m-primary); }

/* ── Splash ─────────────────────────────────────────────────── */
.member-splash {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; background: linear-gradient(160deg, #3F51B5 0%, #303F9F 100%); color: #fff;
}
.member-splash-logo {
    width: 72px; height: 72px; border-radius: 20px; background: rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px;
    letter-spacing: -0.02em; border: 1.5px solid rgba(255,255,255,0.25);
}
.member-splash-title { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.member-splash-spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: m-spin 0.8s linear infinite;
}
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ── App shell ──────────────────────────────────────────────── */
.member-shell { min-height: 100vh; display: flex; flex-direction: column; }

.member-topbar {
    position: sticky; top: 0; z-index: 20;
    height: 58px; padding: 0 16px; padding-top: env(safe-area-inset-top);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--m-primary); color: #fff;
}
.member-topbar-brand { display: flex; align-items: center; gap: 10px; }
.member-brand-mark {
    width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,0.16);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
    border: 1px solid rgba(255,255,255,0.22);
}
.member-brand-mark--lg { width: 60px; height: 60px; border-radius: 18px; font-size: 22px; }
.member-brand-text { font-weight: 700; letter-spacing: -0.01em; }

.member-avatar-btn {
    width: 38px; height: 38px; border-radius: 50%; border: none; padding: 0; cursor: pointer; overflow: hidden;
    background: var(--m-gold); color: #1a1400; font-weight: 800; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.member-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar-initials { line-height: 1; }

.member-body {
    flex: 1; padding: 20px 16px calc(var(--m-nav-h) + 24px + env(safe-area-inset-bottom)) 16px;
    max-width: 640px; width: 100%; margin: 0 auto; animation: m-fade 0.24s ease both;
}
@keyframes m-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Bottom nav ─────────────────────────────────────────────── */
.member-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: calc(var(--m-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    display: flex; align-items: stretch; background: var(--m-surface);
    border-top: 1px solid var(--m-line); box-shadow: 0 -6px 20px rgba(31,41,89,0.06);
}
.member-navitem {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--m-muted); font-size: 0.68rem; font-weight: 600; transition: color 0.15s;
}
.member-navitem .mud-icon-root { font-size: 22px; }
.member-navitem.active { color: var(--m-primary); }
.member-navitem.active .mud-icon-root { color: var(--m-primary); }

/* RC1 — on wide screens keep the full-width chrome bars but align their content with the
   centred 640px body column (brand/avatar and nav items no longer float to the screen edges). */
@media (min-width: 700px) {
    .member-topbar { padding-left: max(16px, calc((100% - 640px) / 2)); padding-right: max(16px, calc((100% - 640px) / 2)); }
    .member-bottomnav { padding-left: max(0px, calc((100% - 640px) / 2)); padding-right: max(0px, calc((100% - 640px) / 2)); }
}

/* ── Page headings ──────────────────────────────────────────── */
.member-page-hello { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.member-page-subtle { color: var(--m-muted); margin: 0 0 18px; font-size: 0.95rem; }

/* ── Welcome / membership card ──────────────────────────────── */
.member-welcome-card {
    background: linear-gradient(150deg, #3F51B5 0%, #303F9F 65%, #5C6BC0 100%); color: #fff;
    border-radius: 20px; padding: 22px; box-shadow: var(--m-shadow); position: relative; overflow: hidden;
}
.member-welcome-card::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
    background: rgba(200,164,21,0.18);
}
.member-welcome-badge {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.16);
    padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; margin-bottom: 14px;
}
.member-welcome-badge .mud-icon-root { font-size: 16px; }
.member-welcome-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.member-welcome-code { margin-top: 4px; color: rgba(255,255,255,0.78); font-size: 0.85rem; letter-spacing: 0.04em; }

.member-soon {
    margin-top: 18px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius);
    padding: 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--m-shadow);
}
.member-soon .mud-icon-root { font-size: 26px; flex-shrink: 0; }
.member-soon strong { display: block; font-size: 0.95rem; }
.member-soon span { color: var(--m-muted); font-size: 0.85rem; }

/* ── Auth screens ───────────────────────────────────────────── */
.member-auth {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 56px 20px calc(28px + env(safe-area-inset-bottom));
    /* Fixed-height blue band: the white wordmark always sits on blue, whatever the screen height
       (the old 42% radial band left "HOLA.!" white-on-white on tall phones). */
    background: radial-gradient(140% 330px at 50% 0%, #3F51B5 0%, #3F51B5 99%, transparent 100%) top / 100% 330px no-repeat, #F4F5FA;
}
.member-auth-hero { text-align: center; color: #fff; margin-bottom: 22px; display: flex; flex-direction: column; align-items: center; }
.member-auth-hero .member-brand-mark--lg { margin-bottom: 16px; background: rgba(255,255,255,0.16); }
.member-auth-title { font-size: 1.7rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.member-auth-sub { margin: 0; color: rgba(255,255,255,0.82); font-size: 0.95rem; }

.member-auth-card {
    width: 100%; max-width: 420px; background: var(--m-surface); border-radius: 22px;
    padding: 24px 22px; box-shadow: var(--m-shadow);
}
.member-auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.member-auth-submit { margin-top: 6px; height: 50px; border-radius: 14px !important; font-weight: 700 !important; }
.member-auth-foot { margin-top: 20px; color: var(--m-muted); font-size: 0.8rem; text-align: center; max-width: 360px; }
.member-auth-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.member-auth-success p { color: var(--m-muted); margin: 0; }

/* ── Profile ────────────────────────────────────────────────── */
.member-profile-card {
    background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 20px; padding: 24px;
    display: flex; flex-direction: column; align-items: center; box-shadow: var(--m-shadow);
}
.member-profile-avatar {
    position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--m-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; overflow: visible;
}
.member-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member-profile-avatar span { line-height: 1; }
.member-profile-camera {
    position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--m-gold); color: #1a1400; display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 2px solid var(--m-surface);
}
.member-profile-name { margin-top: 14px; font-size: 1.2rem; font-weight: 800; }
.member-profile-email { color: var(--m-muted); font-size: 0.9rem; }

.member-list { margin-top: 18px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); overflow: hidden; }
.member-list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--m-line); }
.member-list-item:last-child { border-bottom: none; }
.member-list-item .mud-icon-root { font-size: 20px; color: var(--m-primary); }
.member-list-label { color: var(--m-muted); font-size: 0.9rem; }
.member-list-value { margin-left: auto; font-weight: 600; font-size: 0.9rem; }

.member-logout { margin-top: 20px; height: 50px; border-radius: 14px !important; font-weight: 700 !important; }

/* ── Blazor error ───────────────────────────────────────────── */
#blazor-error-ui {
    background: #FFF7ED; border-top: 1px solid #FED7AA; bottom: 0; display: none; left: 0; position: fixed;
    width: 100%; z-index: 1000; padding: 0.7rem 1.25rem; color: #92400E; font-size: 0.875rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

input:-webkit-autofill { -webkit-box-shadow: 0 0 0 30px #fff inset !important; }

/* ============================================================
   P2 — Home dashboard
   ============================================================ */
.dash { display: flex; flex-direction: column; gap: 22px; }

/* Section label */
.dash-section-label { font-size: 0.8rem; font-weight: 700; color: var(--m-muted); margin-bottom: 10px; letter-spacing: 0.01em; }

/* Generic card */
.dash-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px; box-shadow: var(--m-shadow); }

/* 1 — Hero */
.dash-hero { display: flex; align-items: center; gap: 16px; }
.dash-hero-avatar {
    width: 60px; height: 60px; border-radius: 50%; background: var(--m-primary); color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; overflow: hidden;
}
.dash-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-hero-hello { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.dash-hero-type { color: var(--m-muted); font-size: 0.95rem; margin-top: 1px; }
.dash-hero-status { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.dash-hero-status--ok { background: #E3F5EC; color: #0B7A4B; }
.dash-hero-status--muted { background: #F1F1EE; color: var(--m-muted); }

/* 2 — Credential (dominant) */
.cred-card {
    background: linear-gradient(160deg, #3F51B5 0%, #303F9F 60%, #5C6BC0 100%); color: #fff;
    border-radius: 24px; padding: 22px; box-shadow: 0 16px 40px rgba(31,41,89,0.22); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; overflow: hidden;
}
.cred-card-head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.cred-card-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.cred-card-status { font-size: 0.72rem; font-weight: 700; color: #8EF0C4; }
.cred-card-qr { border: none; padding: 14px; background: #fff; border-radius: 18px; cursor: pointer; line-height: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.cred-card-qr img { width: 190px; height: 190px; display: block; image-rendering: pixelated; }
.cred-card-number { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em; }
.cred-card-btn { border-radius: 14px !important; font-weight: 700 !important; height: 48px; }
.cred-card--empty { background: var(--m-surface); color: var(--m-ink); border: 1px dashed var(--m-line); box-shadow: none; padding: 32px 22px; }
.cred-card--empty .mud-icon-root { font-size: 40px; color: #B9C7C0; }

/* P5.1 — invalid/unavailable credential state on Home (no QR, premium status). */
.cred-card--status { padding: 26px 22px; }
.cred-status-icon { font-size: 46px !important; color: rgba(255,255,255,0.55) !important; }
.cred-status-msg { font-size: 0.95rem; color: rgba(255,255,255,0.92); line-height: 1.4; text-align: center; max-width: 300px; }

/* Credential dialog (full) */
.cred-dialog-title { font-weight: 800; }
.cred-full { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 4px 4px; }
.cred-full-club { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--m-primary); }
.cred-full-qr { background: #fff; padding: 12px; border-radius: 18px; border: 1px solid var(--m-line); }
.cred-full-qr img { width: 230px; height: 230px; display: block; image-rendering: pixelated; }
.cred-full-number { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.1em; }
.cred-full-name { font-size: 1.05rem; font-weight: 600; }
.cred-full-meta { display: flex; gap: 8px; }
.cred-full-chip { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #EEF3F0; color: var(--m-primary); }
.cred-full-chip--ok { background: #E3F5EC; color: #0B7A4B; }
.cred-full-chip--muted { background: #F1F1EE; color: var(--m-muted); }
.cred-full-validity { font-size: 0.85rem; color: var(--m-muted); }
.cred-full-hint { font-size: 0.8rem; color: var(--m-muted); margin-top: 4px; }

/* 3 — Balance */
.balance-card { display: flex; align-items: center; gap: 14px; }
.balance-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.balance-card--ok .balance-icon { background: #E3F5EC; color: #0B7A4B; }
.balance-card--due .balance-icon { background: #FDE8E8; color: #C62828; }
.balance-card--due { border-color: #F6C9C9; }
.balance-text { flex: 1; min-width: 0; }
.balance-title { font-size: 1.1rem; font-weight: 800; }
.balance-card--due .balance-title { color: #C62828; }
.balance-sub { font-size: 0.85rem; color: var(--m-muted); }

/* 4/5 — Feature cards */
.feature-card { display: flex; align-items: center; gap: 14px; padding: 0; overflow: hidden; }
.feature-icon { width: 56px; height: 56px; margin: 12px 0 12px 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon--teal { background: #E0F3EC; color: var(--m-primary); }
.feature-icon .mud-icon-root, .feature-banner .mud-icon-root { font-size: 26px; }
.feature-banner { width: 72px; align-self: stretch; background: linear-gradient(150deg, #303F9F, #5C6BC0); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-body { padding: 12px 14px 12px 0; min-width: 0; flex: 1; }
.feature-card .feature-banner + .feature-body { padding-left: 14px; }
.feature-title { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-sub { color: var(--m-muted); font-size: 0.85rem; margin-top: 2px; }
.feature-chip { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #EEF3F0; color: var(--m-primary); }

/* Empty states */
.dash-empty { text-align: center; padding: 22px 16px; }
.dash-empty-title { font-weight: 700; font-size: 0.98rem; }
.dash-empty-sub { color: var(--m-muted); font-size: 0.85rem; margin-top: 3px; }
.cred-card--empty .dash-empty-title { margin-top: 10px; }

/* 6 — Notifications */
.notif-list { padding: 4px 0; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-gold); margin-top: 6px; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.92rem; }
.notif-sub { color: var(--m-muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-when { color: var(--m-muted); font-size: 0.75rem; white-space: nowrap; }

/* 7 — Quick actions */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qa-item {
    background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: var(--m-ink);
    font-size: 0.78rem; font-weight: 600; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; min-height: 84px; justify-content: center;
}
.qa-item .mud-icon-root { font-size: 26px; color: var(--m-primary); }
.qa-item:hover:not(:disabled), .qa-item:focus-visible { transform: translateY(-2px); box-shadow: var(--m-shadow); border-color: var(--m-primary); }
.qa-item:disabled { opacity: 0.45; cursor: not-allowed; }

/* Error state */
.dash-state { text-align: center; padding: 60px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dash-state h2 { font-size: 1.2rem; font-weight: 800; margin: 6px 0 0; }
.dash-state p { color: var(--m-muted); margin: 0 0 12px; }
.dash-state .mud-icon-root { font-size: 44px; }

/* Skeletons */
.skel { border-radius: var(--m-radius); background: linear-gradient(90deg, #ECEFEC 25%, #F5F7F5 37%, #ECEFEC 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; }
.skel-hero { height: 70px; }
.skel-cred { height: 320px; border-radius: 24px; }
.skel-row { height: 88px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Responsive: tablet/desktop keep the phone column but widen quick actions */
@media (min-width: 720px) {
    .qa-grid { grid-template-columns: repeat(6, 1fr); }
    .cred-card-qr img { width: 210px; height: 210px; }
}

/* ============================================================
   P3 — Membership
   ============================================================ */
.mem-hero {
    background: linear-gradient(150deg, #3F51B5 0%, #303F9F 60%, #5C6BC0 100%); color: #fff;
    border-radius: 22px; padding: 22px; box-shadow: 0 14px 36px rgba(31,41,89,0.20); position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 6px;
}
.mem-hero::after { content: ""; position: absolute; right: -44px; top: -44px; width: 150px; height: 150px; border-radius: 50%; background: rgba(200,164,21,0.16); }
.mem-hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.mem-hero-type { font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.mem-hero-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.mem-hero-status--ok { background: rgba(142,240,196,0.2); color: #8EF0C4; }
.mem-hero-status--warn { background: rgba(255,213,128,0.22); color: #FFD580; }
.mem-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mem-hero-number { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.08em; margin-top: 8px; }
.mem-hero-rel { color: rgba(255,255,255,0.82); font-size: 0.9rem; }
.mem-hero-valid { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); font-size: 0.85rem; margin-top: 6px; }
.mem-hero-valid .mud-icon-root { font-size: 18px; }
.mem-hero-btn { margin-top: 16px; border-radius: 14px !important; font-weight: 700 !important; height: 48px; position: relative; z-index: 1; }

/* Status card */
.status-card { display: flex; gap: 12px; align-items: flex-start; }
.status-card .mud-icon-root { font-size: 26px; flex-shrink: 0; }
.status-card--ok { border-color: #BFE6D3; }
.status-card--ok > .mud-icon-root { color: #0B7A4B; }
.status-card--warn { border-color: #F6D8A8; background: #FFFBF2; }
.status-card--warn > .mud-icon-root { color: #C77700; }
.status-body { flex: 1; min-width: 0; }
.status-title { font-weight: 800; font-size: 1rem; }
.status-msg { color: var(--m-muted); font-size: 0.88rem; margin-top: 2px; }

/* Timeline */
.mem-timeline { padding: 4px 0; }
.mem-tl-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.mem-tl-item:last-child { border-bottom: none; }
.mem-tl-item .mud-icon-root { font-size: 20px; color: var(--m-primary); }
.mem-tl-label { color: var(--m-muted); font-size: 0.9rem; }
.mem-tl-date { margin-left: auto; font-weight: 600; font-size: 0.88rem; }

/* People / family */
.mem-people { padding: 4px 0; }
.mem-person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.mem-person:last-child { border-bottom: none; }
.mem-person-avatar { width: 42px; height: 42px; border-radius: 50%; background: #E0F3EC; color: var(--m-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.mem-person-avatar--primary { background: var(--m-primary); color: #fff; }
.mem-person-body { flex: 1; min-width: 0; }
.mem-person-name { font-weight: 600; font-size: 0.95rem; }
.mem-person-rel { color: var(--m-muted); font-size: 0.82rem; }
.mem-person-elig { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.mem-person-elig .mud-icon-root { font-size: 15px; }
.mem-person-elig--ok { background: #E3F5EC; color: #0B7A4B; }
.mem-person-elig--no { background: #F1F1EE; color: var(--m-muted); }

/* Benefits */
.mem-benefits { display: flex; flex-direction: column; gap: 2px; }
.mem-benefit { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.mem-benefit .mud-icon-root { font-size: 20px; color: #0B7A4B; flex-shrink: 0; }
.mem-benefit-body { display: flex; flex-direction: column; }
.mem-benefit-title { font-weight: 600; font-size: 0.92rem; }
.mem-benefit-detail { color: var(--m-muted); font-size: 0.8rem; }
.mem-benefit--off { opacity: 0.5; }
.mem-benefit--off .mud-icon-root { color: #B9C0BC; }

.mem-restrictions { margin-top: 12px; background: #FFFBF2; border-color: #F6D8A8; }
.mem-restrictions-head { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; color: #C77700; margin-bottom: 8px; }
.mem-restriction-item { font-size: 0.85rem; color: #8A5A00; padding: 3px 0 3px 22px; }

/* Documents */
.mem-docs { padding: 4px 0; }
.mem-doc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.mem-doc:last-child { border-bottom: none; }
.mem-doc > .mud-icon-root { font-size: 22px; color: var(--m-primary); }
.mem-doc-body { flex: 1; min-width: 0; }
.mem-doc-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-doc-meta { color: var(--m-muted); font-size: 0.8rem; }

/* Desktop/tablet: two-column composition for the lower sections */
@media (min-width: 860px) {
    .mem-hero { padding: 28px; }
    .mem-hero-number { font-size: 2rem; }
}

/* ============================================================
   P4 — Profile
   ============================================================ */
.prof-hero {
    background: linear-gradient(150deg, #3F51B5 0%, #303F9F 60%, #5C6BC0 100%); color: #fff;
    border-radius: 22px; padding: 24px; box-shadow: 0 14px 36px rgba(31,41,89,0.20);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.prof-avatar {
    position: relative; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,0.16);
    border: 2px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; color: #fff;
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.prof-camera {
    position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--m-gold); color: #1a1400; display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 2px solid #3F51B5;
}
.prof-hero-name { font-size: 1.3rem; font-weight: 800; margin-top: 14px; }
.prof-hero-rel { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin-top: 2px; }
.prof-hero-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.prof-hero-status--ok { background: rgba(142,240,196,0.2); color: #8EF0C4; }
.prof-hero-status--warn { background: rgba(255,213,128,0.22); color: #FFD580; }
.prof-remove-photo { margin-top: 8px !important; color: rgba(255,255,255,0.72) !important; font-size: 0.78rem !important; }

/* Completeness */
.prof-complete-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 0.92rem; }
.prof-complete-pct { color: var(--m-primary); font-weight: 800; }
.prof-complete-bar { height: 8px; border-radius: 999px; background: #E7EBE8; overflow: hidden; margin: 10px 0 12px; }
.prof-complete-fill { height: 100%; background: linear-gradient(90deg, var(--m-primary), #5C6BC0); border-radius: 999px; transition: width 0.4s ease; }
.prof-complete-items { display: flex; flex-wrap: wrap; gap: 8px; }
.prof-complete-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F1F1EE; color: var(--m-muted); }
.prof-complete-chip .mud-icon-root { font-size: 15px; }
.prof-complete-chip.done { background: #E3F5EC; color: #0B7A4B; }

/* Info lists */
.prof-list { display: flex; flex-direction: column; }
.prof-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--m-line); }
.prof-row:last-child { border-bottom: none; }
.prof-row > .mud-icon-root { font-size: 19px; color: var(--m-primary); flex-shrink: 0; }
.prof-label { color: var(--m-muted); font-size: 0.9rem; }
.prof-value { margin-left: auto; font-weight: 600; font-size: 0.9rem; text-align: right; }
.prof-value--ellipsis { max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-note { color: var(--m-muted); font-size: 0.78rem; margin-top: 8px; padding-left: 2px; }
.prof-note--inline { margin: 4px 0 8px; }
.prof-section-head { display: flex; align-items: center; justify-content: space-between; }

/* Editable actions */
.prof-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Account action rows (buttons) */
.prof-action {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px; background: none; border: none;
    border-top: 1px solid var(--m-line); cursor: pointer; color: var(--m-ink); font-size: 0.95rem; font-weight: 600; text-align: left;
}
.prof-action:first-of-type { border-top: 1px solid var(--m-line); }
.prof-action > .mud-icon-root { font-size: 20px; color: var(--m-primary); }
.prof-action span { flex: 1; }
.prof-action-chevron { color: #C3CCC7 !important; font-size: 20px !important; }
.prof-action:hover, .prof-action:focus-visible { color: var(--m-primary); }

.prof-version { text-align: center; color: #AEB8B3; font-size: 0.75rem; margin-top: 14px; }

/* Change-password dialog hint */
.cp-hint { color: var(--m-muted); font-size: 0.85rem; margin: 0 0 14px; }

/* ============================================================
   P6 — Reservations
   ============================================================ */
.rsv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rsv-topbar .member-page-hello { margin: 0; }
.rsv-new-btn { border-radius: 12px !important; font-weight: 700 !important; }

/* Reservation cards + chips */
.rsv-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.rsv-chip--ok { background: #E3F5EC; color: #0B7A4B; }
.rsv-chip--warn { background: #FEF3E0; color: #C77700; }
.rsv-chip--muted { background: #F1F1EE; color: var(--m-muted); }

.rsv-next {
    width: 100%; text-align: left; border: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
    background: linear-gradient(150deg, #3F51B5, #5C6BC0); color: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--m-shadow);
}
.rsv-next-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rsv-next-icon .mud-icon-root { font-size: 24px; }
.rsv-next-body { flex: 1; min-width: 0; }
.rsv-next-facility { font-size: 1.15rem; font-weight: 800; }
.rsv-next-when { color: rgba(255,255,255,0.85); font-size: 0.88rem; margin: 2px 0 8px; }
.rsv-next .rsv-chip--ok { background: rgba(142,240,196,0.22); color: #8EF0C4; }
.rsv-next .rsv-chip--warn { background: rgba(255,213,128,0.24); color: #FFD580; }
.rsv-next-chevron { color: rgba(255,255,255,0.6) !important; }

.rsv-card { width: 100%; text-align: left; border: 1px solid var(--m-line); cursor: pointer; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.rsv-card-body { flex: 1; min-width: 0; }
.rsv-card-facility { font-weight: 700; font-size: 0.98rem; }
.rsv-card-when { color: var(--m-muted); font-size: 0.84rem; margin-top: 2px; }
.rsv-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rsv-card-price { font-size: 0.78rem; font-weight: 700; color: var(--m-primary); }
.rsv-card .rsv-card-when + *, .rsv-card:hover { box-shadow: var(--m-shadow); }

.rsv-past-toggle { margin-top: 16px; display: flex; justify-content: center; }
/* RC1 — comfortable tap target (was ~20px tall) */
.rsv-past-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--m-muted); font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 9px 14px; border-radius: 10px; min-height: 40px; }
.rsv-past-btn:hover { background: rgba(31,41,89,0.05); }

/* Booking flow */
.rsv-flow-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.rsv-flow-title { font-size: 1.05rem; font-weight: 800; text-align: center; flex: 1; }
.rsv-flow-step { color: var(--m-muted); font-size: 0.85rem; font-weight: 700; width: 44px; text-align: right; }
.rsv-flow-progress { height: 4px; border-radius: 999px; background: #E7EBE8; overflow: hidden; margin-bottom: 18px; }
.rsv-flow-progress-fill { height: 100%; background: linear-gradient(90deg, var(--m-primary), #5C6BC0); transition: width 0.3s ease; }
.rsv-flow { display: flex; flex-direction: column; gap: 12px; }
.rsv-selected-facility { font-weight: 700; color: var(--m-ink); margin-bottom: 4px; }

/* Facility cards */
.rsv-facility { width: 100%; text-align: left; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 18px; padding: 0; cursor: pointer; display: flex; align-items: stretch; gap: 0; overflow: hidden; box-shadow: var(--m-shadow); transition: transform 0.12s, border-color 0.12s; }
.rsv-facility:hover, .rsv-facility:focus-visible { transform: translateY(-2px); border-color: var(--m-primary); }
.rsv-facility-media { width: 92px; flex-shrink: 0; background: linear-gradient(150deg, #303F9F, #5C6BC0); color: #fff; display: flex; align-items: center; justify-content: center; }
.rsv-facility-media img { width: 100%; height: 100%; object-fit: cover; }
.rsv-facility-media .mud-icon-root { font-size: 34px; }
.rsv-facility-body { flex: 1; min-width: 0; padding: 14px 12px; }
.rsv-facility-name { font-weight: 800; font-size: 1.05rem; }
.rsv-facility-desc { color: var(--m-muted); font-size: 0.82rem; margin: 2px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsv-facility-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.78rem; color: var(--m-muted); }
.rsv-facility-meta .mud-icon-root { font-size: 15px; vertical-align: middle; }
.rsv-facility-loc, .rsv-facility-cap { display: inline-flex; align-items: center; gap: 3px; }
.rsv-facility-price { font-weight: 700; color: var(--m-primary); }
.rsv-tag { background: #EEF3F0; color: var(--m-primary); padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 0.72rem; }
.rsv-facility .rsv-next-chevron { align-self: center; margin-right: 8px; color: #C3CCC7 !important; }

/* Date chips */
.rsv-date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rsv-date-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--m-line); background: var(--m-surface); cursor: pointer; min-height: 72px; justify-content: center; }
.rsv-date-chip:hover, .rsv-date-chip:focus-visible { border-color: var(--m-primary); }
.rsv-date-chip.selected { background: var(--m-primary); color: #fff; border-color: var(--m-primary); }
.rsv-date-dow { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; font-weight: 700; }
.rsv-date-day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.rsv-date-mon { font-size: 0.72rem; text-transform: uppercase; opacity: 0.8; }

/* Slot grid */
.rsv-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rsv-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px; border-radius: 12px; border: 1px solid var(--m-line); background: var(--m-surface); cursor: pointer; font-weight: 700; min-height: 52px; justify-content: center; transition: transform 0.1s, border-color 0.1s; }
.rsv-slot:hover, .rsv-slot:focus-visible { border-color: var(--m-primary); transform: translateY(-1px); }
.rsv-slot-time { font-size: 1rem; }
.rsv-slot-price { font-size: 0.72rem; color: var(--m-primary); font-weight: 700; }
.rsv-slot-msg { display: flex; align-items: center; gap: 10px; color: var(--m-muted); }
.rsv-slot-msg .mud-icon-root { color: var(--m-primary); }
/* CLUBACCESS.FUNCTIONAL.FIXES.1 — occupied/blocked/past slots: gray, non-interactive. */
.rsv-slot--blocked { background: var(--m-surface-2, #f1f3f5); border-color: transparent; color: var(--m-muted); cursor: not-allowed; opacity: 0.7; }
.rsv-slot--blocked:hover, .rsv-slot--blocked:focus-visible { border-color: transparent; transform: none; }
.rsv-slot--blocked .rsv-slot-time { text-decoration: line-through; }
.rsv-slot-state { font-size: 0.66rem; font-weight: 600; color: var(--m-muted); text-transform: uppercase; letter-spacing: .02em; }
.rsv-slot-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 0.78rem; color: var(--m-muted); }
.rsv-slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rsv-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rsv-dot--free { background: var(--m-primary); }
.rsv-dot--blocked { background: #adb5bd; }

/* Confirm */
.rsv-confirm-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 18px; padding: 20px; box-shadow: var(--m-shadow); }
.rsv-confirm-facility { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.rsv-confirm-rows { display: flex; flex-direction: column; gap: 12px; }
.rsv-confirm-row { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.rsv-confirm-row > .mud-icon-root { color: var(--m-primary); font-size: 20px; }
.rsv-confirm-rules { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--m-line); color: var(--m-muted); font-size: 0.82rem; display: flex; gap: 6px; }
.rsv-confirm-btn { margin-top: 16px; border-radius: 14px !important; height: 52px; font-weight: 700 !important; }

/* Success */
.rsv-success { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 24px 8px; }
.rsv-success-icon { width: 84px; height: 84px; border-radius: 50%; background: #E3F5EC; color: #0B7A4B; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.rsv-success-icon .mud-icon-root { font-size: 48px; }
.rsv-success-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 12px; }
.rsv-success-facility { font-size: 1.1rem; font-weight: 700; }
.rsv-success-when { color: var(--m-muted); margin: 2px 0 10px; }
.rsv-success-ref { font-size: 0.8rem; color: var(--m-muted); letter-spacing: 0.06em; margin-bottom: 22px; }
.rsv-success-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; }

/* Detail */
.rsv-detail-hero { border-radius: 20px; padding: 22px; color: #fff; box-shadow: var(--m-shadow); background: linear-gradient(150deg, #3F51B5, #5C6BC0); }
.rsv-detail-hero--muted { background: linear-gradient(150deg, #5B6B64, #7C8A83); }
.rsv-detail-hero--warn { background: linear-gradient(150deg, #B77A17, #D19A3A); }
.rsv-detail-facility { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.rsv-detail-hero .rsv-chip { background: rgba(255,255,255,0.2); color: #fff; }
.rsv-detail-when { margin-top: 12px; font-size: 0.95rem; }
.rsv-detail-time { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; }
.rsv-detail-rules { color: var(--m-muted); font-size: 0.85rem; }
.rsv-detail-rules-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--m-ink); margin-bottom: 6px; }
.rsv-cancel-note { text-align: center; color: var(--m-muted); font-size: 0.82rem; margin: 14px 0 8px; }
.rsv-cancel-note--muted { color: #AEB8B3; }

@media (min-width: 720px) {
    .rsv-slot-grid { grid-template-columns: repeat(5, 1fr); }
    .rsv-date-grid { grid-template-columns: repeat(7, 1fr); }
}

/* ============================================================
   P5 — Digital credential
   ============================================================ */
.cred-page { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.cred-topbar {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 8px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--m-bg);
}
.cred-topbar-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.cred-icon-btn { background: none; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--m-ink); }
.cred-icon-btn:hover, .cred-icon-btn:focus-visible { background: rgba(31,41,89,0.06); }
.cred-icon-btn:disabled { opacity: 0.5; cursor: default; }
.cred-live { text-align: center; min-height: 18px; font-size: 0.8rem; color: var(--m-muted); }

.cred-card-wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 6px 16px 0; }

/* The credential card — QR dominates; no decoration over the QR. */
.digital-cred {
    background: linear-gradient(155deg, #3F51B5 0%, #303F9F 55%, #5C6BC0 100%); color: #fff;
    border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 18px 44px rgba(31,41,89,0.28);
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.digital-cred--invalid { filter: grayscale(0.35); }
.digital-cred-club { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.72); text-align: center; }
.digital-cred-member { display: flex; align-items: center; gap: 12px; width: 100%; }
.digital-cred-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; overflow: hidden; flex-shrink: 0; }
.digital-cred-avatar img { width: 100%; height: 100%; object-fit: cover; }
.digital-cred-id { min-width: 0; }
.digital-cred-name { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.digital-cred-rel { color: rgba(255,255,255,0.8); font-size: 0.82rem; }

/* QR panel: plain white, generous quiet zone, no overlays/filters. */
.digital-cred-qr { border: none; padding: 16px; background: #FFFFFF; border-radius: 18px; cursor: pointer; line-height: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.digital-cred-qr img { display: block; width: min(66vw, 288px); height: min(66vw, 288px); image-rendering: pixelated; }
.digital-cred-number { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.digital-cred-foot { width: 100%; display: flex; justify-content: center; }

.digital-cred-noqr { background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.3); border-radius: 18px; padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.digital-cred-noqr > .mud-icon-root { font-size: 44px; color: rgba(255,255,255,0.55); }
.digital-cred-noqr-msg { font-size: 0.9rem; color: rgba(255,255,255,0.9); line-height: 1.4; }

/* Status badge */
.cred-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.cred-badge .mud-icon-root { font-size: 16px; }
.cred-badge--ok { background: rgba(142,240,196,0.22); color: #8EF0C4; }
.cred-badge--warn { background: rgba(255,213,128,0.24); color: #FFD580; }
.cred-badge--error { background: rgba(255,138,138,0.24); color: #FFB4B4; }
.cred-badge--muted { background: rgba(255,255,255,0.16); color: rgba(255,255,255,0.85); }

.cred-scan-hint { text-align: center; color: var(--m-muted); font-size: 0.85rem; margin: 16px 0 8px; }
.cred-scan-btn { border-radius: 14px !important; font-weight: 700 !important; height: 50px; }
.cred-meta { text-align: center; font-size: 0.8rem; color: var(--m-muted); margin-top: 10px; }
.cred-meta--muted { color: #AEB8B3; margin-top: 4px; }
.cred-invalid-msg { text-align: center; color: var(--m-ink); font-size: 0.95rem; margin: 16px 4px 4px; }
.cred-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.cred-actions--stack { flex-direction: column; margin-top: 16px; }

.cred-spin { animation: m-spin 0.9s linear infinite; }

/* Scan mode — bright white, maximal QR, minimal distraction. */
.scan-mode {
    position: fixed; inset: 0; z-index: 3000; background: #FFFFFF; color: #22252E;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
}
.scan-exit { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; display: inline-flex; align-items: center; gap: 4px; background: #F1F3F1; border: none; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: #22252E; }
.scan-exit .mud-icon-root { font-size: 18px; }
.scan-qr { background: #FFFFFF; padding: 8px; }
.scan-qr img { display: block; width: min(86vw, 86vh, 560px); height: min(86vw, 86vh, 560px); image-rendering: pixelated; }
.scan-number { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.scan-name { font-size: 1rem; color: #6B7A73; }

/* Desktop/tablet: keep the credential centred and contained. */
@media (min-width: 720px) {
    .digital-cred-qr img { width: 300px; height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .cred-spin { animation: none; }
}

/* ── CLUBACCESS.MEMBER P7 — Guests ─────────────────────────────────────────── */
.rsv-slot.selected { background: var(--m-primary); color: #fff; border-color: var(--m-primary); }
.rsv-slot.selected .rsv-slot-time { color: #fff; }
.rsv-chip--info { background: #E6EFFB; color: #1B5FB0; }
.rsv-detail-hero--info { background: linear-gradient(150deg, #1B5FB0, #4C86D4); }

.gst-restriction { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 10px; color: #8a5a12; background: #FEF6E8; border-color: #F3E2BE; font-size: 0.88rem; }
.gst-restriction .mud-icon-root { color: #C77700; flex-shrink: 0; }

.gst-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }

.gst-duration { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.gst-duration-val { font-weight: 800; font-size: 1.05rem; }
.gst-window-hint { text-align: center; color: var(--m-muted); font-size: 0.85rem; margin-top: 10px; }

.gst-qr { background: #fff; padding: 14px; border-radius: 18px; border: 1px solid var(--m-line); line-height: 0; display: inline-block; margin: 6px auto 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.10); }
.gst-qr svg { width: 210px; height: 210px; display: block; }
.gst-qr-card { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0; }
.gst-qr-hint { color: var(--m-muted); font-size: 0.82rem; }
.gst-qr-empty { display: flex; align-items: center; gap: 12px; color: var(--m-muted); margin: 12px 0; }
.gst-qr-empty .mud-icon-root { color: var(--m-primary); flex-shrink: 0; }

/* ── CLUBACCESS.MEMBER P7.1 — Pending approval ─────────────────────────────── */
.gst-pending { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; background: #FEF6E8; border-color: #F3E2BE; }
.gst-pending .mud-icon-root { color: #C77700; flex-shrink: 0; font-size: 26px; }
.gst-pending-title { font-weight: 800; color: #8a5a12; }
.gst-pending-sub { color: #9a7433; font-size: 0.85rem; margin-top: 2px; }
.gst-pending-note { background: #FEF6E8; border: 1px solid #F3E2BE; color: #8a5a12; border-radius: 14px; padding: 14px 16px; font-size: 0.9rem; margin: 4px 0 6px; max-width: 340px; }
.rsv-success-icon--pending { background: #FEF6E8; color: #C77700; }

/* ── CLUBACCESS.MEMBER P8 — Vehicles (digital garage) ──────────────────────── */
.veh-card { width: 100%; text-align: left; background: var(--m-surface); border: 1px solid var(--m-line); border-left: 4px solid #C3CCC7; border-radius: 18px; padding: 14px 14px 14px 16px; margin-bottom: 12px; cursor: pointer; box-shadow: var(--m-shadow); transition: transform 0.12s, border-color 0.12s; }
.veh-card:hover, .veh-card:focus-visible { transform: translateY(-2px); }
.veh-card--ok { border-left-color: #0B7A4B; }
.veh-card--warn { border-left-color: #C77700; }
.veh-card--muted { border-left-color: #AEB8B3; }
.veh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.veh-card-body { display: flex; align-items: center; gap: 12px; }
.veh-card-icon { color: var(--m-primary); font-size: 30px !important; flex-shrink: 0; }
.veh-card-meta { flex: 1; min-width: 0; }
.veh-card-desc { font-weight: 700; font-size: 1rem; }
.veh-card-sub { color: var(--m-muted); font-size: 0.82rem; margin-top: 1px; display: flex; gap: 4px; flex-wrap: wrap; }
.veh-card-warn { color: #C77700; font-weight: 600; }

/* Large plate typography */
.veh-plate { font-family: 'Inter', monospace; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.12em; color: var(--m-primary); white-space: nowrap; }
.veh-plate-chip { display: inline-block; font-family: 'Inter', monospace; font-weight: 800; letter-spacing: 0.12em; font-size: 1.2rem; padding: 8px 18px; border-radius: 12px; background: #EEF3F0; color: var(--m-primary); border: 1px solid var(--m-line); margin: 0 auto 10px; }
.veh-plate-chip--lg { font-size: 1.6rem; padding: 12px 24px; display: block; width: fit-content; }
.veh-plate-field { margin-bottom: 16px; }
.veh-plate-input input { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800 !important; font-size: 1.2rem !important; }
.veh-plate-hint { color: var(--m-muted); font-size: 0.8rem; margin-top: 6px; }

.veh-note { display: flex; align-items: flex-start; gap: 6px; color: #8a5a12; background: #FEF6E8; border: 1px solid #F3E2BE; border-radius: 12px; padding: 12px 14px; font-size: 0.85rem; margin: 14px 0 4px; }
.veh-note .mud-icon-root { color: #C77700; flex-shrink: 0; }

/* Detail hero */
.veh-hero { border-radius: 20px; padding: 24px 22px; color: #fff; text-align: center; box-shadow: var(--m-shadow); background: linear-gradient(150deg, #3F51B5, #5C6BC0); }
.veh-hero--warn { background: linear-gradient(150deg, #B77A17, #D19A3A); }
.veh-hero--muted { background: linear-gradient(150deg, #5B6B64, #7C8A83); }
.veh-hero-plate { font-family: 'Inter', monospace; font-weight: 800; font-size: 2rem; letter-spacing: 0.14em; }
.veh-hero-desc { opacity: 0.92; margin-top: 4px; }
.veh-hero-chip { margin-top: 12px; background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.veh-hero-chip .mud-icon-root { color: #fff; }

.veh-access { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--m-muted); font-size: 0.9rem; }
.veh-access .mud-icon-root { color: var(--m-primary); flex-shrink: 0; }

.veh-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.veh-success-state { margin: 8px 0; }
.rsv-chip .mud-icon-root { margin-right: 3px; }

/* ── CLUBACCESS.MEMBER P9 — Events (club agenda) ───────────────────────────── */
.evt-card { width: 100%; text-align: left; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 18px; padding: 0; margin-bottom: 12px; cursor: pointer; display: flex; align-items: stretch; overflow: hidden; box-shadow: var(--m-shadow); transition: transform 0.12s, border-color 0.12s; }
.evt-card:hover, .evt-card:focus-visible { transform: translateY(-2px); border-color: var(--m-primary); }
.evt-card--featured { border-color: var(--m-primary); }
.evt-card-banner { width: 64px; flex-shrink: 0; background: linear-gradient(150deg, #303F9F, #5C6BC0); color: #fff; display: flex; align-items: center; justify-content: center; }
.evt-card-banner .mud-icon-root { font-size: 28px; }
.evt-card-body { flex: 1; min-width: 0; padding: 12px 12px; }
.evt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.evt-card-cat { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m-primary); }
.evt-card-title { font-weight: 800; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt-card-when { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--m-muted); font-size: 0.82rem; margin-top: 2px; }
.evt-card-when .mud-icon-root { font-size: 15px; }
.evt-card-loc { }
.evt-card .rsv-next-chevron { align-self: center; margin-right: 8px; color: #C3CCC7 !important; }

.evt-hero { border-radius: 20px; padding: 22px; color: #fff; text-align: center; box-shadow: var(--m-shadow); background: linear-gradient(150deg, #3F51B5, #5C6BC0); }
.evt-hero--muted { background: linear-gradient(150deg, #5B6B64, #7C8A83); }
.evt-hero-banner { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.evt-hero-banner .mud-icon-root { font-size: 30px; }
.evt-hero-cat { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.evt-hero-title { font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.evt-hero-chip { margin-top: 12px; background: rgba(255,255,255,0.2) !important; color: #fff !important; }

.evt-desc { color: var(--m-ink); font-size: 0.92rem; line-height: 1.5; white-space: pre-line; }
.evt-desc-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--m-muted); font-size: 0.85rem; margin-bottom: 8px; }

/* ── CLUBACCESS.MEMBER P9.2 — Event registration ───────────────────────────── */
.evt-card-banner--reg { background: linear-gradient(150deg, #0B7A4B, #12a066); }
.evt-card-avail { margin-top: 4px; font-size: 0.8rem; font-weight: 700; color: var(--m-primary); }

.evt-reg { margin-top: 12px; }
.evt-reg-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.evt-reg-line { font-size: 0.9rem; color: var(--m-ink); margin: 2px 0; }
.evt-reg-avail { font-weight: 700; color: var(--m-primary); }
.evt-reg-muted { color: var(--m-muted); font-size: 0.82rem; }
.evt-reg-msg { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #FEF6E8; border: 1px solid #F3E2BE; color: #8a5a12; font-size: 0.88rem; }

.evt-comp { margin: 14px 0; padding: 14px; border: 1px solid var(--m-line); border-radius: 14px; background: #F7FAF8; }
.evt-comp-label { font-size: 0.85rem; color: var(--m-muted); margin-bottom: 8px; }
.evt-comp-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; }
.evt-comp-val { font-size: 1.5rem; font-weight: 800; min-width: 40px; text-align: center; }
.evt-comp-total { text-align: center; margin-top: 8px; font-weight: 700; color: var(--m-primary); }

/* ── CLUBACCESS.MEMBER P10 — Account statement ─────────────────────────────── */
.rsv-chip--danger { background: #FDE8E8; color: #C62828; }

/* Account status hero */
.acc-hero { text-align: center; padding: 26px 20px; border-radius: 20px; border: 1px solid var(--m-line);
    background: var(--m-surface); box-shadow: var(--m-shadow); margin-top: 8px; }
.acc-hero-icon { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #EEF3F0; color: var(--m-primary); margin-bottom: 10px; }
.acc-hero-icon .mud-icon-root { font-size: 28px; }
.acc-hero-title { font-size: 0.95rem; font-weight: 700; color: var(--m-muted); }
.acc-hero-amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0; color: var(--m-ink); }
.acc-hero-sub { font-size: 0.85rem; color: var(--m-muted); }
.acc-hero-sub--lg { font-size: 0.95rem; margin-top: 4px; }
.acc-hero--ok .acc-hero-icon { background: #E3F5EC; color: #0B7A4B; }
.acc-hero--ok .acc-hero-title { color: #0B7A4B; }
.acc-hero--danger { border-color: #F6C9C9; }
.acc-hero--danger .acc-hero-icon { background: #FDE8E8; color: #C62828; }
.acc-hero--danger .acc-hero-amount, .acc-hero--danger .acc-hero-title { color: #C62828; }
.acc-hero--warn .acc-hero-icon { background: #FEF3E0; color: #C77700; }
.acc-hero--muted .acc-hero-icon { background: #F1F1EE; color: var(--m-muted); }

/* Overdue / upcoming split */
.acc-split { display: flex; gap: 12px; margin-top: 12px; }
.acc-split-cell { flex: 1; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 14px; padding: 14px; }
.acc-split-cell--danger { border-color: #F6C9C9; background: #FEF6F6; }
.acc-split-label { font-size: 0.75rem; font-weight: 700; color: var(--m-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.acc-split-val { font-size: 1.15rem; font-weight: 800; margin-top: 2px; }
.acc-split-cell--danger .acc-split-val { color: #C62828; }
.acc-split-hint { font-size: 0.75rem; color: var(--m-muted); margin-top: 2px; }

/* Invoice cards */
.acc-inv { display: flex; align-items: stretch; gap: 12px; width: 100%; text-align: left; cursor: pointer;
    background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 16px; padding: 14px; margin-bottom: 10px;
    box-shadow: var(--m-shadow); transition: transform 0.12s, box-shadow 0.12s; }
.acc-inv:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31,41,89,0.10); }
.acc-inv--overdue { border-color: #F6C9C9; }
.acc-inv-main { flex: 1; min-width: 0; }
.acc-inv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-inv-concept { font-weight: 700; color: var(--m-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-inv-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.acc-inv-num { font-size: 0.8rem; color: var(--m-muted); font-weight: 600; }
.acc-inv-due { display: inline-flex; align-items: center; gap: 3px; font-size: 0.8rem; color: var(--m-muted); }
.acc-inv-due .mud-icon-root { font-size: 15px; }
.acc-inv-due--overdue { color: #C62828; font-weight: 700; }
.acc-inv-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; }
.acc-inv-amount { font-size: 1.1rem; font-weight: 800; color: var(--m-ink); white-space: nowrap; }
.acc-inv-paid { font-size: 0.72rem; color: var(--m-muted); }

/* Activity list */
.acc-activity { padding: 4px 0; }
.acc-act-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
    background: transparent; border: none; border-bottom: 1px solid var(--m-line); padding: 12px 16px; }
.acc-act-row:last-child { border-bottom: none; }
.acc-act-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #F1F1EE; color: var(--m-muted); flex-shrink: 0; }
.acc-act-icon--credit { background: #E3F5EC; color: #0B7A4B; }
.acc-act-icon--debit { background: #EEF3F0; color: var(--m-primary); }
.acc-act-body { flex: 1; min-width: 0; }
.acc-act-title { font-weight: 600; font-size: 0.9rem; color: var(--m-ink); }
.acc-act-sub { font-size: 0.78rem; color: var(--m-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-act-right { text-align: right; }
.acc-act-amount { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.acc-act-amount--credit { color: #0B7A4B; }
.acc-act-amount--debit { color: var(--m-ink); }
.acc-act-date { font-size: 0.72rem; color: var(--m-muted); }

/* Help / contact */
.acc-help { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; border-radius: 12px;
    background: #F7FAF8; border: 1px solid var(--m-line); color: var(--m-muted); font-size: 0.82rem; }
.acc-help--action { background: #FEF6E8; border-color: #F3E2BE; color: #8a5a12; }

/* Invoice detail */
.acc-inv-hero { text-align: center; padding: 24px 20px; border-radius: 20px; color: #fff; margin-top: 8px;
    background: linear-gradient(150deg, var(--m-primary), var(--m-primary-2)); }
.acc-inv-hero--danger { background: linear-gradient(150deg, #B23B3B, #C62828); }
.acc-inv-hero--muted { background: linear-gradient(150deg, #6B7A73, #808f88); }
.acc-inv-hero-num { font-size: 0.85rem; font-weight: 700; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.acc-inv-hero-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 10px; }
.acc-inv-hero .rsv-chip { background: rgba(255,255,255,0.2); color: #fff; }

.acc-lines { padding: 4px 0; }
.acc-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.acc-line:last-child { border-bottom: none; }
.acc-line-desc { font-weight: 600; color: var(--m-ink); font-size: 0.9rem; }
.acc-line-qty { font-size: 0.78rem; color: var(--m-muted); margin-top: 2px; }
.acc-line-total { font-weight: 700; white-space: nowrap; }

.acc-totals { margin-top: 12px; }
.acc-total-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 0.92rem; color: var(--m-ink); }
.acc-total-row span:first-child { color: var(--m-muted); }
.acc-total-row--grand { border-top: 1px solid var(--m-line); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; }
.acc-total-row--grand span:first-child { color: var(--m-ink); }
.acc-total-row--paid span { color: #0B7A4B !important; font-weight: 700; }
.acc-total-row--due { font-weight: 800; }
.acc-total-row--due span { color: #C62828 !important; }

.acc-pays { padding: 4px 0; }
.acc-pay { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.acc-pay:last-child { border-bottom: none; }
.acc-pay-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #E3F5EC; color: #0B7A4B; flex-shrink: 0; }
.acc-pay-body { flex: 1; min-width: 0; }
.acc-pay-method { font-weight: 600; font-size: 0.9rem; }
.acc-pay-meta { font-size: 0.78rem; color: var(--m-muted); }
.acc-pay-amount { font-weight: 700; color: #0B7A4B; white-space: nowrap; }

/* ── CLUBACCESS.MEMBER P11 — Notifications ─────────────────────────────────── */
/* Home "Ver todas" link */
.dash-section-head { display: flex; align-items: center; justify-content: space-between; }
/* RC1 — larger tap target for the "Ver todas" link (was ~18px tall) */
.dash-section-link { background: none; border: none; color: var(--m-primary); font-weight: 700; font-size: 0.8rem; cursor: pointer; padding: 6px 4px; margin: -6px -4px -6px 0; border-radius: 8px; }
.dash-section-link:hover { background: rgba(31,41,89,0.05); }
.notif-item--btn { width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--m-line); cursor: pointer; }
.notif-item--btn:last-child { border-bottom: none; }
.notif-dot--danger { background: #C62828; }
.notif-dot--warn { background: #C77700; }
.notif-dot--info { background: #1B5FB0; }
.notif-dot--primary { background: var(--m-primary); }
.notif-dot--muted { background: #B9C7C0; }

/* Current actionable alerts */
.ntf-alert { display: flex; gap: 12px; width: 100%; text-align: left; cursor: pointer; margin-bottom: 10px;
    background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 16px; padding: 14px; box-shadow: var(--m-shadow); }
.ntf-alert--danger { border-color: #F6C9C9; background: #FEF6F6; }
.ntf-alert-icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: #FDE8E8; color: #C62828; }
.ntf-alert--warn .ntf-alert-icon { background: #FEF3E0; color: #C77700; }
.ntf-alert-body { flex: 1; min-width: 0; }
.ntf-alert-title { font-weight: 800; color: #C62828; }
.ntf-alert--warn .ntf-alert-title { color: #C77700; }
.ntf-alert-msg { font-size: 0.85rem; color: var(--m-ink); margin-top: 2px; }
.ntf-alert-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 0.8rem; font-weight: 700; color: var(--m-primary); }
.ntf-alert-cta .mud-icon-root { font-size: 15px; }

/* Notification rows */
.ntf-list { padding: 4px 0; }
.ntf-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; cursor: pointer;
    background: transparent; border: none; border-bottom: 1px solid var(--m-line); padding: 13px 16px; }
.ntf-row:last-child { border-bottom: none; }
.ntf-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: #EEF3F0; color: var(--m-primary); margin-top: 2px; }
.ntf-icon--warn { background: #FEF3E0; color: #C77700; }
.ntf-icon--danger { background: #FDE8E8; color: #C62828; }
.ntf-icon--info { background: #E6EFFB; color: #1B5FB0; }
.ntf-icon--muted { background: #F1F1EE; color: var(--m-muted); }
.ntf-body { flex: 1; min-width: 0; }
.ntf-top { display: flex; align-items: center; gap: 8px; }
.ntf-cat { font-size: 0.72rem; font-weight: 700; color: var(--m-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.ntf-chip { font-size: 0.66rem; }
.ntf-title { font-weight: 700; color: var(--m-ink); margin-top: 2px; }
.ntf-preview { font-size: 0.85rem; color: var(--m-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ntf-meta { font-size: 0.74rem; color: var(--m-muted); margin-top: 5px; }

/* Detail */
.ntf-hero { text-align: center; padding: 24px 20px; border-radius: 20px; color: #fff; margin-top: 8px;
    background: linear-gradient(150deg, var(--m-primary), var(--m-primary-2)); }
.ntf-hero--warn { background: linear-gradient(150deg, #C77700, #E08a00); }
.ntf-hero--danger { background: linear-gradient(150deg, #B23B3B, #C62828); }
.ntf-hero--info { background: linear-gradient(150deg, #1B5FB0, #2f74c8); }
.ntf-hero--muted { background: linear-gradient(150deg, #6B7A73, #808f88); }
.ntf-hero-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.18); margin-bottom: 8px; }
.ntf-hero-cat { font-size: 0.75rem; font-weight: 700; opacity: 0.9; letter-spacing: 0.06em; text-transform: uppercase; }
.ntf-hero-title { font-size: 1.2rem; font-weight: 800; margin: 4px 0; }
.ntf-hero-meta { font-size: 0.8rem; opacity: 0.9; }
.ntf-delivery { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 12px; border-radius: 999px;
    background: #F1F1EE; color: var(--m-muted); font-size: 0.8rem; }
.ntf-detail-body { margin-top: 12px; color: var(--m-ink); font-size: 0.95rem; line-height: 1.55; white-space: pre-line; }

/* ── CLUBACCESS.MEMBER P12 — Settings & sessions ───────────────────────────── */
.set-state { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; }
.set-state--ok { background: #E3F5EC; }
.set-state--ok .mud-icon-root { color: #0B7A4B; }
.set-state--warn { background: #FEF3E0; }
.set-state--warn .mud-icon-root { color: #C77700; }
.set-state .mud-icon-root { font-size: 30px; flex-shrink: 0; }
.set-state-title { font-weight: 800; color: var(--m-ink); }
.set-state-msg { font-size: 0.83rem; color: var(--m-muted); margin-top: 2px; }
.set-metric { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--m-ink); font-weight: 600; padding: 4px 2px 12px; }
.set-metric .mud-icon-root { color: var(--m-primary); }

.set-sessions { display: flex; flex-direction: column; gap: 10px; }
.set-session { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--m-line); border-radius: 14px; }
.set-session-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #EEF3F0; color: var(--m-primary); flex-shrink: 0; }
.set-session-body { flex: 1; min-width: 0; }
.set-session-label { font-weight: 600; font-size: 0.9rem; }
.set-session-meta { font-size: 0.76rem; color: var(--m-muted); margin-top: 1px; }

.set-info { display: flex; align-items: flex-start; gap: 8px; color: var(--m-muted); font-size: 0.86rem; line-height: 1.45; }
.set-info .mud-icon-root { color: var(--m-primary); flex-shrink: 0; margin-top: 1px; }
.set-empty { color: var(--m-muted); font-size: 0.88rem; padding: 6px 2px; }
.set-privacy { color: var(--m-ink); font-size: 0.88rem; line-height: 1.5; padding: 4px 2px; }
.set-privacy--muted { color: var(--m-muted); border-top: 1px solid var(--m-line); margin-top: 8px; padding-top: 10px; }

/* ── CLUBACCESS.MEMBER P13 — PWA chrome (offline banner, update prompt, settings) ───────────── */
.pwa-offline {
    position: sticky; top: 0; z-index: 1400;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 7px 14px; font-size: 0.8rem; font-weight: 600;
    background: #FEF3E0; color: #8a5a12; border-bottom: 1px solid #F3E2BE;
    padding-top: calc(7px + env(safe-area-inset-top, 0px));
}
.pwa-offline .mud-icon-root { font-size: 16px; }

.pwa-update {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 1500;
    display: flex; align-items: center; gap: 10px; max-width: 92vw;
    padding: 10px 12px 10px 16px; border-radius: 14px;
    background: var(--m-ink); color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.pwa-update .mud-icon-root { font-size: 18px; color: #FFD580; }
.pwa-update-text { font-size: 0.88rem; font-weight: 600; }
.pwa-update-btn {
    background: #FFD580; color: #3a2a06; border: none; border-radius: 999px;
    padding: 6px 14px; font-weight: 800; font-size: 0.82rem; cursor: pointer;
}
.pwa-update-dismiss { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 0.95rem; padding: 2px 4px; }

/* Settings PWA card */
.set-pwa-note { font-size: 0.85rem; color: var(--m-muted); line-height: 1.5; margin-top: 2px; }
.set-pwa-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; }
.set-pwa-status--ok { color: #0B7A4B; }
.set-pwa-status--muted { color: var(--m-muted); }
.set-ios-steps { margin: 8px 0 0; padding-left: 18px; font-size: 0.83rem; color: var(--m-muted); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
    .pwa-update { transition: none; }
}

/* Credential offline note (P13) — shown without blanking an already-rendered QR */
.cred-stale {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 9px 14px; border-radius: 12px; font-size: 0.82rem; font-weight: 600;
    background: #FEF3E0; color: #8a5a12; border: 1px solid #F3E2BE;
}
.cred-stale .mud-icon-root { font-size: 16px; }

/* CHECKTRIP member login wordmark */
.ct-member-logo {
    display: inline-block;
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 10px;
}
.ct-member-logo span { color: #C5CAE9; }

/* CHECKCLUB.V2 — solicitudes enviadas al club, matrícula adjunta y aviso de cambios en revisión */
.req-row { align-items: flex-start; }
.req-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-summary { font-weight: 600; }
.req-meta { font-size: .8rem; color: #5B6472; }
.req-ico--pending { color: #B26A00 !important; }
.req-ico--approved { color: #1E7A46 !important; }
.req-ico--rejected { color: #C62828 !important; }
.veh-doc-upload { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px dashed #C9CFDB; border-radius: 12px; cursor: pointer; color: #5B6472; font-weight: 600; }
.veh-doc-upload:hover { border-color: var(--mud-palette-primary); color: var(--mud-palette-primary); }
.prof-pending { margin: 12px 0 4px; display: flex; gap: 10px; align-items: flex-start; background: #FEF6E8; border: 1px solid #F3E2BE; color: #7a4f0e; border-radius: 14px; padding: 12px 14px; font-size: .88rem; }
.prof-pending .mud-icon-root { color: #C77700; flex-shrink: 0; }
.dep-form { display: flex; flex-direction: column; gap: 12px; }
.mem-person-avatar { position: relative; overflow: visible; }
.mem-person-photo { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.mem-person-camera { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--mud-palette-primary); color: #fff; cursor: pointer; border: 2px solid #fff; }
.auth-days { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── CHECKCLUB.V2.4 — privacidad (LOPDP) ─────────────────────── */
.legal-gate { position: fixed; inset: 0; z-index: 1400; background: rgba(20, 24, 40, .55); display: flex; align-items: flex-end; justify-content: center; }
.legal-gate__card { background: var(--m-surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 22px 18px 18px; box-shadow: var(--m-shadow); }
@media (min-width: 600px) { .legal-gate { align-items: center; } .legal-gate__card { border-radius: 20px; } }
.legal-gate__card h2 { margin: 6px 0 4px; font-size: 1.25rem; }
.legal-gate__lead { margin: 0 0 12px; color: var(--m-muted); font-size: .92rem; }
.legal-gate__notice { background: var(--m-bg); border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin-bottom: 10px; }
.legal-gate__notice p { margin: 0; }
.legal-gate__doc { border: 1px solid var(--m-line); border-radius: 12px; margin-bottom: 8px; }
.legal-gate__doc summary { padding: 12px; font-weight: 700; cursor: pointer; min-height: 44px; }
.legal-gate__ver { font-weight: 500; color: var(--m-muted); font-size: .8rem; margin-left: 6px; }
.legal-gate__body, .legal-doc { padding: 0 12px 12px; font-size: .88rem; line-height: 1.5; }
.legal-gate__body table, .legal-doc table { border-collapse: collapse; width: 100%; font-size: .78rem; display: block; overflow-x: auto; }
.legal-gate__body th, .legal-gate__body td, .legal-doc th, .legal-doc td { border: 1px solid var(--m-line); padding: 5px 6px; text-align: left; vertical-align: top; }
.legal-gate__body h2, .legal-doc h2 { font-size: 1rem; margin: 14px 0 6px; }
.legal-gate__body blockquote, .legal-doc blockquote { margin: 0 0 10px; padding: 8px 10px; border-left: 4px solid var(--m-gold); background: #FFF8E1; }
.legal-gate__check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .95rem; min-height: 44px; }
.legal-gate__check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--m-primary); }
.legal-gate__error { color: #B3261E; font-size: .88rem; margin-bottom: 8px; }
.priv-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--m-line); }
.priv-toggle:first-child { border-top: 0; }
.priv-toggle__text b { display: block; font-size: .95rem; }
.priv-toggle__text span { color: var(--m-muted); font-size: .82rem; }
.priv-consent { display: flex; gap: 10px; align-items: flex-start; background: #FFF8E1; border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin: 10px 0; }
.priv-consent input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--m-primary); }
.priv-request { border-top: 1px solid var(--m-line); padding: 10px 0; font-size: .9rem; }
.priv-request:first-child { border-top: 0; }
.priv-request small { color: var(--m-muted); display: block; }

/* CHECKCLUB.V2.5 (G8) — aviso para reintentar la consulta de documentos legales (sobre la barra inferior). */
.legal-gate-retry { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 1300; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--m-surface); box-shadow: var(--m-shadow); font-size: .88rem; }
.legal-gate-retry span { flex: 1; }

/* CHECKCLUB.V2.5 (G9) — código rotativo: cuenta regresiva bajo el QR y texto solo para lectores de pantalla. */
.cred-rotate { text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--m-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.scan-mode .cred-rotate { color: #6B7A73; margin-top: 10px; }
.cred-card-qr--icon { display: flex; align-items: center; justify-content: center; color: var(--mud-palette-primary, #006B44); }
.m-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Fase 5 — foco visible con teclado en toda la app (antes varias tarjetas lo quitaban con outline: none). */
:focus-visible {
    outline: 3px solid var(--m-primary);
    outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Fase 5 — se quitó maximum-scale (impedía el zoom, WCAG 1.4.4). iOS acerca la página al enfocar un campo con letra
   menor a 16 px: con 16 px mínimos en los campos no hace falta bloquear el zoom. */
input, select, textarea { font-size: max(16px, 1em); }
