* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #1c1e21;
    min-height: 100vh;
    padding-bottom: 40px;
}

.navbar {
    background: #1b4332;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.user-status {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
}

.container {
    max-width: 500px;
    margin: 25px auto;
    padding: 0 15px;
}

.card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.auth-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
    color: #1b4332;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.subtitle {
    color: #65676b;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border: 1.5px solid #e4e6eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #2d6a4f;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    font-size: 15px;
    transition: transform 0.1s, opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary { background: #2d6a4f; color: white; }
.btn-secondary { background: #e4e6eb; color: #050505; }
.btn-danger { background: #e63946; color: white; }

.btn-google {
    background: #ffffff;
    border: 1.5px solid #dadce0;
    color: #3c4043;
    gap: 12px;
}

.btn-google img { width: 20px; }

.btn-premium {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #000;
    box-shadow: 0 4px 12px rgba(251, 133, 0, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2d6a4f;
    color: #2d6a4f;
}

.divider {
    margin: 20px 0;
    color: #8d949e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e4e6eb;
}

.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

.account-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.profile-info h3 {
    font-size: 1.1rem;
    color: #1b4332;
}

.profile-info p {
    font-size: 0.9rem;
    color: #65676b;
    margin-top: 4px;
}

.profile-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}
.badge-free { background: #e4e6eb; color: #4b4f56; }
.badge-premium { background: #ffe066; color: #856404; }

.categories-flex {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.btn-category {
    background: white;
    border: 1px solid #e4e6eb;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    color: #65676b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-category.active {
    background: #1b4332;
    color: white;
    border-color: #1b4332;
}

.lessons-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.lesson-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #edf0f2;
    text-align: left;
}

.lesson-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    padding-right: 70px;
}

.lesson-card p {
    font-size: 0.88rem;
    color: #65676b;
    margin-bottom: 12px;
}

.tag {
    position: absolute;
    top: 18px;
    right: 15px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}
.tag-free { background: #d8f3dc; color: #1b4332; }
.tag-paid { background: #fff3bf; color: #f59f00; }

.hidden { display: none !important; }
.spinner { text-align: center; color: #65676b; font-size: 0.9rem; }

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h3 { color: #1b4332; margin-bottom: 5px; }
.modal-content .price { font-size: 1.4rem; font-weight: 800; color: #fb8500; margin-bottom: 10px; }

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    color: #8d949e;
    cursor: pointer;
}