/* Tab fixes - prevent overlapping */
.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.tab-pane.show {
    display: block;
    opacity: 1;
}
.tab-pane.active {
    display: block;
    opacity: 1;
}
:root {
    /* Tons de azul claro - mais suave e moderno */
    --primary-light: #e1f0fa;
    /* Azul bem clarinho para fundos */
    --primary: #3498db;
    /* Azul médio principal */
    --primary-dark: #2980b9;
    /* Azul mais escuro para hover */
    --secondary-light: #d4e6f1;
    --secondary: #5dade2;
    /* Azul complementar */
    --accent: #85c1e9;
    /* Azul claro para destaques */

    /* Cores de apoio */
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --light: #f8f9fa;
    --white: #ffffff;

    /* Efeitos */
    --shadow-sm: 0 2px 4px rgba(52, 152, 219, 0.1);
    --shadow-md: 0 4px 6px rgba(52, 152, 219, 0.15);
    --shadow-lg: 0 10px 15px rgba(52, 152, 219, 0.2);
    --shadow-hover: 0 20px 25px rgba(52, 152, 219, 0.25);

    /* Gradientes suaves */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-light: linear-gradient(135deg, #e1f0fa 0%, #d4e6f1 100%);
}

/* ==================== GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TIPOGRAFIA ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== NAVBAR ==================== */
#mainNav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: 15px 0 !important;
}

#mainNav.navbar-shrink {
    padding: 10px 0 !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark) !important;
}

.navbar-brand .fw-bold {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.nav-link.text-primary {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-link.text-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* ==================== BOTÕES ==================== */
.btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

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

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233498db" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 30px;
}

.badge.bg-primary {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
}

.tech-badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s;
}

.tech-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ==================== CARDS ==================== */
.tool-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.tool-card:hover::before {
    transform: translateX(0);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.tool-icon.sql-generator {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.tool-icon.free-editor {
    background: linear-gradient(135deg, #5dade2 0%, #85c1e9 100%);
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* ==================== DEMO CARDS ==================== */
.demo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
}

.demo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.demo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.demo-card:hover img {
    transform: scale(1.1);
}

.demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(52, 152, 219, 0.9), transparent);
    padding: 30px 20px 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.demo-card:hover .demo-overlay {
    transform: translateY(0);
}

.demo-overlay span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==================== GENERATED FILES ==================== */
.generated-files {
    background: var(--primary-light);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.generated-files h6 {
    color: var(--primary-dark);
}

.file-badge {
    background: var(--white);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.file-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ==================== CONTACT SECTION ==================== */
.contact-item {
    padding: 20px;
    transition: all 0.3s;
    border-radius: 16px;
}

.contact-item:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
}

.contact-item h5 {
    margin: 15px 0 10px;
    color: var(--dark);
}

.contact-item p {
    color: var(--gray);
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
    border-radius: 12px;
    padding: 14px 16px;
    border: 2px solid #e1f0fa;
    transition: all 0.3s;
    background: var(--white);
    height: 54px; /* Fixa altura para garantir alinhamento perfeito */
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    outline: none;
}


.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

/* ==================== BG GRADIENT ==================== */
.bg-gradient {
    background: var(--gradient-primary) !important;
}

.bg-gradient h2,
.bg-gradient p {
    color: white !important;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark) !important;
    position: relative;
}

footer h3 {
    color: white !important;
    font-size: 1rem !important;
    margin-bottom: 20px;
}

footer ul {
    padding: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

footer ul li a:hover {
    color: white !important;
    padding-left: 5px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ==================== AUTH / CLIENTE PAGE ==================== */
.auth-container {
    max-width: 500px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.auth-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.auth-header {
    background: var(--gradient-primary);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.auth-header .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    backdrop-filter: blur(10px);
}

.nav-tabs-custom {
    border-bottom: none;
    background: var(--primary-light);
    padding: 0 20px;
    gap: 10px;
}

.nav-tabs-custom .nav-link {
    border: none;
    padding: 15px 20px;
    color: var(--gray);
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    position: relative;
    background: transparent;
    transition: all 0.3s;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 -4px 10px rgba(52, 152, 219, 0.1);
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.auth-body {
    padding: 30px;
    background: var(--white);
}

.terms-box {
    background: var(--primary-light);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    max-height: 150px;
    overflow-y: auto;
    padding: 15px;
    font-size: 0.9rem;
    margin: 20px 0;
}

.terms-box h6 {
    color: var(--primary-dark);
    font-weight: 600;
}

.terms-checkbox {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

/* ==================== DASHBOARD ==================== */
.user-info-card {
    background: var(--gradient-primary);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.license-card {
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    background: var(--white);
}

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

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

.license-card.expired {
    border-color: var(--danger);
    background: #fff5f5;
    opacity: 0.8;
}

.license-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.license-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.license-status-badge.expired {
    background: #f8d7da;
    color: #721c24;
}

.license-status-badge.inactive {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

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

/* ==================== TOAST NOTIFICATIONS ==================== */
#toastContainer.toast-container,
div[id="toastContainer"] {
    position: fixed !important;
    top: 90px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 9999;
    display: flex !important;
    flex-direction: column !important;
}

.toast-container .toast {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: none;
    animation: slideIn 0.3s forwards;
    min-width: 300px;
    margin-bottom: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* ==================== LOADING ==================== */
.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

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

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

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .tool-card {
        padding: 30px 20px;
    }

    .btn-lg {
        padding: 12px 30px;
    }
}

/* ==================== MODERN AUTH CARD (REFERENCE STYLE) ==================== */
.auth-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 120px auto 50px;
    padding: 15px;
    position: relative;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
}

.auth-card-modern {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.15);
    display: flex;
    overflow: hidden;
    min-height: 550px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.blue-side-modern {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem;
    color: white;
    text-align: center;
}

.blue-side-content {
    position: relative;
    z-index: 5;
    width: 100%;
}

.logo-area-modern {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-side-modern {
    flex: 1.2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.auth-header-modern h2 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.nav-pills-modern {
    background: #f8f9fa;
    padding: 5px;
    border-radius: 15px;
    display: flex;
}

.nav-pills-modern .nav-item {
    flex: 1;
}

.nav-pills-modern .nav-link {
    border-radius: 12px;
    color: var(--gray);
    font-weight: 500;
    padding: 10px;
    text-align: center;
    border: none;
    transition: all 0.3s;
}

.nav-pills-modern .nav-link.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Forms Modern */
.form-side-modern .form-floating>.form-control {
    border-radius: 15px;
    border: 1px solid #e0e6ed;
    height: 60px;
    font-size: 0.95rem;
}

.form-side-modern .form-floating>label {
    padding-left: 1.2rem;
    color: #95a5a6;
}

.form-side-modern .form-floating>.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 15px;
    padding: 1rem;
    border: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
    color: white;
}

.terms-box-modern {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.footer-sm-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Floating Bubbles */
.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-auth 6s ease-in-out infinite;
}

.bubble-1 {
    width: 150px;
    height: 150px;
    top: -20px;
    left: -40px;
    animation-duration: 8s;
}

.bubble-2 {
    width: 100px;
    height: 100px;
    bottom: 40px;
    right: -20px;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 10%;
    animation-duration: 10s;
    animation-delay: 2s;
}

@keyframes float-auth {

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

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

/* Ondas */
#divondas,
#divondas2 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

#divondas {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3%3Cpath fill='%233498db' fill-opacity='0.5' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,138.7C960,160,1056,224,1152,213.3C1248,203,1344,117,1392,74.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1440px 150px;
    animation: wave-animation 10s linear infinite;
}

#divondas2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3%3Cpath fill='%235dade2' fill-opacity='0.3' d='M0,192L48,213.3C96,235,192,277,288,266.7C384,256,480,192,576,186.7C672,181,768,235,864,240C960,245,1056,203,1152,192C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1440px 150px;
    animation: wave-animation 15s linear infinite;
    bottom: 5px;
}

@keyframes wave-animation {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 1440px;
    }
}

@media (max-width: 991px) {
    .auth-wrapper {
        margin-top: 100px;
        max-width: 500px;
    }

    .form-side-modern {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .form-side-modern {
        padding: 1.5rem;
    }

    .nav-pills-modern .nav-link {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* ==================== DASHBOARD IMPROVEMENTS ==================== */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.bg-light-subtle {
    background-color: #f8fbff !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 3.2em;
    line-height: 1.6;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.input-group-modern {
    background: #f1f4f9;
    border-radius: 12px;
    padding: 2px;
}

.input-group-modern .form-control {
    background: transparent;
    border: none;
    box-shadow: none;
}

.input-group-modern .input-group-text {
    background: transparent;
    border: none;
    color: var(--gray);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
}

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

/* ==================== PLANOS E ASSINATURA ==================== */
.plan-card {
    border: 2px solid #e1f0fa;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--white);
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.plan-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.plan-card.selected::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.plan-card .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.plan-card .plan-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

/* Payment Method Cards */
.payment-method-card {
    border: 2px solid #e1f0fa;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    margin-bottom: 10px;
}

.payment-method-card:hover:not(.disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.payment-method-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.payment-method-card .method-info {
    flex: 1;
}

.payment-method-card .method-title {
    font-weight: 600;
    display: block;
}

.payment-method-card .method-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

.modal-header-premium {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 25px;
}

.modal-header-premium .btn-close {
    filter: brightness(0) invert(1);
}

.section-title-modern {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-modern::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1f0fa;
}