/*
Theme Name: SuporteUnico
Theme URI: https://suporteunico.com.br
Author: Suporte Único
Description: Plataforma de treinamentos online e suporte técnico com sistema de revendas multi-tenant
Version: 3.6.0
License: GNU General Public License v2 or later
Text Domain: suporteunico
*/

/* ========================================
   CSS Variables - Identidade Visual Suporte Único
   ======================================== */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #0d4f6e;
    --accent-color: #14b8a6;
    --teal-color: #0d9488;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-xs { padding: 0.4rem 0.65rem; font-size: 0.75rem; border-radius: 8px; min-width: 32px; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Botões de ação padronizados (editar/excluir) */
.btn-action-icon {
    background: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-action-icon:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}
.btn-action-icon.btn-action-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-white:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: white;
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   Benefits Section
   ======================================== */
.benefits-section {
    background: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   Course Categories
   ======================================== */
.course-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.category-card.category-uniplus { border-top-color: var(--primary-color); }
.category-card.category-tributario { border-top-color: var(--warning-color); }
.category-card.category-juridico { border-top-color: var(--success-color); }

.category-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.category-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.category-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.category-card li:last-child {
    border-bottom: none;
}

/* ========================================
   Module Cards
   ======================================== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.module-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.module-image {
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

.module-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.module-locked {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.module-content {
    padding: 1.5rem;
}

.module-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.module-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.module-content > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.module-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.module-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.module-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-uniplus, .badge-primary { background: #dbeafe; color: #1e40af; }
.badge-tributario { background: #fef3c7; color: #92400e; }
.badge-juridico { background: #d1fae5; color: #065f46; }
.badge-gestao { background: #ede9fe; color: #5b21b6; }
.badge-level { background: var(--bg-tertiary); color: var(--text-secondary); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section.cta-small {
    padding: 3rem 0;
}

.cta-content h2, .cta-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Support Section
   ======================================== */
.support-section {
    background: white;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.support-content h2 {
    margin-bottom: 1rem;
}

.support-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.support-features {
    list-style: none;
    margin-bottom: 2rem;
}

.support-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.support-features svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.support-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.support-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card h4 {
    margin-bottom: 0.5rem;
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   Plans Page
   ======================================== */
.plans-page {
    background: var(--bg-secondary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.plan-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card.plan-featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.price-original {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 1rem;
}

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

.price-current .currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.price-current .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-current .period {
    color: var(--text-secondary);
}

.plan-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.plan-features .feature-highlight {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-action {
    margin-top: auto;
}

.plans-faq {
    max-width: 800px;
    margin: 0 auto;
}

.plans-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Courses Filter
   ======================================== */
.courses-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Support Page
   ======================================== */
.support-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.support-option {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.option-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-option h3 {
    margin-bottom: 0.5rem;
}

.support-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ticket-form-section, .my-tickets-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

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

.ticket-id {
    font-weight: 600;
    color: var(--text-secondary);
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-open { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-closed { background: #d1fae5; color: #065f46; }

.ticket-subject {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ticket-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ticket-message {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.ticket-response {
    margin-top: 1rem;
    padding: 1rem;
    background: #dbeafe;
    border-radius: var(--radius-sm);
}

.login-required {
    text-align: center;
    padding: 2rem;
}

.login-required p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.login-required .btn {
    margin: 0 0.5rem;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-info h2 {
    color: white;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: rgba(255,255,255,0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: #25d366;
}

.contact-details h4 {
    color: white;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.contact-details p, .contact-details a {
    color: white;
    margin: 0;
}

.contact-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-hours h4 {
    color: white;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.contact-hours p {
    margin: 0;
    opacity: 0.9;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-form-wrapper h2 {
    margin-bottom: 1.5rem;
}

/* ========================================
   Dashboard Page
   ======================================== */
.dashboard-page {
    padding: 2rem 0;
}

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

.welcome-text h1 {
    margin-bottom: 0.25rem;
}

.welcome-text p {
    color: var(--text-secondary);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.stat-content .stat-number {
    font-size: 1.75rem;
}

.stat-content .stat-label {
    font-size: 0.875rem;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

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

.section-header h2 {
    margin: 0;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Knowledge Base
   ======================================== */
.kb-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.kb-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.kb-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.kb-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.kb-cat-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.kb-cat-btn:hover, .kb-cat-btn.active {
    background: var(--primary-color);
    color: white;
}

.kb-section {
    margin-bottom: 3rem;
}

.kb-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    color: var(--primary-color);
}

.kb-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.kb-article {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.kb-article h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.kb-article h3 a {
    color: var(--text-primary);
}

.kb-article h3 a:hover {
    color: var(--primary-color);
}

.kb-article p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
}

.kb-contact {
    background: var(--bg-tertiary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.kb-contact h3 {
    margin-bottom: 0.5rem;
}

.kb-contact p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.no-modules {
    grid-column: 1 / -1;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #9ca3af;
    font-size: 0.9375rem;
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #9ca3af;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid,
    .benefits-grid,
    .course-categories,
    .modules-grid,
    .plans-grid,
    .support-options,
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-card.plan-featured {
        transform: none;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid,
    .benefits-grid,
    .course-categories,
    .modules-grid,
    .plans-grid,
    .support-options,
    .support-grid,
    .contact-grid,
    .dashboard-stats,
    .quick-links,
    .kb-articles,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Profile Card (Dashboard)
   ======================================== */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-tertiary);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h3 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
}

.profile-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.profile-info .member-since {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.profile-actions {
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.quick-link-logout {
    color: var(--danger-color);
}

.quick-link-logout:hover {
    background: #fef2f2;
    border-color: var(--danger-color);
}

@media (max-width: 640px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        width: 100%;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Modal Global - Sistema Padronizado
   ======================================== */
.uniplus-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.uniplus-modal-overlay.active {
    display: flex;
}

.uniplus-modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

.uniplus-modal.modal-lg {
    max-width: 800px;
}

.uniplus-modal.modal-xl {
    max-width: 1000px;
}

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

.uniplus-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.uniplus-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.uniplus-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.uniplus-modal-close:hover {
    color: var(--danger-color);
}

.uniplus-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.uniplus-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Modal Loading State */
.uniplus-modal.loading .uniplus-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.uniplus-modal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   Configurações Centralizadas - Tabs
   ======================================== */
.config-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.config-tab {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-tab:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.config-tab.active {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.config-content {
    display: none;
}

.config-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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