/* --- SUB-PAGE LAYOUT OVERRIDES --- */
.page-body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-dark);
}

.page-body .orb-1 {
    animation: orb-wander-1 24s ease-in-out infinite;
}
.page-body .orb-2 {
    animation: orb-wander-2 32s ease-in-out infinite;
}

@keyframes orb-wander-1 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    20%  { transform: translate(200px, 120px) scale(1.12) rotate(10deg); }
    40%  { transform: translate(80px, 300px) scale(0.9) rotate(-6deg); }
    60%  { transform: translate(-180px, 220px) scale(1.15) rotate(18deg); }
    80%  { transform: translate(-300px, -60px) scale(1.05) rotate(8deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes orb-wander-2 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    25%  { transform: translate(-200px, -150px) scale(0.88) rotate(-14deg); }
    50%  { transform: translate(-60px, -300px) scale(1.15) rotate(8deg); }
    75%  { transform: translate(180px, -180px) scale(0.95) rotate(-10deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.page-header {
    padding: 120px clamp(16px, 4vw, 40px) 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    line-height: 1.1;
}

.page-header p {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin: 0;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 60px;
    overflow-x: hidden;
}

/* Full member grid for sub-pages */
.page-content .member-grid {
    gap: clamp(16px, 2.5vw, 30px);
}
.page-content .member-card {
    flex: 1 1 220px;
    max-width: 260px;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* --- SECTION CTA (home page previews) --- */
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cta-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.03) 50%,
        rgba(255,255,255,0.06) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(255,255,255,0.05),
        0 8px 32px rgba(0,0,0,0.25);
}

/* Glossy glass reflection on top half */
.cta-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.06) 40%,
        transparent 100%
    );
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.cta-link:hover {
    border-color: rgba(255,255,255,0.20);
    color: #ffffff;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.14) 0%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.08) 100%
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        inset 0 -1px 0 rgba(255,255,255,0.08),
        0 12px 40px rgba(0,0,0,0.35);
}

.cta-link:hover::before {
    height: 60%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.08) 40%,
        transparent 100%
    );
}

/* Click sheen — parallelogram sweep top-left → bottom-right */
.cta-link::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255,255,255,0.25) 48%,
        rgba(255,255,255,0.50) 50%,
        rgba(255,255,255,0.25) 52%,
        transparent 60%
    );
    transform: translate(-10%, -10%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}
.cta-link.sheening::after {
    animation: sheen-sweep 500ms ease-in-out forwards;
}
@keyframes sheen-sweep {
    0%   { transform: translate(-10%, -10%); }
    100% { transform: translate(30%, 30%); }
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    margin-top: 80px;
    padding: 80px clamp(16px, 4vw, 40px) 30px;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01));
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 0;
    max-width: 300px;
}

.footer-email {
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0;
    font-weight: 500;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    margin: 0 0 6px;
}

.footer-links-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    line-height: 1.6;
}

.footer-links-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: #ffffff;
}

/* --- ABOUT PAGE --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-section h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.about-section h2 .highlight {
    color: var(--accent);
}

.about-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- EVENTS PAGE --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.event-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s, border-color 0.4s;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.event-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #0d1117;
}

.event-card-body {
    padding: 20px 24px 24px;
}

.event-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.event-card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.year-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa4b2;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

/* --- GALLERY PAGE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.4s, border-color 0.4s;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item:hover {
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-tile {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.02) 50%,
        rgba(255,255,255,0.03) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 3vw, 32px);
    transition: transform 0.4s, border-color 0.4s;
}

.gallery-tile[data-type="achievement"] {
    border-left: 3px solid var(--brand-blue);
}

.gallery-tile[data-type="event"] {
    border-left: 3px solid var(--brand-green);
}

.gallery-tile.wide { grid-column: span 2; }
.gallery-tile.tall { grid-row: span 2; }

.gallery-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.14);
}

.gallery-tile-watermark {
    position: absolute;
    top: -20px; right: -10px;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    letter-spacing: -5px;
    pointer-events: none;
    text-transform: uppercase;
    line-height: 1;
    user-select: none;
}

.gallery-tile-body h3 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 10px 0 8px;
    line-height: 1.2;
}

.gallery-tile-body p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 90%;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

.contact-item p, .contact-item a {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-col input,
.contact-form-col textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form-col input:focus,
.contact-form-col textarea:focus {
    border-color: var(--accent);
}

.contact-form-col textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-col button {
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-form-col button:hover {
    opacity: 0.85;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .page-header {
        padding-top: 100px;
    }
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 580px;
        margin: 0 auto;
    }
    .gallery-item,
    .gallery-tile {
        width: 100%;
        box-sizing: border-box;
    }
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-tile.wide,
    .gallery-tile.tall {
        grid-column: auto;
        grid-row: auto;
    }
    .gallery-item {
        border-radius: 18px;
        aspect-ratio: 16 / 10;
        min-height: 220px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
    }
    .gallery-tile {
        border-radius: 18px;
        padding: 24px 20px;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(12, 18, 28, 0.85) 100%
        );
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .gallery-tile-watermark {
        font-size: 2.2rem;
        top: 14px;
        right: 16px;
        letter-spacing: -1px;
        opacity: 0.12;
    }
    .gallery-tile-body h3 {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin: 8px 0 8px;
        line-height: 1.3;
        color: #ffffff;
    }
    .gallery-tile-body p {
        font-size: 0.92rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.65);
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* --- JOIN PAGE --- */
.join-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.join-card {
    padding: clamp(8px, 2vw, 16px) 0 clamp(40px, 6vw, 72px);
}

.join-form { display: block; }
.join-form.hidden-form { display: none; }

.join-field {
    border: none;
    margin: 0;
    padding: 20px 0 24px;
    min-width: 0;
}

.join-choice-field {
    padding-top: 24px;
}

.join-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 10px;
}

legend.join-label {
    padding: 0;
    width: 100%;
}

.join-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

.join-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.join-input,
.join-select {
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    background-image: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    padding: 12px 2px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    outline: none;
    transition: background-size 280ms cubic-bezier(0.23, 1, 0.32, 1), border-color 240ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms ease;
}

.join-input::placeholder { color: rgba(255, 255, 255, 0.25); }

.join-input:focus,
.join-select:focus {
    border-bottom-color: rgba(255, 255, 255, 0.28);
    background-size: 100% 2px;
}

.join-select {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 28px 12px 2px;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.join-dropdown { position: relative; }

.join-dropdown-chevron {
    width: 9px;
    height: 9px;
    margin-left: auto;
    flex-shrink: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.join-dropdown.is-open .join-dropdown-chevron {
    transform: rotate(225deg) translate(0, 0);
}

.join-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: rgba(8, 11, 17, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transform-origin: top center;
    transition: opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 160ms;
}

.join-dropdown.is-open .join-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.join-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

.join-dropdown-option:last-child { border-bottom: none; }
.join-dropdown-option.selected,
.join-dropdown-option.highlighted { color: #ffffff; background: rgba(255, 255, 255, 0.05); }

.join-dropdown-option.selected::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    flex-shrink: 0;
}

.join-dropdown-menu::-webkit-scrollbar { width: 4px; }
.join-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
.join-dropdown-trigger.invalid,
.join-input.invalid { border-bottom-color: rgba(255, 107, 107, 0.7); }

.yn-pill.invalid { border-color: rgba(255, 107, 107, 0.7); }

@media (hover: hover) and (pointer: fine) {
    .join-dropdown-option:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }
}

.interest-pills,
.cookie-pills,
.yn-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-pills {
    gap: 8px;
    max-width: 360px;
}

.yn-pills {
    gap: 8px;
    max-width: 360px;
}

.interest-pill,
.cookie-pill,
.yn-pill {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms ease, background-color 200ms ease;
}

.cookie-pill {
    position: relative;
    flex: 1 1 0;
    min-width: 110px;
    padding: 13px 18px 13px 42px;
    text-align: left;
    font-size: 1rem;
    font-weight: 650;
}

.cookie-pill::before {
    position: absolute;
    left: 16px;
    top: 50%;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.cookie-yes::before { content: "+"; }
.cookie-no::before { content: "-"; }

.interest-pill:active,
.cookie-pill:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .interest-pill:hover,
    .cookie-pill:hover,
    .yn-pill:hover {
        border-color: rgba(255, 255, 255, 0.45);
        color: #ffffff;
    }
}

.interest-pill.selected {
    background-color: rgba(34, 147, 205, 0.14);
    border-color: rgba(34, 147, 205, 0.65);
    color: #ffffff;
}

.cookie-pill.selected {
    background-color: rgba(249, 182, 31, 0.12);
    border-color: rgba(249, 182, 31, 0.65);
    color: #ffffff;
}

.cookie-no.selected {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.yn-pill {
    position: relative;
    flex: 1 1 0;
    min-width: 110px;
    padding: 13px 18px 13px 42px;
    text-align: left;
    font-size: 1rem;
    font-weight: 650;
}

.yn-pill::before {
    position: absolute;
    left: 16px;
    top: 50%;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.yn-yes::before { content: "+"; }
.yn-no::before { content: "-"; }

.yn-pill:active { transform: scale(0.97); }

.yn-pill.selected {
    background-color: rgba(34, 147, 205, 0.14);
    border-color: rgba(34, 147, 205, 0.65);
    color: #ffffff;
}

.yn-no.selected {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.join-conditional {
    display: none;
    margin: 4px 0 0;
    padding: 14px 0 18px 18px;
    border-left: 2px solid rgba(34, 147, 205, 0.45);
}

.join-conditional.show { display: block; }

.pills-error {
    display: none;
    margin: 10px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ff6b6b;
}
.pills-error.show { display: block; }

.join-submit {
    width: 100%;
    margin-top: 28px;
    padding: 16px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(34, 147, 205, 0.35);
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms ease, filter 200ms ease;
}
.join-submit:active { transform: scale(0.98); filter: brightness(0.96); }
@media (hover: hover) and (pointer: fine) {
    .join-submit:hover { box-shadow: 0 8px 30px rgba(34, 147, 205, 0.5); filter: brightness(1.08); }
}

.join-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(32px, 6vw, 64px) 0;
}
.join-success.show { display: flex; }

.join-success-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.join-success h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.join-success p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 380px;
}

.join-reset {
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease, color 200ms ease;
}
.join-reset:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
    .join-reset:hover { border-color: rgba(255, 255, 255, 0.4); color: #ffffff; }
}

@media (max-width: 560px) {
    .join-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .join-field { padding: 18px 0 22px; }
}
