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

:root {
    --bg: #0b0b0f;
    --panel: #111118;
    --panel-alt: #14141f;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --muted: rgba(255, 255, 255, 0.65);
    --accent: #feaa00;
    --accent-weak: rgba(254, 170, 0, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(254, 170, 0, 0.1), transparent 25%),
                radial-gradient(circle at 80% 10%, rgba(254, 170, 0, 0.12), transparent 25%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    padding: 0 18px 48px;
}

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

.topbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

.brand-logo {
    width: 192px;
    height: auto;
}

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

.brand-name {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--muted);
}

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

.nav a {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--muted);
    transition: all 0.2s ease;
}

.nav a:hover {
    color: var(--text);
    background: var(--border);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--accent);
    color: #0b0b0f;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(254, 170, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 35px rgba(254, 170, 0, 0.35);
}

.primary-btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.ghost-btn {
    padding: 11px 16px;
    background: var(--panel-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.primary-btn.full {
    width: 100%;
}

main {
    max-width: 1180px;
    margin: 0 auto;
}

/* Centralização do formulário de login */
main.login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 18px;
}

.student-card.login-centered {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    margin-top: 38px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 26px;
    align-items: center;
    padding: 32px 0 10px;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    margin: 10px 0 14px;
    line-height: 1.2;
}

.lead {
    color: var(--muted);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 18px 0 20px;
}

.ghost-btn {
    background: transparent;
}

.stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat strong {
    display: block;
    font-size: 1.3rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--accent-weak);
    border: 1px solid rgba(254, 170, 0, 0.35);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mensalidade-card,
.medidas-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    /* margin-top: 16px; */
}

.medidas-card {
    margin-top: 16px;
}

.mensalidade-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mensalidade-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.mensalidade-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
    opacity: 0.8;
}

.vencimento-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.vencimento-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vencimento-badge.vencimento-normal {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.vencimento-badge.vencimento-proximo {
    background: rgba(255, 122, 122, 0.2);
    color: #ff7a7a;
    border: 2px solid #ff7a7a;
    animation: pulse-alert 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 122, 122, 0.4);
}

.vencimento-badge.vencimento-hoje {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 2px solid #ffaa00;
    animation: pulse-alert 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.vencimento-badge.vencimento-vencido {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 2px solid #ff4444;
    animation: pulse-alert 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes pulse-alert {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.lead,
.hint {
    color: var(--muted);
}

.login-form {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form input,
.diary-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 13px 14px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus,
.diary-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: rgba(254, 170, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(254, 170, 0, 0.15);
}

.hint {
    font-size: 0.9rem;
}

.section {
    margin: 38px 0;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section.alt {
    background: linear-gradient(135deg, rgba(254, 170, 0, 0.07), rgba(17, 17, 24, 0.95));
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    margin: 6px 0;
}

.section-subtitle {
    color: var(--muted);
    max-width: 640px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.card {
    padding: 16px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
}

.card h3 {
    margin-bottom: 6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.panel {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.checklist {
    list-style: none;
    margin-top: 10px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.checklist li::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

.student {
    background: var(--panel-alt);
}

.student-card {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 480px;
}

.hidden {
    display: none !important;
}

/* Preloader após login */
.login-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(254, 170, 0, 0.15), transparent 30%),
                radial-gradient(circle at 80% 80%, rgba(254, 170, 0, 0.12), transparent 30%),
                var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.login-preloader.hidden {
    display: none;
}

.preloader-content {
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.preloader-icon {
    margin-bottom: 24px;
    animation: bounceScale 1.5s ease-in-out infinite;
}

.preloader-icon svg {
    color: var(--accent);
    filter: drop-shadow(0 0 20px rgba(254, 170, 0, 0.5));
}

.preloader-text {
    margin-bottom: 32px;
}

.preloader-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.preloader-text p {
    font-size: 1rem;
    color: var(--muted);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: var(--panel-alt);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffd700, var(--accent));
    border-radius: 2px;
    width: 0%;
    animation: progressBar 1.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(254, 170, 0, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounceScale {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-10px);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    75% {
        transform: scale(1.08) translateY(-8px);
    }
}

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

@keyframes progressBar {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.student-area.hidden,
#loggedOutView.hidden,
#adminPanel.hidden {
    display: none;
}

.student-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Barra de ações moderna e elegante */
.student-actions-bar {
    margin-top: 38px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 170, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(254, 170, 0, 0.2);
    background: var(--panel-alt);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
}

.action-btn:hover .action-btn-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
}

.action-btn-label {
    color: var(--text);
    transition: color 0.3s ease;
}

.action-btn:hover .action-btn-label {
    color: var(--accent);
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--panel);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
    }
}

.action-badge.hidden {
    display: none;
}

.student-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--panel);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

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

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.icon-btn .icon {
    color: var(--muted);
}

.icon-btn:hover .icon {
    color: var(--accent);
}

.messages-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    transform: translate(50%, -50%);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff7a7a;
    color: #0b0b0f;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--panel);
}

/* Permite o badge sair do contorno do botão de mensagens */
.messages-btn {
    overflow: visible;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.student-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.muted {
    color: var(--muted);
}

.diary-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.list {
    display: grid;
    gap: 8px;
}

.list-item {
    padding: 12px;
    border-radius: 12px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
}

.list-item strong {
    color: var(--accent);
}

.admin-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.mini {
    font-size: 0.85rem;
}

.form-message {
    min-height: 20px;
    font-size: 0.95rem;
}

.form-message.error {
    color: #ff7a7a;
}

.form-message.success {
    color: #77e0a3;
}

.footer {
    max-width: 1180px;
    margin: 48px auto 0;
    padding: 40px 20px 20px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* Footer na tela de login do aluno - centralizado */
.footer-login {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-top: none;
}

.footer-login p {
    margin: 0;
    text-align: center;
}

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

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

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-item h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-item p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
    color: var(--accent);
    transition: color 0.2s ease;
}

.footer-link:hover .footer-icon {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 920px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 30px 16px 16px;
    }

    .footer-logo {
        width: 100px;
    }

    .footer-tagline {
        font-size: 1rem;
    }

    .footer-info {
        gap: 20px;
    }

    .footer-item h4 {
        font-size: 0.95rem;
    }

    .footer-item p {
        font-size: 0.85rem;
    }
}

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

    .topbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0 14px 32px;
    }

    .section,
    .hero-card {
        padding: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .student-actions-bar {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: center;
        padding: 14px 16px;
    }
    
    .action-btn-label {
        font-size: 0.85rem;
    }
    
    .student-actions {
        flex-direction: column;
        width: 100%;
    }

    .topbar {
        padding: 18px 0;
        justify-content: center;
        align-items: center;
    }

    .brand {
        margin-bottom: -100px;
        width: 100%;
        justify-content: center;
    }

    .brand-logo {
        padding-bottom: 70px;
        margin-bottom: 40px;
        width: 192px;
        height: auto;
    }
}

/* Lista de Usuários */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.user-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.user-card h4 {
    margin-bottom: 8px;
    color: var(--text);
}

.user-card .badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: var(--accent-weak);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--panel);
    border-radius: var(--radius);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden; /* evita scroll no container inteiro */
    box-shadow: var(--shadow);
}

body.modal-open {
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--text);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--panel-alt);
    color: var(--accent);
}

.modal-body {
    padding: 20px;
}

/* Modal de mensagens do treinador (aluno) */
#messagesModal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 70vh;
    overflow: hidden;
}

#messagesModal .messages-list {
    max-height: 55vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 6px;
}

#messagesModal .message-date-separator {
    text-align: center;
    color: var(--accent);
    font-size: 0.8rem;
    margin: 4px 0;
    opacity: 0.9;
}

#messagesModal .list-item {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.settings-modal-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    width: 100%;
}

.settings-modal-body button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap;
}

/* Garantir que botões dentro do modal de configurações não usem .full */
#settingsModalAluno .settings-modal-body .ghost-btn,
#settingsModalAluno .settings-modal-body .primary-btn {
    width: 100% !important;
    flex: none !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-weak);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.exercises-list {
    margin: 20px 0;
    padding: 20px;
    background: var(--panel-alt);
    border-radius: var(--radius);
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--panel);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.exercise-item:last-child {
    margin-bottom: 0;
}

.exercise-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.add-exercise-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.add-exercise-form h5 {
    margin-bottom: 20px;
    color: var(--text);
}

.modal-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.admin-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--panel-alt);
    border-radius: var(--radius);
}

.admin-section h4 {
    margin-bottom: 10px;
    color: var(--text);
}

@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Detalhes do Treino */
.training-details {
    padding: 10px 0;
}

.exercise-detail-item {
    padding: 15px;
    background: var(--panel-alt);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.exercise-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.exercise-gif-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--panel);
    flex-shrink: 0;
}

.exercise-gif-thumb.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--muted);
}

.exercise-detail-item:hover {
    border-color: var(--accent);
    background: var(--panel);
}

.exercise-detail-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.exercise-detail-item .muted {
    color: var(--muted);
    margin: 0;
}

.training-item {
    transition: all 0.2s ease;
}

.training-item:hover {
    background: var(--panel-alt);
    border-color: var(--accent);
    transform: translateX(4px);
}

/* Lista de Treinos do Aluno */
.training-list {
    max-height: 500px;
    overflow-y: auto;
}

.training-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.training-list-item:hover {
    border-color: var(--accent);
    background: var(--panel);
}

.training-item-info {
    flex: 1;
}

.training-item-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}

.training-item-info .muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.training-item-actions {
    display: flex;
    gap: 10px;
}

/* Seção de Mensalidade - Design Criativo */
.pricing {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(254, 170, 0, 0.03) 50%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(254, 170, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card-main,
.pricing-card-special {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 40px 30px;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pricing-card-main:hover,
.pricing-card-special:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-special {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--panel) 0%, rgba(254, 170, 0, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.pricing-card-special::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 170, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.price-badge {
    display: inline-block;
    background: var(--panel-alt);
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #0b0b0f;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(254, 170, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(254, 170, 0, 0);
    }
}

.badge-icon {
    font-size: 1.2rem;
}

.price-display {
    position: relative;
    z-index: 1;
}

.price-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.price-main.special {
    justify-content: center;
}

.currency {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 8px;
}

.price-main.special .currency {
    color: var(--accent);
}

.amount {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    letter-spacing: -2px;
}

.price-main.special .amount {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(254, 170, 0, 0.4);
    animation: price-glow 3s ease-in-out infinite;
}

@keyframes price-glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(254, 170, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 40px rgba(254, 170, 0, 0.6);
    }
}

.cents {
    font-size: 2.5rem;
    vertical-align: top;
}

.price-description {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.special-benefit {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.benefit-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-weak);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

.benefit-check {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #0b0b0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.benefit-content span:last-child {
    color: var(--text);
    font-weight: 600;
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-box {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(254, 170, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-box h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-box p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.pricing-cta {
    text-align: center;
}

.primary-btn.large {
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.primary-btn.large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 170, 0, 0.4);
}

/* Responsive para seção de mensalidade */
@media (max-width: 768px) {
    .pricing-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pricing-card-main,
    .pricing-card-special {
        padding: 30px 20px;
    }
    
    .amount {
        font-size: 3.5rem;
    }
    
    .cents {
        font-size: 2rem;
    }
    
    .currency {
        font-size: 1.5rem;
        margin-top: 5px;
    }
    
    .pricing-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .special-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .settings-modal-body {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .settings-modal-body button {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.85rem;
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    #settingsModalAluno .modal-content {
        max-width: 100% !important;
        width: calc(100% - 36px);
        margin: 18px;
    }
    
    #settingsModalAluno .modal-content {
        max-width: 100% !important;
        width: calc(100% - 36px);
        margin: 18px;
    }
}
