/* ===== Theme toggle button ===== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}
.theme-toggle-icon {
    display: none;
    line-height: 0;
}
html[data-theme="dark"] .theme-toggle-icon--sun {
    display: inline-flex;
}
html[data-theme="light"] .theme-toggle-icon--moon {
    display: inline-flex;
}
.theme-toggle--guest {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
    color: var(--gray-400, #9ca3af);
}
html[data-theme="light"] .theme-toggle--guest {
    color: var(--gray-600, #4b5563);
}

/* ===== Light: landing / marketing ===== */
html[data-theme="light"] .landing-body {
    background: #f3f4f6;
    color: #111827;
}
html[data-theme="light"] .landing-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .landing-nav-center a {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .landing-nav-center a:hover {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .landing-nav-right .link,
html[data-theme="light"] .landing-nav-cta .link,
html[data-theme="light"] .landing-nav-link-entrar {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .landing-nav-right .link:hover,
html[data-theme="light"] .landing-nav-cta .link:hover,
html[data-theme="light"] .landing-nav-link-entrar:hover {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .landing-nav-mobile {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .landing-nav-mobile-link {
    color: var(--gray-700, #374151);
}
html[data-theme="light"] .landing-nav-mobile-link:hover {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .landing-nav-mobile-link + .landing-nav-mobile-link {
    border-top-color: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .landing-nav-mobile-divider {
    background: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .landing-nav-mobile-divider + .landing-nav-mobile-link {
    border-top-color: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .landing-nav-mobile-link--active {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .landing-nav-menu-btn {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .landing-nav-menu-btn:hover {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .landing-nav-logo,
html[data-theme="light"] .landing-footer-logo-row {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .hero-glow {
    background: radial-gradient(circle, rgba(234, 29, 44, 0.08), transparent 70%);
}
html[data-theme="light"] .hero p {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .hero-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--gray-200, #e5e7eb);
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .hero-scroll svg {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="light"] .section-desc {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .module-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .module-card:hover {
    border-color: rgba(234, 29, 44, 0.35);
}
html[data-theme="light"] .module-card p {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .module-tag {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .step p {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .pricing-card-wrap {
    background: linear-gradient(180deg, rgba(234, 29, 44, 0.2), transparent);
}
html[data-theme="light"] .pricing-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}
html[data-theme="light"] .pricing-amount .currency,
html[data-theme="light"] .pricing-amount .period {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .pricing-sub {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .pricing-feature {
    color: var(--gray-700, #374151);
}
html[data-theme="light"] .landing-footer {
    border-top-color: var(--gray-200, #e5e7eb);
    background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%);
}
html[data-theme="light"] .landing-footer-bottom {
    border-top-color: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .landing-footer-tagline,
html[data-theme="light"] .landing-footer-contact-hint {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .landing-footer-heading {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .landing-footer-list a {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .landing-footer-list a:hover {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .landing-footer-copy,
html[data-theme="light"] .landing-footer-note {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .landing-footer-social-link--whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(22, 163, 74, 0.4);
    color: #15803d;
}
html[data-theme="light"] .landing-footer-social-link--whatsapp:hover {
    background: rgba(37, 211, 102, 0.28);
    border-color: #16a34a;
    color: #14532d;
}
html[data-theme="light"] .landing-footer-social-link--instagram {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(249, 115, 22, 0.1));
    border-color: rgba(219, 39, 119, 0.4);
    color: #be185d;
}
html[data-theme="light"] .landing-footer-social-link--instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.22), rgba(249, 115, 22, 0.16));
    border-color: #db2777;
    color: #9d174d;
}
html[data-theme="light"] .landing-footer-social-link--youtube {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(220, 38, 38, 0.4);
    color: #b91c1c;
}
html[data-theme="light"] .landing-footer-social-link--youtube:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #dc2626;
    color: #991b1b;
}
html[data-theme="light"] .btn-outline {
    border-color: var(--gray-300, #d1d5db);
    color: var(--gray-700, #374151);
}
html[data-theme="light"] .btn-outline:hover {
    border-color: var(--gray-400, #9ca3af);
    color: var(--gray-900, #111827);
    background: rgba(0, 0, 0, 0.03);
}

/* ===== Light: guest (login/register) ===== */
html[data-theme="light"] .guest-body {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}
html[data-theme="light"] .guest-body::before {
    background: radial-gradient(circle, rgba(234, 29, 44, 0.06), transparent 70%);
}
html[data-theme="light"] .guest-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .guest-card .form-label {
    color: var(--gray-700, #374151);
}
html[data-theme="light"] .guest-card .form-input {
    background: #fff;
    border: 1px solid var(--gray-300, #d1d5db);
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .guest-card .form-input:focus {
    border-color: var(--red, #ea1d2c);
}
html[data-theme="light"] .guest-card .form-input::placeholder {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="light"] .guest-card .form-hint {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .guest-footer {
    color: var(--gray-500, #6b7280);
}
.guest-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
html[data-theme="light"] .guest-logo-text {
    color: #111827;
}
html[data-theme="light"] .auth-links {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .checkbox-wrap label {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .auth-actions .forgot {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .auth-actions .forgot:hover {
    color: var(--gray-700, #374151);
}
html[data-theme="light"] .guest-card .alert-success {
    background: var(--green-light, #d1fae5);
    color: var(--green-dark, #065f46);
    border-color: #a7f3d0;
}
html[data-theme="light"] .guest-card .alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* ===== Light: docs ===== */
html[data-theme="light"] .docs-body {
    background: #f3f4f6;
    color: #111827;
}
html[data-theme="light"] .docs-sidebar-title {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .docs-sidebar a {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .docs-sidebar a:hover {
    color: var(--gray-900, #111827);
    background: rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .docs-sidebar a.active {
    color: var(--red, #ea1d2c);
    background: rgba(234, 29, 44, 0.08);
    font-weight: 600;
}
html[data-theme="light"] .docs-content .docs-lead {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .docs-content h2 {
    border-top-color: var(--gray-200, #e5e7eb);
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .docs-content h3 {
    color: var(--gray-800, #1f2937);
}
html[data-theme="light"] .docs-content p,
html[data-theme="light"] .docs-content ul,
html[data-theme="light"] .docs-content ol {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .docs-content strong {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .docs-content code {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-800, #1f2937);
}
html[data-theme="light"] .docs-method-url {
    background: #fff;
    border-color: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .docs-pre pre {
    background: #fff;
    border-color: var(--gray-200, #e5e7eb);
    color: var(--gray-800, #1f2937);
}
html[data-theme="light"] .docs-pre-label {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .docs-table th {
    color: var(--gray-700, #374151);
    border-bottom-color: var(--gray-200, #e5e7eb);
}
html[data-theme="light"] .docs-table td {
    border-bottom-color: var(--gray-100, #f3f4f6);
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .docs-table td:first-child {
    color: var(--gray-900, #111827);
}
html[data-theme="light"] .docs-note.info {
    background: rgba(59, 130, 246, 0.08);
    color: #1e40af;
}
html[data-theme="light"] .docs-note.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

/* ===== Dark: app / painel / dashboard ===== */
html[data-theme="dark"] body:not(.landing-body):not(.docs-body) {
    color-scheme: dark;
}
html[data-theme="dark"] .app-nav {
    background: #111111;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .app-nav-logo {
    color: #fff;
}
html[data-theme="dark"] .app-nav-link {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .app-nav-link:hover,
html[data-theme="dark"] .app-nav-link.active {
    color: #fff;
}
html[data-theme="dark"] .app-nav-user-btn {
    color: var(--gray-300, #d1d5db);
}
html[data-theme="dark"] .app-nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .app-nav-dropdown {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .app-nav-dropdown a,
html[data-theme="dark"] .app-nav-dropdown button {
    color: var(--gray-300, #d1d5db);
}
html[data-theme="dark"] .app-nav-dropdown a:hover,
html[data-theme="dark"] .app-nav-dropdown button:hover {
    background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .app-nav-mobile-btn {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .app-nav-mobile {
    border-top-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .app-nav-mobile a,
html[data-theme="dark"] .app-nav-mobile button {
    color: var(--gray-300, #d1d5db);
}
html[data-theme="dark"] .app-header {
    background: #111111;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .app-header h2 {
    color: #fff;
}
html[data-theme="dark"] .app-body {
    background: #0a0a0a;
    color: var(--gray-200, #e5e7eb);
}
html[data-theme="dark"] .card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}
html[data-theme="dark"] .panel-title,
html[data-theme="dark"] .panel-title--lg,
html[data-theme="dark"] .panel-pix-title {
    color: #fff;
}
html[data-theme="dark"] .text-muted-panel,
html[data-theme="dark"] .text-muted-panel--sm {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .text-muted-panel strong,
html[data-theme="dark"] .text-muted-panel--sm strong {
    color: #f9fafb;
}
html[data-theme="dark"] .panel-price-num {
    color: #fff;
}
html[data-theme="dark"] .panel-checkout-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .border-divider {
    border-top-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .panel-stat-label {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .panel-stat-value {
    color: #f3f4f6;
}
html[data-theme="dark"] .card code {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}
html[data-theme="dark"] .form-error {
    color: #fca5a5;
}
html[data-theme="dark"] .panel-title--danger {
    color: #f87171;
}
html[data-theme="dark"] .text-success-inline {
    color: #34d399;
}
html[data-theme="dark"] .alert-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
}
html[data-theme="dark"] .form-label {
    color: var(--gray-300, #d1d5db);
}
html[data-theme="dark"] .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
html[data-theme="dark"] .form-input:focus {
    border-color: var(--red, #ea1d2c);
}
html[data-theme="dark"] .form-input::placeholder {
    color: var(--gray-500, #6b7280);
}
html[data-theme="dark"] .form-hint {
    color: var(--gray-500, #6b7280);
}
html[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.25);
}
html[data-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}
html[data-theme="dark"] .badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}
html[data-theme="dark"] .badge-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}
html[data-theme="dark"] .modal-backdrop {
    background: rgba(0, 0, 0, 0.65);
}
html[data-theme="dark"] .modal-panel {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .modal-panel h4 {
    color: #fff;
}
html[data-theme="dark"] .modal-panel p {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .btn-secondary-light {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--gray-300, #d1d5db);
}
html[data-theme="dark"] .btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
html[data-theme="dark"] .btn-ghost {
    color: var(--gray-400, #9ca3af);
    border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* App nav theme toggle in dark dashboard */
html[data-theme="dark"] .app-nav .theme-toggle {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .app-nav .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
html[data-theme="light"] .app-nav .theme-toggle {
    color: var(--gray-500, #6b7280);
}
html[data-theme="light"] .app-nav .theme-toggle:hover {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-900, #111827);
}

/* Landing/docs nav theme toggle */
html[data-theme="dark"] .landing-nav .theme-toggle {
    color: var(--gray-400, #9ca3af);
}
html[data-theme="dark"] .landing-nav .theme-toggle:hover {
    color: #fff;
}
html[data-theme="light"] .landing-nav .theme-toggle {
    color: var(--gray-600, #4b5563);
}
html[data-theme="light"] .landing-nav .theme-toggle:hover {
    color: var(--gray-900, #111827);
}

.landing-nav-link-active {
    color: #fff !important;
    font-weight: 600;
}
html[data-theme="light"] .landing-nav-link-active {
    color: var(--gray-900, #111827) !important;
}
