:root {
    color-scheme: dark;
    --bg: #050208;
    --bg-raised: #0c0712;
    --panel: rgba(19, 10, 30, .9);
    --panel-strong: #160c23;
    --text: #faf7ff;
    --muted: #b4a9c2;
    --purple: #9d35ff;
    --purple-bright: #c86dff;
    --pink: #f044ff;
    --cyan: #44ffd2;
    --amber: #ffc45c;
    --red: #ff5c87;
    --line: rgba(196, 104, 255, .25);
    --radius: 18px;
    --shadow: 0 22px 70px rgba(0, 0, 0, .42);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, rgba(157, 53, 255, .17), transparent 34rem),
        radial-gradient(circle at 92% 24%, rgba(240, 68, 255, .1), transparent 28rem),
        linear-gradient(160deg, #030105 0%, #08030e 52%, #030105 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: var(--purple-bright); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: .85rem max(1rem, env(safe-area-inset-left));
    background: rgba(5, 2, 8, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -.03em;
}

.brand-image {
    display: block;
    width: auto;
    height: 48px;
    max-width: min(230px, 56vw);
    object-fit: contain;
    filter: drop-shadow(0 0 13px rgba(185, 72, 255, .28));
}
.brand-image-sidebar { width: 205px; height: auto; max-height: 108px; }
.brand-image-auth { width: min(300px, 85%); height: auto; max-height: 160px; margin: 0 auto; }
.auth-brand { display: grid; gap: .4rem; justify-items: center; margin-bottom: 2rem; text-align: center; }
.brand-logo-link { display: block; width: min(290px, 85%); margin: 0 auto 2rem; }
.brand-logo-link.brand-logo-large { width: min(390px, 92%); }
.brand-logo-link img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: contain; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.preview-banner { position: sticky; top: 72px; z-index: 29; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .65rem 1rem; color: #fff; background: linear-gradient(90deg, #7425c2, #9d35ff); box-shadow: 0 8px 28px rgba(77, 21, 121, .35); font-size: .84rem; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(205, 111, 255, .65);
    border-radius: 12px;
    color: white;
    background: linear-gradient(145deg, rgba(157,53,255,.95), rgba(79,18,127,.7));
    box-shadow: 0 0 24px rgba(157, 53, 255, .42), inset 0 0 14px rgba(255,255,255,.13);
}

.brand-word em { color: var(--purple-bright); font-style: normal; }
.brand-sub { display: block; color: var(--muted); font-size: .65rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 650; }

.page-shell {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.page-heading { margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--purple-bright); font-size: .73rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: .65rem; font-size: clamp(2rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }
.lead { max-width: 46rem; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.panel {
    position: relative;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(24, 13, 38, .93), rgba(10, 5, 16, .95));
    box-shadow: var(--shadow);
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.04), transparent 20%, transparent 80%, rgba(157,53,255,.04));
}

.panel > * { position: relative; z-index: 1; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.panel-header h2, .panel-header h3, .panel-header p { margin-bottom: 0; }
.panel-grid { display: grid; gap: 1rem; }
.stack { display: grid; gap: 1rem; }
.split { display: grid; gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #a43bff, #7425c2);
    box-shadow: 0 8px 26px rgba(157, 53, 255, .24);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(157, 53, 255, .42); }
.btn-secondary { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.035); box-shadow: none; }
.btn-danger { border-color: rgba(255,92,135,.35); color: #ffd7e2; background: rgba(255,92,135,.1); box-shadow: none; }
.btn-small { min-height: 38px; padding: .55rem .78rem; font-size: .82rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label, .field-label { color: #e9def4; font-size: .84rem; font-weight: 750; }
.field-hint { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
input, select, textarea {
    width: 100%;
    min-height: 47px;
    padding: .72rem .82rem;
    border: 1px solid rgba(205,111,255,.26);
    border-radius: 11px;
    color: var(--text);
    background: rgba(4, 2, 7, .72);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder { color: #776c85; }
input:focus, select:focus, textarea:focus { border-color: var(--purple-bright); box-shadow: 0 0 0 3px rgba(157,53,255,.13); outline: none; }
.check-field { display: flex; align-items: flex-start; gap: .65rem; }
.check-field input { flex: 0 0 auto; width: 20px; min-height: 20px; margin-top: .08rem; accent-color: var(--purple); }

.flash-stack { display: grid; gap: .65rem; width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 0; }
.flash { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .9rem 1rem; border: 1px solid; border-radius: 12px; line-height: 1.45; }
.flash-action { flex: 0 0 auto; }
.flash-success { color: #c7fff0; border-color: rgba(68,255,210,.35); background: rgba(68,255,210,.09); }
.flash-error { color: #ffd7e2; border-color: rgba(255,92,135,.4); background: rgba(255,92,135,.09); }
.flash-warning { color: #ffebbd; border-color: rgba(255,196,92,.4); background: rgba(255,196,92,.09); }

.auth-page { display: grid; place-items: center; min-height: calc(100vh - 160px); }
.auth-card { width: min(100%, 520px); padding: clamp(1.35rem, 5vw, 2.3rem); }
.auth-card-wide { width: min(100%, 940px); }
.auth-card .brand { margin-bottom: 2rem; }
.auth-card h1 { font-size: clamp(2rem, 9vw, 3.25rem); }
.auth-note { display: flex; gap: .7rem; margin-top: 1.2rem; padding: .9rem; border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.03); font-size: .82rem; line-height: 1.5; }
.auth-options { display: grid; gap: 1rem; margin-top: 1.6rem; }
.auth-option { padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.auth-option h2 { margin-bottom: 0; }

.loyalty-hero { display: grid; gap: 1rem; margin-bottom: 1rem; }
.loyalty-card {
    min-height: 300px;
    padding: clamp(1.3rem, 5vw, 2.15rem);
    border-color: rgba(207, 112, 255, .55);
    background:
        radial-gradient(circle at 88% 10%, rgba(240,68,255,.24), transparent 15rem),
        linear-gradient(145deg, rgba(35,15,56,.98), rgba(8,3,13,.98));
    box-shadow: 0 25px 80px rgba(0,0,0,.48), 0 0 45px rgba(157,53,255,.17), inset 0 0 55px rgba(157,53,255,.06);
}
.card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.member-name { margin: .25rem 0 0; font-size: clamp(1.5rem, 6vw, 2.35rem); }
.membership-level-glow {
    --level-accent: #c765ff;
    --level-bright: #f0c6ff;
    --level-soft: rgba(182,72,255,.34);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .72rem;
    min-width: 190px;
    min-height: 54px;
    padding: .62rem .9rem;
    overflow: hidden;
    border: 1px solid var(--level-accent);
    border-radius: 14px;
    color: var(--level-bright);
    background: linear-gradient(135deg, var(--level-soft), rgba(6,2,10,.92) 55%, rgba(255,255,255,.05));
    box-shadow: 0 0 9px var(--level-soft), 0 0 28px var(--level-soft), inset 0 0 20px rgba(255,255,255,.055);
    text-shadow: 0 0 12px var(--level-soft);
}
.membership-level-glow::before { content: ""; position: absolute; z-index: -1; top: -70%; left: -45%; width: 44%; height: 230%; transform: rotate(22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); animation: membership-glint 4.2s ease-in-out infinite; }
.membership-level-light { width: 11px; height: 11px; border-radius: 50%; background: var(--level-bright); box-shadow: 0 0 8px var(--level-accent), 0 0 20px var(--level-accent); animation: membership-pulse 2.1s ease-in-out infinite; }
.membership-level-copy { display: grid; gap: .06rem; line-height: 1.05; }
.membership-level-copy strong { font-size: .82rem; font-weight: 950; letter-spacing: .14em; }
.membership-level-copy small { color: color-mix(in srgb, var(--level-bright) 75%, #9f95aa); font-size: .56rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.membership-level-silver { --level-accent: #dbe5f2; --level-bright: #ffffff; --level-soft: rgba(202,219,237,.3); }
.membership-level-gold { --level-accent: #f6bd45; --level-bright: #ffe8a0; --level-soft: rgba(245,174,46,.32); }
@keyframes membership-pulse { 0%, 100% { transform: scale(.88); opacity: .72; } 50% { transform: scale(1); opacity: 1; } }
@keyframes membership-glint { 0%, 55% { transform: translateX(-120%) rotate(22deg); opacity: 0; } 70% { opacity: 1; } 90%, 100% { transform: translateX(480%) rotate(22deg); opacity: 0; } }
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; margin: 2.1rem 0 1.5rem; }
.stamp {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 62px;
    border: 1px solid rgba(205,111,255,.25);
    border-radius: 50%;
    color: #756981;
    background: rgba(0,0,0,.22);
    font-weight: 900;
}
.stamp img { width: 78%; height: 78%; object-fit: contain; opacity: .14; filter: drop-shadow(0 0 4px transparent); }
.stamp-number { position: absolute; color: #756981; font-size: .7rem; }
.stamp-earned { position: relative; color: white; border-color: var(--purple-bright); background: radial-gradient(circle, #bd5dff, #7621c1 72%); box-shadow: 0 0 20px rgba(178,72,255,.65), inset 0 0 11px rgba(255,255,255,.22); }
.stamp-earned img { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,255,255,.45)); }
.stamp-earned .stamp-number { opacity: 0; }
.card-progress { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.stamp-count { display: block; font-size: clamp(1.6rem, 7vw, 2.55rem); font-weight: 900; letter-spacing: -.05em; }
.reward-label { color: var(--muted); font-size: .8rem; text-align: right; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.stat { min-height: 112px; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.026); }
.stat-value { display: block; margin-bottom: .35rem; font-size: clamp(1.55rem, 6vw, 2.25rem); font-weight: 900; letter-spacing: -.04em; }
.stat-label { color: var(--muted); font-size: .75rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .07em; }

.reward-grid { display: grid; gap: .8rem; }
.reward-card { padding: 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.reward-code { display: block; margin: .75rem 0; padding: .8rem; border: 1px dashed rgba(205,111,255,.5); border-radius: 10px; color: var(--purple-bright); background: rgba(0,0,0,.25); font: 850 1rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: .23rem .55rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.03); font-size: .67rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.badge-available, .badge-approved, .badge-completed, .badge-sent { color: var(--cyan); border-color: rgba(68,255,210,.28); background: rgba(68,255,210,.07); }
.badge-pending, .badge-retry, .badge-warning { color: var(--amber); border-color: rgba(255,196,92,.28); background: rgba(255,196,92,.07); }
.badge-failed, .badge-canceled, .badge-cancelled, .badge-rejected, .badge-deleted { color: var(--red); border-color: rgba(255,92,135,.28); background: rgba(255,92,135,.07); }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 12px 1fr; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid rgba(205,111,255,.11); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 10px; height: 10px; margin-top: .32rem; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px rgba(157,53,255,.8); }
.timeline-content { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.timeline-title { margin: 0 0 .22rem; font-weight: 750; }
.timeline-meta { margin: 0; color: var(--muted); font-size: .76rem; }
.amount-positive { color: var(--cyan); font-weight: 850; white-space: nowrap; }
.amount-negative { color: var(--purple-bright); font-weight: 850; white-space: nowrap; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: rgba(0,0,0,.12); }
th, td { padding: .78rem .85rem; border-bottom: 1px solid rgba(205,111,255,.11); text-align: left; vertical-align: top; font-size: .78rem; }
th { color: #d9cce7; background: rgba(157,53,255,.06); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td code { color: var(--purple-bright); }
.empty { padding: 2.3rem 1rem; color: var(--muted); text-align: center; }

.site-footer, .admin-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; color: #82778e; font-size: .75rem; }
.site-footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); }
.admin-footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.admin-body { background-color: #050208; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; flex-direction: column; width: min(82vw, 280px); padding: 1.15rem; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease; border-right: 1px solid var(--line); background: rgba(8,4,13,.98); box-shadow: var(--shadow); }
.admin-sidebar.is-open { transform: translateX(0); }
.admin-sidebar .brand { margin: .25rem 0 1.75rem; }
.admin-sidebar .brand { display: grid; justify-items: center; width: 100%; text-align: center; }
.admin-nav { display: grid; gap: .35rem; }
.admin-nav a { display: flex; align-items: center; min-height: 44px; padding: .65rem .8rem; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: white; border-color: var(--line); background: rgba(157,53,255,.1); }
.sidebar-clock { display: grid; gap: .35rem; margin-top: auto; padding: 1rem .8rem .25rem; border-top: 1px solid var(--line); }
.sidebar-clock .eyebrow { margin: 0; }
.sidebar-clock time { color: var(--text); font-size: .82rem; font-weight: 800; line-height: 1.45; }
.sidebar-clock small { color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-topbar { position: sticky; top: 0; z-index: 35; display: flex; justify-content: space-between; align-items: center; min-height: 66px; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(5,2,8,.85); backdrop-filter: blur(16px); }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; color: white; background: rgba(255,255,255,.035); }
.admin-main { width: min(1260px, calc(100% - 2rem)); margin: 0 auto; padding: 1.7rem 0 5rem; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.admin-heading h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 3rem); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.metric { min-height: 132px; }
.metric-number { display: block; margin: .3rem 0; font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 900; }
.metric-name { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.code-box { padding: .85rem; border: 1px solid var(--line); border-radius: 10px; color: #e4bbff; background: #050208; font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.step-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.step-item { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: flex-start; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--purple); border-radius: 50%; color: white; background: rgba(157,53,255,.14); font-weight: 900; }
.service-options { display: grid; gap: .55rem; }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 78px; gap: .7rem; align-items: center; padding: .75rem; border: 1px solid rgba(205,111,255,.13); border-radius: 10px; }
.service-row input { width: 20px; min-height: 20px; margin: auto; accent-color: var(--purple); }
.service-head { color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.requirement-list { display: grid; gap: .55rem; margin: 1rem 0; padding: 0; list-style: none; }
.requirement { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.ok { color: var(--cyan); }
.not-ok { color: var(--red); }
.danger-zone { border-color: rgba(255,92,135,.28); }

.admin-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.title-metric { display: inline-flex; align-items: center; gap: .55rem; min-height: 38px; padding: .45rem .7rem; border: 1px solid rgba(200,109,255,.35); border-radius: 10px; color: var(--muted); background: rgba(157,53,255,.08); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.title-metric strong { color: var(--text); font-size: 1rem; }

.member-filters { display: grid; gap: .8rem; align-items: end; margin: 0 0 1.15rem; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.022); }
.member-actions { position: relative; }
.member-actions > summary { list-style: none; }
.member-actions > summary::-webkit-details-marker { display: none; }
.member-action-menu { display: grid; gap: 1rem; width: min(390px, 76vw); margin-top: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-strong); box-shadow: var(--shadow); }
.member-action-menu form { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.member-action-menu form:last-child { padding-bottom: 0; border-bottom: 0; }
.member-action-form { gap: .65rem; }
.member-rewards { display: grid; gap: .65rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.member-reward-row { display: grid; gap: .55rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(157,53,255,.045); }
.member-reward-row code { color: var(--purple-bright); overflow-wrap: anywhere; }
.member-reward-row .badge { justify-self: start; }
.member-reward-row form { padding: 0; border: 0; }
.member-name-status { display: inline-flex; align-items: center; gap: .5rem; }
.account-dot { position: relative; display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.account-dot::after { content: ""; position: absolute; inset: -4px; border: 2px solid currentColor; border-radius: 50%; opacity: .6; animation: account-pulse 1.7s ease-out infinite; }
.account-dot.is-password-active { color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px rgba(68,255,210,.7); }
.account-dot.is-password-missing { color: var(--red); background: var(--red); box-shadow: 0 0 10px rgba(255,92,135,.7); }
@keyframes account-pulse { 0% { transform: scale(.65); opacity: .75; } 75%, 100% { transform: scale(1.6); opacity: 0; } }
.member-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; }
.bulk-action-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(157,53,255,.04); }
.bulk-select { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .78rem; font-weight: 750; }
.bulk-select input, td input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--purple); }
.select-column { width: 44px; text-align: center; }
.membership-bulk-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.membership-bulk-controls select { width: auto; min-width: 150px; min-height: 38px; padding-block: .45rem; }
.membership-badge { display: inline-flex; align-items: center; min-height: 27px; padding: .24rem .58rem; border: 1px solid; border-radius: 99px; font-size: .67rem; font-weight: 900; letter-spacing: .08em; }
.membership-badge-standard { color: #ddadff; border-color: rgba(184,92,255,.45); background: rgba(157,53,255,.1); box-shadow: 0 0 12px rgba(157,53,255,.15); }
.membership-badge-silver { color: #eef5ff; border-color: rgba(210,222,237,.46); background: rgba(195,210,226,.1); box-shadow: 0 0 12px rgba(210,222,237,.13); }
.membership-badge-gold { color: #ffe3a0; border-color: rgba(245,189,74,.48); background: rgba(245,174,46,.1); box-shadow: 0 0 12px rgba(245,174,46,.16); }

.branding-logo-grid { display: grid; gap: 1rem; }
.branding-logo-editor { display: grid; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.branding-logo-preview { display: grid; place-items: center; min-height: 150px; padding: 1rem; border: 1px dashed rgba(205,111,255,.32); border-radius: 11px; background: #07030b; }
.branding-logo-preview img { width: min(280px, 90%); max-height: 125px; object-fit: contain; }
.settings-editor-group { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(157,53,255,.025); }
.settings-editor-group > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; padding: 1rem; cursor: pointer; list-style: none; }
.settings-editor-group > summary::-webkit-details-marker { display: none; }
.settings-editor-fields { padding: 0 1rem 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }

.placeholder-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.placeholder-list code { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 7px; color: var(--purple-bright); background: rgba(157,53,255,.07); font-size: .74rem; }
.notification-template-list { display: grid; gap: 1rem; }
.notification-template > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; }
.notification-template > summary::-webkit-details-marker { display: none; }
.notification-template > summary strong, .notification-template > summary small { display: block; }
.notification-template > summary small { margin-top: .3rem; color: var(--muted); }
.notification-editor-wrap { display: grid; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.rich-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem; border-bottom: 1px solid var(--line); background: rgba(157,53,255,.06); }
.rich-toolbar button { min-height: 34px; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--panel); font-size: .75rem; }
.rich-toolbar select { width: auto; min-width: 90px; min-height: 34px; padding: .3rem .45rem; border-radius: 7px; font-size: .72rem; }
.editor-colour { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); font-size: .75rem; font-weight: 800; }
.editor-colour input { width: 26px; min-height: 24px; padding: 0; border: 0; border-radius: 4px; }
.editor-file-input { display: none; }
.rich-visual { min-height: 330px; padding: 1.25rem; overflow: auto; color: #f8f4ff; background: #08040e; line-height: 1.55; }
.rich-visual img { max-width: 100%; height: auto; cursor: pointer; }
.rich-visual img.is-selected { outline: 3px solid #44ffd2; outline-offset: 3px; }
.rich-source { display: none; min-height: 330px; border: 0; border-radius: 0; color: #d9b7ed; background: #07030b; font: .76rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.rich-editor.is-source .rich-visual { display: none; }
.rich-editor.is-source .rich-source { display: block; }
.email-message-view { width: min(660px, 76vw); margin-top: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); box-shadow: var(--shadow); }
.email-message-view pre { max-height: 280px; overflow: auto; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .72rem; }

.calendar-header { align-items: center; }
.calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.booking-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekday { padding: .4rem .15rem; color: var(--muted); font-size: .62rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.calendar-day { position: relative; min-height: 64px; padding: .36rem; overflow: hidden; border: 1px solid rgba(205,111,255,.12); border-radius: 7px; background: rgba(255,255,255,.018); }
.calendar-day.is-blank { visibility: hidden; }
.calendar-day.is-today { border-color: var(--purple-bright); box-shadow: inset 0 0 0 1px rgba(200,109,255,.35); }
.calendar-day-number { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .68rem; font-weight: 850; }
.calendar-day-event { display: block; width: 100%; margin-top: 2px; overflow: hidden; padding: .18rem .26rem; border-radius: 4px; color: white; background: linear-gradient(90deg, #8027cc, #a43bff); font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-more { display: block; margin-top: .15rem; color: var(--purple-bright); font-size: .53rem; }
.calendar-lists { display: grid; gap: 1rem; margin-top: 1.25rem; }
.calendar-event-list { display: grid; gap: .55rem; }
.calendar-event-card { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.022); }
.calendar-event-card strong, .calendar-event-card span { display: block; }
.empty.compact { padding: 1rem; }
.mail-settings { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(157,53,255,.035); }
.mail-settings[hidden] { display: none; }
.email-error { color: var(--red); overflow-wrap: anywhere; }

.auth-card-signin { width: min(100%, 610px); }
.auth-signin-form { margin: 1.35rem 0 1rem; }
.auth-password-link { display: block; width: 100%; padding: .6rem; border: 0; color: var(--purple-bright); background: transparent; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-align: center; }
.auth-password-link:hover { color: #fff; text-shadow: 0 0 14px rgba(200,109,255,.75); }
.auth-dialog { width: min(540px, calc(100% - 2rem)); padding: 1.35rem; border: 1px solid rgba(200,109,255,.5); border-radius: 18px; color: var(--text); background: #120a1e; box-shadow: 0 30px 100px rgba(0,0,0,.7), 0 0 45px rgba(157,53,255,.2); }
.auth-dialog:not([open]) { display: none; }
.auth-dialog::backdrop { background: rgba(2,0,5,.78); backdrop-filter: blur(6px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dialog-header h2 { margin-top: .2rem; }
.dialog-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.04); font-size: 1.4rem; }
.dialog-logo { display: block; width: min(190px, 60%); max-height: 90px; margin: 0 auto 1rem; object-fit: contain; }
.support-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-color: rgba(200,109,255,.42); background: linear-gradient(135deg, rgba(74,22,111,.46), rgba(11,5,18,.95)); }
.support-panel h2, .support-panel p { margin-bottom: .45rem; }
.support-button { box-shadow: 0 0 20px rgba(157,53,255,.28); }
.support-dialog { width: min(650px, calc(100% - 2rem)); }
.support-dialog input[readonly] { color: var(--muted); background: rgba(255,255,255,.025); }

.recordings-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-color: rgba(207,105,255,.52); background: radial-gradient(circle at 8% 50%, rgba(166,53,255,.24), transparent 32%), linear-gradient(135deg, rgba(54,16,86,.74), rgba(8,4,14,.97)); }
.recordings-panel-copy { display: flex; align-items: center; gap: 1rem; min-width: min(100%, 380px); }
.recordings-panel-copy h2, .recordings-panel-copy p { margin-bottom: .35rem; }
.recordings-mark { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; border: 1px solid rgba(224,142,255,.66); border-radius: 17px; color: #fff; background: linear-gradient(145deg, #bc46ff, #5a178f); box-shadow: 0 0 16px rgba(200,73,255,.62), 0 0 36px rgba(136,37,216,.3); font-size: 1.65rem; font-weight: 900; }
.recordings-button { border-color: rgba(226,144,255,.86); box-shadow: 0 0 13px rgba(197,65,255,.68), 0 0 34px rgba(142,37,222,.34); }
.recordings-panel-empty { border-color: var(--line); background: linear-gradient(135deg, rgba(42,18,62,.48), rgba(8,4,14,.97)); }
.recordings-panel-empty .recordings-mark { opacity: .62; filter: grayscale(.3); }
.recordings-link-form .button-row { align-items: stretch; }

.pwa-install-button { gap: .42rem; white-space: nowrap; }
.pwa-install-login { width: 100%; margin: .25rem 0 1rem; }
.pwa-install-dialog { width: min(590px, calc(100% - 2rem)); padding: 1.35rem; border: 1px solid rgba(200,109,255,.55); border-radius: 20px; color: var(--text); background: linear-gradient(155deg, #180b26, #09040f 72%); box-shadow: 0 30px 100px rgba(0,0,0,.75), 0 0 52px rgba(157,53,255,.24); }
.pwa-install-dialog:not([open]) { display: none; }
.pwa-install-dialog::backdrop { background: rgba(2,0,5,.82); backdrop-filter: blur(7px); }
.pwa-install-hero { display: grid; grid-template-columns: 76px minmax(0, 1fr) 38px; gap: .9rem; align-items: center; }
.pwa-install-hero img { width: 76px; height: 76px; border: 1px solid rgba(230,152,255,.45); border-radius: 19px; box-shadow: 0 0 24px rgba(196,64,255,.3); }
.pwa-install-hero h2 { margin: .2rem 0 0; font-size: clamp(1.35rem, 5vw, 1.85rem); }
.pwa-install-steps { display: grid; gap: .72rem; margin: 1rem 0; padding: 0; counter-reset: pwa-step; list-style: none; }
.pwa-install-steps li { position: relative; min-height: 52px; padding: .7rem .75rem .7rem 3.25rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(157,53,255,.055); counter-increment: pwa-step; }
.pwa-install-steps li::before { content: counter(pwa-step); position: absolute; top: .68rem; left: .72rem; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--purple-bright); border-radius: 50%; color: #fff; background: rgba(157,53,255,.18); font-weight: 900; }
.pwa-install-steps strong, .pwa-install-steps span { display: block; }
.pwa-install-steps span { margin-top: .18rem; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.pwa-install-generic { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(157,53,255,.055); }
.pwa-install-generic p { margin: 0; }
.pwa-install-generic p + p { margin-top: .5rem; color: var(--muted); font-size: .82rem; }
.pwa-dialog-actions { justify-content: flex-end; margin-top: 1rem; }
@media (display-mode: standalone), (display-mode: fullscreen) { [data-pwa-install] { display: none !important; } }

.calendar-panel-heading { align-items: center; }
.outlook-calendar-toolbar { display: grid; gap: .8rem; align-items: center; margin-bottom: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(157,53,255,.035); }
.outlook-calendar-title { text-align: center; }
.calendar-view-switch { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.22); }
.calendar-view-switch button { min-height: 34px; padding: .35rem .6rem; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .74rem; font-weight: 850; }
.calendar-view-switch button.is-active { color: #fff; background: linear-gradient(135deg, #7821c4, #a23cff); box-shadow: 0 0 14px rgba(157,53,255,.25); }
.outlook-calendar-stage { min-height: 360px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.14); }
.outlook-agenda { display: grid; min-width: 940px; min-height: 360px; }
.outlook-agenda.is-week { grid-template-columns: repeat(7, minmax(130px, 1fr)); }
.outlook-agenda.is-day { min-width: 0; grid-template-columns: 1fr; }
.outlook-day-column { min-width: 0; padding: .55rem; border-right: 1px solid var(--line); }
.outlook-day-column:last-child { border-right: 0; }
.outlook-day-column > header { position: sticky; top: 0; z-index: 2; margin: -.55rem -.55rem .55rem; padding: .6rem; border-bottom: 1px solid var(--line); color: var(--muted); background: #10081a; font-size: .72rem; font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.outlook-day-column.is-today > header { color: #fff; background: linear-gradient(135deg, rgba(124,32,203,.9), rgba(157,53,255,.75)); }
.outlook-day-empty { padding: 1.5rem .3rem; color: var(--muted); font-size: .7rem; text-align: center; }
.outlook-event { display: grid; gap: .22rem; margin-bottom: .5rem; padding: .55rem; overflow: hidden; border: 1px solid rgba(200,109,255,.34); border-left: 3px solid var(--purple-bright); border-radius: 8px; background: linear-gradient(145deg, rgba(76,25,116,.75), rgba(26,10,41,.92)); }
.outlook-event.is-current { border-color: rgba(68,255,210,.55); border-left-color: var(--cyan); box-shadow: 0 0 18px rgba(68,255,210,.12); }
.outlook-event-time { color: var(--purple-bright); font-size: .68rem; }
.outlook-event-name { overflow: hidden; font-size: .76rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.outlook-event-service, .outlook-event-meta { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.outlook-event .badge { justify-self: start; margin-top: .2rem; }
.outlook-month-grid { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); min-width: 760px; }
.outlook-weekday { padding: .55rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); background: #10081a; font-size: .68rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.outlook-month-day { min-height: 125px; padding: .45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outlook-month-day.is-blank { background: rgba(0,0,0,.18); }
.outlook-month-day.is-today { box-shadow: inset 0 0 0 2px var(--purple-bright); }
.outlook-month-day > strong { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .72rem; }
.outlook-event.is-compact { gap: .08rem; margin-bottom: .28rem; padding: .35rem; }
.outlook-event.is-compact .outlook-event-time { font-size: .58rem; }
.outlook-event.is-compact .outlook-event-name, .outlook-event.is-compact .outlook-event-service { font-size: .6rem; }
.outlook-more { display: block; color: var(--purple-bright); font-size: .62rem; font-weight: 800; }

.membership-dashboard-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; margin: .75rem 0 1rem; }
.membership-upgrade-button { border-color: rgba(216,124,255,.85); background: linear-gradient(135deg, #7421bd, #b63cff); box-shadow: 0 0 10px rgba(189,61,255,.7), 0 0 28px rgba(142,37,222,.34); }
.membership-heading .btn { margin-top: .8rem; }
.membership-back-button { border-color: rgba(216,124,255,.9); color: #fff; background: linear-gradient(135deg, rgba(105,31,170,.92), rgba(174,53,242,.92)); box-shadow: 0 0 11px rgba(194,74,255,.78), 0 0 30px rgba(143,36,224,.38); }
.membership-back-button:hover { border-color: #e0a0ff; box-shadow: 0 0 15px rgba(210,105,255,.92), 0 0 40px rgba(151,44,224,.5); }
.membership-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; border-color: rgba(196,92,255,.4); background: linear-gradient(135deg, rgba(70,21,105,.5), rgba(13,6,22,.94)); }
.membership-current h2 { margin-bottom: .35rem; }
.membership-current p { margin: .4rem 0; }
.membership-code { display: inline-block; width: auto; margin: 0; }
.warning-text { color: #ffca6b; }
.membership-plan-grid, .admin-plan-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.membership-plan { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.membership-plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--purple-bright); box-shadow: 0 0 18px var(--purple-bright); }
.membership-plan-silver::before { background: #e6e9f2; box-shadow: 0 0 18px #bdc7dc; }
.membership-plan-gold::before { background: #ffcf59; box-shadow: 0 0 18px #ffb82d; }
.membership-plan > .membership-badge { align-self: flex-start; margin-bottom: 10px; }
.membership-plan h2 { margin: .45rem 0; }
.membership-plan > form, .membership-plan > .btn { margin-top: auto; }
.membership-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; margin: .85rem 0; }
.membership-price strong { font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1; }
.membership-price span { color: var(--muted); font-size: .76rem; }
.membership-benefits { display: grid; gap: .55rem; margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.membership-benefits li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.membership-benefits li::before { content: "✦"; position: absolute; left: 0; color: var(--purple-bright); }
.membership-plan-silver .membership-benefits li::before { color: #dce1ed; }
.membership-plan-gold .membership-benefits li::before { color: #ffd86d; }
.membership-discount { padding: .75rem; border: 1px solid var(--line); border-radius: 10px; text-align: center; background: rgba(157,53,255,.07); }
.stripe-checkout-status { min-height: 1.25rem; margin: .55rem 0 0; color: var(--muted); }
.error-text { color: var(--red); }
.membership-terms { margin-bottom: 1rem; }
.subscription-stats { margin-bottom: 1rem; }
.subscription-stats .stat { min-width: 0; }
.subscription-member-groups { display: grid; gap: 1rem; margin-bottom: 1rem; }
.membership-member-stats { margin-bottom: 1rem; }
.inset-panel { padding: 1rem; background: rgba(0,0,0,.18); }
.copy-field { display: flex; align-items: center; gap: .5rem; padding: .6rem; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.22); }
.copy-field code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.check-row { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.check-row input { width: auto; }

@media (min-width: 760px) {
    .membership-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .topbar-user { display: none; }
    .preview-banner { flex-wrap: wrap; justify-content: space-between; top: 72px; }
    .calendar-header { align-items: flex-start; }
    .calendar-header .btn { flex: 0 0 auto; }
    .calendar-day { padding: .25rem; }
    .calendar-day-event { height: 6px; padding: 0; color: transparent; border-radius: 99px; }
    .calendar-more { display: none; }
    .outlook-calendar-toolbar { align-items: stretch; }
    .calendar-panel-heading { align-items: flex-start; }
    .site-header .pwa-install-button, .admin-topbar .pwa-install-button { padding-inline: .55rem; font-size: .67rem; }
    .pwa-install-hero { grid-template-columns: 62px minmax(0, 1fr) 38px; gap: .65rem; }
    .pwa-install-hero img { width: 62px; height: 62px; border-radius: 16px; }
    .membership-level-glow { min-width: 166px; min-height: 48px; margin-left: auto; padding: .55rem .72rem; }
    .membership-level-copy strong { font-size: .73rem; }
}

@media (min-width: 700px) {
    .page-shell { padding-top: 3rem; }
    .panel { padding: 1.5rem; }
    .panel-grid, .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field.span-two { grid-column: 1 / -1; }
    .loyalty-hero { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .75fr); }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .stamp-grid { gap: .85rem; }
    .auth-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .branding-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .email-filters { grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(190px, 1fr) auto; }
    .calendar-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calendar-day { min-height: 92px; }
    .calendar-day-event { font-size: .62rem; }
}

@media (min-width: 860px) {
    .outlook-calendar-toolbar { grid-template-columns: auto 1fr auto; }
}

@media (min-width: 1020px) {
    .admin-sidebar { transform: none; }
    .admin-topbar { margin-left: 280px; padding-inline: 1.6rem; }
    .admin-main { width: auto; margin-left: 280px; padding: 2.2rem clamp(1.5rem, 4vw, 3.2rem) 5rem; }
    .menu-toggle { display: none; }
    .metric-grid { grid-template-columns: repeat(6, 1fr); }
    .metric { min-height: 146px; }
    .admin-two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .65fr); gap: 1rem; }
    .membership-member-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .subscription-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .member-filters { grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(120px, 1fr)) auto; }
}

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