:root {
    --ink: #1d1b22;
    --muted: #64606b;
    --paper: #fbfaf7;
    --surface: #ffffff;
    --line: #e4ddd8;
    --plum: #7a3554;
    --plum-dark: #512138;
    --teal: #247475;
    --sage: #dbe6df;
    --gold: #b88c46;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--plum-dark);
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 14px rgba(29, 27, 34, 0.18);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
    letter-spacing: 0;
}

.brand strong {
    font-size: 18px;
    font-weight: 900;
}

.brand small {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-weight: 700;
    color: #423a43;
}

.main-nav a,
.site-footer a {
    text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover,
.content-grid a:hover {
    color: var(--teal);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.button-donate,
.button-solid {
    background: var(--plum);
    color: #fff;
}

.button-donate:hover,
.button-solid:hover {
    background: var(--plum-dark);
}

.button-light {
    background: #fff;
    color: var(--plum-dark);
}

.button-outline {
    color: var(--plum-dark);
    border-color: #c7b6bd;
    background: transparent;
}

.button-blue {
    width: 100%;
    background: #3198d3;
    color: #fff;
    border: 0;
}

.button-blue:hover {
    background: #247fb4;
}

.hero {
    min-height: calc(100vh - 91px);
    display: grid;
    align-items: start;
    padding: clamp(28px, 4vw, 54px) clamp(24px, 7vw, 120px) clamp(20px, 3vw, 36px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 28%, rgba(49, 152, 211, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(42, 21, 34, 0.9), rgba(42, 21, 34, 0.58) 48%, rgba(36, 116, 117, 0.22)),
        linear-gradient(135deg, #45283a 0%, #7b7378 56%, #dce8e5 100%);
}

.hero-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero .eyebrow {
    color: #f1d9a6;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.08;
}

h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.hero p {
    max-width: 660px;
    font-size: 20px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-signup {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(28, 35, 45, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.hero-signup-head {
    padding: 18px 26px;
    background: #3198d3;
}

.hero-signup h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 28px;
    line-height: 1.12;
    text-align: center;
}

.hero-signup p {
    margin: 0;
    color: #eef8fd;
    font-size: 15px;
    text-align: center;
}

.hero-signup form {
    padding: 22px 26px 20px;
}

.hero-signup label {
    color: #fff;
    margin-bottom: 12px;
}

.hero-signup input {
    min-height: 46px;
    color: #fff;
    border-color: #3198d3;
    background: rgba(15, 22, 30, 0.82);
}

.hero-signup input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.profile-link {
    display: block;
    padding: 0 26px 20px;
    color: #90d7ff;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.profile-link:hover {
    color: #fff;
}

.free-yoga-hero {
    min-height: calc(100vh - 91px);
    display: grid;
    align-items: center;
    padding: clamp(28px, 4.5vw, 58px) clamp(24px, 6vw, 96px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 22%, rgba(49, 152, 211, 0.3), transparent 30%),
        linear-gradient(100deg, rgba(42, 21, 34, 0.98), rgba(56, 31, 49, 0.94) 48%, rgba(45, 104, 111, 0.52)),
        linear-gradient(135deg, #2a1522 0%, #716b71 58%, #dce8e5 100%);
}

.free-yoga-hero-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: clamp(24px, 4vw, 58px);
    align-items: center;
}

.free-yoga-copy {
    max-width: 720px;
}

.free-yoga-copy .eyebrow {
    color: #f1d9a6;
    margin-bottom: 14px;
    font-size: clamp(16px, 1.7vw, 24px);
}

.free-yoga-copy h1 {
    color: #fff;
    font-size: clamp(46px, 5.4vw, 82px);
    line-height: 0.96;
}

.free-yoga-copy p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.45;
}

.free-yoga-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.free-yoga-benefits span {
    padding: 7px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.free-yoga-signup {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(28, 35, 45, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.free-yoga-signup-head {
    padding: 18px 24px;
    background: #3198d3;
    text-align: center;
}

.free-yoga-signup-head .eyebrow {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.free-yoga-signup h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1.05;
}

.free-yoga-signup p {
    margin: 0;
    color: #eef8fd;
}

.free-yoga-signup-body {
    padding: 18px 24px 18px;
}

.free-yoga-signup label {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
}

.free-yoga-signup input {
    min-height: 48px;
    padding: 10px 13px;
    color: #fff;
    border: 2px solid #3198d3;
    background: rgba(15, 22, 30, 0.86);
    font-size: 16px;
}

.free-yoga-signup input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.free-yoga-signup .button-blue {
    min-height: 50px;
    margin-top: 0;
}

.free-yoga-signup .profile-link {
    padding: 12px 0 0;
}

@media (min-width: 961px) and (max-height: 850px) {
    .free-yoga-hero {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .free-yoga-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
        gap: clamp(22px, 3.5vw, 48px);
    }

    .free-yoga-copy h1 {
        font-size: clamp(42px, 4.8vw, 70px);
    }

    .free-yoga-copy p:not(.eyebrow) {
        font-size: 18px;
    }

    .free-yoga-benefits {
        display: none;
    }

    .free-yoga-signup-head {
        padding: 14px 22px;
    }

    .free-yoga-signup h2 {
        font-size: clamp(26px, 2.2vw, 32px);
    }

    .free-yoga-signup-body {
        padding: 16px 22px;
    }

    .free-yoga-signup label {
        margin-bottom: 10px;
    }

    .free-yoga-signup input {
        min-height: 44px;
    }
}

.split-section,
.content-grid,
.text-page,
.profile-frame-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 46px;
    align-items: center;
}

.signup-card,
.details-panel,
.content-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.08);
}

.signup-card,
.details-panel {
    padding: 30px;
}

.signup-card.wide {
    width: 100%;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #4b4550;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfc6c9;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.form-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #7a1f1f;
    background: #fff0f0;
    border: 1px solid #e7b6b6;
    border-radius: 6px;
    font-weight: 800;
}

.form-success {
    margin: 0 0 18px;
    padding: 12px 14px;
    color: #174f39;
    background: #edf8f1;
    border: 1px solid #b8dfc8;
    border-radius: 6px;
    font-weight: 800;
}

.hero-signup .form-error {
    color: #fff;
    background: rgba(122, 31, 31, 0.4);
    border-color: rgba(255, 255, 255, 0.22);
}

.band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--plum-dark);
    color: #fff;
}

.metric {
    min-height: 160px;
    padding: 34px;
    display: grid;
    align-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.metric strong {
    font-size: 42px;
    line-height: 1;
}

.metric span {
    color: #eadfe5;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.content-grid article {
    padding: 30px;
}

.content-grid a {
    color: var(--plum);
    font-weight: 900;
}

.page-hero {
    padding: 96px clamp(24px, 8vw, 140px);
    background: linear-gradient(135deg, #f9f0eb, #dbe6df);
}

.page-hero.compact h1 {
    max-width: 980px;
    color: var(--plum-dark);
}

.page-hero.compact p:not(.eyebrow) {
    max-width: 760px;
    font-size: 20px;
}

.contact-hero {
    padding-top: clamp(46px, 5vw, 72px);
    padding-bottom: clamp(44px, 5vw, 70px);
}

.contact-section {
    padding-top: 46px;
    align-items: start;
}

.text-page {
    max-width: 980px;
}

.text-page p {
    font-size: 19px;
    color: var(--muted);
}

.text-page ul {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding-left: 24px;
    color: var(--muted);
    font-size: 18px;
}

.text-page a {
    color: var(--plum);
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 42px 0;
}

.programme-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.programme-grid article {
    min-width: 0;
}

.programme-grid h2 {
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.profile-frame-section {
    padding-top: 34px;
}

.profile-card {
    display: grid;
    gap: 28px;
    padding: clamp(28px, 5vw, 54px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.08);
}

.profile-card h2 {
    max-width: 760px;
    color: var(--plum-dark);
}

.profile-card p:not(.eyebrow) {
    max-width: 720px;
    color: var(--muted);
    font-size: 19px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.profile-details div {
    min-width: 0;
    padding: 18px;
    background: #f7f3f1;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.profile-details dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-details dd {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.frame-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.profile-frame {
    width: 100%;
    height: 760px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.profile-dashboard-shell {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(22px, 3vw, 36px) 0 clamp(46px, 6vw, 74px);
}

.profile-status {
    margin: 0 0 18px;
}

.profile-dashboard {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: calc(100vh - 190px);
    overflow: hidden;
    background: #f7f9fc;
    border: 1px solid #e7ecf2;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(29, 27, 34, 0.08);
}

.profile-sidebar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 26px;
    padding: 26px 18px;
    color: #fff;
    background: linear-gradient(180deg, #1d4aa0 0%, #223f93 58%, #1b3290 100%);
}

.profile-sidebar-brand,
.profile-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-sidebar-mark,
.profile-sidebar-user span,
.quick-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 900;
}

.profile-sidebar-mark {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.profile-sidebar-brand strong,
.profile-sidebar-brand span,
.profile-sidebar-user strong,
.profile-sidebar-user small {
    display: block;
}

.profile-sidebar-brand strong {
    font-size: 20px;
    line-height: 1.1;
}

.profile-sidebar-brand span,
.profile-sidebar-user small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.profile-sidebar-nav {
    display: grid;
    align-content: start;
    gap: 10px;
}

.profile-sidebar-nav a {
    padding: 13px 14px;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.profile-sidebar-nav a:hover,
.profile-sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.16);
}

.profile-sidebar-user {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-sidebar-user span {
    width: 46px;
    height: 46px;
    background: #725dde;
}

.profile-dashboard-main {
    display: grid;
    gap: 22px;
    align-content: start;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 34px);
}

.profile-topbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 18px;
    align-items: center;
}

.profile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    color: #fff;
    background: #3a88f4;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
}

.profile-search {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #7a7580;
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 8px;
}

.profile-summary-card,
.profile-panel,
.profile-detail-grid div {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(29, 27, 34, 0.06);
}

.profile-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    padding: clamp(24px, 4vw, 36px);
}

.profile-summary-card h1 {
    color: #101827;
    font-size: clamp(30px, 4vw, 46px);
}

.profile-muted {
    margin: 0 0 4px;
    color: #8a868e;
    font-size: 14px;
    font-weight: 800;
}

.profile-impact {
    display: grid;
    justify-items: end;
}

.profile-impact span {
    color: #8a868e;
    font-weight: 700;
}

.profile-impact strong {
    color: #101827;
    font-size: 34px;
    line-height: 1.1;
}

.profile-stat-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 26px;
    margin: 0;
}

.profile-stat-grid dt,
.profile-detail-grid span {
    color: #8a868e;
    font-size: 14px;
    font-weight: 800;
}

.profile-stat-grid dd {
    margin: 4px 0 0;
    color: #101827;
    font-size: 24px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.profile-verified {
    display: inline-flex;
    margin-left: 6px;
    color: #1a9b51;
    font-size: 16px;
    font-weight: 900;
}

.profile-primary-action,
.profile-secondary-action,
.profile-outline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: none;
    font-weight: 900;
    cursor: pointer;
}

.profile-primary-action {
    grid-column: 1 / -1;
    width: 100%;
    color: #fff;
    background: #079dca;
    border: 0;
}

.profile-primary-action.small {
    width: auto;
    min-width: 220px;
}

.profile-secondary-action {
    color: #fff;
    background: #079dca;
    border: 0;
}

.profile-outline-action {
    color: #21a047;
    background: #fff;
    border: 1px solid #21a047;
}

.profile-panel {
    padding: 22px;
}

.profile-panel h2 {
    margin: 0 0 8px;
    color: #101827;
    font-size: clamp(24px, 3vw, 34px);
}

.profile-panel p {
    margin: 0;
    color: #5f6570;
}

.profile-panel-header,
.profile-session-panel,
.quick-actions-card {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.profile-panel-header a {
    color: #079dca;
    font-weight: 800;
    text-decoration: none;
}

.attendance-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.attendance-day {
    display: grid;
    place-items: center;
    min-height: 72px;
    padding: 10px;
    color: #4f4b54;
    background: #f8fafc;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
}

.attendance-day span {
    font-size: 13px;
    font-weight: 700;
}

.attendance-day strong {
    font-size: 22px;
    line-height: 1.1;
}

.attendance-day.today {
    color: #173d76;
    background: #e7f1ff;
    border-color: #91c2ff;
}

.attendance-day.attended {
    color: #0f6a3b;
    background: #eaf8ef;
    border-color: #99d5ad;
}

.quick-actions-card {
    align-items: center;
}

.quick-action-icon {
    width: 58px;
    height: 58px;
    color: #7c3aed;
    background: #f2e9ff;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-detail-grid div {
    min-width: 0;
    padding: 18px;
}

.profile-detail-grid span,
.profile-detail-grid strong {
    display: block;
}

.profile-detail-grid strong {
    margin-top: 6px;
    color: #101827;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.profile-mobile-nav {
    display: none;
}

.profile-empty-state {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.08);
}

.profile-empty-state h1 {
    color: var(--plum-dark);
    font-size: clamp(34px, 5vw, 58px);
}

.profile-empty-state p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
    font-size: 19px;
}

.profile-mobile-nav a.active {
    color: #079dca;
}

.profile-menu-button {
    text-decoration: none;
}

.progress-focus-card,
.donation-support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.progress-focus-card h1,
.donation-support-hero h1,
.referral-hero-card h1 {
    margin: 0 0 10px;
    color: #101827;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.04;
}

.progress-score {
    display: grid;
    justify-items: end;
}

.progress-score span,
.reward-count span,
.donation-plan-card span {
    color: #627088;
    font-weight: 800;
}

.progress-score strong {
    color: #101827;
    font-size: 42px;
    line-height: 1;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    color: #14532d;
    background: #dcfce7;
    border-radius: 999px;
    font-weight: 900;
}

.profile-secondary-action.attended-state {
    color: #14532d;
    background: #cfe8dc;
}

.rewards-card {
    background: #fff;
}

.reward-count {
    display: grid;
    justify-items: end;
    min-width: 90px;
}

.reward-count strong {
    color: #334155;
    font-size: 28px;
    line-height: 1.1;
}

.reward-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 12px;
}

.reward-bars span {
    display: block;
    height: 12px;
    background: #e3e9f0;
    border-radius: 999px;
}

.reward-levels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-weight: 800;
}

.reward-note {
    margin-top: 22px !important;
    padding: 16px;
    color: #8a3a0f !important;
    background: #fff9e8;
    border: 1px solid #f2d58a;
    border-radius: 8px;
}

.breathing-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.progress-stats-card {
    display: grid;
    gap: 18px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.resource-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    min-height: 132px;
    padding: 18px;
    color: #101827;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(29, 27, 34, 0.06);
}

.resource-card strong,
.resource-card p {
    grid-column: 2;
}

.resource-card strong {
    font-size: 19px;
    line-height: 1.2;
}

.resource-card p {
    margin: -6px 0 0;
    color: #64748b;
}

.resource-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    font-weight: 900;
}

.resource-card.blue .resource-icon {
    color: #075985;
    background: #e0f2fe;
}

.resource-card.green .resource-icon {
    color: #166534;
    background: #dcfce7;
}

.resource-card.purple .resource-icon {
    color: #6d28d9;
    background: #f3e8ff;
}

.resource-card.gold .resource-icon {
    color: #8a5a12;
    background: #fff2c7;
}

.resource-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.resource-note-grid article {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 8px;
}

.resource-note-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #101827;
    font-size: 18px;
}

.resources-app-card {
    display: grid;
    gap: 24px;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 42px);
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(29, 27, 34, 0.08);
}

.resources-app-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.resources-app-heading a {
    color: #101827;
    font-size: 42px;
    line-height: 1;
    text-decoration: none;
    font-weight: 900;
}

.resources-app-heading h1 {
    margin: 0;
    color: #101827;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.02;
}

.resources-app-heading p {
    margin: 8px 0 0;
    color: #56657a;
    font-size: 20px;
}

.resources-link-list {
    display: grid;
    gap: 18px;
}

.resources-link-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 110px;
    padding: 22px;
    color: #101827;
    border-radius: 28px;
    text-decoration: none;
}

.resources-link-card.blue {
    background: #eaf4ff;
}

.resources-link-card.green {
    background: #ecfbef;
}

.resources-link-card.purple {
    background: #f8efff;
}

.resources-link-card.gold {
    background: #fff8dc;
}

.resources-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 24px;
    font-weight: 950;
}

.resources-link-card.blue .resources-link-icon {
    color: #075985;
    background: #d9ecff;
}

.resources-link-card.green .resources-link-icon {
    color: #15803d;
    background: #d7f8df;
}

.resources-link-card.purple .resources-link-icon {
    color: #7c3aed;
    background: #efdfff;
}

.resources-link-card.gold .resources-link-icon {
    color: #8a5a12;
    background: #fff0a8;
}

.resources-link-card strong,
.resources-link-card small {
    display: block;
}

.resources-link-card strong {
    font-size: 24px;
    line-height: 1.1;
}

.resources-link-card small {
    margin-top: 6px;
    color: #56657a;
    font-size: 17px;
    line-height: 1.3;
}

.resources-link-card b {
    color: currentColor;
    font-size: 34px;
    line-height: 1;
}

.resources-support-panel {
    width: min(720px, 100%);
    margin: 0 auto;
}

.referral-hero-card {
    display: grid;
    gap: 18px;
}

.referral-dashboard-shell .profile-dashboard-main {
    width: min(760px, 100%);
}

.referral-app-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 24px 0 4px;
}

.referral-app-summary span,
.referral-app-summary dt {
    color: #8a868e;
    font-size: 18px;
    font-weight: 700;
}

.referral-app-summary strong,
.referral-app-summary dd {
    margin: 4px 0 0;
    color: #101827;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 950;
}

.referral-app-summary dl {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 24px;
    margin: 0;
}

.referral-app-summary div {
    min-width: 0;
}

.referral-card-heading,
.referral-reward-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.referral-card-heading a,
.referral-reward-strip a {
    color: #079dca;
    font-weight: 900;
    text-decoration: none;
}

.habitmove-referral-card {
    gap: 18px;
    padding: 24px;
    border-radius: 18px;
}

.habitmove-referral-card h1 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.02;
    letter-spacing: 0;
}

.referral-lead {
    margin: -4px 0 0;
    color: #475569;
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.2;
}

.referral-lead strong {
    color: #8a2be2;
    font-weight: 950;
}

.referral-code-box,
.referral-link-box {
    display: grid;
    justify-items: center;
    padding: 20px;
    border-radius: 8px;
}

.referral-code-box {
    border: 2px dashed #cbd8ea;
}

.referral-code-box span {
    color: #64748b;
    font-size: 17px;
    font-weight: 900;
}

.referral-code-box strong {
    color: #101827;
    max-width: 100%;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.referral-link-box {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    justify-items: stretch;
    border: 2px dotted #101827;
}

.referral-link-box span {
    color: #101827;
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.referral-link-box button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #101827;
    background: #fff;
    border: 1px solid #101827;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.copy-icon {
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 4px;
    box-shadow: -6px 6px 0 -3px #fff, -6px 6px 0 -1px currentColor;
}

.referral-actions {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) minmax(210px, 1.28fr);
    gap: 14px;
}

.referral-actions .profile-secondary-action {
    min-height: 88px;
    background: #08b84e;
    border-radius: 16px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.12;
}

.wa-status-action {
    flex-direction: column;
    gap: 4px;
}

.wa-status-action span {
    display: block;
}

.referral-sync-note {
    display: grid;
    gap: 6px;
    padding: 22px;
    color: #8a3a0f;
    background: #fff9e8;
    border: 1px solid #f2d58a;
    border-radius: 8px;
}

.referral-sync-note strong,
.referral-sync-note span {
    display: block;
}

.how-to-invite ol {
    margin: 0;
    padding-left: 22px;
    color: #475569;
    font-weight: 700;
}

.referral-reward-strip {
    padding: 0 4px;
    color: #101827;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 900;
}

.referral-invite-details {
    overflow: hidden;
    border: 2px solid #d6e1ee;
    border-radius: 999px;
}

.referral-invite-details summary {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 16px 22px;
    color: #087eb3;
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.referral-invite-details summary::-webkit-details-marker {
    display: none;
}

.referral-invite-details summary::after {
    content: "";
    width: 20px;
    height: 20px;
    border-right: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    transform: rotate(45deg) translateY(-4px);
}

.referral-invite-details[open] {
    border-radius: 28px;
}

.referral-invite-details[open] summary::after {
    transform: rotate(225deg) translateY(-4px);
}

.referral-invite-details ol {
    margin: 0;
    padding: 0 28px 24px 54px;
    color: #475569;
    font-size: 17px;
    font-weight: 750;
}

.live-session-shell .profile-dashboard-main {
    width: min(760px, 100%);
}

.live-session-card {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 24px;
}

.live-session-card h1 {
    margin: 0;
    color: #101827;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.02;
}

.live-session-code {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 2px dashed #cbd8ea;
    border-radius: 14px;
}

.live-session-code span {
    color: #64748b;
    font-weight: 900;
}

.live-session-code strong {
    color: #101827;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.donation-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.donation-plan-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 22px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(29, 27, 34, 0.06);
}

.donation-plan-card.recommended {
    border-color: var(--plum);
    box-shadow: 0 16px 40px rgba(122, 53, 84, 0.16);
}

.donation-plan-card h2 {
    margin: 0;
    color: #101827;
    font-size: 42px;
}

.donation-plan-card p {
    margin: 0;
    color: #64748b;
}

.donation-disclaimer {
    border-color: #f2d58a;
    background: #fffaf0;
}

.workshop-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    padding: clamp(44px, 5vw, 76px) clamp(24px, 6vw, 96px);
    color: #fff;
    background: linear-gradient(110deg, #3f2334 0%, #2a1522 58%, #fff8f2 58%, #f4ebe5 100%);
}

.workshop-hero::after {
    content: "";
    position: absolute;
    top: clamp(28px, 4vw, 54px);
    right: clamp(24px, 6vw, 96px);
    bottom: clamp(28px, 4vw, 54px);
    width: min(37vw, 500px);
    border-radius: 8px;
    background: url("../images/workshop/mandala-workshop-hero.jpeg") center / cover;
    box-shadow: 0 24px 70px rgba(42, 21, 34, 0.24);
}

.workshop-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: 500px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.workshop-hero h1 {
    max-width: min(760px, 56vw);
    color: #fff;
}

.workshop-hero p:not(.eyebrow) {
    max-width: min(700px, 54vw);
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(18px, 2vw, 23px);
}

.workshop-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.workshop-intro,
.workshop-experience,
.workshop-registration {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0;
}

.workshop-copy {
    max-width: 880px;
}

.workshop-copy p,
.workshop-registration-copy p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
}

.workshop-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.workshop-detail-grid article {
    min-height: 142px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.07);
}

.workshop-detail-grid span {
    display: block;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workshop-detail-grid strong {
    display: block;
    margin-top: 10px;
    color: var(--plum-dark);
    font-size: 19px;
    line-height: 1.3;
}

.workshop-experience {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(26px, 4vw, 52px);
    align-items: center;
}

.workshop-experience ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 18px;
}

.workshop-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.workshop-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 460px;
    border-radius: 8px;
    object-fit: cover;
}

.workshop-gallery img:first-child {
    grid-row: span 2;
}

.workshop-registration {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(26px, 4vw, 48px);
    align-items: start;
    padding-top: 48px;
}

.workshop-registration-copy {
    position: sticky;
    top: 112px;
}

.workshop-registration-embed {
    min-width: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.08);
}

.workshop-registration-embed iframe {
    border-radius: 8px;
}

.raffle-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    min-height: 620px;
    padding: clamp(52px, 7vw, 96px) clamp(24px, 7vw, 120px);
    color: #fff;
    background:
        radial-gradient(circle at 84% 20%, rgba(184, 140, 70, 0.26), transparent 30%),
        linear-gradient(135deg, #2a1522 0%, #512138 54%, #247475 100%);
}

.raffle-hero-inner {
    width: min(760px, 100%);
}

.raffle-hero h1 {
    color: #fff;
}

.raffle-hero p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2vw, 22px);
}

.raffle-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
}

.raffle-hero-card {
    display: grid;
    gap: 12px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    color: var(--plum-dark);
    box-shadow: 0 24px 70px rgba(29, 27, 34, 0.24);
}

.raffle-hero-card span,
.raffle-example-grid span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.raffle-hero-card strong {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
}

.raffle-hero-card p {
    margin: 0;
    color: var(--muted);
}

.raffle-gift-aid,
.raffle-support,
.raffle-campaign {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 74px 0;
}

.raffle-gift-aid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.raffle-gift-aid p,
.raffle-campaign-copy p {
    color: var(--muted);
    font-size: clamp(18px, 2vw, 21px);
}

.raffle-example-grid,
.raffle-support-grid {
    display: grid;
    gap: 14px;
}

.raffle-example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.raffle-example-grid article,
.raffle-support-grid article,
.raffle-campaign-embed {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.07);
}

.raffle-example-grid article {
    padding: 20px;
}

.raffle-example-grid strong {
    display: block;
    margin-top: 10px;
    color: var(--plum-dark);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.raffle-example-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.raffle-support {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.raffle-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.raffle-support-grid article {
    min-height: 118px;
    display: grid;
    align-items: center;
    padding: 22px;
}

.raffle-support-grid span {
    color: var(--plum-dark);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.raffle-campaign {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(26px, 4vw, 48px);
    align-items: start;
    padding-top: 48px;
}

.raffle-campaign-copy {
    position: sticky;
    top: 112px;
}

.raffle-campaign-embed {
    min-width: 0;
    padding: 12px;
}

.raffle-campaign-embed iframe {
    border-radius: 8px;
}

.landing-hero,
.landing-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    min-height: 560px;
    padding: clamp(54px, 8vw, 104px) 0;
}

.landing-hero h1 {
    color: var(--plum-dark);
}

.landing-hero p:not(.eyebrow),
.landing-section p,
.landing-section li {
    color: var(--muted);
    font-size: 18px;
}

.landing-hero-card,
.landing-card-grid article,
.event-card,
.impact-grid article,
.landing-disclaimer {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.07);
}

.landing-hero-card {
    display: grid;
    gap: 10px;
    padding: 28px;
    border-top: 6px solid var(--teal);
}

.landing-hero-card span,
.event-card span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-hero-card strong {
    color: var(--plum-dark);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
}

.landing-section {
    padding: 66px 0;
}

.landing-card-grid,
.event-grid,
.impact-grid {
    display: grid;
    gap: 18px;
}

.landing-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-card-grid article,
.event-card,
.impact-grid article,
.landing-disclaimer {
    padding: 26px;
}

.landing-card-grid h3,
.event-card h3 {
    color: var(--plum-dark);
}

.event-card {
    display: grid;
    align-content: start;
}

.event-card .button {
    justify-self: start;
    margin-top: 8px;
}

.impact-grid strong {
    display: block;
    color: var(--plum-dark);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.related-links h2 {
    flex-basis: 100%;
}

.related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    color: var(--plum-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
}

.related-links a:hover {
    color: var(--teal);
}

.landing-disclaimer {
    border-left: 6px solid var(--gold);
}

.landing-disclaimer h2 {
    font-size: clamp(24px, 3vw, 34px);
}

fieldset {
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

legend {
    padding: 0 8px;
    color: var(--plum-dark);
    font-weight: 900;
}

.checkbox-label {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-weight: 700;
}

.checkbox-label input {
    width: auto;
    min-width: 18px;
    margin-top: 5px;
}

.thank-you-page {
    display: grid;
    align-content: center;
    min-height: 520px;
}

.thank-you-page .text-page {
    padding: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 38px;
    padding: 54px clamp(20px, 5vw, 72px);
    color: #efe9ec;
    background: #251722;
}

.site-footer h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d8cbd1;
}

.footer-cookie-settings {
    display: block;
    margin: 8px 0;
    padding: 0;
    color: #d8cbd1;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-cookie-settings:hover {
    color: var(--teal);
}

.footer-brand {
    margin-top: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.footer-brand-lockup {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.footer-brand-lockup img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-regulator {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-regulator .fr-digital-badge {
    display: inline-block;
    margin: 0;
}

.footer-regulator img {
    display: block;
    max-width: 150px;
}

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 8px 18px max(8px, env(safe-area-inset-bottom));
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(90, 37, 69, 0.16);
    box-shadow: 0 -10px 34px rgba(29, 27, 34, 0.14);
    backdrop-filter: blur(16px);
}

body.cookie-consent-visible {
    padding-bottom: calc(var(--cookie-consent-height, 54px) + 8px);
}

.cookie-consent__content {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    grid-template-areas: "title body links actions";
    gap: 12px;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.cookie-consent h2 {
    grid-area: title;
    margin: 0;
    color: var(--plum-dark);
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.cookie-consent p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.cookie-consent__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
}

.cookie-consent__actions button {
    min-height: 32px;
    padding: 7px 11px;
    color: #fff;
    background: var(--plum);
    border: 1px solid var(--plum);
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-consent__actions button:first-child {
    color: var(--plum-dark);
    background: #fff;
    border-color: #c7b6bd;
}

.cookie-consent__actions button:hover {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
}

.cookie-consent__actions button:first-child:hover {
    color: #fff;
}

.cookie-consent__links {
    grid-area: links;
    font-size: 12px;
    white-space: nowrap;
}

.cookie-consent__links a {
    color: var(--plum);
    font-weight: 900;
}

@media (max-width: 1080px) {
    .profile-dashboard {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        display: none;
    }

    .profile-dashboard-main {
        width: 100%;
    }

    .profile-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 12;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: min(100%, 760px);
        margin: 0 auto;
        padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #e4e9ef;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -10px 28px rgba(29, 27, 34, 0.08);
    }

    .profile-mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        justify-content: center;
        min-width: 0;
        padding: 8px 4px;
        color: #36313a;
        text-decoration: none;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.15;
        text-align: center;
    }

    .profile-mobile-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        color: #101827;
        background: #edf5ff;
        border-radius: 18px;
        font-size: 13px;
        font-weight: 950;
    }

    .profile-mobile-nav a.active .profile-mobile-icon {
        color: #fff;
        background: #079dca;
    }
}

@media (max-width: 960px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .donation-plan-grid,
    .resource-note-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cookie-consent {
        padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    }

    .cookie-consent__content {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title actions"
            "body links";
        gap: 6px 12px;
    }

    .cookie-consent h2 {
        margin: 0;
    }

    .cookie-consent p {
        margin: 0;
    }

    .cookie-consent__actions {
        justify-content: flex-end;
        margin: 0;
    }

    .hero-inner,
    .landing-hero,
    .split-section,
    .content-grid,
    .programme-grid,
    .profile-details,
    .two-column,
    .landing-card-grid,
    .event-grid,
    .impact-grid,
    .workshop-experience,
    .workshop-registration,
    .raffle-hero,
    .raffle-gift-aid,
    .raffle-support,
    .raffle-campaign,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .band {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero,
    .workshop-hero {
        min-height: auto;
        background: linear-gradient(180deg, #3f2334 0%, #2a1522 58%, #fff8f2 58%, #f4ebe5 100%);
    }

    .workshop-hero::after {
        position: relative;
        display: block;
        inset: auto;
        width: min(100%, 620px);
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 38px auto 0;
    }

    .workshop-hero-inner {
        min-height: auto;
    }

    .workshop-hero h1,
    .workshop-hero p:not(.eyebrow) {
        max-width: 760px;
    }

    .workshop-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workshop-registration-copy {
        position: static;
    }

    .raffle-hero {
        min-height: auto;
    }

    .raffle-campaign-copy {
        position: static;
    }
}

@media (max-width: 620px) {
    .profile-dashboard-shell {
        width: min(100% - 20px, 1360px);
        padding-top: 14px;
    }

    .profile-dashboard-main {
        gap: 16px;
        padding: 16px;
    }

    .profile-topbar,
    .profile-summary-card,
    .profile-stat-grid,
    .profile-detail-grid,
    .progress-focus-card,
    .donation-support-hero,
    .resource-grid,
    .referral-link-box,
    .referral-actions {
        grid-template-columns: 1fr;
    }

    .profile-panel-header,
    .profile-session-panel,
    .quick-actions-card {
        display: grid;
        gap: 14px;
    }

    .profile-impact {
        justify-items: start;
    }

    .progress-score,
    .reward-count {
        justify-items: start;
    }

    .attendance-week {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-primary-action.small,
    .profile-secondary-action,
    .profile-outline-action,
    .referral-link-box button {
        width: 100%;
    }

    .resource-card {
        grid-template-columns: 1fr;
    }

    .resources-app-card,
    .resources-support-panel {
        width: 100%;
    }

    .resources-app-card {
        gap: 18px;
        padding: 22px;
        border-radius: 22px;
    }

    .resources-app-heading {
        gap: 14px;
    }

    .resources-app-heading a {
        font-size: 34px;
    }

    .resources-app-heading h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .resources-app-heading p {
        font-size: 17px;
    }

    .resources-link-card {
        gap: 14px;
        min-height: 96px;
        padding: 18px;
        border-radius: 22px;
    }

    .resources-link-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 20px;
    }

    .resources-link-card strong {
        font-size: 21px;
    }

    .resources-link-card small {
        font-size: 15px;
    }

    .resource-card strong,
    .resource-card p {
        grid-column: auto;
    }

    .resource-icon {
        grid-row: auto;
    }

    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .button {
        width: 100%;
    }

    .cookie-consent {
        padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    }

    .cookie-consent__content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "body"
            "actions"
            "links";
        gap: 6px;
    }

    .cookie-consent__actions {
        display: flex;
        justify-content: flex-start;
    }

    .band {
        grid-template-columns: 1fr;
    }

    .hero,
    .free-yoga-hero,
    .workshop-hero,
    .page-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .free-yoga-hero {
        min-height: auto;
        padding-top: 34px;
        padding-bottom: 42px;
    }

    .free-yoga-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .free-yoga-copy h1 {
        font-size: clamp(42px, 13vw, 66px);
    }

    .free-yoga-copy p:not(.eyebrow) {
        font-size: 18px;
    }

    .free-yoga-signup-head,
    .free-yoga-signup-body {
        padding-right: 20px;
        padding-left: 20px;
    }

    .workshop-intro,
    .workshop-experience,
    .workshop-registration,
    .raffle-gift-aid,
    .raffle-support,
    .raffle-campaign {
        width: min(100% - 24px, 1180px);
        padding: 52px 0;
    }

    .workshop-detail-grid,
    .workshop-gallery,
    .landing-card-grid,
    .event-grid,
    .impact-grid,
    .raffle-example-grid,
    .raffle-support-grid {
        grid-template-columns: 1fr;
    }

    .workshop-gallery img,
    .workshop-gallery img:first-child {
        grid-row: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 620px) {
    .referral-dashboard-shell {
        width: 100%;
        padding: 0 0 104px;
    }

    .referral-dashboard-shell .profile-dashboard {
        min-height: auto;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .referral-dashboard-shell .profile-dashboard-main {
        gap: 14px;
        padding: 14px 12px 24px;
    }

    .referral-dashboard-shell .profile-topbar {
        display: none;
    }

    .referral-app-summary {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 10px 4px 2px;
    }

    .referral-app-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .referral-app-summary span,
    .referral-app-summary dt {
        font-size: 16px;
    }

    .referral-app-summary strong,
    .referral-app-summary dd {
        font-size: 28px;
    }

    .habitmove-referral-card {
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
    }

    .referral-card-heading {
        align-items: flex-start;
    }

    .referral-card-heading a,
    .referral-reward-strip a {
        white-space: nowrap;
    }

    .habitmove-referral-card h1 {
        font-size: clamp(30px, 9.6vw, 40px);
        line-height: 1.04;
    }

    .referral-lead {
        font-size: clamp(21px, 7vw, 30px);
    }

    .referral-code-box,
    .referral-link-box {
        padding: 16px 12px;
    }

    .referral-code-box strong {
        font-size: clamp(32px, 11vw, 48px);
    }

    .referral-link-box {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .referral-link-box span {
        font-size: clamp(18px, 6.2vw, 26px);
        line-height: 1.22;
    }

    .referral-link-box button {
        justify-content: center;
    }

    .referral-actions {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        gap: 10px;
    }

    .referral-actions .profile-secondary-action {
        min-height: 88px;
        padding: 12px 10px;
        border-radius: 14px;
        font-size: clamp(20px, 6.6vw, 28px);
        text-align: center;
    }

    .referral-rewards-card,
    .how-to-invite {
        padding: 18px;
        border-radius: 18px;
    }

    .referral-reward-strip {
        align-items: flex-start;
        padding: 0 4px;
        font-size: 18px;
    }

    .referral-rewards-card .profile-panel-header {
        gap: 10px;
    }

    .profile-mobile-nav {
        width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .profile-mobile-nav a {
        font-size: 11px;
    }

    .profile-mobile-icon {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .referral-invite-details summary {
        min-height: 72px;
        gap: 16px;
        padding: 14px 18px;
        font-size: clamp(28px, 9vw, 38px);
    }

    .referral-invite-details summary::after {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .referral-invite-details ol {
        padding: 0 20px 22px 42px;
        font-size: 15px;
    }

    .live-session-shell {
        width: 100%;
        padding: 0 0 104px;
    }

    .live-session-shell .profile-dashboard {
        min-height: auto;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .live-session-card {
        padding: 22px;
        border-radius: 22px;
    }
}

@media (max-width: 380px) {
    .referral-actions {
        grid-template-columns: 1fr;
    }
}
