﻿/* ============ TOKENS & BASE ============ */
:root {
    --red: #D32F2F;
    --black: #000000;
    --white: #FFFFFF;
    --bg: #f4f4f4;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

section {
    display: block;
}

h1, h2, h3, p {
    margin: 0;
}

p {
    color: #111;
    opacity: .85;
}

.content {
    padding: 0 !important;
}

/* ============ LAYOUT & NAV ============ */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-body {
    flex: 1;
    padding: 0;
}

/* top bar (red) */
.top-row {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* top bar (white variant) */
.top-row--white {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* widen white bar container as per markup */
.top-row--white .nav-container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 1rem;
}

.nav-left {
    margin-right: auto;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .75rem; /* a bit tighter */
    flex-wrap: nowrap; /* keep on one line */
}

    /* Header button should stay auto width */
    .nav-right .btn {
        width: auto;
        height: auto;
        padding: .55rem .9rem;
    }

.auth-card__inner {
    max-width: 480px;
    width: 100%;
}

@media (max-width: 480px) {
    .nav-container {
        padding: .6rem .75rem;
    }

    .auth-card {
        padding: 16px;
    }
}
/* brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}

.brand--dark {
    color: var(--black);
}

    .brand--dark:hover {
        opacity: .85;
    }

.brand__logo {
    display: inline-grid;
    place-items: center;
    color: var(--white);
    height: 58px;
    border-radius: .5rem;
    font-weight: 900;
    padding-top: 8px;
}

.brand__name {
    font-weight: 800;
}

/* centered nav links (used on red bar) */
.nav-links {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
}

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        padding: .25rem .5rem;
    }

        .nav-links a.active {
            border-bottom: 2px solid var(--white);
        }

/* right side links (white bar) */
.nav-right a,
.nav-right .nav-link,
.nav-right .profile-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    padding: .25rem .4rem;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, opacity .15s ease;
}

    .nav-right a:hover {
        opacity: .8;
    }

    .nav-right a.active,
    .nav-right .nav-link.active,
    .nav-right .profile-link.active {
        color: var(--red);
        border-color: var(--red);
    }

/* profile pill */
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f1f1;
    color: var(--black);
    font-weight: 800;
    font-size: .9rem;
    border: 1px solid rgba(0,0,0,.08);
}

.profile-name {
    line-height: 1;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(180deg, var(--red) 0%, #b51f1f 100%);
    color: var(--white);
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 600px; /* or whatever you like */
    overflow: hidden;
}

.hero__layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.hero__image {
    flex: 2;
    height: 100%;
    overflow: hidden;
}

    .hero__image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Makes it fill the space and look cool */
        display: block;
    }

.hero__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    text-align: left;
}

.hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: .2px;
    max-width: 600px;
    padding-left: 0; /* no manual hacks */
}

.hero__subtitle {
    font-family: 'Oswald', sans-serif;
    margin-top: 1rem;
    max-width: 580px;
    line-height: 1.6;
    opacity: .95;
    margin: 0;
    font-size: 20px;
}


.hero__cta {
    display: flex;
    gap: .75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero__layout {
        flex-direction: column;
    }

    .hero__image,
    .hero__inner {
        flex: unset;
        width: 100%;
        height: auto;
    }

    .hero__inner {
        padding: 2rem 1rem;
        text-align: center;
        align-items: center;
    }

    .hero__cta {
        justify-content: center;
    }
}

.hero__image {
    animation: heroSlideInLeft 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes heroSlideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero__title {
    animation: heroDropIn 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    padding-bottom :14px;
}

@keyframes heroDropIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero__subtitle {
    animation: heroFadeUp 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes heroFadeUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero__cta {
    animation: heroPopIn 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes heroPopIn {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
.hero__image,
.hero__title,
.hero__subtitle,
.hero__cta {
    animation-fill-mode: forwards;
}
    .hero__title:focus {
        outline: none;
    }
/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .70rem 1.1rem;
    border-radius: .75rem;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform .06s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    /* NO width:100% here */
}
.btn--full {
    width: 100%;
}
.btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

    .btn--primary:hover {
        transform: translateY(-1px);
    }

.btn--ghost {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

    .btn--ghost:hover {
        transform: translateY(-1px);
    }

.btn--full {
    width: 100%;
}
.btn--full {
    width: 100%;
}
/* ============ FEATURES & CARDS ============ */
.features {
    background: #fafafa;
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    text-align: center;
}

.features__heading {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--black);
}

.features__sub {
    margin-top: .5rem;
    opacity: .75;
    max-width: 820px;
    margin-inline: auto;
}

.card-grid {
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin-inline: auto;
}

.card {
    grid-column: span 12;
    background: var(--white);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: left;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.06);
}

@media (min-width:900px) {
    .card {
        grid-column: span 4;
    }
}

.card__icon {
    display: flex;
    align-items: center;
}

.icon-box {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: .75rem;
    box-shadow: 0 8px 18px rgba(211,47,47,.25);
    margin-right: 14px;
}

.card__title {
    margin-top: .9rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--black);
    padding-left: 14px;
}

.card__text {
    margin-top: .8rem;
    line-height: 1.55;
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* ============ FOOTERS ============ */
/* global footer */
.global-footer {
    background: var(--black);
    color: var(--white);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width:768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-top .brand {
    color: var(--white);
}

    .footer-top .brand:hover {
        opacity: .85;
    }

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .footer-links a,
    .footer-links a:visited {
        color: var(--white);
        opacity: .85;
        text-decoration: none;
        font-weight: 500;
        transition: opacity .2s ease;
    }

        .footer-links a:hover {
            opacity: 1;
            text-decoration: underline;
        }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 1rem;
}

    .footer-bottom .tagline {
        font-style: italic;
        margin-bottom: .5rem;
        opacity: .85;
        color: #fff;
    }

    .footer-bottom .copy {
        font-size: .9rem;
        opacity: .65;
        color: #fff;
    }

/* home page local footer (kept in case you still use .home-footer) */
.home-footer {
    background: var(--black);
    color: var(--white);
    padding: 1.25rem 1rem 2rem;
    margin-top: 2rem;
}

    .home-footer .brand {
        display: flex;
        align-items: center;
        gap: .6rem;
        max-width: 1200px;
        margin: 0 auto;
    }

.copy {
    max-width: 1200px;
    margin: .75rem auto 0;
    opacity: .6;
    font-size: .9rem;
}

/* ============ PAGE-SPECIFIC SMALLS ============ */
/* ensures the Dashboard button on white bar inherits primary style */
.nav-right .btn.btn--primary {
    background: var(--red);
    color: var(--white);
}


/*Login*/
/* Card */
.auth-card {
    display: grid;
    place-items: center;
    min-height: 80vh;
    padding: 24px;
    background: transparent;
}

.auth-card__inner {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.auth-card .btn {
    width: 100%;
    height: 46px;
}
/* Headings */
.auth-title {
    margin: 2px 0 6px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #222;
}

.auth-subtitle {
    text-align: center;
    color: #6b6b6b;
    margin-bottom: 22px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    color: #222;
    margin-bottom: 6px;
}

.input {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
    font-size: 14px;
    background: #f7f7f8;
}

    .input:focus {
        border-color: #d32f2f;
        box-shadow: 0 0 0 3px rgba(211,47,47,.12);
        background: #fff;
    }

/* Password */
.password-wrap {
    position: relative;
}

.password-input {
    padding-right: 44px;
}

.eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: .7;
}

    .eye:hover {
        opacity: 1;
    }

    .eye svg {
        fill: #757575;
    }

/* Row */
.row.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 18px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

/* Buttons & links */
.btn {

    height: 46px;
    border: 1px medium;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.btn-primary {
    background: #d32f2f; /* red */
    color: #fff;
}

    .btn-primary:hover {
        filter: brightness(.95);
    }

.link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

    .link:hover {
        text-decoration: underline;
    }

    .link.subtle {
        color: #c23636;
        font-weight: 500;
    }

/* Bottom text */
.below {
    text-align: center;
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

/* Validation */
.validation-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 6px;
}
.auth-row.between {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    flex-wrap: nowrap;
    width: 100%;
    gap: 12px;
}

/* keep block labels only inside normal form groups */
.form-group > label {
    display: block;
}

label {
    display: initial;
}
/* reset the global block label */

/* auth row: left + right on one line */
.auth-row.between {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

/* left chunk */
.auth-row .remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto; /* don't stretch */
    width: auto; /* ensure not 100% */
}

/* right link */
.auth-row .forgot {
    margin-left: auto; /* pushes it to the far right */
    white-space: nowrap; /* keep on one line */
}

/* two-column grid for first/surname */
.form-grid.two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .form-grid.two {
        grid-template-columns: 1fr 1fr;
    }
}

/* keep the consent line tidy on one row where space allows */
.auth-row.between .popia {
    white-space: nowrap;
}


.consent-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 12px 0 18px;
}

    .consent-block .remember {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        line-height: 1.4;
        color: #333;
    }


    .consent-block .consent-text {
        flex: 1;
        word-break: break-word;
    }

    .consent-block .popia {
        font-size: 14px;
        color: var(--red);
        font-weight: 600;
        text-decoration: none;
    }

        .consent-block .popia:hover {
            text-decoration: underline;
        }

.hero__cta {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

    .hero__cta .btn {
        width: auto;
        height: auto;
        padding: .70rem 1.1rem;
    }

/* On small screens, stack them nicely full width */
@media (max-width: 520px) {
    .hero__cta {
        flex-direction: column;
        gap: .6rem;
    }

        .hero__cta .btn {
            width: 100%;
        }
}

/*Coach Dashboard*/


/* ===== Session Builder (additive) ===== */
.sb-wrap {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sb-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.sb-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--black);
}

.sb-sub {
    opacity: .75;
    display: block;
    margin-top: .15rem;
}

.sb-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.sb-i {
    margin-right: .25rem;
}

.sb-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 960px) {
    .sb-form-grid {
        grid-template-columns: 1.2fr .8fr;
    }
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .75rem;
}

    .form-row.two {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .form-row.wide textarea {
        min-height: 96px;
    }

.sb-summary__title {
    font-weight: 800;
    margin-bottom: .5rem;
}

.sb-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f7f8;
    border: 1px solid #eee;
    border-radius: .75rem;
    padding: .6rem .8rem;
    margin: .5rem 0;
}

    .sb-pill.warn {
        background: #fff3f2;
        color: #a32020;
        border-color: #fbd3cf;
    }

.sb-summary__list {
    margin: .5rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.sb-summary__actions {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}

.sb-workouts {
    margin-top: 1rem;
}

.sb-empty {
    text-align: center;
    padding: 2.25rem .75rem;
    color: #444;
}

.sb-empty__icon {
    font-size: 40px;
    margin-bottom: .5rem;
}

.sb-workout-list {
    display: grid;
    gap: 1rem;
}

.sb-workout {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.sb-workout__header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}

.sb-drag {
    cursor: grab;
    user-select: none;
    color: #999;
    font-weight: 700;
}

.sb-trash {
    margin-left: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.sb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem .75rem;
}

@media (min-width: 680px) {
    .sb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .sb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sb-row-actions {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}

.input {
    background: #f7f7f8;
}

    .input:focus {
        border-color: #d32f2f;
        box-shadow: 0 0 0 3px rgba(211,47,47,.12);
        background: #fff;
    }

.features__heading {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.features__sub {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Animate cards in sequence */
.card-grid .card {
    animation: cardFadeIn 1s ease-out forwards;
    opacity: 0;
}

    .card-grid .card:nth-child(1) {
        animation-delay: 0.4s;
    }

    .card-grid .card:nth-child(2) {
        animation-delay: 0.6s;
    }

    .card-grid .card:nth-child(3) {
        animation-delay: 0.8s;
    }

/* Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.features__heading,
.features__sub,
.card-grid .card {
    animation-fill-mode: forwards;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Mobile burger toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-right {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: white;
        padding: 1rem;
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        border-radius: 0 0 .75rem .75rem;
        z-index: 1001;
    }

        .nav-right.open {
            display: flex;
        }

        .nav-right a,
        .nav-right .btn,
        .nav-right .profile-link {
            width: 100%;
            text-align: left;
            padding: .75rem 0;
        }
}

/* Avatar image override */
.profile-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
}

/* ===== My Profile (additive) ===== */
.mp-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.mp-title {
    text-align: center;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--black);
}

.mp-sub {
    text-align: center;
    opacity: .75;
    margin-bottom: 18px;
}

/* red header card with avatar */
.mp-head-card {
    background: var(--red);
    color: var(--white);
    border-radius: 14px;
    padding: 28px 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.mp-avatar-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.15);
    border: 3px solid rgba(255,255,255,.35);
}

.mp-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    background: #ddd; /* fallback if no image */
}

.mp-name {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.mp-role {
    opacity: .95;
    margin-top: 4px;
    font-size: 14px;
}

/* white content card */
.mp-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 18px 16px;
    margin-top: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.mp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 14px;
}

@media (min-width: 720px) {
    .mp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mp-field label {
    display: block;
    font-size: 13px;
    color: #222;
    margin-bottom: 6px;
}

.mp-field .input {
    height: 42px;
    background: #f7f7f8;
}

.mp-span-2 {
    grid-column: span 1;
}

@media (min-width: 720px) {
    .mp-span-2 {
        grid-column: span 2;
    }
}

/* subscription row */
.mp-subscription {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.mp-sub-title {
    font-weight: 700;
}

.mp-sub-sub {
    font-size: 13px;
    opacity: .8;
    margin-top: 2px;
}

.mp-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 .8rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    margin-right: 8px;
}

.mp-status--active {
    background: #e8f7ee;
    color: #168f3a;
    border-color: #cdeed8;
}

.mp-exp {
    opacity: .75;
}

/* footer actions */
.mp-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

    .mp-actions .btn {
        width: auto;
        height: auto;
        padding: .70rem 1.1rem;
    }

/* additive buttons to match screenshot */
.btn--outline-red {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
}

    .btn--outline-red:hover {
        transform: translateY(-1px);
    }

.btn--soft {
    background: #f7f7f8;
    color: #222;
    border: 2px solid #eee;
}

    .btn--soft:hover {
        transform: translateY(-1px);
    }

/* ===== Pricing Plan Card (additive) ===== */
.plans-grid {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    gap: 22px;
}

@media (min-width: 880px) {
    .plans-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 18px 18px 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    position: relative;
}

.pp-card--highlight {
    border-color: rgba(211,47,47,.35);
    box-shadow: 0 14px 32px rgba(211,47,47,.15);
}

.pp-badge {
    position: absolute;
    top: -14px;
    left: 18px;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(211,47,47,.25);
}

.pp-head {
    text-align: center;
    margin-top: 8px;
}

.pp-title {
    font-weight: 800;
    font-size: 26px;
    color: var(--black);
}

.pp-price {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.pp-currency {
    font-weight: 700;
    opacity: .85;
}

.pp-amount {
    font-weight: 900;
    font-size: 56px;
    color: var(--red);
    line-height: 1;
}

.pp-period {
    opacity: .8;
}

.pp-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 18px;
    display: grid;
    gap: 10px;
}

    .pp-features li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        background: #fafafa;
        border: 1px solid #eee;
    }

        .pp-features li .icon {
            width: 22px;
            height: 22px;
            flex: 0 0 22px;
        }

            .pp-features li .icon circle {
                fill: #efefef;
            }

            .pp-features li .icon path {
                stroke: #3b9954;
                stroke-width: 3;
                fill: none;
            }

        .pp-features li.dim {
            opacity: .5;
        }

.pp-cta {
    margin-top: 12px;
    text-align: center;
}

.pp-btn-cta {
    width: 100%;
    height: auto;
    padding: .9rem 1.2rem;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(180deg, #e14444 0%, #b51f1f 100%);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(211,47,47,.25);
}

    .pp-btn-cta:hover {
        transform: translateY(-1px);
    }

.pp-btn-ghost {
    width: 100%;
    height: auto;
    padding: .9rem 1.2rem;
    border-radius: 12px;
    border: 0;
    background: #ededed;
    color: #555;
    font-weight: 800;
}

.pp-card--coming {
    background: #f7f7f8;
    box-shadow: inset 0 0 0 1px #eee, 0 10px 24px rgba(0,0,0,.04);
}

/* ===== Plans Carousel (additive) ===== */
.plans-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.plans-title {
    text-align: center;
    font-weight: 800;
    font-size: 28px;
    color: var(--black);
}

.plans-sub {
    text-align: center;
    opacity: .75;
    margin-top: 6px;
    margin-bottom: 16px;
}

/* Horizontal scroll-snap carousel */
.plans-carousel {
    position: relative;
}

.plans-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(92%, 520px);
    gap: 18px;
    overflow-x: auto;
    padding: 10px 6px 6px;
    scroll-snap-type: x mandatory;
    scroll-padding: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.plans-slide {
    scroll-snap-align: start;
    display: grid;
}

.plans-track::-webkit-scrollbar {
    height: 10px;
}

.plans-track::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 999px;
}

@media (min-width: 1100px) {
    /* Show two nicely on desktop while remaining scrollable */
    .plans-track {
        grid-auto-columns: calc((100% - 18px)/2);
    }
}
/* ===== Arrow Carousel (additive) ===== */
.plans-slider {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.plans-viewport {
    overflow: hidden;
    border-radius: 16px;
}

.plans-inner {
    display: flex;
    width: 100%;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.plans-slide {
    flex: 0 0 100%;
    padding: 6px; /* breathing room for shadow */
    display: grid;
    place-items: stretch;
    transform: scale(.98);
    opacity: .92;
    transition: transform .45s ease, opacity .45s ease, filter .45s ease;
    filter: saturate(.96);
}

    .plans-slide.is-active {
        transform: scale(1);
        opacity: 1;
        filter: saturate(1);
    }

/* Arrows */
.plans-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--red);
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

    .plans-arrow:hover {
        transform: translateY(-50%) scale(1.03);
    }

.plans-arrow--left {
    left: -12px;
}

.plans-arrow--right {
    right: -12px;
}

@media (max-width: 640px) {
    .plans-arrow--left {
        left: 6px;
    }

    .plans-arrow--right {
        right: 6px;
    }
}

/* Dots */
.plans-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.plans-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}

    .plans-dot.active {
        background: var(--red);
        transform: scale(1.15);
    }


/* ===== Admin Dashboard (additive) ===== */
.ad-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* KPI cards */
.ad-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

@media (min-width: 860px) {
    .ad-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ad-kpi {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.ad-kpi-num {
    color: var(--red);
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 6px;
}

.ad-kpi-sub {
    letter-spacing: .6px;
    opacity: .8;
    font-weight: 700;
}

/* Card + tabs */
.ad-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    overflow: hidden;
}

.ad-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 10px;
}

.ad-tab {
    background: transparent;
    border: none;
    padding: 12px 14px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: #444;
}

    .ad-tab.active {
        color: var(--red);
    }

        .ad-tab.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 3px;
            background: var(--red);
            border-radius: 3px 3px 0 0;
        }

/* right actions in tab bar */
.ad-tab-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ad-add {
    height: auto;
    padding: .55rem .9rem;
}

/* more menu */
.ad-more {
    position: relative;
}

.ad-more-btn {
    height: 38px;
    padding: 0 .9rem;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #f7f7f8;
    cursor: pointer;
    font-weight: 700;
}

.ad-more:hover .ad-more-menu {
    display: block;
}

.ad-more-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    border-radius: 12px;
    min-width: 220px;
    overflow: hidden;
    z-index: 5;
}

    .ad-more-menu button {
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        padding: 10px 12px;
        cursor: pointer;
    }

        .ad-more-menu button:hover {
            background: #fafafa;
        }

/* content area */
.ad-content {
    padding: 18px;
}

.ad-h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

/* filters */
.ad-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ad-filter {
    min-width: 160px;
}

.ad-filter--grow {
    flex: 1;
}

/* table */
.ad-table {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.ad-thead,
.ad-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 2.2fr 1.2fr 1.1fr 1.6fr;
    gap: 0;
}

.ad-thead {
    background: linear-gradient(180deg, #2b2b2b 0%, #1c1c1c 100%);
    color: #fff;
    font-weight: 800;
}

    .ad-thead > div {
        padding: 14px;
    }

.ad-row {
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

    .ad-row > div {
        padding: 14px;
        display: flex;
        align-items: center;
    }

.ad-actions {
    gap: 8px;
    display: inline-flex;
}

.ad-btn {
    height: 32px;
    padding: 0 .8rem;
    border: 1px solid #eee;
    background: #f7f7f8;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.ad-btn--danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* status pills */
.ad-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 .75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

    .ad-pill.active {
        background: #e8f7ee;
        color: #168f3a;
        border: 1px solid #cdeed8;
    }

    .ad-pill.trial {
        background: #fff4df;
        color: #b86a00;
        border: 1px solid #fde3b1;
    }

    .ad-pill.expired {
        background: #fde7e7;
        color: #a82323;
        border: 1px solid #f7c4c4;
    }

.ad-empty {
    opacity: .75;
    padding: 8px 2px;
}
/* ===== Admin toolbar (additive) ===== */
.ad-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: #fcfcfc;
}

.ad-tool-left,
.ad-tool-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ad-toolbtn {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e9e9e9;
    background: #f7f7f8;
    font-weight: 800;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}

    .ad-toolbtn:hover {
        transform: translateY(-1px);
    }

.ad-toolbtn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: 0 8px 18px rgba(211,47,47,.18);
}

.ad-toolbtn--ghost {
    background: var(--white);
    color: var(--black);
}

/* Make header and rows true 7-column grids */
.ad-table .ad-thead,
.ad-table .ad-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) /* NAME */
    minmax(140px, 1.1fr) /* SURNAME */
    minmax(220px, 2fr) /* EMAIL */
    minmax(110px, .9fr) /* ROLE */
    minmax(120px, 1fr) /* STATUS */
    minmax(140px, 1.1fr) /* LAST ACTIVE */
    minmax(220px, auto); /* ACTIONS (don’t squish) */
    column-gap: 12px;
    align-items: center;
}

/* Keep buttons together neatly */
.ad-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap; /* allow wrapping within the cell if narrow */
}

    .ad-actions .ad-btn {
        white-space: nowrap; /* avoid line breaks inside a button */
    }

/* Optional: prevent long emails from blowing up the row */
.ad-row > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Filter bar as a tidy grid */
.ad-filters {
    display: grid;
    grid-template-columns: 200px 200px 1fr auto; /* Role | Status | Search grows | Button */
    gap: 12px;
    align-items: end; /* align selects/inputs with button baseline */
}

/* Each filter block */
.ad-filter {
    display: flex;
    flex-direction: column;
}

/* Let SEARCH grow */
.ad-filter--grow {
    grid-column: 3 / 4; /* already the 3rd column, but explicit is fine */
}

/* Keep the button compact and at the end */
.ad-add {
    grid-column: 4 / 5;
    justify-self: end; /* hug right edge */
    width: auto; /* ensure it's not full width */
    white-space: nowrap; /* keep text on one line */
}

/* Responsive: collapse to 2 columns on medium screens */
@media (max-width: 900px) {
    .ad-filters {
        grid-template-columns: 1fr 1fr; /* two columns */
    }

    .ad-filter {
        grid-column: span 1;
    }

    .ad-filter--grow {
        grid-column: 1 / -1;
    }
    /* search takes full row */
    .ad-add {
        grid-column: 2 / 3;
        justify-self: end;
    }
}

/* Responsive: single column on small screens, button full width */
@media (max-width: 600px) {
    .ad-filters {
        grid-template-columns: 1fr;
    }

    .ad-filter,
    .ad-filter--grow {
        grid-column: 1 / -1;
    }

    .ad-add {
        grid-column: 1 / -1;
        justify-self: stretch; /* full width on phones */
    }
}

/* compact on small screens */
@media (max-width: 720px) {
    .ad-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ad-tool-left, .ad-tool-right {
        justify-content: stretch;
    }

    .ad-toolbtn {
        flex: 1 1 auto;
    }
}
/* --- Admin module cards (additive) --- */
.card.card--module {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px;
}

.card--module .card__icon {
    flex: 0 0 auto
}

.card__icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #feecec; /* soft red tint */
    border: 1px solid rgba(211,47,47,.18);
    box-shadow: 0 6px 16px rgba(211,47,47,.12)
}

    .card__icon-badge svg {
        width: 26px;
        height: 26px;
        stroke: #D32F2F;
        fill: none;
        stroke-width: 2
    }

.card__body {
    display: flex;
    align-items: center; 
    gap: 8px;
}
.card__text {
    margin: 0; /* remove default <p> margin */
    flex: 1; /* let text take the remaining width */
}

.card__chev {
    flex: 0 0 auto; /* keep natural size */
    display: block; /* avoid baseline gap around SVGs */
}

.card__title {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: .2px;
    color: #121212
}

.card__text {
    margin: 0;
    opacity: .78;
    line-height: 1.55
}

.card__chev {
    margin-left: auto;
    align-self: center;
    opacity: .45;
    transition: transform .15s ease,opacity .15s ease
}

.card--module:hover .card__chev {
    opacity: .8;
    transform: translateX(2px)
}
.card-grid a.card,
.card-grid a.card:link,
.card-grid a.card:visited {
    color: var(--black);
    text-decoration: none;
    display: block;
}

    .card-grid a.card:hover,
    .card-grid a.card:focus {
        text-decoration: none;
    }

.card--module .card__title,
.card--module .card__text,
.card--module .card__chev {
    color: var(--black);
}

.card__icon-badge svg {
    stroke: var(--red);
}

.card--module:hover .card__chev {
    color: var(--red);
}

.choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #ededed;
    border-radius: 12px;
    background: #f8f9fb;
    cursor: pointer;
    user-select: none;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

    .choice:hover {
        transform: translateY(-1px);
    }

    .choice:active {
        transform: translateY(0);
    }

    .choice:has(input:checked) {
        background: #fff7f7;
        border-color: rgba(211,47,47,.35);
        box-shadow: 0 8px 18px rgba(211,47,47,.12);
    }

    .choice:has(input:focus-visible) {
        outline: 2px solid rgba(211,47,47,.65);
        outline-offset: 2px;
    }

    .choice input {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        accent-color: var(--red);
        border-radius: 4px;
    }

        .choice input[type="radio"] {
            border-radius: 50%;
        }

.card-icon .fa-svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}
.date-icon .fa-svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    margin-right: 4px;
}
.date-text .fa-svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    margin-right: 6px;
}

@media print {
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print {
        display: none !important;
    }

    .page::before {
        opacity: .06 !important;
    }

    .card {
        box-shadow: none;
        border-color: #e5e7eb;
    }
}
@media print {
    .no-print {
        display: none !important;
    }

        .no-print * {
            display: none !important;
        }
}
