/*
 * Wild Femme Yoga — booking + portal pages
 * Loaded on: booking, booking-confirmed, login, my-classes
 */

/* ------------------------------------------------------------------ *
 * Shared form components
 * ------------------------------------------------------------------ */
.wfy-form { display: flex; flex-direction: column; gap: 16px; }
.wfy-form__field { display: block; }
.wfy-form__label {
    display: block;
    font-family: var(--wfy-font-body);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--wfy-plum-mid);
    margin-bottom: 6px;
}
.wfy-form input[type="text"],
.wfy-form input[type="email"],
.wfy-form input[type="url"],
.wfy-form input[type="tel"],
.wfy-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(157, 78, 221, 0.25);
    background: var(--wfy-white);
    color: var(--wfy-ink);
    font-family: var(--wfy-font-body);
    font-size: 16px;
    border-radius: var(--wfy-radius-md);
    transition: border-color 0.2s var(--wfy-ease), box-shadow 0.2s var(--wfy-ease);
}
.wfy-form input:focus,
.wfy-form textarea:focus {
    outline: none;
    border-color: var(--wfy-purple);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.15);
}
.wfy-form textarea { resize: vertical; min-height: 90px; }
.wfy-form__help,
.wfy-form__fine {
    display: block;
    font-size: 12px;
    color: var(--wfy-mute);
    margin-top: 6px;
    line-height: 1.5;
}
.wfy-form__fine { text-align: center; margin-top: 4px; font-style: italic; }

.wfy-btn--block { width: 100%; justify-content: center; }
.wfy-btn--lg { padding: 18px 32px; font-size: 13px; letter-spacing: 0.18em; }

/* ------------------------------------------------------------------ *
 * Booking page
 * ------------------------------------------------------------------ */
.wfy-book-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(80px, 10vw, 140px); }
.wfy-book-empty { text-align: center; max-width: 640px; margin: 0 auto; }
.wfy-book-empty h1 { margin: 0.4em 0 0.6em; }

.wfy-book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
@media (min-width: 880px) {
    .wfy-book-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.wfy-book-class {
    background: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    padding: 32px;
    box-shadow: var(--wfy-shadow-sm);
}
.wfy-book-class__title {
    margin: 0.4em 0 0.6em;
    font-size: clamp(28px, 3.6vw, 44px);
}
.wfy-book-class__meta {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 18px;
}
.wfy-book-class__meta li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.12);
}
.wfy-book-class__meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.wfy-book-class__k {
    font-family: var(--wfy-font-body);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
}
.wfy-book-class__v {
    font-family: var(--wfy-font-display);
    color: var(--wfy-plum-deep);
    font-size: 18px;
    line-height: 1.4;
}
.wfy-book-class__v small {
    font-family: var(--wfy-font-body);
    font-size: 13px;
    color: var(--wfy-mute);
    font-style: italic;
}
.wfy-book-class__price { font-size: 22px; color: var(--wfy-purple); }
.wfy-book-class__excerpt {
    margin: 18px 0 0;
    color: var(--wfy-ink-soft);
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    border-top: 1px solid rgba(157, 78, 221, 0.12);
    padding-top: 18px;
}

.wfy-book-form {
    background: linear-gradient(160deg, var(--wfy-plum-mid), var(--wfy-plum-deep));
    color: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}
.wfy-book-form::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 20%, rgba(199, 125, 255, 0.35), transparent 50%);
    pointer-events: none;
}
.wfy-book-form > * { position: relative; z-index: 1; }
.wfy-book-form .wfy-eyebrow { color: var(--wfy-gold); }
.wfy-book-form__h {
    color: var(--wfy-white);
    margin: 0.3em 0 0.4em;
    font-size: clamp(28px, 3.4vw, 38px);
}
.wfy-book-form__h em {
    background: linear-gradient(120deg, var(--wfy-gold), var(--wfy-violet), var(--wfy-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}
.wfy-book-form__note {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin: 0 0 22px;
    font-style: italic;
}
.wfy-book-form .wfy-form__label { color: rgba(255, 255, 255, 0.78); }
.wfy-book-form .wfy-form__fine { color: rgba(255, 255, 255, 0.6); }

.wfy-book-error {
    background: rgba(244, 196, 48, 0.16);
    border-left: 3px solid var(--wfy-gold);
    color: var(--wfy-white);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.wfy-book-full {
    text-align: center;
    color: var(--wfy-white);
}
.wfy-book-full h2 { color: var(--wfy-white); }
.wfy-book-full p  { color: rgba(255, 255, 255, 0.8); margin-bottom: 22px; }

/* ------------------------------------------------------------------ *
 * Confirmation page
 * ------------------------------------------------------------------ */
.wfy-confirmed { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(120px, 16vw, 200px); }
.wfy-confirmed h1 { font-size: clamp(48px, 7vw, 92px); margin: 0.3em 0 0.4em; }
.wfy-confirmed__lede {
    font-family: var(--wfy-font-display);
    font-style: italic;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--wfy-ink-soft);
    margin: 0 0 32px;
}
.wfy-confirmed__card {
    background: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--wfy-shadow-sm);
    margin: 0 auto 32px;
    max-width: 560px;
    text-align: left;
}
.wfy-confirmed__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(157, 78, 221, 0.1);
}
.wfy-confirmed__row:last-child { border-bottom: 0; }
.wfy-confirmed__k {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
    align-self: center;
}
.wfy-confirmed__v {
    font-family: var(--wfy-font-display);
    color: var(--wfy-plum-deep);
    font-size: 17px;
    line-height: 1.4;
}
.wfy-confirmed__inbox {
    margin: 0 auto 24px;
    max-width: 480px;
    font-family: var(--wfy-font-display);
    font-style: italic;
    font-size: 16px;
    color: var(--wfy-plum-mid);
}
.wfy-confirmed__inbox small {
    display: block;
    font-family: var(--wfy-font-body);
    font-size: 12px;
    color: var(--wfy-mute);
    font-style: normal;
    margin-top: 8px;
    line-height: 1.5;
}
.wfy-confirmed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ------------------------------------------------------------------ *
 * Login / magic-link page
 * ------------------------------------------------------------------ */
.wfy-portal-auth { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(140px, 18vw, 200px); text-align: center; }
.wfy-portal-auth h1 { font-size: clamp(48px, 7vw, 92px); margin: 0.3em 0 0.4em; }
.wfy-portal-auth__lede {
    font-family: var(--wfy-font-display);
    font-style: italic;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--wfy-ink-soft);
    margin: 0 0 32px;
}
.wfy-portal-auth__hint { margin-bottom: 32px; }
.wfy-portal-auth__form {
    background: linear-gradient(160deg, var(--wfy-plum-mid), var(--wfy-plum-deep));
    color: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    padding: 36px 32px;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.wfy-portal-auth__form::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 20%, rgba(199, 125, 255, 0.35), transparent 50%);
    pointer-events: none;
}
.wfy-portal-auth__form > * { position: relative; z-index: 1; }
.wfy-portal-auth__form .wfy-form__label { color: rgba(255, 255, 255, 0.78); }
.wfy-portal-auth__form .wfy-form__fine { color: rgba(255, 255, 255, 0.6); margin-top: 12px; }

/* ------------------------------------------------------------------ *
 * Signup form — sections, split-name row, password live validation
 * ------------------------------------------------------------------ */
.wfy-signup .wfy-portal-auth__form { max-width: 520px; padding: 40px 36px; }
.wfy-signup__form { gap: 24px; }

.wfy-form__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.wfy-form__section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.wfy-form__section-title {
    font-family: var(--wfy-font-display);
    font-size: 20px;
    color: var(--wfy-gold);
    margin: 0 0 4px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.wfy-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 540px) {
    .wfy-form__row { grid-template-columns: 1fr 1fr; }
}

/* Password input + show/hide */
.wfy-form__field--password { margin-bottom: 0; }
.wfy-form__pw-wrap { position: relative; }
.wfy-form__pw-wrap input { padding-right: 50px; }
.wfy-form__pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--wfy-plum-mid);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s var(--wfy-ease), color 0.15s var(--wfy-ease);
}
.wfy-form__pw-toggle:hover { background: rgba(157, 78, 221, 0.12); color: var(--wfy-purple); }
.wfy-form__pw-toggle.is-showing { color: var(--wfy-purple); }

/* Strength meter */
.wfy-form__pw-meter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    height: 26px;
    position: relative;
    overflow: hidden;
}
.wfy-form__pw-meter-bar {
    display: block;
    height: 18px;
    border-radius: 999px;
    width: 0;
    background: transparent;
    transition: width 0.25s var(--wfy-ease), background 0.25s var(--wfy-ease);
    flex-shrink: 0;
    min-width: 0;
}
.wfy-form__pw-meter-bar[data-level="0"] { background: rgba(255,255,255,0.15); }
.wfy-form__pw-meter-bar[data-level="1"] { background: #d94a4a; }
.wfy-form__pw-meter-bar[data-level="2"] { background: #e88c3a; }
.wfy-form__pw-meter-bar[data-level="3"] { background: #e8c93a; }
.wfy-form__pw-meter-bar[data-level="4"] { background: #88c267; }
.wfy-form__pw-meter-bar[data-level="5"] { background: #4caf50; }

.wfy-form__pw-meter-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 1;
}

/* Live rules list */
.wfy-form__pw-rules {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 6px;
}
.wfy-form__pw-rules li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s var(--wfy-ease);
}
.wfy-form__pw-rules li strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
.wfy-form__pw-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s var(--wfy-ease), border-color 0.2s var(--wfy-ease);
    position: relative;
}
.wfy-form__pw-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    color: var(--wfy-white);
}

.wfy-form__pw-rules .is-valid {
    color: #88c267;
}
.wfy-form__pw-rules .is-valid strong { color: #88c267; }
.wfy-form__pw-rules .is-valid .wfy-form__pw-icon {
    background: #4caf50;
    border-color: #4caf50;
}
.wfy-form__pw-rules .is-valid .wfy-form__pw-icon::after { content: '✓'; }

.wfy-form__pw-rules .is-invalid {
    color: #f5a3a3;
}
.wfy-form__pw-rules .is-invalid strong { color: #f5a3a3; }
.wfy-form__pw-rules .is-invalid .wfy-form__pw-icon {
    background: rgba(217, 74, 74, 0.2);
    border-color: #d94a4a;
}
.wfy-form__pw-rules .is-invalid .wfy-form__pw-icon::after { content: '✕'; color: #d94a4a; font-weight: 700; }

@keyframes wfyShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.wfy-form__pw-rules.is-shaking {
    animation: wfyShake 0.4s var(--wfy-ease);
}

/* Tighten signup section spacing on mobile */
@media (max-width: 479px) {
    .wfy-signup .wfy-portal-auth__form { padding: 28px 22px; }
    .wfy-form__section-title { font-size: 17px; }
}

.wfy-portal-auth__eb {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--wfy-radius-md);
    padding: 12px 16px;
    margin-top: 8px;
}
.wfy-portal-auth__eb summary {
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wfy-gold);
    font-weight: 600;
    list-style: none;
}
.wfy-portal-auth__eb summary::before {
    content: '＋ ';
    font-weight: 400;
}
.wfy-portal-auth__eb[open] summary::before { content: '－ '; }
.wfy-portal-auth__eb-body {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Portal welcome banner + EB redemption form on /my-classes/ */
.wfy-portal__welcome {
    background: linear-gradient(160deg, var(--wfy-pink-mist), var(--wfy-white));
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--wfy-radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    text-align: center;
}
.wfy-portal__welcome .wfy-ritual {
    display: block;
    font-family: var(--wfy-font-ritual);
    font-style: italic;
    font-size: 22px;
    color: var(--wfy-plum-mid);
    margin-bottom: 6px;
}
.wfy-portal__welcome p { margin: 0; color: var(--wfy-ink-soft); font-size: 15px; }

.wfy-portal__eb-lede {
    margin: 0 0 18px;
    color: var(--wfy-mute);
    font-style: italic;
}
.wfy-portal__eb-form {
    background: var(--wfy-white);
    border: 1px solid rgba(157, 78, 221, 0.18);
    border-radius: var(--wfy-radius-lg);
    padding: 24px 26px;
    box-shadow: var(--wfy-shadow-sm);
}
.wfy-portal__eb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
@media (min-width: 720px) {
    .wfy-portal__eb-grid { grid-template-columns: 1fr 1fr; }
}
.wfy-portal__eb-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: var(--wfy-radius-md);
    background: var(--wfy-white);
    font-size: 16px;
    font-family: var(--wfy-font-body);
}

/* ------------------------------------------------------------------ *
 * Member portal: my-classes
 * ------------------------------------------------------------------ */
.wfy-portal { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(80px, 10vw, 140px); }
.wfy-portal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 40px;
}
.wfy-portal__head h1 { font-size: clamp(36px, 5vw, 64px); margin: 0.25em 0 0; }
.wfy-portal__signout {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
}
.wfy-portal__signout:hover { color: var(--wfy-plum-deep); }
.wfy-portal__back {
    display: inline-block;
    margin: 0 0 18px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wfy-purple);
    font-weight: 600;
}

.wfy-portal__group { margin-bottom: 56px; }
.wfy-portal__group h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0 0 22px;
}
.wfy-portal__group h2 em {
    background: linear-gradient(120deg, var(--wfy-plum-mid), var(--wfy-purple), var(--wfy-plum-mid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.wfy-portal__list { display: grid; gap: 14px; }
.wfy-portal__row {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    padding: 18px 22px;
    box-shadow: var(--wfy-shadow-sm);
    color: var(--wfy-ink);
    transition: transform 0.2s var(--wfy-ease), box-shadow 0.2s var(--wfy-ease);
}
.wfy-portal__row:hover:not(.is-past) {
    transform: translateY(-2px);
    box-shadow: var(--wfy-shadow-md);
    color: var(--wfy-ink);
}
.wfy-portal__row.is-past { opacity: 0.7; }

.wfy-portal__row-when {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--wfy-pink-mist), var(--wfy-pink-pale));
    border-radius: var(--wfy-radius-md);
    padding: 12px 8px;
    font-family: var(--wfy-font-display);
    color: var(--wfy-plum-deep);
    min-height: 92px;
}
.wfy-portal__row-mo {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
    font-weight: 600;
}
.wfy-portal__row-day { font-size: 32px; line-height: 1; margin: 2px 0 4px; }
.wfy-portal__row-time {
    font-size: 12px;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
}

.wfy-portal__row-body h3 {
    font-size: clamp(18px, 2vw, 22px);
    margin: 0 0 8px;
    color: var(--wfy-plum-deep);
}
.wfy-portal__row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 13px;
    color: var(--wfy-mute);
}

.wfy-portal__row-cta {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wfy-purple);
    font-weight: 700;
}

.wfy-portal__empty {
    background: var(--wfy-white);
    border: 1px dashed rgba(157, 78, 221, 0.3);
    border-radius: var(--wfy-radius-lg);
    padding: 40px 28px;
    text-align: center;
}
.wfy-portal__empty .wfy-ritual {
    display: block;
    font-family: var(--wfy-font-ritual);
    font-style: italic;
    font-size: 24px;
    color: var(--wfy-plum-mid);
    margin-bottom: 10px;
}
.wfy-portal__empty p { color: var(--wfy-mute); margin-bottom: 18px; }

/* ------------------------------------------------------------------ *
 * Studio dashboard (admin)
 * ------------------------------------------------------------------ */
.wfy-studio__lede {
    font-family: var(--wfy-font-display);
    font-style: italic;
    color: var(--wfy-mute);
    font-size: 16px;
    margin: 6px 0 0;
}

.wfy-studio__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
@media (min-width: 760px) {
    .wfy-studio__stats { grid-template-columns: repeat(4, 1fr); }
}
.wfy-studio__stat {
    background: linear-gradient(135deg, var(--wfy-plum-deep), var(--wfy-plum-mid));
    color: var(--wfy-white);
    padding: 22px 24px;
    border-radius: var(--wfy-radius-lg);
    box-shadow: var(--wfy-shadow-sm);
}
.wfy-studio__stat-n {
    display: block;
    font-family: var(--wfy-font-display);
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 500;
    line-height: 1;
    color: var(--wfy-white);
}
.wfy-studio__stat-l {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-gold);
    font-weight: 600;
}

.wfy-studio__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

/* Help/explainer card */
.wfy-studio__help {
    background: var(--wfy-white);
    border: 1px solid rgba(157, 78, 221, 0.15);
    border-radius: var(--wfy-radius-lg);
    margin-bottom: 32px;
    overflow: hidden;
}
.wfy-studio__help summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    transition: background 0.2s var(--wfy-ease);
}
.wfy-studio__help summary::-webkit-details-marker { display: none; }
.wfy-studio__help summary strong {
    flex: 1;
    color: var(--wfy-plum-deep);
    font-family: var(--wfy-font-display);
    font-size: 17px;
    font-weight: 500;
}
.wfy-studio__help[open] .wfy-studio__chevron { transform: rotate(180deg); }
.wfy-studio__help-body {
    padding: 6px 22px 24px;
    border-top: 1px solid rgba(157, 78, 221, 0.1);
    color: var(--wfy-ink-soft);
    font-size: 14px;
    line-height: 1.6;
}
.wfy-studio__help-body ol { padding-left: 22px; margin: 14px 0; }
.wfy-studio__help-body li { margin-bottom: 12px; }
.wfy-studio__help-body code {
    background: var(--wfy-pink-mist);
    color: var(--wfy-plum-deep);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.wfy-studio__help-body a {
    color: var(--wfy-purple);
    text-decoration: underline;
    font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Quick-create class form (collapsible)
 * ------------------------------------------------------------------ */
.wfy-studio__flash {
    background: linear-gradient(135deg, #88c267, #4caf50);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--wfy-radius-lg);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}
.wfy-studio__flash-icon {
    background: rgba(255, 255, 255, 0.25);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.wfy-studio__create {
    background: linear-gradient(160deg, var(--wfy-plum-deep), var(--wfy-plum-mid));
    color: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--wfy-shadow-md);
    position: relative;
}
.wfy-studio__create::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 0%, rgba(244, 196, 48, 0.15), transparent 50%);
    pointer-events: none;
}
.wfy-studio__create > * { position: relative; z-index: 1; }

.wfy-studio__create summary {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s var(--wfy-ease);
}
.wfy-studio__create summary::-webkit-details-marker { display: none; }
.wfy-studio__create summary:hover { background: rgba(244, 196, 48, 0.06); }

.wfy-studio__create-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wfy-gold), var(--wfy-gold-soft));
    color: var(--wfy-plum-deep);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}
.wfy-studio__create summary strong {
    display: block;
    font-family: var(--wfy-font-display);
    font-size: 20px;
    color: var(--wfy-gold);
    margin-bottom: 2px;
}
.wfy-studio__create summary small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-style: italic;
}
.wfy-studio__create[open] .wfy-studio__chevron { transform: rotate(180deg); }
.wfy-studio__create .wfy-studio__chevron { color: var(--wfy-gold); }

.wfy-studio__create-body {
    padding: 8px 26px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wfy-create-form { gap: 18px; padding-top: 20px; }
.wfy-create-form .wfy-form__label { color: rgba(255, 255, 255, 0.78); }
.wfy-create-form input[type="text"],
.wfy-create-form input[type="email"],
.wfy-create-form input[type="url"],
.wfy-create-form input[type="number"],
.wfy-create-form input[type="datetime-local"],
.wfy-create-form textarea,
.wfy-create-form select {
    background: rgba(255, 255, 255, 0.95);
    color: var(--wfy-ink);
}

/* Format toggle */
.wfy-create-format {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wfy-create-format__opt {
    position: relative;
    cursor: pointer;
}
.wfy-create-format__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wfy-create-format__opt > span {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--wfy-radius-md);
    color: rgba(255, 255, 255, 0.78);
    transition: background 0.2s var(--wfy-ease), border-color 0.2s var(--wfy-ease), color 0.2s var(--wfy-ease);
}
.wfy-create-format__opt > span > svg { flex-shrink: 0; margin-top: 2px; color: var(--wfy-violet); }
.wfy-create-format__opt > span > strong {
    display: block;
    color: var(--wfy-white);
    font-family: var(--wfy-font-display);
    font-size: 18px;
    margin-bottom: 2px;
}
.wfy-create-format__opt > span > small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}
.wfy-create-format__opt > span > span { flex: 1; }
.wfy-create-format__opt input:checked + span {
    background: rgba(244, 196, 48, 0.12);
    border-color: var(--wfy-gold);
    color: var(--wfy-gold);
}
.wfy-create-format__opt input:checked + span > strong { color: var(--wfy-gold); }
.wfy-create-format__opt input:checked + span > svg { color: var(--wfy-gold); }

/* Image upload */
.wfy-create-upload {
    display: block;
    cursor: pointer;
}
.wfy-create-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px; height: 1px;
}
.wfy-create-upload__inner {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--wfy-radius-md);
    aspect-ratio: 16 / 7;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s var(--wfy-ease), background 0.2s var(--wfy-ease);
}
.wfy-create-upload:hover .wfy-create-upload__inner,
.wfy-create-upload.is-drag .wfy-create-upload__inner {
    border-color: var(--wfy-gold);
    background: rgba(244, 196, 48, 0.06);
}
.wfy-create-upload__prompt {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    padding: 24px;
}
.wfy-create-upload__prompt svg { margin: 0 auto 10px; color: var(--wfy-violet); }
.wfy-create-upload__prompt strong { display: block; color: var(--wfy-gold); font-family: var(--wfy-font-display); font-size: 18px; margin-bottom: 4px; }
.wfy-create-upload__prompt small { font-size: 12px; }
.wfy-create-upload__preview {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.wfy-create-upload.has-image .wfy-create-upload__preview { display: block; }
.wfy-create-upload.has-image .wfy-create-upload__prompt {
    position: absolute;
    inset: auto 12px 12px auto;
    background: rgba(26, 11, 46, 0.85);
    color: var(--wfy-gold);
    padding: 8px 14px;
    border-radius: 999px;
}
.wfy-create-upload.has-image .wfy-create-upload__prompt svg,
.wfy-create-upload.has-image .wfy-create-upload__prompt small { display: none; }
.wfy-create-upload.has-image .wfy-create-upload__prompt strong {
    font-family: var(--wfy-font-body);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}
.wfy-create-upload.has-image .wfy-create-upload__prompt strong::after { content: ' — change'; }

/* 3-column row for date/length/price */
@media (min-width: 720px) {
    .wfy-create-row-3 { grid-template-columns: 2fr 1fr 1fr; }
}

/* Featured checkbox */
.wfy-create-featured {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 12px 0;
}
.wfy-create-featured input { width: 18px; height: 18px; accent-color: var(--wfy-gold); }

/* Class list / roster */
.wfy-studio__class-list {
    display: grid;
    gap: 14px;
}
.wfy-studio__class {
    background: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    box-shadow: var(--wfy-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s var(--wfy-ease);
}
.wfy-studio__class[open] { box-shadow: var(--wfy-shadow-md); }

.wfy-studio__class summary {
    display: grid;
    grid-template-columns: 96px 1fr auto 24px;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}
.wfy-studio__class summary::-webkit-details-marker { display: none; }
.wfy-studio__class summary:hover { background: rgba(157, 78, 221, 0.04); }

.wfy-studio__class-when {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wfy-pink-mist), var(--wfy-pink-pale));
    border-radius: var(--wfy-radius-md);
    padding: 12px 8px;
    text-align: center;
    font-family: var(--wfy-font-display);
    color: var(--wfy-plum-deep);
    min-height: 92px;
}
.wfy-studio__class-mo {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
    font-weight: 600;
}
.wfy-studio__class-day { font-size: 32px; line-height: 1; margin: 2px 0 4px; }
.wfy-studio__class-time {
    font-size: 12px;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
}

.wfy-studio__class-body h3 {
    margin: 0 0 8px;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--wfy-plum-deep);
}
.wfy-studio__class-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.wfy-studio__class-price {
    color: var(--wfy-purple);
    font-weight: 600;
    font-family: var(--wfy-font-display);
}

.wfy-studio__class-count {
    text-align: right;
    font-family: var(--wfy-font-display);
}
.wfy-studio__count-n {
    display: block;
    font-size: 24px;
    color: var(--wfy-plum-deep);
    line-height: 1;
    font-weight: 500;
}
.wfy-studio__count-l {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
    font-weight: 600;
}

.wfy-studio__chevron {
    color: var(--wfy-mute);
    transition: transform 0.2s var(--wfy-ease);
    font-size: 18px;
}
.wfy-studio__class[open] .wfy-studio__chevron { transform: rotate(180deg); }

.wfy-studio__class-detail {
    padding: 4px 22px 24px;
    border-top: 1px solid rgba(157, 78, 221, 0.12);
    background: rgba(157, 78, 221, 0.02);
}
.wfy-studio__class-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.wfy-studio__roster-empty {
    padding: 20px 0;
    color: var(--wfy-mute);
    font-style: italic;
    text-align: center;
}

.wfy-studio__roster {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 14px;
}
.wfy-studio__roster th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
    border-bottom: 1px solid rgba(157, 78, 221, 0.18);
    font-family: var(--wfy-font-body);
}
.wfy-studio__roster td {
    padding: 12px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.08);
    color: var(--wfy-ink-soft);
}
.wfy-studio__roster tr:last-child td { border-bottom: 0; }
.wfy-studio__roster a { color: var(--wfy-purple); }
.wfy-studio__roster-note td {
    background: var(--wfy-pink-mist);
    font-style: italic;
    color: var(--wfy-plum-mid);
    border-bottom: 1px solid rgba(157, 78, 221, 0.08);
}
.wfy-studio__status {
    display: inline-block;
    color: var(--wfy-white);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}
.wfy-studio__row-edit {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--wfy-purple);
}

/* ------------------------------------------------------------------ *
 * Clone + bulk-email inline forms inside class detail
 * ------------------------------------------------------------------ */
.wfy-studio__inline-form {
    margin-top: 14px;
    padding: 16px 18px;
    background: var(--wfy-pink-mist);
    border: 1px solid rgba(157, 78, 221, 0.18);
    border-radius: var(--wfy-radius-md);
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.wfy-studio__inline-form--bulk { flex-direction: column; align-items: stretch; }
.wfy-studio__inline-form input[type="datetime-local"],
.wfy-studio__inline-form input[type="text"],
.wfy-studio__inline-form textarea {
    background: var(--wfy-white);
    border: 1px solid rgba(157, 78, 221, 0.25);
    color: var(--wfy-ink);
}

.wfy-studio__waitlist-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--wfy-gold), var(--wfy-gold-soft));
    color: var(--wfy-plum-deep);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Email activity panel
 * ------------------------------------------------------------------ */
.wfy-studio__mail-stat {
    font-size: 12px;
    color: var(--wfy-mute);
    font-family: var(--wfy-font-body);
    font-style: italic;
    margin-left: 6px;
}
.wfy-studio__mail-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--wfy-pink-mist), var(--wfy-pink-pale));
    border-radius: var(--wfy-radius-md);
    margin-bottom: 22px;
}
@media (min-width: 720px) {
    .wfy-studio__mail-summary { grid-template-columns: repeat(3, 1fr); }
}
.wfy-studio__mail-summary > div { display: flex; flex-direction: column; gap: 4px; }
.wfy-studio__mail-summary-l {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
}
.wfy-studio__mail-summary-v {
    font-family: var(--wfy-font-display);
    color: var(--wfy-plum-deep);
    font-size: 15px;
}
.wfy-studio__mail-summary-v a { color: var(--wfy-purple); }

.wfy-studio__mail-h {
    font-family: var(--wfy-font-display);
    font-size: 18px;
    color: var(--wfy-plum-deep);
    margin: 0 0 12px;
    font-weight: 500;
}
.wfy-studio__mail-empty {
    background: var(--wfy-pink-mist);
    border: 1px dashed rgba(157, 78, 221, 0.25);
    border-radius: var(--wfy-radius-md);
    padding: 18px;
    color: var(--wfy-mute);
    font-style: italic;
    text-align: center;
    margin: 0 0 18px;
    font-size: 14px;
}
.wfy-studio__mail-log {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wfy-studio__mail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--wfy-white);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--wfy-radius-md);
}
.wfy-studio__mail-row.is-failed {
    background: rgba(217, 74, 74, 0.06);
    border-color: rgba(217, 74, 74, 0.3);
}
.wfy-studio__mail-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wfy-purple), var(--wfy-violet));
    color: var(--wfy-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.wfy-studio__mail-row.is-failed .wfy-studio__mail-icon {
    background: #d94a4a;
}
.wfy-studio__mail-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.wfy-studio__mail-body strong {
    color: var(--wfy-plum-deep);
    font-family: var(--wfy-font-display);
    font-size: 15px;
    line-height: 1.3;
    word-break: break-word;
}
.wfy-studio__mail-body small {
    font-size: 12px;
    color: var(--wfy-mute);
    word-break: break-word;
}

/* Compose form inside email panel */
.wfy-studio__compose {
    background: linear-gradient(135deg, var(--wfy-plum-deep), var(--wfy-plum-mid));
    color: var(--wfy-white);
    border-radius: var(--wfy-radius-md);
    margin: 0 0 22px;
    overflow: hidden;
    box-shadow: var(--wfy-shadow-sm);
}
.wfy-studio__compose summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 40px 1fr 20px;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    transition: background 0.2s var(--wfy-ease);
}
.wfy-studio__compose summary::-webkit-details-marker { display: none; }
.wfy-studio__compose summary:hover { background: rgba(244, 196, 48, 0.06); }
.wfy-studio__compose-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wfy-gold), var(--wfy-gold-soft));
    color: var(--wfy-plum-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.wfy-studio__compose summary strong {
    display: block;
    font-family: var(--wfy-font-display);
    font-size: 17px;
    color: var(--wfy-gold);
}
.wfy-studio__compose summary small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-style: italic;
    margin-top: 2px;
}
.wfy-studio__compose[open] .wfy-studio__chevron { transform: rotate(180deg); }
.wfy-studio__compose .wfy-studio__chevron { color: var(--wfy-gold); }
.wfy-studio__compose-body {
    padding: 18px 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wfy-studio__compose-body .wfy-form__label {
    color: rgba(255, 255, 255, 0.85);
}
.wfy-studio__compose-body .wfy-form__help {
    color: rgba(255, 255, 255, 0.55) !important;
}
.wfy-studio__compose-body .wfy-form { gap: 16px; }

.wfy-studio__mail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(157, 78, 221, 0.12);
}
.wfy-studio__mail-tools {
    flex: 1;
    min-width: 240px;
}
.wfy-studio__mail-tools summary {
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wfy-mute);
    font-weight: 600;
    list-style: none;
    padding: 4px 0;
}
.wfy-studio__mail-tools summary::-webkit-details-marker { display: none; }
.wfy-studio__mail-tools summary::before { content: '＋ '; font-weight: 400; }
.wfy-studio__mail-tools[open] summary::before { content: '－ '; }

/* ------------------------------------------------------------------ *
 * Add to Calendar + Watch Replay buttons in member portal rows
 * ------------------------------------------------------------------ */
.wfy-portal__row-wrap { position: relative; }
.wfy-portal__row-ics {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-left: auto;
    margin-right: 22px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--wfy-pink-mist);
    color: var(--wfy-plum-mid);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s var(--wfy-ease), color 0.15s var(--wfy-ease);
}
.wfy-portal__row-ics:hover {
    background: var(--wfy-plum-deep);
    color: var(--wfy-gold);
}
.wfy-portal__row-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.wfy-portal__row-wrap > .wfy-portal__row { width: 100%; }
.wfy-portal__row-ics { margin: -8px 22px 14px auto; position: relative; z-index: 2; }

.wfy-portal__row-replay {
    background: linear-gradient(135deg, var(--wfy-purple), var(--wfy-violet));
    color: var(--wfy-white) !important;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}
.wfy-portal__row-replay:hover { background: var(--wfy-plum-deep); color: var(--wfy-gold) !important; }

@media (max-width: 559px) {
    .wfy-portal__row-ics { margin: 6px auto 10px; }
    .wfy-studio__inline-form { padding: 14px; gap: 10px; }
}

.wfy-studio__email {
    font-size: 13px;
    color: var(--wfy-mute) !important;
}
.wfy-studio__email:hover { color: var(--wfy-purple) !important; }
.wfy-studio__source {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wfy-violet);
    font-weight: 600;
}
.wfy-studio__attended-badge {
    display: inline-block;
    background: #22863a;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
}
.wfy-studio__row-cancelled td {
    opacity: 0.55;
    text-decoration: line-through;
    text-decoration-color: rgba(157, 78, 221, 0.4);
}
.wfy-studio__row-cancelled .wfy-studio__actions-cell {
    opacity: 1;
    text-decoration: none;
}
.wfy-studio__row-cancelled .wfy-studio__actions-cell * {
    text-decoration: none;
}

.wfy-studio__actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.wfy-studio__actions-cell form { margin: 0; }
.wfy-studio__act {
    display: inline-flex;
    align-items: center;
    background: var(--wfy-pink-mist);
    color: var(--wfy-plum-mid);
    border: 1px solid rgba(157, 78, 221, 0.2);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--wfy-font-body);
    text-decoration: none !important;
    transition: background 0.15s var(--wfy-ease), color 0.15s var(--wfy-ease), transform 0.15s var(--wfy-ease);
}
.wfy-studio__act:hover {
    background: var(--wfy-plum-deep);
    color: var(--wfy-gold) !important;
    transform: translateY(-1px);
}
.wfy-studio__act--ok { background: rgba(34, 134, 58, 0.12); color: #22863a; border-color: rgba(34, 134, 58, 0.3); }
.wfy-studio__act--ok:hover { background: #22863a; color: #fff !important; }
.wfy-studio__act--danger { background: rgba(193, 56, 56, 0.08); color: #b53030; border-color: rgba(193, 56, 56, 0.25); }
.wfy-studio__act--danger:hover { background: #b53030; color: #fff !important; }

/* ------------------------------------------------------------------ *
 * Inline image swap inside roster
 * ------------------------------------------------------------------ */
.wfy-studio__class-imgrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 8px;
    flex-wrap: wrap;
}
.wfy-studio__class-thumb {
    width: 96px;
    height: 64px;
    border-radius: var(--wfy-radius-md);
    overflow: hidden;
    background: var(--wfy-pink-mist);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wfy-studio__class-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfy-studio__class-thumb-empty {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wfy-mute);
}
.wfy-studio__swap-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wfy-studio__swap-pick {
    cursor: pointer;
    background: var(--wfy-pink-mist);
    color: var(--wfy-plum-mid);
    border: 1px solid rgba(157, 78, 221, 0.2);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: var(--wfy-font-body);
    transition: background 0.15s var(--wfy-ease), color 0.15s var(--wfy-ease);
}
.wfy-studio__swap-pick:hover { background: var(--wfy-plum-deep); color: var(--wfy-gold); }
.wfy-studio__swap-pick input { display: none; }

/* ------------------------------------------------------------------ *
 * MOBILE / TABLET RESPONSIVE PASS
 * Goal: phone should feel like a clean native app
 * ------------------------------------------------------------------ */

/* Tablet (768–1023): tighter padding, smaller stat cards */
@media (max-width: 1023px) {
    .wfy-portal, .wfy-studio {
        padding-top: clamp(120px, 14vw, 180px);
        padding-bottom: clamp(60px, 8vw, 100px);
    }
    .wfy-studio__create summary { padding: 18px 22px; }
    .wfy-studio__create-body { padding: 8px 22px 24px; }
    .wfy-studio__class summary { padding: 16px 18px; }
    .wfy-studio__class-detail { padding: 4px 18px 20px; }
}

/* Phone (< 760): app-feel layout */
@media (max-width: 759px) {
    /* Container hugs the screen */
    .wfy-portal .wfy-container,
    .wfy-studio .wfy-container,
    .wfy-portal-auth .wfy-container { padding-left: 16px; padding-right: 16px; }

    /* Bigger touch headers */
    .wfy-portal__head { margin-bottom: 26px; gap: 12px; }
    .wfy-portal__head h1 { font-size: clamp(28px, 8vw, 38px); }
    .wfy-portal__head-actions {
        display: flex;
        gap: 14px;
        width: 100%;
        justify-content: space-between;
    }
    .wfy-portal__signout { font-size: 13px; padding: 8px 0; }

    /* Stat strip — 2 across, tighter padding */
    .wfy-studio__stats { gap: 10px; }
    .wfy-studio__stat { padding: 16px 18px; }
    .wfy-studio__stat-n { font-size: 28px; }
    .wfy-studio__stat-l { font-size: 9px; letter-spacing: 0.16em; }

    /* Action row scrolls horizontally instead of wrapping awkwardly */
    .wfy-studio__actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 0 16px;
        margin: 0 -16px 28px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    .wfy-studio__actions .wfy-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        font-size: 11px;
        padding: 11px 18px;
        letter-spacing: 0.14em;
    }

    /* Quick-create form — full-width zone, larger touch targets */
    .wfy-studio__create summary { padding: 16px 18px; grid-template-columns: 44px 1fr 20px; gap: 12px; }
    .wfy-studio__create-plus { width: 36px; height: 36px; font-size: 20px; }
    .wfy-studio__create summary strong { font-size: 16px; }
    .wfy-studio__create summary small { font-size: 12px; line-height: 1.4; }
    .wfy-studio__create-body { padding: 4px 18px 22px; }

    .wfy-create-format { grid-template-columns: 1fr; gap: 8px; }
    .wfy-create-format__opt > span { padding: 14px 16px; }
    .wfy-create-upload__inner { min-height: 150px; aspect-ratio: 4 / 3; }
    .wfy-create-row-3 { grid-template-columns: 1fr 1fr; }
    .wfy-create-row-3 > :first-child { grid-column: 1 / -1; } /* When field full-width */

    /* Roster — collapse table into cards */
    .wfy-studio__class-list { gap: 10px; }
    .wfy-studio__class summary {
        grid-template-columns: 64px 1fr;
        gap: 12px;
        padding: 14px 16px;
    }
    .wfy-studio__class-when { min-height: 76px; padding: 10px 6px; }
    .wfy-studio__class-day { font-size: 26px; }
    .wfy-studio__class-time { font-size: 11px; }
    .wfy-studio__class-body h3 { font-size: 17px; }
    .wfy-studio__class-count {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 6px;
        padding-top: 10px;
        margin-top: 4px;
        border-top: 1px solid rgba(157, 78, 221, 0.1);
    }
    .wfy-studio__count-n { font-size: 18px; }
    .wfy-studio__chevron {
        position: absolute;
        top: 16px;
        right: 14px;
    }
    .wfy-studio__class { position: relative; }

    .wfy-studio__class-detail { padding: 4px 16px 18px; }
    .wfy-studio__class-actions { gap: 8px; }
    .wfy-studio__class-actions .wfy-btn { font-size: 11px; padding: 9px 14px; }
    .wfy-studio__class-imgrow { gap: 12px; }
    .wfy-studio__class-thumb { width: 80px; height: 56px; }

    /* Roster table → stacked cards */
    .wfy-studio__roster, .wfy-studio__roster thead, .wfy-studio__roster tbody, .wfy-studio__roster tr, .wfy-studio__roster th, .wfy-studio__roster td {
        display: block;
    }
    .wfy-studio__roster thead { display: none; }
    .wfy-studio__roster tr {
        background: var(--wfy-white);
        border: 1px solid rgba(157, 78, 221, 0.12);
        border-radius: var(--wfy-radius-md);
        padding: 14px 16px;
        margin-bottom: 10px;
    }
    .wfy-studio__roster td { padding: 4px 0; border: 0; font-size: 14px; }
    .wfy-studio__roster td:first-child { margin-bottom: 8px; }
    .wfy-studio__roster .wfy-studio__email { display: block; margin-top: 2px; }
    .wfy-studio__roster-note td {
        background: var(--wfy-pink-mist);
        border-radius: var(--wfy-radius-sm);
        padding: 10px 12px;
        margin-top: 4px;
        font-size: 13px;
    }
    .wfy-studio__roster .wfy-studio__actions-cell {
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px dashed rgba(157, 78, 221, 0.18);
        gap: 6px;
    }
    .wfy-studio__act { font-size: 11px; padding: 7px 12px; }

    /* Member portal — cleaner stacked cards */
    .wfy-portal__row {
        grid-template-columns: 64px 1fr;
        padding: 14px 16px;
        gap: 12px;
        align-items: center;
    }
    .wfy-portal__row-when { min-height: 68px; padding: 8px 4px; }
    .wfy-portal__row-day { font-size: 24px; margin-bottom: 2px; }
    .wfy-portal__row-mo { font-size: 10px; }
    .wfy-portal__row-time { font-size: 11px; }
    .wfy-portal__row-body h3 { font-size: 16px; margin-bottom: 6px; }
    .wfy-portal__row-meta { font-size: 12px; gap: 6px 8px; }
    .wfy-portal__row-cta {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 10px;
        border-top: 1px dashed rgba(157, 78, 221, 0.18);
        font-size: 11px;
    }
    .wfy-portal__group h2 { font-size: 24px; }

    /* Waiting room — bigger join button on phone */
    .wfy-portal__room { padding: 32px 22px; }
    .wfy-portal__room-title { font-size: clamp(26px, 8vw, 36px); }
    .wfy-portal__stage { padding: 24px 18px; }
    .wfy-portal__count { gap: 8px; }
    .wfy-portal__count > span { min-width: 58px; padding: 12px 4px; }
    .wfy-portal__count > span > span:first-child { font-size: 22px; }

    /* Confirmed page */
    .wfy-confirmed { padding-top: clamp(120px, 14vw, 180px); padding-bottom: clamp(80px, 10vw, 140px); }
    .wfy-confirmed h1 { font-size: clamp(34px, 9vw, 56px); }
    .wfy-confirmed__card { padding: 22px 22px; }
    .wfy-confirmed__row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }

    /* Booking form 2-col → 1-col */
    .wfy-book-grid { gap: 22px; }
    .wfy-book-class, .wfy-book-form { padding: 24px 22px; }
    .wfy-book-class__meta li { grid-template-columns: 68px 1fr; gap: 10px; }
    .wfy-book-class__title { font-size: clamp(24px, 7vw, 32px); }

    /* Signup/login forms — softer padding so they fit nicely */
    .wfy-portal-auth__form { padding: 28px 22px; }
    .wfy-signup .wfy-portal-auth__form { padding: 26px 20px; }
    .wfy-form__section-title { font-size: 16px; }
}

/* Tiny phones */
@media (max-width: 379px) {
    .wfy-studio__stats { grid-template-columns: 1fr 1fr; }
    .wfy-portal__head h1 { font-size: 24px; }
    .wfy-portal__row { grid-template-columns: 56px 1fr; padding: 12px 14px; }
    .wfy-portal__row-when { min-height: 60px; }
    .wfy-portal__row-day { font-size: 20px; }
    .wfy-portal__count { gap: 6px; }
    .wfy-portal__count > span { min-width: 52px; padding: 10px 4px; }
}

/* Single-booking waiting room */
.wfy-portal__room {
    background: linear-gradient(160deg, var(--wfy-plum-deep), var(--wfy-plum-mid));
    color: var(--wfy-white);
    border-radius: var(--wfy-radius-lg);
    padding: 48px 36px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.wfy-portal__room::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 70% 20%, rgba(199, 125, 255, 0.25), transparent 50%);
    pointer-events: none;
}
.wfy-portal__room > * { position: relative; z-index: 1; }
.wfy-portal__room-title {
    color: var(--wfy-white);
    font-size: clamp(32px, 4.4vw, 56px);
    margin: 0.4em 0 0.6em;
}
.wfy-portal__room-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
@media (min-width: 720px) {
    .wfy-portal__room-meta { grid-template-columns: repeat(3, 1fr); }
}
.wfy-portal__k {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wfy-gold);
    font-weight: 600;
    margin-bottom: 4px;
}
.wfy-portal__v {
    font-family: var(--wfy-font-display);
    color: var(--wfy-white);
    font-size: 18px;
    line-height: 1.4;
}

.wfy-portal__stage {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: var(--wfy-radius-lg);
    padding: 32px 28px;
    text-align: center;
}
.wfy-portal__stage-state .wfy-eyebrow { color: var(--wfy-gold); }
.wfy-portal__stage-state.is-live .wfy-eyebrow { color: var(--wfy-gold); }
.wfy-portal__stage-state p {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--wfy-font-display);
    font-style: italic;
    margin: 12px 0 22px;
    font-size: 17px;
}
.wfy-portal__stage-state .wfy-ritual {
    display: block;
    font-family: var(--wfy-font-ritual);
    font-style: italic;
    color: var(--wfy-violet);
    font-size: 26px;
    margin-bottom: 8px;
}

.wfy-portal__count {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 8px;
    font-family: var(--wfy-font-display);
}
.wfy-portal__count > span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 10px;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wfy-portal__count > span > span:first-child {
    font-size: 32px;
    line-height: 1;
    color: var(--wfy-white);
    font-weight: 500;
}
.wfy-portal__count small {
    margin-top: 4px;
    font-family: var(--wfy-font-body);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.wfy-portal__count-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 10px 0 22px;
    font-style: italic;
}

/* ------------------------------------------------------------------ *
 * Live embedded class — iframe video stage
 * ------------------------------------------------------------------ */
.wfy-portal__stage-live {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--wfy-radius-lg);
    overflow: hidden;
    padding: 0;
}
.wfy-portal__live-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(90deg, rgba(244, 196, 48, 0.18), rgba(244, 196, 48, 0.04));
    border-bottom: 1px solid rgba(244, 196, 48, 0.2);
    font-family: var(--wfy-font-body);
}
.wfy-portal__live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3838;
    box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.5);
    animation: wfyLivePulse 1.6s infinite;
    flex-shrink: 0;
}
@keyframes wfyLivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 56, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0); }
}
.wfy-portal__live-label {
    color: var(--wfy-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.wfy-portal__live-name {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-family: var(--wfy-font-display);
    margin-left: auto;
    font-size: 14px;
}

.wfy-portal__video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.wfy-portal__video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.wfy-portal__video-fallback {
    margin: 0;
    padding: 12px 22px 16px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}
.wfy-portal__video-fallback a {
    color: var(--wfy-gold);
    text-decoration: underline;
    font-weight: 600;
}
.wfy-portal__video-fallback a:hover { color: var(--wfy-violet); }

@media (max-width: 759px) {
    .wfy-portal__live-bar { padding: 12px 16px; flex-wrap: wrap; }
    .wfy-portal__live-name { margin-left: 0; width: 100%; font-size: 13px; }
    .wfy-portal__video-fallback { padding: 10px 16px 14px; font-size: 12px; }
}

.wfy-portal__tips {
    background: var(--wfy-white);
    color: var(--wfy-ink);
    border-radius: var(--wfy-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--wfy-shadow-sm);
}
.wfy-portal__tips h3 {
    margin: 0 0 14px;
    font-size: 22px;
    color: var(--wfy-plum-deep);
}
.wfy-portal__tips ul {
    margin: 0;
    padding-left: 22px;
    color: var(--wfy-ink-soft);
}
.wfy-portal__tips li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ *
 * Small mobile
 * ------------------------------------------------------------------ */
@media (max-width: 479px) {
    .wfy-book-class, .wfy-book-form, .wfy-portal__room { padding: 24px 20px; }
    .wfy-portal__row {
        grid-template-columns: 72px 1fr;
        gap: 14px;
    }
    .wfy-portal__row-cta { grid-column: 1 / -1; text-align: right; }
    .wfy-portal__count > span { min-width: 56px; padding: 12px 6px; }
    .wfy-portal__count > span > span:first-child { font-size: 24px; }
    .wfy-confirmed__row { grid-template-columns: 1fr; gap: 4px; }
}
