/* ============================================================
   RowFold — Auth, onboarding, members, billing
   Design tokens and body already set by site.css
   ============================================================ */

/* ---- Auth stage (dark fullscreen) ---- */
.auth-stage {
    min-height: 100vh;
    background: var(--ink-900);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: auto;
    padding: 40px 24px 56px;
}
.auth-stage::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(217,242,92,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}
.auth-stage::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 78% 12%, rgba(217,242,92,0.16), transparent 46%),
        radial-gradient(ellipse at 14% 86%, rgba(124,92,255,0.18), transparent 50%);
}

.auth-top {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 36px;
}
.auth-wordmark {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-size: 25px;
    color: #F8F6EE;
}
.auth-wordmark .mark {
    width: 34px;
    height: 34px;
    line-height: 1;
}
.auth-wordmark em { font-style: italic; color: var(--accent); }
.auth-top-link { font-size: 13.5px; color: var(--ink-300); display: flex; gap: 7px; align-items: center; }
.auth-top-link a { color: var(--accent); font-weight: 600; border-bottom: 1px solid transparent; }
.auth-top-link a:hover { border-color: var(--accent); }

.auth-center {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
    padding: 8px 0;
}
.auth-card {
    width: 100%;
    max-width: 432px;
    background: var(--card);
    color: var(--text);
    border-radius: 18px;
    box-shadow: 0 40px 90px -40px rgba(7,9,26,0.7), 0 12px 28px -16px rgba(7,9,26,0.45);
    overflow: hidden;
    animation: auth-card-rise 0.45s cubic-bezier(0.16,1,0.3,1);
}
@keyframes auth-card-rise {
    from { transform: translateY(14px) scale(0.985); opacity: 0.6; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.auth-card-accent { height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.auth-card-body { padding: 34px 36px 32px; }

.auth-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 12px;
}
.auth-title {
    font-family: var(--font-display);
    font-size: 33px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 9px;
    color: var(--text);
}
.auth-title em { font-style: italic; color: var(--accent-deep); }
.auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; line-height: 1.5; }

/* SSO buttons */
.sso-stack { display: flex; flex-direction: column; gap: 9px; }
.sso-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    transition: 120ms;
    cursor: pointer;
    font-family: inherit;
}
.sso-btn:hover:not(:disabled) { background: var(--card-2); border-color: var(--border-2); transform: translateY(-1px); }
.sso-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sso-ico { width: 19px; height: 19px; flex-shrink: 0; display: grid; place-items: center; }
.sso-label { flex: 1; text-align: left; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-faint);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Method toggle */
.method-toggle {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 22px;
}
.method-toggle button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 7px;
    transition: 120ms;
    cursor: pointer;
}
.method-toggle button.active {
    background: #fff;
    color: var(--ink-900);
    box-shadow: 0 1px 2px rgba(14,20,40,0.08), 0 0 0 1px var(--border);
}

.auth-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.checkbox-row input[type=checkbox] { display: none; }
.checkbox-box {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid var(--border-2);
    background: #fff;
    display: grid;
    place-items: center;
    transition: 120ms;
    flex-shrink: 0;
}
.checkbox-row input:checked + .checkbox-box { background: var(--ink-900); border-color: var(--ink-900); color: var(--accent); }
.check-svg { display: none; }
.checkbox-row input:checked + .checkbox-box .check-svg { display: block; }

.link-accent { font-size: 13px; color: var(--ink-700); font-weight: 600; border-bottom: 1px solid transparent; }
.link-accent:hover { border-color: var(--ink-700); }

.auth-foot {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    font-size: 12.5px;
    color: var(--ink-300);
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.auth-foot a { color: var(--ink-300); }
.auth-foot a:hover { color: var(--accent); }
.auth-foot-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); }

/* Error banner */
.auth-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--coral-soft);
    border: 1px solid #FFC7B5;
    color: #B8362C;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.45;
}
.auth-banner.ok { background: var(--mint-soft); border-color: #A5E6CB; color: #117352; }

/* Password strength */
.pw-strength { display: flex; gap: 4px; margin-top: 9px; }
.pw-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: 200ms; }
.pw-strength-label { font-size: 11.5px; margin-top: 6px; color: var(--text-muted); }

/* ============================================================
   Shared form elements (also used in app)
   ============================================================ */
.field-row { margin-bottom: 16px; }
.field-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
}
.field {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 14px;
    color: inherit;
    outline: none;
    transition: 120ms;
    font-family: inherit;
}
.field::placeholder { color: var(--text-faint); }
.field:focus { border-color: var(--ink-700); box-shadow: 0 0 0 3px rgba(217,242,92,0.30); }
.field.has-error { border-color: var(--coral); }
.field.has-error:focus { box-shadow: 0 0 0 3px rgba(255,107,74,0.22); }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.field-error {
    font-size: 12px;
    color: var(--coral);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.field-wrap { position: relative; }
.field-wrap .field { padding-right: 42px; }
.field-affix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}
.field-affix:hover { color: var(--text); background: rgba(14,20,40,0.05); }

/* Shared buttons (override site.css .btn for auth pages too) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: 130ms ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { background: var(--paper-2); border-color: var(--border-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.accent:hover:not(:disabled) { background: var(--accent-deep); }
/* .btn.primary / .btn.accent intentionally NOT redefined here — auth loads site.css,
   so buttons inherit the one canonical identity instead of forking a second one. */
.btn.primary:hover { background: var(--ink-800); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: rgba(14,20,40,0.05); color: var(--text); }
.btn.lg { padding: 12px 22px; font-size: 14.5px; border-radius: 11px; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }

/* ============================================================
   Onboarding stage (paper background)
   ============================================================ */
.ob-stage {
    min-height: 100vh;
    background: var(--paper);
    display: flex;
    flex-direction: column;
}
.ob-stage::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 85% -5%, rgba(217,242,92,0.22), transparent 42%),
        radial-gradient(ellipse at 0% 100%, rgba(124,92,255,0.08), transparent 45%);
}
.ob-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(244,238,223,0.85);
    backdrop-filter: blur(8px);
}
.ob-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; }
.ob-brand .mark { width: 30px; height: 30px; }
.ob-brand em { font-style: italic; color: var(--text-2); }

/* Step bar */
.ob-steps { display: flex; align-items: center; }
.ob-step { display: flex; align-items: center; gap: 9px; }
.ob-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 600;
    border: 1.5px solid var(--border-2);
    background: #fff;
    color: var(--text-muted);
    transition: 200ms;
}
.ob-step.active .ob-step-num { background: var(--ink-900); border-color: var(--ink-900); color: var(--accent); }
.ob-step.done .ob-step-num   { background: var(--accent); border-color: var(--accent-deep); color: var(--ink-900); }
.ob-step-label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.ob-step.active .ob-step-label, .ob-step.done .ob-step-label { color: var(--text); }
.ob-step-bar { width: 30px; height: 1.5px; background: var(--border-2); margin: 0 12px; transition: 200ms; }
.ob-step-bar.filled { background: var(--accent-deep); }

.ob-body {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 72px;
}
.ob-panel { width: 100%; max-width: 720px; animation: auth-card-rise 0.4s cubic-bezier(0.16,1,0.3,1); }
.ob-panel.wide { max-width: 940px; }
.ob-eyebrow {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-align: center;
}
.ob-title {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -0.022em;
    text-align: center;
    margin-bottom: 12px;
}
.ob-title em { font-style: italic; color: var(--accent-deep); }
.ob-sub {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.55;
}

/* Use-case cards */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.use-card {
    background: #fff;
    border: 2px solid var(--border-soft);
    border-radius: 15px;
    padding: 20px 18px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: 140ms;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
.use-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.use-card.selected { border-color: var(--ink-900); background: var(--accent-tint-2); }
.use-ico {
    width: 42px; height: 42px; border-radius: 11px;
    display: grid; place-items: center; font-size: 21px; margin-bottom: 10px;
}
.use-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.use-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.use-check {
    position: absolute; top: 14px; right: 14px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--ink-900); color: var(--accent);
    display: grid; place-items: center;
    opacity: 0; transform: scale(0.5); transition: 160ms;
}
.use-card.selected .use-check { opacity: 1; transform: scale(1); }

/* Template picker */
.tpl-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tpl-search {
    flex: 1; min-width: 200px;
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
    color: var(--text-muted);
}
.tpl-search input { border: none; background: none; outline: none; flex: 1; color: var(--text); font-size: 13.5px; font-family: inherit; }
.tpl-cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chip {
    border: 1px solid var(--border); background: #fff; border-radius: 999px;
    padding: 6px 13px; font-size: 12.5px; font-weight: 500; color: var(--text-2);
    transition: 120ms; cursor: pointer; font-family: inherit;
}
.cat-chip:hover { border-color: var(--border-2); background: var(--card-2); }
.cat-chip.active { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

.tpl-cat-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
    color: var(--text-muted); margin: 22px 0 11px;
}
.tpl-cat-label:first-child { margin-top: 0; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tpl-card {
    background: #fff; border: 2px solid var(--border-soft); border-radius: 14px;
    padding: 15px 16px; cursor: pointer; text-align: left; font: inherit; color: inherit;
    transition: 140ms; position: relative; display: flex; flex-direction: column;
}
.tpl-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl-card.selected { border-color: var(--ink-900); background: var(--accent-tint-2); }
.tpl-card.blank { border-style: dashed; border-color: var(--border-2); background: var(--card-2); }
.tpl-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.tpl-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.tpl-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.tpl-tagline { font-size: 11px; color: var(--accent-deep); font-weight: 600; margin-top: 1px; line-height: 1.3; }
.tpl-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin: 0 0 11px; flex: 1; }
.tpl-tables { display: flex; flex-wrap: wrap; gap: 4px; }
.tpl-chip { font-size: 10.5px; padding: 2px 7px; background: var(--paper-2); border-radius: 999px; color: var(--text-2); font-weight: 500; }
.tpl-card .use-check { position: absolute; top: 12px; right: 12px; }
.tpl-card.selected .use-check { opacity: 1; transform: scale(1); }

.ob-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-soft);
}
.ob-actions .spacer { flex: 1; }

/* Workspace name card */
.ws-name-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 24px 26px; box-shadow: 0 1px 0 rgba(14,20,40,0.04), 0 1px 2px rgba(14,20,40,0.05);
    margin-bottom: 28px;
}
.ws-name-grid { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; }
.ws-icon-pick { display: flex; flex-direction: column; gap: 8px; align-items: center; position: relative; }
.ws-icon-preview {
    width: 64px; height: 64px; border-radius: 16px;
    display: grid; place-items: center; font-size: 32px;
    transition: 160ms; cursor: pointer; border: none;
}
.emoji-pop {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 10px; box-shadow: 0 6px 18px -10px rgba(14,20,40,0.18), 0 2px 4px rgba(14,20,40,0.05);
    position: absolute; z-index: 30; width: 260px; top: 70px; left: 0;
}
.emoji-pop button { border: none; background: none; font-size: 20px; padding: 5px; border-radius: 8px; cursor: pointer; }
.emoji-pop button:hover { background: var(--paper-2); }

/* Invite step */
.invite-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 1px 0 rgba(14,20,40,0.04); overflow: hidden;
}
.invite-add-row {
    display: flex; gap: 10px; padding: 20px 22px;
    border-bottom: 1px solid var(--border-soft); align-items: flex-start;
}
.invite-add-row .field { flex: 1; }
.role-select {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374705D' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") no-repeat right 10px center / 15px;
    border-radius: 9px;
    padding: 11px 32px 11px 13px;
    font-size: 13.5px;
    min-width: 130px;
    font-family: inherit;
    color: inherit;
    outline: none;
    cursor: pointer;
}
.invite-list { display: flex; flex-direction: column; }
.invite-item {
    display: flex; align-items: center; gap: 13px;
    padding: 14px 22px; border-bottom: 1px solid var(--border-soft);
}
.invite-item:last-child { border-bottom: none; }
.invite-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--violet); color: #fff;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.invite-email { flex: 1; font-size: 13.5px; font-weight: 500; }
.invite-email .sub { font-size: 11.5px; color: var(--text-muted); font-weight: 400; }
.invite-empty { padding: 30px 22px; text-align: center; color: var(--text-faint); font-size: 13px; font-style: italic; }
.icon-btn {
    background: none; border: 1px solid transparent; border-radius: 7px;
    width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); color: var(--text); border-color: var(--border); }

/* Seat callout */
.seat-callout {
    display: flex; align-items: center; gap: 13px;
    background: var(--ink-900); color: var(--paper); border-radius: 14px;
    padding: 16px 20px; margin-bottom: 24px;
}
.sc-icon {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: var(--accent); color: var(--ink-900); display: grid; place-items: center;
}
.sc-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-200); }
.sc-text strong { color: var(--paper); }
.sc-text em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Onboarding avatar */
.ob-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--violet); color: #fff;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 600;
}

/* ============================================================
   Members page
   ============================================================ */
.seat-meter-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px 24px; margin-bottom: 22px;
    display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
}
.seat-meter-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.seat-meter-num { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.seat-meter-num .of { color: var(--text-faint); }
.seat-meter-label { font-size: 13px; color: var(--text-muted); }
.seat-bar { height: 10px; border-radius: 6px; background: var(--paper-2); overflow: hidden; display: flex; }
.seat-bar .fill { height: 100%; background: var(--ink-900); border-radius: 6px 0 0 6px; transition: width 0.4s cubic-bezier(0.16,1,0.3,1); }
.seat-bar .fill.pending {
    background: repeating-linear-gradient(45deg, var(--amber), var(--amber) 5px, #e8a93a 5px, #e8a93a 10px);
}
.seat-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.seat-legend .lg-item { display: flex; align-items: center; gap: 6px; }
.lg-dot { width: 9px; height: 9px; border-radius: 3px; }
.seat-cost { text-align: right; }
.seat-cost .amt { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.seat-cost .amt .unit { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); font-weight: 500; }
.seat-cost .note { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

.member-table-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mt-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.tab-mini { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper-2); border: 1px solid var(--border); border-radius: 9px; }
.tab-mini button { border: none; background: none; padding: 6px 13px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); border-radius: 6px; cursor: pointer; font-family: inherit; }
.tab-mini button.active { background: #fff; color: var(--ink-900); box-shadow: 0 1px 2px rgba(14,20,40,0.07), 0 0 0 1px var(--border); }

.member-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; border-bottom: 1px solid var(--border-soft); transition: 100ms;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: var(--card-2); }
.m-info { flex: 1; min-width: 0; }
.m-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.m-name .you { font-size: 10px; font-weight: 600; color: var(--text-muted); background: var(--paper-2); padding: 1px 6px; border-radius: 999px; }
.m-mail { font-size: 12.5px; color: var(--text-muted); }
.m-ws { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.mini-sw { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

/* Role pills */
.role-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.role-pill.admin   { background: var(--accent-tint-2); color: #5b7300; border: 1px solid var(--accent-deep); }
.role-pill.editor  { background: var(--violet-soft); color: #4F35BF; border: 1px solid #D6CAFF; }
.role-pill.viewer  { background: var(--paper-2); color: var(--text-2); border: 1px solid var(--border); }
.role-pill.owner   { background: var(--ink-900); color: var(--accent); border: 1px solid var(--ink-900); }

/* Status pills */
.status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.status-pill.active  { background: var(--mint-soft); color: #117352; }
.status-pill.pending { background: var(--amber-soft); color: #8E5A0B; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================================================
   Billing page
   ============================================================ */
.billing-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.bill-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; }
.bill-card.dark {
    background: var(--ink-900); color: var(--paper); border-color: var(--ink-900);
    position: relative; overflow: hidden;
}
.bill-card.dark::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 90% 0%, rgba(217,242,92,0.16), transparent 50%);
    pointer-events: none;
}
.bill-card.dark > * { position: relative; }
.bill-plan-name { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.01em; }
.bill-plan-name em { color: var(--accent); font-style: italic; }
.bill-plan-blurb { font-size: 13px; color: var(--ink-300); margin-top: 4px; }
.bill-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13.5px; }
.bill-line:last-child { border-bottom: none; }
.bl-label { color: var(--ink-300); }
.bl-val { font-weight: 600; }
.bill-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.bill-total .lbl { font-size: 13px; color: var(--ink-300); }
.bill-total .amt { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.bill-total .amt .unit { font-family: var(--font-sans); font-size: 13px; color: var(--ink-300); font-weight: 500; }

.usage-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.usage-row:last-child { border-bottom: none; }
.u-label { font-size: 13.5px; font-weight: 500; }
.u-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.u-val { font-size: 13.5px; font-weight: 600; }
.u-included { font-size: 11px; color: #117352; font-weight: 600; }

.billing-toggle {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px; background: var(--paper-2); border: 1px solid var(--border); border-radius: 10px;
}
.billing-toggle button {
    border: none; background: none; padding: 7px 15px; font-size: 12.5px; font-weight: 500;
    color: var(--text-muted); border-radius: 7px; transition: 120ms; cursor: pointer; font-family: inherit;
}
.billing-toggle button.active { background: #fff; color: var(--ink-900); box-shadow: 0 1px 2px rgba(14,20,40,0.07), 0 0 0 1px var(--border); }
.save-tag { font-size: 9.5px; color: var(--accent-deep); font-weight: 700; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tier {
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 26px 22px 24px; display: flex; flex-direction: column; transition: 160ms; position: relative;
}
.tier.current { border-color: var(--ink-900); box-shadow: 0 0 0 1px var(--ink-900); }
.tier.featured {
    background: var(--ink-900); color: var(--paper); border-color: var(--ink-900);
    box-shadow: 0 6px 18px -10px rgba(14,20,40,0.18), 0 2px 4px rgba(14,20,40,0.05);
}
.tier.featured::before {
    content: 'Most popular'; position: absolute; top: -11px; left: 22px;
    background: var(--accent); color: var(--ink-900); font-size: 9.5px;
    letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
}
.tier-current-tag {
    position: absolute; top: -11px; right: 22px;
    background: var(--mint); color: #073d29; font-size: 9.5px;
    letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
}
.tier-name { font-family: var(--font-display); font-size: 26px; line-height: 1; margin-bottom: 6px; }
.tier-blurb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.45; min-height: 36px; }
.tier.featured .tier-blurb { color: var(--ink-300); }
.tier-price { display: flex; align-items: baseline; gap: 3px; }
.tier-price .amt { font-family: var(--font-display); font-size: 46px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.tier-price .unit { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.tier.featured .tier-price .unit { color: var(--ink-300); }
.tier-billing { font-size: 11.5px; color: var(--text-muted); margin: 6px 0 18px; }
.tier.featured .tier-billing { color: var(--ink-300); }
.tier ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.tier li { font-size: 12.5px; line-height: 1.4; padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.tier li::before { content: '✓'; color: var(--mint); font-weight: 700; flex-shrink: 0; }
.tier.featured li::before { color: var(--accent); }
.tier li.muted { color: var(--text-muted); }
.tier li.muted::before { content: '·'; color: var(--text-faint); }
.tier.featured li.muted { color: var(--ink-300); }

/* ============================================================
   Accent / background color utilities (auth pages)
   ============================================================ */
.bg-violet    { background: var(--violet); color: #fff; }
.bg-coral     { background: var(--coral); color: #fff; }
.bg-mint      { background: var(--mint); color: var(--ink-900); }
.bg-sky       { background: var(--sky); color: #fff; }
.bg-amber     { background: var(--amber); color: var(--ink-900); }
.bg-rose      { background: var(--rose); color: #fff; }
.bg-ink       { background: var(--ink); color: #fff; }
.bg-chartreuse{ background: var(--chartreuse); color: var(--ink-900); }

.sw-violet  { background: var(--violet); }
.sw-coral   { background: var(--coral); }
.sw-mint    { background: var(--mint); }
.sw-sky     { background: var(--sky); }
.sw-amber   { background: var(--amber); }
.sw-rose    { background: var(--rose); }
.sw-ink     { background: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
    .billing-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .use-grid { grid-template-columns: repeat(2, 1fr); }
    .seat-meter-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .use-grid { grid-template-columns: 1fr; }
    .auth-card-body { padding: 26px 22px; }
    .ob-title { font-size: 30px; }
    /* Onboarding step bar: numbers only — labels + long bars overflow a 375px row */
    .ob-step-label { display: none; }
    .ob-step-bar { width: 18px; margin: 0 7px; }
    .ob-body { padding: 28px 14px 56px; }
}
