/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --accent-color: #8b5cf6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    --shadow-hover: 0 4px 20px rgba(30, 58, 138, 0.15);
    --gold-light: #fef3c7;
    --purple-light: #ede9fe;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: #5ab9a2;
    height: 20px;
    width: 100%;
}

/* Header */
.header {
    background: white;
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header .logo {
        width: 100%;
        justify-content: center;
    }
    
    .header .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    display: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav span {
    color: var(--text-color);
}

.btn-link {
    padding: 0.5rem 1rem;
    background: #5ab9a2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-link:hover {
    background: #4a9d8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #5ab9a2, #4a9d8a);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-image picture,
.carousel-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-image img {
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: white;
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.carousel-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-content .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    color: #5ab9a2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn span {
    line-height: 1;
    font-weight: bold;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .carousel-content .subtitle {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
    }
}

/* Subtitle (mantido para compatibilidade) */
.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section.bg-light {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Login Section */
.login-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.login-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #5ab9a2;
    color: white;
    border-color: #5ab9a2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5ab9a2;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.1rem;
    cursor: pointer;
    accent-color: #5ab9a2;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: #5ab9a2;
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-label a:hover {
    color: #4a9d8a;
}

.checkbox-label input[type="checkbox"]:required:invalid {
    border-color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #5ab9a2;
    color: white;
}

.btn-primary:hover {
    background: #4a9d8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #5ab9a2;
    color: white;
}

.btn-secondary:hover {
    background: #4a9d8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Dashboard */
.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.section-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-card h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Crianças Grid */
.criancas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.crianca-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.crianca-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.crianca-header h3 {
    color: var(--dark-color);
}

.idade {
    color: var(--text-light);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.badge-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    font-weight: bold;
}

.badge-teacher {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    font-weight: bold;
    color: white;
}

.badge-free {
    background: var(--text-light);
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-link-small {
    font-size: 0.9rem;
    color: #5ab9a2;
    text-decoration: none;
    font-weight: bold;
}

.btn-link-small:hover {
    color: #4a9d8a;
    text-decoration: underline;
}

.crianca-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crianca-actions .btn {
    width: 100%;
    text-align: center;
}

.criancas-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.crianca-select-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.crianca-select-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.crianca-select-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Jogos Grid */
.jogos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Jogos Horizontal Scroll - Para seções de Mais Jogados e Novidades */
.jogos-horizontal-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
}

.jogos-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.jogos-horizontal-scroll::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.jogos-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.jogos-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

.jogo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Cards em scroll horizontal devem ter largura fixa */
.jogos-horizontal-scroll > .jogo-card {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

.jogo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.jogo-image {
    width: 100%;
    height: 200px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jogo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jogo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5ab9a2 0%, #4a9d8a 100%);
    color: rgba(255, 255, 255, 0.8);
}

.jogo-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

.jogo-content {
    padding: 1.5rem;
}

.jogo-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.jogo-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.jogo-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.jogo-idade,
.jogo-categoria {
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.85rem;
}

.jogo-conceitos {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-play {
    width: 100%;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 600px; /* Largura mínima para forçar scroll em telas pequenas */
}

.table thead {
    background: var(--light-color);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--light-color);
}

/* Container com scroll horizontal para tabelas */
.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
    margin-top: 1rem;
}

.table-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Conceitos Grid */
.conceitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.conceito-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.conceito-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.conceito-card small {
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (min-width: 992px) {
    .pricing-grid-three {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
    border: 2px solid #5ab9a2;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.pricing-card.featured-teacher {
    border: 2px solid #5ab9a2;
    transform: scale(1.05);
}

.pricing-card.featured-teacher:hover {
    transform: scale(1.08) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
}

.pricing-badge.teacher-badge {
    background: #5ab9a2;
    box-shadow: 0 2px 10px rgba(90, 185, 162, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #5ab9a2;
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: 2rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.disabled {
    opacity: 0.5;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item:not(.disabled) .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), #fbbf24);
    color: white;
}

.feature-item.disabled .feature-icon {
    background: var(--light-color);
    color: var(--text-light);
}

.pricing-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-color);
}

.pricing-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large .modal-content {
    max-width: 95%;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-scrollable {
    max-height: 90vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-scrollable .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-scrollable .close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-scrollable iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 90vh;
}

.modal-scrollable::-webkit-scrollbar {
    width: 8px;
}

.modal-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background: #5ab9a2;
    border-radius: 10px;
}

.modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: #4a9d8a;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5ab9a2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .modal-large .modal-content {
        max-width: 98%;
        width: 98%;
    }
    
    .modal-scrollable iframe {
        height: 85vh;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--text-color);
}

.modal-title {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.modal-content .form {
    display: flex;
    flex-direction: column;
}

.modal-content .form button[type="submit"] {
    align-self: center;
    min-width: 200px;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Legal Content Styles */
.legal-content {
    text-align: left;
    line-height: 1.8;
    color: var(--text-color);
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    border-bottom: 2px solid #5ab9a2;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content ul, .legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.legal-content a {
    color: #5ab9a2;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #4a9d8a;
}

.legal-content strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid,
    .jogos-grid,
    .criancas-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Manter scroll horizontal mesmo em telas pequenas */
    .jogos-horizontal-scroll {
        gap: 1.5rem;
    }

    .jogos-horizontal-scroll > .jogo-card {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }

    .pricing-card.featured,
    .pricing-card.featured-teacher {
        transform: scale(1);
    }

    .pricing-card.featured:hover,
    .pricing-card.featured-teacher:hover {
        transform: translateY(-5px);
    }

    .pricing-grid-three {
        grid-template-columns: 1fr !important;
    }
    
    .pricing-card.featured,
    .pricing-card.featured-teacher {
        transform: scale(1) !important;
    }

    .pricing-card.featured:hover,
    .pricing-card.featured-teacher:hover {
        transform: translateY(-5px) !important;
    }

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

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

