﻿/* ========================================
   AutoConnect - CSS Responsivo Completo
   Compatível com mobile, tablet e desktop
   Sem scroll horizontal em nenhuma tela
   ======================================== */

/* ─── Reset Global Anti-Scroll-Horizontal ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

img, video, iframe, table {
    max-width: 100%;
}

/* ─── CSS Variables ─── */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #eff6ff;
    --primary-soft: rgba(37, 99, 235, 0.1);
    --success-color: #10b981;
    --success-dark: #059669;
    --success-light: #ecfdf5;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --dark: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-soft: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
    /* Tipografia responsiva via clamp */
    --fs-xs: clamp(0.65rem, 1.5vw, 0.75rem);
    --fs-sm: clamp(0.8rem, 2vw, 0.875rem);
    --fs-base: clamp(0.875rem, 2.5vw, 1rem);
    --fs-lg: clamp(1rem, 3vw, 1.125rem);
    --fs-xl: clamp(1.2rem, 4vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 5vw, 2rem);
    --fs-3xl: clamp(1.8rem, 6vw, 2.5rem);
    /* Espaçamento responsivo */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2rem);
    --space-xl: clamp(2rem, 6vw, 4rem);
}

/* ─── Base Global ─── */
body {
    background-color: #fff;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* ─── Navbar ─── */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: var(--fs-xl);
    color: var(--primary-color) !important;
}

@media (max-width: 576px) {
    .navbar-brand span {
        font-size: var(--fs-lg);
    }

    .navbar > .container,
    .navbar > .container-fluid {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-link {
        font-size: var(--fs-sm);
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
}

/* ─── Hero Section ─── */
.hero-clean {
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 8vw, 80px);
    background: radial-gradient(circle at top right, #f0f7ff, transparent), radial-gradient(circle at bottom left, #f0fdf4, transparent);
    overflow: hidden;
}

/* ─── Feature Cards ─── */
.feature-card {
    border: 1px solid var(--border-color);
    border-radius: clamp(12px, 3vw, 20px);
    padding: clamp(1rem, 3vw, 2rem);
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

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

.icon-box {
    width: clamp(44px, 8vw, 56px);
    height: clamp(44px, 8vw, 56px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
}

/* ─── Botões ─── */
.btn-main {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 28px);
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--fs-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary-soft {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

    .btn-primary-soft:hover {
        background: #1d4ed8;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        color: white;
    }

.btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
}

.btn-link {
    transition: all 0.2s ease;
}

    .btn-link:hover {
        opacity: 0.8;
        transform: translateY(-1px);
    }

.btn-main-password {
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.75rem;
}

/* ─── Badges ─── */
.badge-soft {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

.badge-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .badge-glass.success {
        background: rgba(16, 185, 129, 0.25);
        border-color: rgba(16, 185, 129, 0.4);
    }

    .badge-glass.warning {
        background: rgba(245, 158, 11, 0.25);
        border-color: rgba(245, 158, 11, 0.4);
    }

.badge-status-info {
    background: #e0f2fe;
    color: #0369a1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: var(--fs-sm);
    font-weight: 600;
    display: inline-block;
}

.badge-status-pro {
    background: #fff9db;
    color: #856404;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: var(--fs-sm);
    font-weight: 700;
    border: 1px solid #ffe066;
    display: inline-block;
}

/* ─── Steps ─── */
.step-item {
    text-align: center;
    position: relative;
    padding: 0 var(--space-sm);
}

.step-number {
    width: clamp(28px, 6vw, 40px);
    height: clamp(28px, 6vw, 40px);
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: var(--fs-sm);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.step-dot {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: bold;
    flex-shrink: 0;
}

.step-badge {
    width: clamp(28px, 6vw, 36px);
    height: clamp(28px, 6vw, 36px);
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: var(--fs-sm);
    z-index: 1;
}

/* ─── Timeline ─── */
.timeline-simple {
    position: relative;
    padding-left: 10px;
}

.timeline-step {
    display: flex;
    gap: clamp(10px, 3vw, 20px);
    margin-bottom: clamp(16px, 4vw, 30px);
    position: relative;
}

    .timeline-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: clamp(13px, 3vw, 17px);
        top: clamp(28px, 6vw, 40px);
        width: 2px;
        height: calc(100% - 10px);
        background: #e2e8f0;
    }

/* ─── Auth Pages ─── */
.auth-page {
    background-color: #f4f7f9;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport para mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    overflow-x: hidden;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: #fff;
    padding: clamp(1.25rem, 5vw, 2.5rem);
    border-radius: clamp(16px, 4vw, 24px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    width: 100%;
}

.auth-logo {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 auto;
}

@media (max-width: 576px) {
    .auth-page {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .auth-card {
        border-radius: 20px;
        padding: 1.5rem 1.25rem;
    }
}

/* ─── Login Layout ─── */
.login-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    overflow: hidden;
}

.login-brand {
    flex: 1.2;
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.brand-icon-box {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vw, 3rem);
}

.stat-item {
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 1rem;
}

.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: radial-gradient(circle at center, #fff, #f8fafc);
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* Mobile: empilha o layout de login */
@media (max-width: 991.98px) {
    .login-layout {
        flex-direction: column;
    }

    .login-brand {
        flex: none;
        padding: clamp(1.5rem, 5vw, 2.5rem);
        min-height: 200px;
    }

    .login-form-wrapper {
        flex: 1;
        padding: 1.5rem 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .login-card {
        max-width: 100%;
    }

    .stat-item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.3);
        padding-left: 0;
        padding-top: 0.75rem;
    }
}

/* ─── Profile Header ─── */
.profile-header-new {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    padding-bottom: clamp(2rem, 6vw, 4rem);
    overflow: hidden;
}

/* ─── Avatar ─── */
.avatar-wrapper {
    position: relative;
    width: clamp(100px, 20vw, 140px);
    height: clamp(100px, 20vw, 140px);
    margin: 0 auto;
    z-index: 5;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 4px solid rgba(255,255,255,0.2);
}

.avatar-initials {
    width: 100%;
    height: 100%;
    background: white;
    color: #2563eb;
    border-radius: 30px;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-photo {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: white;
    color: #2563eb;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

    .btn-edit-photo:hover {
        transform: scale(1.1);
        background: #f8fafc;
    }

/* Upload Avatar */
.avatar-upload-wrapper {
    position: relative;
    display: inline-block;
}

.upload-avatar-container {
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
}

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

.btn-camera, .btn-camera-upload {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.btn-camera {
    border-radius: 50%;
    background: var(--success-color);
}

/* ─── Profile & Form Cards ─── */
.profile-card {
    background: #ffffff;
    border-radius: clamp(16px, 4vw, 24px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.form-section-card {
    background: white;
    border-radius: clamp(14px, 3vw, 20px);
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid #eef2f6;
}

.card-header-minimal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .card-header-minimal h5 {
        margin: 0;
        font-weight: 700;
        color: #1e293b;
        font-size: var(--fs-lg);
    }

/* ─── Formulários ─── */
.form-control:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.1);
}

.form-label-custom {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom,
.form-select-custom {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: 0.7rem 1rem;
    transition: 0.2s;
    width: 100%;
    font-size: var(--fs-base);
}

    .form-control-custom:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        outline: none;
    }

.border-custom {
    border: 1.5px solid #eef2f6 !important;
    border-radius: 12px !important;
    transition: 0.2s;
}

    .border-custom:focus {
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
        outline: none;
    }

.border-custom-sm {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    font-size: var(--fs-sm) !important;
}

    .border-custom-sm:focus {
        background-color: #fff !important;
        border-color: inherit !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }

.form-floating > label {
    font-size: var(--fs-sm);
    padding: 0.8rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-section-title {
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .form-section-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #eef2f6;
    }

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Input Group ─── */
.input-group {
    flex-wrap: nowrap;
}

    .input-group > .form-control {
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        min-width: 0;
    }

    .input-group > .btn {
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        flex-shrink: 0;
    }

.input-group-text {
    font-size: var(--fs-sm);
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Remove setas do input number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ─── Calculadora ─── */
.calc-inputs .form-control {
    border: 1px solid #e2e8f0;
    font-size: var(--fs-base);
}

    .calc-inputs .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: none;
    }

.form-range {
    height: 1.5rem;
    width: 100%;
}

    .form-range::-webkit-slider-thumb {
        width: 1.2rem;
        height: 1.2rem;
        margin-top: -0.4rem;
    }

/* ─── Selection Cards ─── */
.selection-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: clamp(0.75rem, 3vw, 1rem);
    text-align: center;
    border-radius: clamp(12px, 3vw, 16px);
    background: #f8f9fa;
}

    .selection-card.active,
    .selection-card.active-aluno {
        border-color: var(--primary-color);
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

    .selection-card.active-instrutor {
        border-color: var(--success-color);
        background: var(--success-light);
        color: var(--success-color);
    }

.card-selection {
    padding: clamp(10px, 3vw, 15px);
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    transition: 0.3s;
}

    .card-selection.active {
        border-color: var(--success-color);
        background-color: #f0fdf4;
    }

.selection-card-modern {
    padding: clamp(0.75rem, 3vw, 1rem);
    border-radius: 16px;
    border: 1.5px solid #eef2f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .selection-card-modern.active-blue {
        border-color: #3b82f6;
        background: #eff6ff;
        color: #1e40af;
        justify-content: start;
        padding: 1.2rem;
    }

    .selection-card-modern.active-green {
        border-color: #22c55e;
        background: #f0fdf4;
        color: #166534;
        justify-content: start;
        padding: 1.2rem;
    }

/* ─── Custom Checkbox ─── */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    border: 1.5px solid #eef2f6;
    transition: 0.2s;
}

    .custom-checkbox.checked {
        border-color: var(--success-color);
        color: var(--success-color);
    }

/* ─── Dynamic Sections ─── */
.dynamic-section {
    padding: clamp(0.75rem, 3vw, 1.2rem);
    border-radius: 16px;
}

.section-aluno {
    background: #f0f7ff;
    border: 1px dashed #bfdbfe;
}

.section-instrutor {
    background: #f0fdf4;
    border: 1px dashed #bbf7d0;
}

/* ─── Section Headers ─── */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

/* ─── Icon Circles ─── */
.icon-circle {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    flex-shrink: 0;
}

/* ─── Status ─── */
.status-icon-wrapper {
    position: relative;
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    background: #fff9db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff9db;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ─── Pricing Card ─── */
.pricing-card-pro {
    border-radius: clamp(16px, 4vw, 24px);
    overflow: hidden;
    border: none;
    background: #fff;
}

.pricing-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: clamp(1.5rem, 5vw, 2.5rem);
}

.price-badge {
    color: white;
    display: inline-block;
}

    .price-badge .currency {
        font-size: clamp(0.8rem, 2vw, 1rem);
        vertical-align: top;
        margin-top: 10px;
        display: inline-block;
        opacity: 0.8;
    }

    .price-badge .amount {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        font-weight: 800;
        line-height: 1;
    }

    .price-badge .cents {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        vertical-align: top;
        margin-top: 10px;
        display: inline-block;
    }

    .price-badge .period {
        font-size: var(--fs-sm);
        opacity: 0.7;
        display: block;
    }

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

    .feature-item i {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        line-height: 1;
        flex-shrink: 0;
    }

.payment-shield {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* ─── Modal ─── */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content-pro {
    background: white;
    border-radius: clamp(16px, 4vw, 30px);
    max-width: 450px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* ─── Success Icon ─── */
.success-icon-wrapper {
    width: clamp(70px, 15vw, 90px);
    height: clamp(70px, 15vw, 90px);
    background: #ffffff;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    position: absolute;
    bottom: clamp(-35px, -7vw, -45px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ─── Navbar Gradiente ─── */
.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.btn-glass-sm {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: var(--fs-sm);
}

/* ─── Scrollbar Customizada ─── */
#termosScroll::-webkit-scrollbar {
    width: 6px;
}

#termosScroll::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

/* ─── Soft Backgrounds ─── */
.bg-warning-soft {
    background-color: #fffbeb;
    color: var(--warning-color);
}

.bg-info-soft {
    background-color: #f0f9ff;
    color: var(--info-color);
}

.bg-light-soft {
    background-color: #f8fafc;
}

.bg-success-soft {
    background: #f0fdf4 !important;
}

.bg-success-light {
    background-color: #ecfdf5 !important;
}

.bg-danger-soft {
    background: #fef2f2 !important;
}

.bg-primary-soft {
    background: #eff6ff !important;
}

/* ─── Helpers ─── */
.x-small {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-info {
    color: #7dd3fc !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.rounded-5 {
    border-radius: 2.5rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

.hover-elevate {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .hover-elevate:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
    }

.grayscale {
    filter: grayscale(1);
}

/* ─── Animações ─── */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }

    70% {
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.confetti-dot, .confetti-dot-2 {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
}

.confetti-dot {
    top: 20%;
    left: 15%;
    animation: float 3s infinite;
}

.confetti-dot-2 {
    top: 40%;
    right: 20%;
    animation: float 4s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ─── Smooth Scroll ─── */
html {
    scroll-behavior: smooth;
}

/* ─── Responsividade Geral ─── */

/* Tablet */
@media (max-width: 768px) {
    .hero-clean {
        text-align: center;
    }

    .feature-card:hover {
        transform: none; /* Evita efeitos de hover esquisitos no touch */
    }

    .hover-elevate:hover {
        transform: none;
    }

    .btn-primary-soft:hover,
    .btn-outline-primary:hover {
        transform: none;
    }

    .pricing-header {
        text-align: center;
    }

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

/* Mobile pequeno */
@media (max-width: 480px) {
    .profile-header-new {
        padding-bottom: 2.5rem;
    }

    .modal-content-pro {
        border-radius: 20px;
        max-height: 95vh;
    }

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

    .section-title {
        font-size: var(--fs-sm);
    }
}

/* Garante que nada quebre o layout horizontal */
@media (max-width: 360px) {
    .badge-glass,
    .badge-soft,
    .badge-status-info,
    .badge-status-pro {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .auth-card {
        padding: 1.25rem 1rem;
    }
}

.login-layout {
    display: flex !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    background: #fff;
    overflow: hidden;
}

.login-form-wrapper {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; /* ← isso centraliza verticalmente */
    padding: 2rem 1.5rem !important;
    overflow-y: auto !important;
    background: #f8fafc;
}

/* Quando o teclado abre no mobile, permite rolar sem perder o centro */
@media (max-width: 991.98px) {
    .login-layout {
        height: auto !important;
        min-height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .login-form-wrapper {
        justify-content: center !important;
        min-height: calc(100dvh - 160px) !important; /* desconta a área do branding */
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .login-card {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Esconde nav em mobile */
@media (max-width: 767px) {
    .hj-nav-links {
        display: none;
    }
}

@media (min-width: 576px) {
    .hj-filter-row {
        grid-template-columns: 1fr 1fr auto;
        align-items: end;
    }
}

@media (min-width: 576px) {
    .hj-btn-search {
        grid-column: auto;
        width: auto;
    }
}

@media (min-width: 992px) {
    .hj-sidebar {
        display: block;
    }
}

@media (min-width: 992px) {
    .hj-layout {
        grid-template-columns: 260px 1fr;
        padding-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .hj-bottom-nav {
        display: flex;
    }
}