/* ============================================
   Assurance Prime Invest - Design System v2.0
   Premium Glass Morphism + Vibrant Gradients
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Core palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99,102,241,0.35);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30,41,59,0.7);
    --bg-card-hover: rgba(51,65,85,0.6);
    --bg-glass: rgba(15,23,42,0.8);

    /* Borders */
    --border: rgba(148,163,184,0.12);
    --border-hover: rgba(148,163,184,0.25);
    --border-accent: rgba(99,102,241,0.4);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Misc */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: #fff; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ NAVBAR PÚBLICO ============ */
.navbar-main {
    background: rgba(15,23,42,0.6) !important;
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid rgba(148,163,184,0.08);
    padding: 0.75rem 0;
    transition: var(--transition);
}
.navbar-main.scrolled {
    background: rgba(15,23,42,0.95) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    border-bottom-color: rgba(148,163,184,0.12);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}
.navbar-brand .brand-icon {
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}
.navbar-main .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}
.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}
.navbar-main .nav-link:hover { color: var(--text-primary) !important; }
.navbar-main .nav-link:hover::after { width: 60%; }
.navbar-main .nav-link.active { color: var(--primary-light) !important; }
.navbar-main .nav-link.active::after { width: 60%; }
.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 4px 15px rgba(99,102,241,0.35);
    transition: var(--transition);
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.5);
}

/* ============ HERO SECTION ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
    border-radius: 50%;
    animation: pulse-glow 8s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -25%; left: -8%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 65%);
    border-radius: 50%;
    animation: pulse-glow 10s ease-in-out infinite reverse;
}
@keyframes pulse-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(20px, -20px) scale(1.1); opacity: 1; }
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(99,102,241,0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary-light), #c084fc, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero-badge i { color: var(--accent); }
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}
.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.hero-stat p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}
.hero-image { position: relative; z-index: 1; }
.hero-car-card {
    background: rgba(30,41,59,0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-car-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), transparent 50%, rgba(168,85,247,0.2));
    z-index: -1;
    pointer-events: none;
}
.hero-car-card .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    display: inline-block;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============ BUTTONS ============ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99,102,241,0.35);
    letter-spacing: 0.2px;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.5);
    color: #fff;
}
.btn-primary-custom:active { transform: translateY(0); }
.btn-outline-custom {
    background: transparent;
    border: 1.5px solid var(--border-hover);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-custom:hover {
    background: rgba(148,163,184,0.08);
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #d97706);
    border: none; color: #fff; font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(245,158,11,0.35);
    transition: var(--transition);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.5);
    color: #fff;
}

/* ============ SECTIONS ============ */
.section { padding: 7rem 0; }
.section-dark { background: var(--bg-secondary); }
.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.8px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

/* ============ FEATURE CARDS ============ */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow), 0 0 30px rgba(99,102,241,0.08);
    background: var(--bg-card-hover);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.5rem;
}
.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============ PRICING / PLANS ============ */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
    background: linear-gradient(180deg, rgba(99,102,241,0.08), var(--bg-card));
}
.plan-card.featured:hover { transform: scale(1.06); }
.plan-card .plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    color: #fff; font-weight: 700; font-size: 0.72rem;
    padding: 0.35rem 1.4rem; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}
.plan-card h4 { font-weight: 700; color: var(--text-primary); }
.plan-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin: 1.2rem 0;
    letter-spacing: -1px;
}
.plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; text-align: left; }
.plan-features li {
    padding: 0.55rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(148,163,184,0.06);
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.92rem;
}
.plan-features li i { width: 18px; text-align: center; }
.plan-features li i.fa-check { color: var(--success); }
.plan-features li i.fa-times { color: var(--text-dim); }
.plan-features li.disabled { color: var(--text-dim); }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}
.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-card p { color: var(--text-secondary); font-style: italic; line-height: 1.7; }
.testimonial-card .author { font-weight: 600; color: var(--text-primary); }
.testimonial-card .role { font-size: 0.82rem; color: var(--text-muted); }

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
}
.footer h6 { font-weight: 700; color: var(--text-primary); margin-bottom: 1.2rem; font-size: 0.95rem; }
.footer a { color: var(--text-muted); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem; margin-top: 2.5rem;
    text-align: center;
    color: var(--text-dim); font-size: 0.82rem;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: 20%; right: 10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.auth-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), transparent 40%, rgba(168,85,247,0.1));
    z-index: -1;
    pointer-events: none;
}

/* ============ FORM STYLES (GLOBAL) ============ */
.form-control, .form-select {
    background: rgba(15,23,42,0.6);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background: rgba(15,23,42,0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 0 20px rgba(99,102,241,0.05);
    color: var(--text-primary);
}
.form-control::placeholder { color: var(--text-dim); }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-label { font-weight: 600; color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 0.4rem; }
.input-group-text {
    background: rgba(15,23,42,0.6);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.form-control:disabled, .form-control[readonly] {
    background: rgba(15,23,42,0.4);
    color: var(--text-muted);
    opacity: 0.8;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0 30px var(--bg-secondary) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ============ SIDEBAR (CLIENTE / ADMIN) ============ */
.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 270px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
}
.sidebar.collapsed { margin-left: -270px; }
.sidebar-header {
    padding: 1.5rem 1.5rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h4 {
    font-weight: 800; font-size: 1.15rem;
    margin: 0.6rem 0 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.sidebar-header small { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; }
.sidebar-menu {
    list-style: none;
    padding: 0.8rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin: 1px 0;
}
.sidebar-menu li a:hover {
    color: var(--text-primary);
    background: rgba(99,102,241,0.06);
}
.sidebar-menu li.active a {
    color: var(--primary-light);
    background: rgba(99,102,241,0.1);
    border-left-color: var(--primary);
    font-weight: 600;
}
.sidebar-menu li a i { width: 20px; text-align: center; font-size: 0.95rem; }
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.sidebar-footer small { color: var(--text-muted); font-size: 0.78rem; }

/* Admin sidebar accent */
.sidebar-admin .sidebar-menu li.active a {
    color: var(--accent-light);
    background: rgba(245,158,11,0.08);
    border-left-color: var(--accent);
}
.sidebar-admin .sidebar-menu li a:hover { background: rgba(245,158,11,0.05); }

/* ============ PORTAL MAIN CONTENT ============ */
.portal-content {
    margin-left: 270px;
    min-height: 100vh;
    transition: var(--transition);
    background: var(--bg-primary);
}
.portal-content.expanded { margin-left: 0; }
.top-bar {
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-bar h6 { color: var(--text-primary); font-weight: 600; }
.content-area { padding: 2rem; }

/* ============ CARDS GLASS ============ */
.card-glass, .card.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
.card-glass:hover { border-color: var(--border-hover); }
.card-glass .card-header {
    background: rgba(148,163,184,0.04);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    color: var(--text-primary);
}
.card-glass .card-body { color: var(--text-secondary); }

/* ============ STAT CARDS ============ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-hover);
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-card h3 { font-size: 1.7rem; font-weight: 800; margin: 0; color: var(--text-primary); letter-spacing: -0.5px; }
.stat-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; font-weight: 500; }

/* ============ TABLE STYLES ============ */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-secondary);
    --bs-table-border-color: var(--border);
}
.table-dark-custom thead th {
    background: rgba(148,163,184,0.05);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}
.table-dark-custom tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    color: var(--text-secondary);
    border-bottom-color: var(--border);
}
.table-dark-custom tbody tr { transition: var(--transition); }
.table-dark-custom tbody tr:hover {
    background: rgba(99,102,241,0.04);
}
.table-dark-custom code {
    color: var(--primary-light);
    background: rgba(99,102,241,0.1);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* ============ BADGE STYLES ============ */
.badge-status {
    padding: 0.35em 0.8em;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge-ativa { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-vencida { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-cancelada { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.badge-suspensa { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-aberto { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-em_analise { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-aprovado, .badge-aprovada { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-recusado, .badge-recusada { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-pago { background: rgba(20,184,166,0.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.2); }
.badge-fechado { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.badge-pendente { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-convertida { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }

/* ============ COTAÇÃO SIMULATOR ============ */
.cotacao-result {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}
.cotacao-result::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #a78bfa, var(--accent));
}
.cotacao-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}
.cotacao-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============ ALERTS ============ */
.alert {
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: none;
}
.alert-danger {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.2);
}
.alert-success {
    background: rgba(16,185,129,0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.2);
}
.alert-warning {
    background: rgba(245,158,11,0.12);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,0.2);
}
.alert-info {
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.2);
}
.alert .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ============ LOADING ============ */
.loading-spinner {
    display: inline-block;
    width: 1.2em; height: 1.2em;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ UTILITY ============ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
strong.text-white, .text-white { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-light) !important; }
.text-danger { color: var(--danger-light) !important; }
.text-warning { color: var(--accent-light) !important; }
.text-info { color: #60a5fa !important; }
.text-primary { color: var(--primary-light) !important; }
a { color: var(--primary-light); }
code {
    color: var(--primary-light) !important;
    background: rgba(99,102,241,0.1);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.85em;
}
small.text-muted { color: var(--text-muted) !important; }
hr { border-color: var(--border) !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-stats { gap: 1.5rem; }
    .section-title { font-size: 2rem; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
    .sidebar { margin-left: -270px; }
    .sidebar.active { margin-left: 0; }
    .portal-content { margin-left: 0; }
    .plan-card.featured { transform: scale(1); }
    .plan-card.featured:hover { transform: translateY(-4px); }
    .section { padding: 4rem 0; }
    .content-area { padding: 1rem; }
    .top-bar { padding: 0.75rem 1rem; }
    .hero-section { padding-top: 100px; }
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* ============ MISC HELPERS ============ */
.card-glass .card-header h6 { color: var(--text-primary); font-weight: 600; }
.card-glass .card-header a { font-size: 0.82rem; }
.badge { font-weight: 600 !important; font-size: 0.78rem; }

/* ============ PIX PAYMENT ============ */
.pix-card-active {
    border: 1px solid rgba(99,102,241,0.3);
    box-shadow: 0 0 40px rgba(99,102,241,0.08);
    overflow: hidden;
    position: relative;
}
.pix-card-active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #a78bfa, var(--accent));
}
.pix-logo {
    width: 70px; height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(99,102,241,0.35);
}
.pix-valor {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}
.pix-qr {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    display: inline-block;
}
.pix-copiacola .input-group {
    max-width: 420px;
    margin: 0 auto;
}
.pix-copiacola .form-control {
    font-size: 0.72rem;
    font-family: monospace;
}
.pix-timer {
    padding: 0.5rem 1rem;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============ WHATSAPP STATUS ============ */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input {
    background-color: rgba(148,163,184,0.15);
    border-color: var(--border-hover);
}
.form-check-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ============ CONTRATOS / ASSINATURA DIGITAL ============ */
.contrato-preview {
    background: rgba(255,255,255,0.02);
}
.contrato-documento {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.88rem;
}
.contrato-documento h2 {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 0.25rem;
}
.contrato-subtitulo {
    text-align: center;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.contrato-legal {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}
.contrato-numero {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.contrato-section {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148,163,184,0.06);
}
.contrato-section h3 {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid rgba(99,102,241,0.2);
    display: inline-block;
}
.contrato-section p {
    margin-bottom: 0.5rem;
    text-align: justify;
}
.contrato-dados {
    width: 100%;
    margin-bottom: 0.5rem;
}
.contrato-dados td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(148,163,184,0.06);
    vertical-align: top;
}
.contrato-dados td:first-child {
    width: 200px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.contrato-dados td:last-child {
    color: #fff;
    font-weight: 500;
}
.contrato-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contrato-lista li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(148,163,184,0.04);
}
.contrato-lista li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-light);
    font-weight: 700;
}
.contrato-assinaturas {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
}
.assinatura-box {
    text-align: center;
    flex: 1;
    min-width: 200px;
}
.assinatura-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.assinatura-linha {
    border-bottom: 2px solid var(--text-muted);
    margin: 0 1rem 0.5rem;
    min-height: 30px;
}
.assinatura-info {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

/* Modal overrides for dark theme */
.modal-content .form-control,
.modal-content .form-select {
    background: rgba(255,255,255,0.05);
    border-color: var(--border);
    color: #fff;
}
.modal-content .form-control:focus,
.modal-content .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.modal-content .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

@media print {
    .contrato-documento { color: #000; }
    .contrato-documento h2 { color: #000; }
    .contrato-section h3 { color: #333; }
    .contrato-dados td:last-child { color: #000; }
    .contrato-subtitulo { color: #444; }
    .assinatura-linha { border-color: #000; }
}

/* ============================================
   Enhanced Visuals - Insurance Company Feel
   ============================================ */

/* Pulsing shield animation for hero */
@keyframes shieldPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(99,102,241,0.4); }
    50% { box-shadow: 0 8px 40px rgba(99,102,241,0.7), 0 0 60px rgba(99,102,241,0.2); }
}

/* Trust bar animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature cards with better hover + glow */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover::after {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.1);
}

/* Testimonial cards enhanced */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Plan cards glow on hover */
.plan-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(99,102,241,0.15);
}
.plan-card.featured {
    box-shadow: 0 15px 40px rgba(99,102,241,0.25);
}
.plan-card.featured:hover {
    box-shadow: 0 25px 60px rgba(99,102,241,0.35);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Navbar glass effect enhancement */
.navbar-main.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
}

/* Auth page card glow */
.auth-card {
    transition: box-shadow 0.3s ease;
}
.auth-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(99,102,241,0.1);
}

/* Sidebar brand text */
.sidebar-header h4 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
