* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#home,
#programs,
#trainers,
#contact {
    scroll-margin-top: 100px;
}

/* BODY */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0B0B0B;
    color: #FFFFFF;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 40px 0px 100px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 100;

     background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent);
}

/* LEFT */
.nav-left {
    flex: 1;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

/* CENTER */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-center a {
    text-decoration: none;
    color: #ddddddd7;
    transition: 0.2s;
      font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

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

/* RIGHT */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* BUTTON */
.nav-btn {
    padding: 8px 18px;
    background: #FF3B3B;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* MENU ICON */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100svh;

    background: url('assets/images/gym.png') center/cover no-repeat;

    justify-content: center;
    align-items: center;
    text-align: center;
     display: flex;
    flex-direction: column;
     padding: 120px 20px;
     overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
  circle at 60% center,
  rgba(0,0,0,0.90) 0%,
  rgba(0,0,0,0.65) 35%,
  rgba(0,0,0,0.35) 65%,
  rgba(0,0,0,0.5) 100%
);
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,   /* full overlay on left */
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.2) 70%,
    rgba(0,0,0,0.75) 100%     /* no overlay on right */
  );
}
/* CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    transform: none;
     /* transform: translateY(-30px); */
    padding: 0 0px;
   padding-top: 15px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.05;
    /* margin-bottom: 18px; */
      margin-bottom: 22px;
       letter-spacing: -1.5px;
       text-wrap: balance;
}

.accent {
    background: linear-gradient(90deg, #FF3B3B, #ff7a7a);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.1rem;
    color: #bfbfbf;
    margin-bottom: 35px;
     line-height: 1.7;
     
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
}

/* PRIMARY */
.primary {
    background: #FF3B3B;
    color: #fff;
    transition: 0.2s ease;
}

.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255,59,59,0.35);

}
.primary:active {
    transform: scale(0.96);
}
/* SECONDARY */
.secondary {
    border: 1px solid #555;
    color: #ddd;
}

.secondary:hover {
    border-color: #fff;
    color: #fff;
}

/* MOBILE */
@media (max-width: 640px) {

    .navbar {
        padding: 0 18px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-btn {
        display: none;
    }

    .nav-center {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        background: #111;
        flex-direction: column;
        text-align: center;

        padding: 16px 0;

        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;

        transition: 0.3s;
    }

    .nav-center.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-center a {
        margin: 12px 0;
        padding: 10px 14px;
        width: calc(100% - 28px);
        border-radius: 10px;
        font-size: 1rem;
        line-height: 1.2;
        color: #ddd;
    }

    .hero {
        padding: 98px 18px 70px;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 2px;
        margin: 0 auto;
    }

    .hero-content h1 {
        margin-bottom: 14px;
        font-size: 2.6rem;
        line-height: 1.06;
        letter-spacing: -0.6px;
    }

    .hero-content p {
        max-width: 100%;
        margin-bottom: 22px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-bottom: 18px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

/* TABLET */    
@media (min-width: 641px) and (max-width: 1024px) {

    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-center {
        gap: 20px;
    }

    .nav-btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}
.stats-wrapper {
    overflow: hidden;   
    margin-top: 40px;
     max-width: 500px;
    margin: 40px auto 0;
    /* REAL transparent fade */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.stats-track {
    display: flex;
    gap: 50px;
    width: max-content;
width: max-content;
    animation: scrollLeft 18s linear infinite;
}
.stats-track:hover {
    animation-play-state: paused;
}
.stat {
    text-align: center;
    min-width: 120px;
    opacity: 0.6;;
}

.stat h3 {
    font-size: 1.9rem;
    font-weight: 700;
      color: #fff;
}

.stat p {
    font-size: 0.9rem;
     color: #888;
    letter-spacing: 0.5px;
}
.bold {
    font-weight: 700;
}
.stats-title {
    margin-bottom: 20px; 
}
/* animation */
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@media (max-width: 640px) {
    .stats-track {
        gap: 40px;  
    }

    .stats-wrapper {
    margin-top: 30px;
}

.stat h3 {
    font-size: 1.2rem;
}
}
.navbar.scrolled {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px;
    margin-bottom: 20px;

    font-size: 0.85rem;
    font-weight: 500;
    color: #ddd;

    border-radius: 999px;
     border: 1px solid rgba(255,59,59,0.4);
    background: rgba(255,59,59,0.08);
    color: #fff;
    backdrop-filter: blur(6px);

    opacity: 0.9;
    animation: fadeUp 0.8s ease forwards;
}

.social-proof .fire {
    color: #FF3B3B;
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Prevent pulse from visually touching container edges */
.social-proof .fire {
    display: inline-block;
    line-height: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION */
.programs {
    padding: 120px 20px;
    background: #0B0B0B;
    text-align: center;
}

.programs h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 50px;
}

/* GRID */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.program-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);

    border-radius: 14px;
    overflow: hidden;
    text-align: left;

    display: flex;
    flex-direction: column; 

      opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
     min-height: 100%;
}
.program-card.show {
    opacity: 1;
    transform: translateY(0);
}
/* HOVER */
.program-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(255,59,59,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* IMAGE */
.program-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* IMAGE ZOOM */
.program-card:hover img {
    transform: scale(1.08);
}

/* OVERLAY */
.program-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        transparent 20%
    );
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.program-card:hover::after {
    opacity: 1;
}

/* TEXT */
.program-card h3 {
    font-size: 1.4rem;
    margin : 20px 20px 10px;
}

.program-card p {
    color: #aaa;
      margin: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1; /* 🔥 pushes button down */
}

/* LINK */
.program-card a {
    display: inline-block;
      margin: 0 20px 30px;
    color: #FF3B3B;
    font-weight: 600;
     position: relative;
     text-decoration: none;
}
.program-card a::after {
    content: " →";
    transition: 0.2s;
}
.program-card a:hover {
    color: #ff7a7a;
}

.program-card a:hover::after {
    margin-left: 5px;
}
/* MOBILE */
@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .program-card img {
        height: 260px;
    }
}
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.hero-line-1 {
    display: block;
    font-size: 80px;
    font-weight: 700;
}

.hero-line-2 {
    display: block;
    margin-top: 10px;
    font-size: 55px;
    
    font-weight: 600;
}
@media (max-width: 640px) {

    .hero-line-1 {
        font-size: 35px;
    }

    .hero-line-2 {
        font-size: 28px;
    }
   
}
.trainers {
    padding: 120px 20px;
    background: #111; /* slight contrast from programs */
    text-align: center;
}

.trainers h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
}

/* GRID */
.trainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.trainer-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;

    transform: translateY(40px);
    opacity: 0;
    transition: all 0.6s ease;
}

.trainer-card.show {
    transform: translateY(0);
    opacity: 1;
}

/* IMAGE */
.trainer-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* OVERLAY INFO */
.trainer-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;

    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: left;
}

.trainer-info h3 {
    font-size: 1.3rem;
}

.trainer-info p {
    color: #FF3B3B;
    font-size: 0.9rem;
    margin: 5px 0;
}

.trainer-info span {
    font-size: 0.8rem;
    color: #aaa;
}

/* HOVER */
.trainer-card:hover img {
    transform: scale(1.08);
}

.trainer-card:hover {
    transform: translateY(-10px);
}

/* MOBILE */
@media (max-width: 768px) {
    .trainer-grid {
        grid-template-columns: 1fr;
    }

    .trainer-card img {
        height: 300px;
    }
}
/* VIEW ALL */
.view-all {
    display: inline-block;
    margin-top: 40px;
    color: #FF3B3B;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    color: #ff7a7a;
}
/* STACK CONTAINER */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.section-sub {
    color: #aaa;
    margin-bottom: 50px;
    font-size: 1rem;
}

/* CARD BASE */
.t-card {
    position: absolute;
    width: 260px;
    padding: 20px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);

    transition: 0.3s;
}

/* HOVER */
.t-card:hover {
    z-index: 10;
}

/* TEXT */
.t-card h4 {
    color: #fff;
    margin-bottom: 5px;
}

.t-card span {
    font-size: 0.8rem;
    color: #FF3B3B;
    display: block;
    margin-bottom: 10px;
}

.t-card p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}
.testimonial-stack {
    position: relative;
    height: 350px;
    margin-top: 60px;
}

/* Center base */
.t-card {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%); /* ADD THIS */
    width: 300px;
    transition: transform 0.3s ease;
}

/* Controlled layout */
.card1 {
    transform: translate(-150%, -50%) rotate(-10deg);
}

.card2 {
    transform: translate(-50%, -60%) rotate(-5deg);
    z-index: 2;
}

.card3 {
    transform: translate(50%, -50%) rotate(6deg);
}

.card4 {
    transform: translate(-100%, 40%) rotate(8deg);
}

.card5 {
    transform: translate(20%, 40%) rotate(-6deg);
}

.card1:hover {
    transform: translate(-150%, -50%) rotate(-10deg) scale(1.05);
}

.card2:hover {
    transform: translate(-50%, -60%) rotate(-5deg) scale(1.05);
}

.card3:hover {
    transform: translate(50%, -50%) rotate(6deg) scale(1.05);
}

.card4:hover {
    transform: translate(-100%, 40%) rotate(8deg) scale(1.05);
}

.card5:hover {
    transform: translate(20%, 40%) rotate(-6deg) scale(1.05);
}
.t-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.t-top img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.t-top h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.t-top span {
    font-size: 0.75rem;
    color: #FF3B3B;
}
.testimonial-cta {
    margin-top: 30px; /* reduce from 50 */
    text-align: center;
}
@media (max-width: 768px) {
    .testimonial-stack {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .t-card {
        position: static;
        transform: none !important;
        width: 100%;
    }
}
.testimonials {
     padding: 120px 20px 100px;
    text-align: center;
}
.cta {
    min-height: 60vh; /* gives it space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8%;
    text-align: center;
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.cta p {
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.6;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.ghost {
    border: 1px solid rgba(255,255,255,0.2);
    color: #ddd;
    background: transparent;
}

.ghost:hover {
    border-color: #fff;
    color: #fff;
}
.cta-box {
    margin: 0 auto;
    max-width: 420px;

    padding: 28px 24px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px; /* 🔥 clean vertical spacing */
}
.cta-offer {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #aaa;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-offer .cta-mark {
    color: #FF3B3B;
    font-weight: 700;
}
.big {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
}

/* HERO WATCH BUTTON ICON */
.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.watch-btn .play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    background: rgba(255,255,255,0.14);
}

/* CTA OFFER CHECK MARK */
.cta-offer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-mark {
    color: #FF3B3B;
    font-weight: 700;
    font-size: 0.95rem;
}

.cta-text {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .cta {
        min-height: auto;
        padding: 40px 18px 55px;
        align-items: flex-start;
    }

    .cta-content {
        padding: 0;
    }

    .cta h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .cta p {
        margin-bottom: 18px;
        line-height: 1.6;
    }

    .cta-box {
        padding: 22px 18px;
        gap: 14px;
    }

    .cta-offer {
        gap: 10px;
        font-size: 0.9rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
.contact {
    padding: 120px 20px;
    background: #0B0B0B;
    text-align: center;
}

.contact .section-title {
    margin-bottom: 12px;
}

.contact .section-sub {
    margin-bottom: 50px;
}

/* BOX */
.contact-box {
    max-width: 900px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;

    padding: 50px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;

    backdrop-filter: blur(20px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
}.contact-form input,
.contact-form textarea {
    padding: 14px 16px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    border-radius: 8px;

    outline: none;
    transition: all 0.25s ease;
}

/* hover feel */
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(255,255,255,0.2);
}

/* focus glow */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #FF3B3B;
    box-shadow: 0 0 0 2px rgba(255,59,59,0.2);
    background: rgba(255,255,255,0.05);
}
/* LEFT */
.contact-info {
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-info p {
    color: #aaa;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form .btn {
    margin-top: 10px;
    width: fit-content;
}

.contact-form .btn:hover {
    box-shadow: 0 10px 30px rgba(255,59,59,0.4);
}
.contact-box:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
}
@media (max-width: 768px) {
    .contact-box {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .contact-info {
        text-align: center;
    }
}
.footer {
    background: #0a0a0a;
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left h3 {
    margin-bottom: 10px;
}

.footer-left p {
    color: #aaa;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
}
.footer {
    padding: 100px 20px;
    background: #0B0B0B;
}

/* MAIN CARD */
.footer-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* HEADINGS */
.footer-grid h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* LINKS */
.footer-grid a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-grid a:hover {
    color: #fff;
}

/* CENTER BLOCK */
.footer-center {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.footer-center h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-center p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* COPYRIGHT */
.copyright {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}

/* LEGAL LINKS */
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: #777;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-box {
        padding: 40px 25px;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* =========================
   PRICING POPUP
========================= */

.pricing-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);

    display: flex;
    align-items: flex-start; /* anchor to viewport top */
    justify-content: center;

    padding: 40px 20px;

    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;

    z-index: 999;
}


.pricing-popup.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   POPUP BOX
========================= */


.popup-content {
    position: relative;

    width: 95%;
    max-width: 1000px;

    max-height: 100dvh; /* true viewport-based limit */
    height: auto;       /* do not stretch to 100% */
    overflow-y: auto;  /* scroll content independently */

    padding: 40px 25px;

    background: linear-gradient(145deg, #111, #0c0c0c);
    border-radius: 20px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 40px 100px rgba(0,0,0,0.9);

    transform: scale(0.9);
    transition: 0.3s ease;

    text-align: center;
    margin-top: 0;
}



.pricing-popup.active .popup-content {
    transform: scale(1);
}

.popup-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
}

/* =========================
   GRID
========================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =========================
   CARD
========================= */

.plan-card {
    padding: 40px 30px;
    border-radius: 18px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);

    text-align: left;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
}

/* FEATURED CARD */
.plan-card.featured {
    background: linear-gradient(145deg, #111, #0b0b0b);
    border: 1px solid rgba(255,59,59,0.5);

    box-shadow: 0 20px 60px rgba(255,59,59,0.2);
    transform: scale(1.05);
}

/* =========================
   BADGE
========================= */

.badge {
    display: inline-block;
    margin-bottom: 15px;

    font-size: 0.7rem;
    padding: 4px 10px;

    border-radius: 999px;

    background: rgba(255,59,59,0.15);
    color: #FF3B3B;
    border: 1px solid rgba(255,59,59,0.4);
}

/* =========================
   TEXT
========================= */

.plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.plan-sub {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* =========================
   PRICE (FIXED BUG)
========================= */

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;

    background: linear-gradient(90deg, #FF3B3B, #ff7a7a);
    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    display: inline-block;

    /* removes weird yellow line issue */
    text-shadow: 0 0 1px rgba(0,0,0,0.4);
}

.plan-price span {
    font-size: 0.9rem;
    color: #aaa;
    margin-left: 5px;
}

/* =========================
   BUTTON
========================= */

.big {
    width: 100%;
    padding: 14px;
    margin-bottom: 25px;
}

/* DARK BUTTON */
.btn.dark {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn.dark:hover {
    background: #222;
}

/* =========================
   LIST
========================= */

.plan-card ul {
    list-style: none;
}

.plan-card li {
    margin-bottom: 12px;
    color: #bbb;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.plan-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF3B3B;
}

/* =========================
   MOBILE
========================= */

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

    .plan-card.featured {
        transform: none;
    }

    /* Mobile safety: preserve viewport scrolling behavior */
    .modal-content {
        padding: 28px 18px;
    }
}


/* =========================
   GENERAL MODAL SYSTEM
========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;

    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);

    display: flex;
    align-items: flex-start; /* anchor to viewport top */
    justify-content: center;


    padding: 40px 20px;

    /* IMPORTANT: overlay must NOT scroll; modal content scrolls independently */
    overflow: hidden;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s ease;
    z-index: 1000;
}


.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;

    width: 95%;
    max-width: 1100px;

    max-height: 100dvh; /* true viewport-based limit */
    height: auto;       /* do not force height:100% */
    overflow-y: auto;  /* scroll content independently */

    padding: 40px;

    background: linear-gradient(145deg, #111, #0c0c0c);

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 40px 100px rgba(0,0,0,0.9);

    transform: scale(0.9);

    transition: 0.3s ease;

    margin: 0; 

}



.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

/* TRAINERS POPUP GRID */
.trainer-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .trainer-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trainer-grid-full {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Reuse existing trainer-card styling inside popup */
#trainersPopup .trainer-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

/* VIDEO POPUP */
.video-modal {
    max-width: 900px;
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* PROGRAM POPUP */
.program-modal {
    max-width: 600px;
}

.program-details {
    text-align: left;
}

.program-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.program-desc {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.program-features {
    list-style: none;
    padding: 0;
}

.program-features li {
    padding: 12px 0 12px 20px;
    color: #bbb;
    position: relative;
    margin-bottom: 8px;
}

.program-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF3B3B;
    font-weight: 700;
}

/* Program cards - SIZE FIX */
.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.program-card {
    padding: 0;
}

.program-card h3 {
    font-size: 1.3rem;
    margin: 16px 20px 8px;
}

.program-card p {
    color: #aaa;
    margin: 0 20px 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.program-card a {
    margin: 0 20px 20px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .program-card img {
        height: 200px;
    }
}

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}
/* SUCCESS STORIES POPUP */
.stories-modal {
    max-width: 1200px;
    max-height: 90vh;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.s-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.s-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,59,59,0.3);
    box-shadow: 0 20px 40px rgba(255,59,59,0.15);
}

.s-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.s-top img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.s-top h4 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: #fff;
}

.s-top span {
    font-size: 0.8rem;
    color: #FF3B3B;
    font-weight: 600;
}

.s-card p {
    color: #ccc;
    line-height: 1.55;
    font-size: 0.95rem;
    flex-grow: 1;
    margin: 0;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .s-card {
        padding: 20px;
    }
    
    .s-top img {
        width: 42px;
        height: 42px;
    }
}