:root {
    --green: #00e676;
    --green2: #00b85b;
    --dark: #050807;
    --dark2: #0b1110;
    --card: rgba(17, 24, 22, .82);
    --line: rgba(255,255,255,.10);
    --text: #f5fff9;
    --muted: #a9b8b0;
    --danger: #ff4d4d;
    --warning: #ffd166;
    --blue: #3aa8ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0,230,118,.18), transparent 28rem),
        radial-gradient(circle at 80% 20%, rgba(0,120,255,.10), transparent 22rem),
        linear-gradient(135deg, #030504, #07100d 45%, #020302);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
main { min-height: 70vh; }
small { color: var(--muted); }

.bg-orbs:before,
.bg-orbs:after {
    content: "";
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .18;
    pointer-events: none;
    z-index: -1;
}

.bg-orbs:before {
    background: var(--green);
    top: 160px;
    left: -80px;
}

.bg-orbs:after {
    background: #3aa8ff;
    bottom: 80px;
    right: -80px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6vw;
    background: rgba(3, 5, 4, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

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

.brand-logo {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green), #00a2ff);
    color: #00170b;
    font-weight: 900;
    box-shadow: 0 0 28px rgba(0, 230, 118, .45);
}

.brand small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    color: #dcebe4;
    font-weight: 700;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 20px;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--green), #18ff9b);
    color: #03140b;
    box-shadow: 0 14px 35px rgba(0,230,118,.20);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--line);
}

.btn-glass {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: white;
}

.btn-lg { padding: 16px 24px; }
.btn-full { width: 100%; }

.pulse {
    position: relative;
}

.pulse:after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid rgba(0,230,118,.35);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    to { transform: scale(1.15); opacity: 0; }
}

.hero-section {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
    padding: 86px 6vw 70px;
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 88px);
    line-height: .95;
    margin: 16px 0;
    letter-spacing: -4px;
    background: linear-gradient(90deg, #fff, var(--green), #8effc3, #fff);
    background-size: 300%;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 300%; }
}

.hero-content p {
    max-width: 620px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.eyebrow {
    color: var(--green);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 38px;
    max-width: 620px;
}

.hero-stats div,
.kpi {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.05);
}

.hero-stats strong,
.kpi strong {
    display: block;
    font-size: 28px;
    color: var(--green);
}

.hero-stats span,
.kpi span {
    color: var(--muted);
    font-size: 13px;
}

.hero-visual {
    min-height: 520px;
    display: grid;
    place-items: center;
    position: relative;
}

.hero-visual:before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,230,118,.22), transparent 65%);
}

.fitness-card {
    position: relative;
    width: min(420px, 90vw);
    min-height: 520px;
    padding: 36px;
    border-radius: 38px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03)),
        url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=900&q=80');
    background-size: cover;
    background-position: center;
    box-shadow: 0 38px 100px rgba(0,0,0,.45);
    overflow: hidden;
}

.fitness-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,.20));
}

.fitness-card > * {
    position: relative;
    z-index: 1;
}

.fitness-card span {
    color: var(--green);
    font-weight: 900;
}

.fitness-card h2 {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 86px;
    font-size: 40px;
    line-height: 1;
    margin: 0;
}

.fitness-card p {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 30px;
    color: #dcebe4;
}

.ring {
    width: 130px;
    height: 130px;
    border: 2px solid rgba(0,230,118,.55);
    border-radius: 50%;
    position: absolute;
    top: 40px;
    right: -40px;
}

.section {
    padding: 70px 6vw;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
}

.section-title h2,
.cta h2,
.page-head h1 {
    font-size: clamp(30px, 4vw, 50px);
    margin: 10px 0;
    letter-spacing: -2px;
}

.feature-grid,
.plans-grid,
.schedule-grid,
.kpi-grid {
    display: grid;
    gap: 20px;
}

.feature-grid { grid-template-columns: repeat(4, 1fr); }
.plans-grid { grid-template-columns: repeat(3, 1fr); }
.schedule-grid { grid-template-columns: repeat(5, 1fr); }
.kpi-grid { grid-template-columns: repeat(5, 1fr); margin-bottom: 22px; }

.feature,
.plan-card,
.panel,
.auth-card,
.schedule-card {
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.20);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform .18s ease, box-shadow .18s ease;
}

.feature .icon {
    font-size: 38px;
}

.feature h3,
.plan-card h3 {
    font-size: 25px;
    margin: 18px 0 8px;
}

.feature p,
.plan-card p,
.cta p,
.muted {
    color: var(--muted);
    line-height: 1.6;
}

.dark-panel {
    background: rgba(0,0,0,.22);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.schedule-card {
    min-height: 150px;
}

.schedule-card div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.schedule-card strong { font-size: 19px; }
.schedule-card span { color: var(--green); font-size: 13px; font-weight: 900; }
.schedule-card p { color: #fff; font-weight: 800; }

.plans-grid {
    align-items: stretch;
}

.plan-card {
    position: relative;
}

.plan-card.highlight {
    border-color: rgba(0,230,118,.55);
    box-shadow: 0 0 55px rgba(0,230,118,.12);
}

.plan-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,230,118,.12);
    color: var(--green);
    font-weight: 900;
}

.plan-card h3 {
    font-size: 42px;
    color: var(--green);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    color: #dcebe4;
}

.plan-card li {
    margin: 10px 0;
}

.cta {
    margin: 20px 6vw 70px;
    padding: 56px;
    border-radius: 38px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,230,118,.18), rgba(255,255,255,.05));
    border: 1px solid rgba(0,230,118,.20);
}

.auth-page {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 60px 6vw;
}

.auth-page.wide .auth-card { max-width: 880px; }

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-card h1 {
    font-size: 38px;
    margin: 12px 0;
}

.form {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.grid-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.full { grid-column: 1 / -1; }

label {
    color: #eafff1;
    font-weight: 800;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.07);
    color: white;
    padding: 12px 14px;
    outline: none;
    font-family: inherit;
}

textarea { min-height: 90px; resize: vertical; }
option { color: #111; }

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0,230,118,.7);
    box-shadow: 0 0 0 4px rgba(0,230,118,.08);
}

.center { text-align: center; }

.flash {
    margin: 18px auto 0;
    max-width: 1100px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 800;
}

.flash.success { background: rgba(0,230,118,.14); border: 1px solid rgba(0,230,118,.30); }
.flash.error { background: rgba(255,77,77,.14); border: 1px solid rgba(255,77,77,.30); }

.app-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    padding: 26px 6vw 70px;
}

.sidebar {
    position: sticky;
    top: 92px;
    height: calc(100vh - 120px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(18px);
}

.side-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.side-title small {
    display: block;
}

.sidebar a {
    display: block;
    padding: 13px 14px;
    border-radius: 15px;
    color: #dcebe4;
    font-weight: 800;
    margin-bottom: 8px;
}

.sidebar a.active,
.sidebar a:hover {
    background: rgba(0,230,118,.13);
    color: var(--green);
}

.content {
    min-width: 0;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.panel {
    margin-bottom: 22px;
}

.panel h2 {
    margin-top: 0;
}

.panel-head,
.filters {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.filters input {
    flex: 1;
}

.two-cols {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(255,255,255,.08);
}

.status.ativo,
.status.pago { color: var(--green); background: rgba(0,230,118,.12); }

.status.pendente { color: var(--warning); background: rgba(255,209,102,.13); }
.status.bloqueado,
.status.cancelado,
.status.vencido { color: var(--danger); background: rgba(255,77,77,.13); }

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline {
    display: inline;
}

.mini {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255,255,255,.06);
    color: white;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.mini.success {
    color: var(--green);
    border-color: rgba(0,230,118,.3);
}

.mini.danger {
    color: var(--danger);
    border-color: rgba(255,77,77,.3);
}

.check {
    display: flex;
    gap: 10px;
    align-items: center;
}

.check input {
    width: auto;
    min-height: auto;
}

.student-dashboard {
    padding: 42px 6vw 70px;
}

.schedule-grid.compact {
    grid-template-columns: repeat(3, 1fr);
}

.mini-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.mini-list div {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
}

.selectable {
    cursor: pointer;
    position: relative;
}

.selectable input {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    min-height: 20px;
}

.payment-card .pay-total {
    margin: 22px 0;
    padding: 22px;
    border-radius: 22px;
    background: rgba(0,230,118,.12);
    border: 1px solid rgba(0,230,118,.25);
}

.pay-total span,
.pix-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.pay-total strong {
    display: block;
    font-size: 42px;
    color: var(--green);
}

.notice,
.pix-box {
    margin: 16px 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
}

.pix-box code {
    display: block;
    margin: 12px 0;
    word-break: break-all;
    font-size: 18px;
    color: var(--green);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 6vw;
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,.35);
    color: var(--muted);
}

@media (max-width: 1080px) {
    .hero-section,
    .two-cols,
    .app-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .plans-grid,
    .schedule-grid,
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 14px 18px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 76px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
        background: rgba(0,0,0,.92);
        border: 1px solid var(--line);
    }

    body.menu-open .nav {
        display: flex;
    }

    .hero-section {
        padding: 50px 18px;
    }

    .hero-content h1 {
        letter-spacing: -2px;
    }

    .hero-stats,
    .feature-grid,
    .plans-grid,
    .schedule-grid,
    .kpi-grid,
    .schedule-grid.compact,
    .grid-form {
        grid-template-columns: 1fr;
    }

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

    .fitness-card {
        min-height: 420px;
    }

    .section,
    .student-dashboard,
    .app-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cta {
        margin-left: 18px;
        margin-right: 18px;
        padding: 32px 20px;
    }

    .page-head,
    .panel-head,
    .filters,
    .footer {
        flex-direction: column;
        align-items: stretch;
    }
}
