/* ==========================================
   COMERCIAL ANIS DIGITAL - ESTILOS MODERNOS
   ========================================== */

:root {
    --primary: #667eea;
    --primary-light: #764ba2;
    --secondary: #00d4ff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6;
    color: #374151;
    line-height: 1.6;
}

body.module-page-shell {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--page-accent, var(--primary)) 14%, white) 0%, transparent 38%),
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--page-accent-light, var(--primary-light)) 12%, white) 0%, transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #334155;
    position: relative;
    overflow-x: hidden;
}

body.module-page-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--page-accent, var(--primary)) 8%, transparent) 0%, transparent 26%),
        radial-gradient(circle at 80% 75%, color-mix(in srgb, var(--page-accent-light, var(--primary-light)) 10%, transparent) 0%, transparent 30%);
    opacity: 0.85;
    z-index: 0;
}

body.module-page-shell .header,
body.module-page-shell .dashboard,
body.module-page-shell .footer {
    position: relative;
    z-index: 1;
}

body.module-page-shell .header {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--page-accent, var(--primary)) 82%, #0f172a) 0%, color-mix(in srgb, var(--page-accent-light, var(--primary-light)) 82%, #0f172a) 100%);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--page-accent, var(--primary)) 26%, rgba(15, 23, 42, 0.22));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.module-page-shell .header .container {
    position: relative;
}

body.module-page-shell .page-title {
    padding: 22px 24px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
        linear-gradient(135deg, color-mix(in srgb, var(--page-accent, var(--primary)) 12%, white), white);
    border: 1px solid color-mix(in srgb, var(--page-accent, var(--primary)) 18%, rgba(148, 163, 184, 0.24));
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

body.module-page-shell .page-title h2 {
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 80%, #0f172a);
}

body.module-page-shell .module-hint {
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 22%, #475569);
}

body.module-page-shell .dashboard-section h3 {
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 78%, #0f172a);
}

body.module-page-shell .card,
body.module-page-shell .stat-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--page-accent, var(--primary)) 8%, white), white);
    border: 1px solid color-mix(in srgb, var(--page-accent, var(--primary)) 14%, rgba(148, 163, 184, 0.18));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.module-page-shell .card {
    border-left-color: var(--page-accent, var(--primary));
}

body.module-page-shell .stat-value {
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 78%, #0f172a);
}

body.module-page-shell .alert {
    border-left-color: var(--page-accent, var(--primary));
    background: color-mix(in srgb, var(--page-accent, var(--primary)) 10%, white);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

body.module-page-shell .alert-success {
    background: color-mix(in srgb, #10b981 14%, white);
    color: #065f46;
}

body.module-page-shell .alert-error {
    background: color-mix(in srgb, #ef4444 12%, white);
    color: #7f1d1d;
}

body.module-page-shell .alert-info {
    background: color-mix(in srgb, var(--page-accent, var(--primary)) 12%, white);
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 74%, #0f172a);
}

body.module-page-shell .btn-primary {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 26%, rgba(15, 23, 42, 0.14));
}

body.module-page-shell .btn-primary:hover {
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 34%, rgba(15, 23, 42, 0.16));
}

body.module-page-shell .footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.82));
    border-top: 1px solid color-mix(in srgb, var(--page-accent, var(--primary)) 12%, rgba(148, 163, 184, 0.22));
    color: #475569;
}

body.module-page-shell .footer a {
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 72%, #0f172a);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER / NAVEGAÇÃO
   ========================================== */

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo {
    flex: 1;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.logo p {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav span {
    font-weight: 500;
}

/* ==========================================
   BOTÕES
   ========================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.btn-subscribe {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 14px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* ==========================================
   MÓDULOS
   ========================================== */

.modules {
    padding: 60px 0;
    background-color: white;
    margin: 40px 0;
    border-radius: 10px;
}

.modules h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--dark);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.module-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.module-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.module-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

/* ==========================================
   PLANOS
   ========================================== */

.plans {
    padding: 60px 0;
}

.plans h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.plan-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.plan-header {
    margin-bottom: 30px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.plan-description {
    color: #6b7280;
    font-size: 14px;
}

.plan-users {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--info);
}

.users-icon {
    font-size: 20px;
}

.users-text {
    font-weight: 600;
    color: var(--dark);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 20px;
}

.currency {
    font-size: 18px;
    color: #6b7280;
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.period {
    color: #6b7280;
    font-weight: 500;
}

.plan-trial {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}

.plan-features {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.plan-features h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

/* ==========================================
   CTA
   ========================================== */

.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 16px;
    margin: 60px 0;
}

.cta h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ==========================================
   FORMULÁRIOS
   ========================================== */

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* ==========================================
   AUTH CONTAINER
   ========================================== */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark);
}

.auth-form > p {
    color: #6b7280;
    margin-bottom: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

/* ==========================================
   ALERTAS
   ========================================== */

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: var(--danger);
    color: #7f1d1d;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info);
    color: #082f49;
}

.alert ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.alert li {
    padding: 5px 0;
}

/* ==========================================
   DASHBOARD
   ========================================== */

.dashboard {
    padding: 40px 0;
}

.page-title {
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 32px;
    color: var(--dark);
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.card h3 {
    margin-bottom: 20px;
}

.trial-card {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.trial-days {
    font-size: 24px;
    margin: 20px 0;
    color: #92400e;
}

.expired-card {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-item span {
    display: block;
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-trial {
    background: #fef3c7;
    color: #92400e;
}

.status-expired {
    background: #fee2e2;
    color: #7f1d1d;
}

.status-inactive {
    background: #e5e7eb;
    color: #374151;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.plans-stats {
    display: grid;
    gap: 15px;
}

.plan-stat {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plan-name {
    font-weight: 600;
    color: var(--dark);
}

.plan-count {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   TABELAS
   ========================================== */

.admin-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table thead {
    background: #f3f4f6;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* ==========================================
   AÇÕES
   ========================================== */

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-link {
    display: block;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.action-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tool-card {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    min-height: 160px;
    text-decoration: none;
    color: var(--dark);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, #cbd5e1);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-light) 12%, white), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 32%, #94a3b8);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.tool-card-icon {
    font-size: 24px;
    line-height: 1;
}

.tool-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.tool-card-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.45;
}

.tool-card-meta {
    margin-top: auto;
    padding-top: 6px;
    font-size: 12px;
    color: #334155;
    font-weight: 600;
}

.tool-card-users {
    border-color: color-mix(in srgb, var(--primary) 34%, #64748b);
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--primary) 18%, white), transparent 45%),
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, white), #f8fafc);
}

.tool-card-form {
    min-height: 220px;
}

.tool-card-select-wrap {
    margin-top: 4px;
    margin-bottom: 4px;
}

.tool-card-select-wrap label {
    font-size: 12px;
    color: #334155;
}

.tool-card-select {
    font-size: 13px;
}

.tool-card-button {
    margin-top: auto;
    justify-self: start;
}

.users-limit-tip {
    margin-top: 14px;
    color: #334155;
    font-size: 14px;
}

.users-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.users-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.users-filter-form {
    display: grid;
    gap: 12px;
}

.users-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.users-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.table-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-inline-form {
    display: inline;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 176px;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, #cbd5e1);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-light) 13%, white), transparent 48%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, #94a3b8);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.contact-card-whatsapp {
    border-color: color-mix(in srgb, #16a34a 38%, #cbd5e1);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, #16a34a 18%, white), transparent 46%),
        linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.contact-icon {
    font-size: 26px;
    line-height: 1;
}

.contact-title {
    font-size: 17px;
    font-weight: 700;
}

.contact-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.contact-description {
    margin-top: auto;
    font-size: 13px;
    color: #475569;
}

/* ==========================================
   CENTRAL DE MODULOS
   ========================================== */

.modules-page {
    padding-top: 30px;
}

.module-hint {
    color: #6b7280;
    margin-top: 8px;
}

.module-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
    align-items: stretch;
}

.module-switcher-dashboard {
    margin-bottom: 0;
}

.module-card-link {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 20px 18px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--dark);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--module-accent, #3b82f6) 40%, white) 0%, transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.92) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--module-accent, #3b82f6) 18%, white), white);
    border: 1px solid color-mix(in srgb, var(--module-accent, #3b82f6) 22%, rgba(148, 163, 184, 0.2));
    font-weight: 600;
    transition:
        transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
        backdrop-filter 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-height: 150px;
    position: relative;
    overflow: hidden;
    animation: moduleCardEnter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.module-card-link--compact {
    min-height: 136px;
    padding-top: 18px;
    padding-bottom: 16px;
}

.module-card-link--theme-finance::after {
    inset: -18px -10px auto auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, color-mix(in srgb, #f97316 48%, transparent) 0%, transparent 74%);
    opacity: 0.95;
}

.module-card-link--theme-dynamic::after {
    inset: auto -14px -22px auto;
    width: 132px;
    height: 132px;
    background: radial-gradient(circle, color-mix(in srgb, var(--module-accent, #3b82f6) 46%, transparent) 0%, transparent 74%);
    opacity: 0.86;
}

.module-card-link--theme-corporate::after {
    inset: auto -26px -18px auto;
    width: 104px;
    height: 104px;
    background: radial-gradient(circle, color-mix(in srgb, #64748b 22%, transparent) 0%, transparent 76%);
    opacity: 0.54;
}

.module-card-link--balanced {
    min-height: 156px;
}

.module-card-link--tall {
    min-height: 176px;
}

.module-card-link--feature {
    min-height: 188px;
    padding-top: 22px;
    padding-bottom: 20px;
}

.module-card-link--theme-finance {
    background:
        radial-gradient(circle at 84% 18%, color-mix(in srgb, #f59e0b 42%, white) 0%, transparent 38%),
        radial-gradient(circle at 18% 84%, color-mix(in srgb, var(--module-accent, #3b82f6) 18%, white) 0%, transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 240, 0.94) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--module-accent, #3b82f6) 16%, white), white);
    border-color: color-mix(in srgb, #f59e0b 26%, rgba(148, 163, 184, 0.18));
}

.module-card-link--theme-dynamic {
    background:
        radial-gradient(circle at 20% 16%, color-mix(in srgb, var(--module-accent, #3b82f6) 42%, white) 0%, transparent 34%),
        radial-gradient(circle at 80% 78%, color-mix(in srgb, #22c55e 18%, white) 0%, transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.93) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--module-accent, #3b82f6) 18%, white), white);
    border-color: color-mix(in srgb, var(--module-accent, #3b82f6) 24%, rgba(148, 163, 184, 0.18));
}

.module-card-link--theme-corporate {
    background:
        radial-gradient(circle at 72% 18%, color-mix(in srgb, #64748b 18%, white) 0%, transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(245, 247, 250, 0.96) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--module-accent, #3b82f6) 12%, white), white);
    border-color: color-mix(in srgb, #64748b 18%, rgba(148, 163, 184, 0.2));
}

.module-card-link:nth-child(1) { animation-delay: 0.02s; }
.module-card-link:nth-child(2) { animation-delay: 0.07s; }
.module-card-link:nth-child(3) { animation-delay: 0.12s; }
.module-card-link:nth-child(4) { animation-delay: 0.17s; }
.module-card-link:nth-child(5) { animation-delay: 0.22s; }
.module-card-link:nth-child(6) { animation-delay: 0.27s; }
.module-card-link:nth-child(7) { animation-delay: 0.32s; }
.module-card-link:nth-child(8) { animation-delay: 0.37s; }

.module-card-link:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: color-mix(in srgb, var(--module-accent, #3b82f6) 45%, white);
    box-shadow:
        0 28px 56px color-mix(in srgb, var(--module-accent, #3b82f6) 22%, rgba(15, 23, 42, 0.16)),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px) saturate(1.18);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
}

.module-card-link--theme-finance:hover {
    box-shadow:
        0 30px 60px color-mix(in srgb, #f59e0b 22%, rgba(15, 23, 42, 0.16)),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.module-card-link--theme-dynamic:hover {
    box-shadow:
        0 30px 58px color-mix(in srgb, var(--module-accent, #3b82f6) 24%, rgba(15, 23, 42, 0.16)),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.module-card-link--theme-corporate:hover {
    box-shadow:
        0 24px 48px rgba(51, 65, 85, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.module-card-link.active {
    background: linear-gradient(135deg, var(--module-accent, var(--primary)), color-mix(in srgb, var(--module-accent, var(--primary)) 72%, white));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--module-accent, var(--primary)) 35%, rgba(0, 0, 0, 0.12));
}

.module-card-link--feature::after {
    inset: -22px auto auto -18px;
    width: 132px;
    height: 132px;
    opacity: 0.95;
}

.module-card-link--tall::after {
    inset: auto -10px -26px auto;
    width: 128px;
    height: 128px;
    opacity: 0.82;
}

.module-card-link--balanced::after {
    inset: 24px -28px auto auto;
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

.module-card-link--compact::after {
    inset: auto -28px -8px auto;
    width: 94px;
    height: 94px;
    opacity: 0.62;
}

.module-card-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 55%);
    pointer-events: none;
}

.module-card-link::after {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--module-accent, #3b82f6) 46%, transparent) 0%, transparent 72%);
    pointer-events: none;
    opacity: 0.85;
}

.module-card-icon {
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.module-card-label {
    font-size: 20px;
    letter-spacing: 0.015em;
}

.module-card-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1.35;
    color: color-mix(in srgb, var(--module-accent, #3b82f6) 35%, rgba(15, 23, 42, 0.72));
    font-weight: 600;
}

.module-card-subtitle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--module-accent, #3b82f6) 18%, white);
    color: color-mix(in srgb, var(--module-accent, #3b82f6) 76%, #0f172a);
    font-size: 11px;
    flex: 0 0 auto;
}

.module-card-copy {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(15, 23, 42, 0.64);
    font-weight: 500;
}

.module-card-link.active .module-card-copy {
    color: rgba(255, 255, 255, 0.86);
}

.module-card-link.active .module-card-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.module-card-link.active .module-card-subtitle-icon {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.module-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.86);
    color: color-mix(in srgb, var(--module-accent, #3b82f6) 78%, #0f172a);
    border: 1px solid color-mix(in srgb, var(--module-accent, #3b82f6) 22%, rgba(148, 163, 184, 0.35));
}

.module-card-link.active .module-card-badge {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-color: rgba(255, 255, 255, 0.24);
}

@keyframes moduleCardEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.982);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.module-stats-grid .stat-value {
    font-size: 28px;
}

.module-filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.module-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.module-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.module-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.module-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.module-table {
    min-width: 1050px;
}

.module-row-meta {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.module-row-tags {
    color: #4f46e5;
    font-size: 12px;
    margin-top: 4px;
}

.priority-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 10px;
}

.priority-baixa {
    background: #e5e7eb;
    color: #374151;
}

.priority-media {
    background: #dbeafe;
    color: #1e40af;
}

.priority-alta {
    background: #fde68a;
    color: #92400e;
}

.priority-critica {
    background: #fecaca;
    color: #991b1b;
}

.status-em_andamento {
    background: #dbeafe;
    color: #1e40af;
}

.status-concluido {
    background: #d1fae5;
    color: #065f46;
}

.status-bloqueado {
    background: #fee2e2;
    color: #991b1b;
}

.status-novo {
    background: #fef3c7;
    color: #92400e;
}

.module-actions-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form {
    margin: 0;
}

.module-special-link {
    margin-top: 12px;
}

.module-return-rail {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
    gap: 14px;
    margin-bottom: 26px;
}

.module-return-card {
    border-radius: 18px;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--page-accent, var(--primary)) 10%, white), white);
    border: 1px solid color-mix(in srgb, var(--page-accent, var(--primary)) 16%, rgba(148, 163, 184, 0.18));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.module-return-card-main strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 78%, #0f172a);
}

.module-return-card-main p {
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
}

.module-return-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 76%, #0f172a);
}

.module-return-kicker::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--page-accent, var(--primary));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent, var(--primary)) 14%, transparent);
}

.module-return-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.module-return-card-actions .btn-secondary {
    background: #ffffff;
    color: #111111;
    border: 2px solid #111111;
}

.module-return-card-actions .btn-secondary:hover {
    background: #f3f4f6;
    color: #000000;
    border-color: #000000;
}

.module-return-card-actions .btn-primary {
    background: linear-gradient(135deg, var(--page-accent, var(--primary)) 0%, var(--page-accent-light, var(--primary-light)) 100%);
}

.module-dark-button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.module-dark-button:hover {
    background: #f3f4f6 !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

body.module-theme-finance .module-return-card,
body.module-theme-finance .module-return-card-actions .btn-secondary {
    border-color: color-mix(in srgb, #f59e0b 20%, rgba(148, 163, 184, 0.2));
}

body.module-theme-dynamic .module-return-card,
body.module-theme-dynamic .module-return-card-actions .btn-secondary {
    border-color: color-mix(in srgb, var(--page-accent, var(--primary)) 20%, rgba(148, 163, 184, 0.2));
}

body.module-theme-corporate .module-return-card,
body.module-theme-corporate .module-return-card-actions .btn-secondary {
    border-color: color-mix(in srgb, #64748b 18%, rgba(148, 163, 184, 0.2));
}

.specialized-page .card {
    border-left-width: 5px;
}

body.module-page-shell.specialized-page .page-title {
    margin-bottom: 34px;
}

body.module-page-shell.specialized-page .module-return-rail {
    margin-top: -8px;
}

body.module-theme-dynamic .pipeline-board,
body.module-theme-dynamic .kanban-board {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
    border-radius: 22px;
    padding: 4px;
}

body.module-theme-dynamic .pipeline-column,
body.module-theme-dynamic .kanban-column {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--page-accent, var(--primary)) 18%, white) 0%, transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.86) 100%);
    border-color: color-mix(in srgb, var(--page-accent, var(--primary)) 14%, rgba(148, 163, 184, 0.22));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

body.module-theme-dynamic .pipeline-header,
body.module-theme-dynamic .kanban-header {
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 78%, #0f172a);
}

body.module-theme-dynamic .pipeline-card-item,
body.module-theme-dynamic .pipeline-card,
body.module-theme-dynamic .kanban-card-item,
body.module-theme-dynamic .kanban-card {
    border-color: color-mix(in srgb, var(--page-accent, var(--primary)) 14%, rgba(148, 163, 184, 0.18));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.module-theme-dynamic .drag-over {
    outline-color: color-mix(in srgb, var(--page-accent, var(--primary)) 82%, white);
    background: color-mix(in srgb, var(--page-accent, var(--primary)) 8%, white);
}

body.module-theme-finance .card,
body.module-theme-finance .stat-card,
body.module-theme-finance .specialized-two-col .card {
    border-left-color: var(--page-accent, var(--primary));
}

body.module-theme-finance .specialized-two-col .card,
body.module-theme-finance .card {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, #f59e0b 10%, white) 0%, transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 247, 0.9) 100%);
}

body.module-theme-finance .admin-table thead th {
    background: color-mix(in srgb, var(--page-accent, var(--primary)) 12%, white);
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 74%, #0f172a);
}

body.module-theme-finance .admin-table tbody tr:hover td {
    background: color-mix(in srgb, #f59e0b 7%, white);
}

body.module-theme-corporate .card,
body.module-theme-corporate .stat-card,
body.module-theme-corporate .specialized-two-col .card {
    border-left-color: var(--page-accent, var(--primary));
}

body.module-theme-corporate .card,
body.module-theme-corporate .stat-card {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, #64748b 8%, white) 0%, transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 249, 251, 0.93) 100%);
}

body.module-theme-corporate .admin-table thead th {
    background: color-mix(in srgb, var(--page-accent, var(--primary)) 10%, white);
    color: color-mix(in srgb, var(--page-accent, var(--primary)) 72%, #0f172a);
}

body.module-theme-corporate .impact-bar {
    background: linear-gradient(90deg, #64748b, color-mix(in srgb, var(--page-accent, var(--primary)) 72%, white));
}

body.module-theme-corporate .abc-A,
body.module-theme-corporate .abc-a {
    background: color-mix(in srgb, #d1fae5 76%, white);
}

body.module-theme-corporate .abc-B,
body.module-theme-corporate .abc-b {
    background: color-mix(in srgb, #e2e8f0 70%, white);
    color: #475569;
}

body.module-theme-corporate .abc-C,
body.module-theme-corporate .abc-c {
    background: color-mix(in srgb, #fee2e2 70%, white);
}

.specialized-two-col,
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.row-warning td {
    background: #fff7ed;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.pipeline-column {
    background: #eef2ff;
    border: 1px solid #dbe4ff;
    border-radius: 10px;
    padding: 10px;
}

.pipeline-header {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.pipeline-header span {
    color: #64748b;
    font-weight: 600;
}

.pipeline-cards {
    display: grid;
    gap: 10px;
}

.drop-zone {
    min-height: 60px;
    display: grid;
    gap: 10px;
}

.drag-over {
    outline: 2px dashed #60a5fa;
    outline-offset: 4px;
    border-radius: 10px;
    background: rgba(96, 165, 250, 0.08);
}

.drag-insert-indicator {
    height: 4px;
    margin: 6px 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 0 14px rgba(6, 182, 212, 0.25);
    pointer-events: none;
    animation: indicatorPulse 0.9s ease-in-out infinite alternate;
}

@keyframes indicatorPulse {
    from {
        opacity: 0.6;
        transform: scaleX(0.985);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.draggable-card {
    cursor: grab;
}

.draggable-card:active {
    cursor: grabbing;
}

.is-dragging {
    opacity: 0.65;
}

.drag-tip {
    color: #64748b;
    font-size: 11px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: grid;
    gap: 8px;
}

.toast {
    min-width: 220px;
    max-width: 320px;
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #059669, #16a34a);
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.pipeline-card-item,
.pipeline-card,
.kanban-card-item,
.kanban-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pipeline-move-form {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.pipeline-move-form select {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.kanban-board,
.kanban-grid,
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.kanban-column {
    background: #f1f5f9;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: 10px;
}

.kanban-header,
.kanban-column h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #334155;
}

.abc-badge {
    display: inline-block;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.abc-A,
.abc-a {
    background: #dcfce7;
    color: #166534;
}

.abc-B,
.abc-b {
    background: #fef3c7;
    color: #92400e;
}

.abc-C,
.abc-c {
    background: #fee2e2;
    color: #991b1b;
}

.impact-bar-wrap {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.impact-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .header h1 {
        font-size: 22px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }

    .auth-form {
        padding: 30px 20px;
    }

    .module-card {
        padding: 20px 15px;
    }

    .module-icon {
        font-size: 32px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .module-filter-form {
        grid-template-columns: 1fr;
    }

    .specialized-two-col,
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .module-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .module-card-link,
    .module-card-link--compact,
    .module-card-link--balanced,
    .module-card-link--tall,
    .module-card-link--feature {
        min-height: 148px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .module-card-icon {
        font-size: 34px;
    }

    .module-card-label {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .form-group {
        gap: 10px;
    }

    .auth-form {
        padding: 20px;
    }

    .module-switcher {
        grid-template-columns: 1fr;
    }

    .module-card-link,
    .module-card-link--compact,
    .module-card-link--balanced,
    .module-card-link--tall,
    .module-card-link--feature {
        min-height: 160px;
        padding: 18px 16px;
    }
}
