:root {
    --bg-dark: #000000;
    --bg-deep: #0a0612;
    --bg-soft: #f0e6ff;
    --purple: #5D26C1;
    --purple-deep: #3B1580;
    --purple-soft: #A978FF;
    --accent-gold: #D4FF00;
    --accent-lime: #D4FF00;
    --text-main: #f5f0ff;
    --text-muted: #b89ee8;
    --card-bg: rgba(12, 6, 24, 0.72);
    --border-soft: rgba(169, 120, 255, 0.35);
    --border-purple: rgba(93, 38, 193, 0.45);
    --glow-purple: rgba(93, 38, 193, 0.55);
    --glow-lime: rgba(212, 255, 0, 0.5);
    --max-width: 1280px;
    --radius: 20px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --transition-fast: 220ms ease-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------- GLOBAL BACKGROUND ---------------- */
body {
    font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

    /* Matches the dark edges of the background artwork */
    background-color: #060010;

    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url("assets/ahlam-background.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Softens the busy center of the artwork so content reads cleaner */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%, rgba(6, 0, 16, 0.55), transparent 70%),
        linear-gradient(to bottom, rgba(6, 0, 16, 0.15), rgba(6, 0, 16, 0.35));
}

@media (max-width: 768px) {
    body::before {
        background-image: url("assets/ahlam-background-mobile.png");
        background-position: center center;
        background-size: cover;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 900px) {
    .container {
        padding: 0 32px;
    }
}

/* ---------------- HEADER ---------------- */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.65)
    );
    border-bottom: 1px solid var(--border-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 70px;          /* tweak size if you want: 60–80 is nice */
    height: auto;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;

    /* optional: keep the floating animation, or remove these two lines */
    transform: translateY(0);
    animation: floatLogo 1.5s ease-in-out infinite;
}

.brand-logo img,
.hero-card-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 0 10px rgba(93, 38, 193, 0.35));
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text span:first-child {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-text span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.84rem;
}

.nav-links a {
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: var(--text-muted);
    padding-bottom: 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-lime), var(--purple-soft));
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    border-radius: 999px;
    padding: 7px 18px;
    border: 1px solid rgba(212, 255, 0, 0.65);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-lime);
    background: radial-gradient(circle at top, rgba(212, 255, 0, 0.1), transparent);
    transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-cta:hover {
    background: radial-gradient(circle at top, rgba(212, 255, 0, 0.22), transparent);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.nav-cta-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: normal;
    color: var(--accent-lime);
}

.nav-links a.nav-cta-icon,
.nav-links-mobile a.nav-cta-icon {
    padding-bottom: 0;
}

.nav-cta-icon::after {
    display: none;
}

.nav-cta-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* mobile menu */
.nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    text-align: right;
    font-size: 0.9rem;
}

.nav-links-mobile a {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links-mobile a:hover {
    color: #fff;
}

.nav-links-mobile .nav-cta:not(.nav-cta-icon) {
    justify-content: flex-end;
    margin-top: 2px;
}

.nav-links-mobile .nav-cta-icon {
    align-self: flex-end;
    justify-content: center;
    margin-top: 2px;
}

/* --------------- HERO --------------- */
.hero {
    padding: 72px 0 72px;
}

/* Swiss hero variant */
.swiss-hero .hero-title {
    letter-spacing: 0.02em;
    font-weight: 700;
}
.swiss-hero .hero-tag::before {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--accent-lime));
    border-radius: 999px;
    margin-bottom: 10px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

@media (max-width: 880px) {
    .hero {
        padding: 56px 0 48px;
    }

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: radial-gradient(circle at left, rgba(212, 255, 0, 0.18), transparent);
    border: 1px solid var(--border-soft);
    font-size: 0.8rem;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.hero-tag span.icon {
    font-size: 1.1em;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-title span.highlight {
    background: linear-gradient(90deg, var(--accent-lime), var(--purple-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-slogan {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--accent-lime));
    color: #000000;
    box-shadow: 0 8px 28px var(--glow-purple), 0 4px 16px rgba(212, 255, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--purple-soft);
}

.btn-ghost:hover {
    background: rgba(12, 6, 24, 0.85);
    border-color: rgba(212, 255, 0, 0.4);
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta span .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-lime);
    box-shadow: 0 0 12px var(--glow-lime);
}

/* HERO right: mockup card */
.hero-card-wrap {
    perspective: 1200px;
}

.hero-card {
    background: rgba(8, 4, 16, 0.78);
    backdrop-filter: blur(16px);

    border-radius: 32px;
    box-shadow: var(--shadow-soft), 0 0 40px var(--glow-purple);
    padding: 18px 18px 56px;
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: heroTilt 8s ease-in-out infinite alternate;
    backdrop-filter: blur(3px); /* Smooth turf look */
}

.hero-card > .badge-live,
.hero-card-footer > .badge-live {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20); /* Subtle overlay */
    pointer-events: none;
}

@keyframes heroTilt {
    0% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: rotateY(4deg) rotateX(-3deg) translateY(-6px);
    }
    100% {
        transform: rotateY(-6deg) rotateX(3deg) translateY(2px);
    }
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-live {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212, 255, 0, 0.12);
    border: 1px solid rgba(212, 255, 0, 0.55);
    color: var(--accent-lime);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-live span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-lime);
    box-shadow: 0 0 16px var(--glow-lime);
}

.hero-card-logo {
    width: 160px;          /* adjust size as you like */
    height: auto;
    padding: 0;
    border-radius: 0;      /* no rounded container */
    border: none;
    background: none;      /* remove purple background */
    box-shadow: none;      /* remove box glow */
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-card-body {
    border-radius: 22px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--border-purple);
    position: relative;
}

.hero-card-body .hero-video {
    display: block;
    width: 100%;
    height: 320px;           /* desktop height */
    object-fit: cover;
    background: #000;
}

@media (max-width: 900px) {
    .hero-card-body .hero-video {
        height: 220px;       /* shorter on mobile */
    }
}

.hero-card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-card-footer {
    margin-top: 16px;
    display: flex;
    flex-direction: column;     /* stack lines vertically */
    align-items: flex-start;
    gap: 4px;                   /* small space between lines */
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card-footer span {
    display: block;             /* each span is its own line */
}

.hero-card-footer .highlight {
    color: var(--accent-lime);
    font-weight: 600;
}


/* --------------- SECTION BASE --------------- */
section {
    padding: 36px 0 52px;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--purple-soft);
    margin-bottom: 6px;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 auto;
}

/* --------------- ABOUT --------------- */
.about-grid {
    display: grid;
    /* keep both columns reasonably wide so text doesn't collapse vertically */
    grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: flex-start;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    padding: 22px 22px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.about-card strong {
    color: var(--purple-soft);
}

.about-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.about-pill {
    background: rgba(12, 6, 24, 0.75);
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border-purple);
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-pill span.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--purple-soft);
}

.about-pill span.value {
    font-weight: 600;
}

/* --------------- VALUES CAROUSEL --------------- */
.values-wrapper {
    margin-top: 10px;
    position: relative;
}

.carousel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    border: 1px solid var(--border-soft);
    padding: 18px 40px 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    min-height: 260px;
    transition: height 420ms ease; /* animate height when slide content changes */
}

.value-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
    align-items: center;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 280ms ease, transform 280ms ease;
}

.value-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 880px) {
    .value-slide {
        grid-template-columns: 1fr;
    }
}

.value-image-wrap {
    border-radius: 28px;  /* rounder corners */
    /* don't clip here; let the inner image handle its own rounding to avoid top cut-off */
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at top left, var(--purple-deep), var(--bg-deep));
    position: relative;
    padding: 4px;         /* small inset so it doesn’t look “cut” into the big card */
    height: 468px;        /* 30% taller for a more immersive photo */
    overflow: hidden;
}

.value-image-wrap img {
    width: 100%;
    height: 100%;         /* fill wrapper height for uniform look */
    object-fit: cover;     /* fill the box */
    opacity: 0.97;
    border-radius: 24px;   /* actually round the photo itself */
    display: block;
}

@media (max-width: 900px) {
    .value-image-wrap {
        height: 286px; /* 30% taller on phones as well */
    }
}

.value-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(244, 234, 255, 0.9);
    text-align: center;
    padding: 10px;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.18), transparent 55%);
}

.value-content {
    padding: 10px 4px;
}

.value-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--purple-soft);
    margin-bottom: 8px;
}

.value-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.value-title span.emoji {
    font-size: 1.6rem;
}

.value-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.value-tags {
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.value-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(12, 6, 24, 0.85);
    border: 1px solid var(--border-purple);
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot-btn {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    background: rgba(93, 38, 193, 0.35);
    transition: transform var(--transition-fast),
    background var(--transition-fast), box-shadow var(--transition-fast);
}

.dot-btn.active {
    background: var(--accent-lime);
    transform: scale(1.3);
    box-shadow: 0 0 18px var(--glow-lime);
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(8, 4, 16, 0.85);
    color: var(--purple-soft);
    padding: 6px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(59, 21, 128, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

/* --------------- CONTACT --------------- */
.contact {
    padding-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 26px;
    align-items: flex-start;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--purple-soft);
    min-width: 84px;
}

.contact-value a {
    color: var(--accent-lime);
    /* keep email on one line to avoid awkward breaks like "gmail.co\nm" */
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.socials {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-pill {
    border-radius: 999px;
    padding: 7px 14px;
    border: 1px solid var(--border-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.social-pill:hover {
    background: rgba(59, 21, 128, 0.75);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7);
}

.contact-note {
    margin-top: 14px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-cta strong {
    color: var(--accent-lime);
}

.contact-cta ul {
    list-style: none;
    padding-left: 0;
}

.contact-cta li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-cta li span.bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--purple-soft);
    box-shadow: 0 0 14px var(--glow-purple);
}

.contact-turnstile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.contact-turnstile small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------- FOOTER --------------- */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    padding: 14px 0 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

footer span.highlight {
    color: var(--accent-lime);
}

/* --------------- SCROLL ANIMATIONS --------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------- COACHES PAGE --------------- */
#coaches {
    padding-top: 0;
}

.coaches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 900px) {
    .coaches-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.coach-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .coach-card {
        grid-template-columns: 1fr;
    }
}

.coach-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-purple);
    background: radial-gradient(circle at top left, var(--purple-deep), var(--bg-deep));
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 480ms ease, filter 480ms ease;
}

.coach-card:hover .coach-photo img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.coach-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 2px;
}

.coach-name {
    font-size: 1.2rem;
}

.coach-role {
    font-size: 0.9rem;
    color: var(--purple-soft);
    letter-spacing: 0.06em;
}

.coach-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.coach-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.coach-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(12, 6, 24, 0.85);
    border: 1px solid var(--border-purple);
    font-size: 0.8rem;
}

/* --------------- ABOUT PAGE --------------- */
#about-us {
    padding-top: 0;
}

.aboutus-intro {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.aboutus-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 900px) {
    .aboutus-steps {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.aboutus-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(12, 6, 24, 0.9);
    border: 1px solid rgba(93, 38, 193, 0.6);
}
@media (max-width: 480px) {
    .about-icon {
        font-size: 1.25rem; /* keep emoji fully inside on small phones */
    }
}

.about-title {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.aboutus-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --------------- STORY HERO (HOME) --------------- */
.story-hero {
    padding-top: 0;
}

.story-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.story-header {
    text-align: center;
    margin-bottom: 12px;
}

.story-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 900px) {
    .story-list {
        grid-template-columns: 1fr;
    }
}

.story-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: flex-start;
    background: rgba(12, 6, 24, 0.6);
    border: 1px solid rgba(93, 38, 193, 0.45);
    border-radius: 16px;
    padding: 12px;
}

.story-badge {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    background: linear-gradient(145deg, rgba(93, 38, 193, 0.35), rgba(169, 120, 255, 0.12));
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 0 24px rgba(93, 38, 193, 0.2);
}

.story-title {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.story-content p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* about page photo */
.aboutus-photo {
    margin: 14px 0 16px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at top left, var(--purple-deep), var(--bg-deep));
    box-shadow: var(--shadow-soft);
    position: relative;
}

/* Coaches page gallery */
.coach-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .coach-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .coach-gallery {
        grid-template-columns: 1fr;
    }
}
.coach-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    background: #000;
}

.aboutus-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.18), transparent 55%);
    pointer-events: none;
}

.aboutus-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --------------- SIGNUP PAGE --------------- */
.signup-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.stepper .step {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(169, 120, 255, 0.6);
    color: var(--purple-soft);
    font-size: 0.8rem;
}
.stepper .step.active {
    background: rgba(12, 6, 24, 0.9);
    color: #fff;
}

.form-step.hidden { display: none; }
.section-mini { margin: 6px 0 8px; }
.divider { height: 1px; background: rgba(169, 120, 255, 0.25); margin: 18px 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill {
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(169, 120, 255, 0.6);
    background: rgba(12, 6, 24, 0.9);
    font-size: 0.82rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    /* Align fields by their bottoms so inputs line up even if labels wrap */
    align-items: end;
}
/* add a little vertical breathing room between stacked form grids (e.g., schedule rows) */
.form-grid + .form-grid {
    margin-top: 12px;
}
.label { display: block; margin-bottom: 6px; min-height: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 0.85rem; color: var(--purple-soft); letter-spacing: 0.06em; }
.hint { font-size: 0.8rem; color: var(--text-muted); }

.input, select.input, textarea.input {
    background: rgba(12, 6, 24, 0.85);
    border: 1px solid rgba(169, 120, 255, 0.55);
    color: var(--text-main);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
}
.input:focus, select.input:focus, textarea.input:focus {
    border-color: var(--purple-soft);
    box-shadow: 0 0 0 4px rgba(93, 38, 193, 0.25);
}
textarea.input { resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.multichoice { gap: 10px; }
.multichoice .choice {
    border: 1px solid rgba(169, 120, 255, 0.45);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(12, 6, 24, 0.6);
}
.multichoice .choice input { accent-color: var(--purple-soft); }

.actions { display: flex; gap: 10px; margin-top: 10px; }

/* Sign-in / small forms: make the action buttons align nicely and wrap on mobile */
.signup-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.signup-card .actions .btn-primary,
.signup-card .actions .btn-ghost {
    flex: 1 1 220px;        /* grow and shrink with a reasonable base width */
    min-width: 180px;       /* keep readable tap targets */
}
@media (max-width: 520px) {
    .signup-card .actions .btn-primary,
    .signup-card .actions .btn-ghost {
        flex: 1 1 100%;     /* stack to full width on small screens */
    }
}

.summary-box, .total-box {
    background: rgba(12, 6, 24, 0.75);
    border: 1px solid rgba(169, 120, 255, 0.5);
    border-radius: 14px;
    padding: 10px 12px;
}
#summarySchedule { white-space: pre-line; }
.total-box { font-weight: 700; font-size: 1.1rem; color: var(--accent-gold); }

.summary-box .item { margin: 4px 0; }
.summary-box .muted { color: var(--text-muted); font-size: 0.9rem; }
.summary-box .item + .item { border-top: 1px solid rgba(169, 120, 255, 0.25); padding-top: 6px; margin-top: 6px; }

/* Extra spacing before standalone fields following a grid (e.g., "Additional info") */
.form-grid + .field {
    margin-top: 14px;
}

/* When a field directly follows another field (e.g., Additional info → Jersey checkbox),
   add a little vertical gap so they don't feel cramped */
.field + .field {
    margin-top: 12px;
}

.agreements { display: flex; flex-direction: column; gap: 8px; }
.agreement-text {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(12, 6, 24, 0.65);
    border: 1px solid rgba(169, 120, 255, 0.35);
    color: var(--text-muted);
}
.agreement-text p { margin: 6px 0; }
.agreement-text ul, .agreement-text ol { margin: 6px 0 6px 18px; }
.agreement-text li { margin-bottom: 4px; }

/* --------------- GLOBAL LOADER --------------- */
#asa-loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#asa-loader.visible { display: flex; }
#asa-loader .ball {
    /* Render the soccer ball as a background so there's never alt text and no broken icon */
    background: url("/assets/loading-ball.png") center/contain no-repeat transparent;
    /* Responsive size: big on desktop, still prominent on mobile */
    width: clamp(96px, 14vw, 200px);
    height: clamp(96px, 14vw, 200px);
    border-radius: 50%;
    display: block;
    animation: asa-spin 1000ms linear infinite;
    filter: drop-shadow(0 0 16px var(--glow-purple))
            drop-shadow(0 0 30px rgba(212, 255, 0, 0.2));
}
@keyframes asa-spin {
    to { transform: rotate(360deg); }
}
