/* ===== VARIÁVEIS ===== */
:root {
    --primary: #1a56db;
    --primary-dark: #1342b5;
    --primary-light: #e8f0fe;
    --secondary: #0ea5e9;
    --accent: #6366f1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 72px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); margin: 0; overflow-x: hidden; }

/* ===== SIDEBAR ===== */
.sidebar-nav {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    transition: width .3s, flex-basis .3s;
    z-index: 100;
    overflow: hidden;
}

/* Sidebar oculta (desktop) */
.sidebar-nav.hidden { width: 0; min-width: 0; flex-basis: 0; border: none; }

/* Sidebar colapsada (apenas ícones) */
.sidebar-nav.collapsed { width: var(--sidebar-width-collapsed); flex-basis: var(--sidebar-width-collapsed); }
.sidebar-nav.collapsed .brand-text,
.sidebar-nav.collapsed .sidebar-menu .nav-link span,
.sidebar-nav.collapsed .nav-label,
.sidebar-nav.collapsed .btn-logout span { display: none; }
.sidebar-nav.collapsed .sidebar-brand { padding: 1.5rem 0; display: flex; justify-content: center; }
.sidebar-nav.collapsed .brand-link { justify-content: center; gap: 0; }
.sidebar-nav.collapsed .sidebar-menu .nav-link {
    justify-content: center;
    padding: .75rem 0;
    gap: 0;
    position: relative;
}
.sidebar-nav.collapsed .sidebar-menu .nav-link i { font-size: 1.25rem; }
.sidebar-nav.collapsed .nav-divider { margin: .5rem .75rem; }
.sidebar-nav.collapsed .sidebar-footer { padding: 1rem .5rem; }
.sidebar-nav.collapsed .btn-logout { justify-content: center; padding: .5rem; gap: 0; }

/* Tooltip nos ícones quando colapsada */
.sidebar-nav.collapsed .sidebar-menu .nav-link::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + .5rem);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: .35rem .65rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 200;
    box-shadow: var(--shadow);
}
.sidebar-nav.collapsed .sidebar-menu .nav-link:hover::after { opacity: 1; }

.sidebar-brand { padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.25rem;
    flex-shrink: 0;
}
.brand-text { color: white; font-weight: 700; font-size: 1.1rem; }

.sidebar-menu { padding: 1rem 0; flex: 1; list-style: none; margin: 0; }
.sidebar-menu .nav-link {
    color: rgba(255,255,255,.65);
    padding: .65rem 1.25rem;
    display: flex; align-items: center; gap: .75rem;
    border-radius: 0; transition: all .2s;
    font-size: .9rem;
}
.sidebar-menu .nav-link:hover { color: white; background: rgba(255,255,255,.08); }
.sidebar-menu .nav-link.active { color: white; background: var(--primary); }
.sidebar-menu .nav-link i { font-size: 1.1rem; flex-shrink: 0; }

.nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: .75rem 1rem; list-style: none; }
.nav-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); padding: .25rem 1.25rem; list-style: none; }

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.btn-logout {
    background: none; border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.65); padding: .5rem 1rem;
    border-radius: var(--radius-sm); cursor: pointer;
    display: flex; align-items: center; gap: .5rem;
    width: 100%; font-size: .875rem; transition: all .2s;
}
.btn-logout:hover { color: white; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

/* ===== TOP BAR ===== */
.top-bar {
    background: white; border-bottom: 1px solid var(--border);
    padding: .75rem 1.5rem;
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 90;
}
.btn-toggle-sidebar {
    background: none; border: none; cursor: pointer;
    padding: .25rem; color: var(--gray); font-size: 1.25rem;
    border-radius: var(--radius-sm); transition: background .2s;
}
.btn-toggle-sidebar:hover { background: var(--bg); }
.user-avatar { color: var(--primary); font-size: 1.5rem; }

/* ===== CONTENT ===== */
.main-content { min-height: 100vh; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.content-wrapper { padding: 2rem; flex: 1; min-width: 0; }

/* ===== CARDS ===== */
.card {
    background: white; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: none; }
.card-body { padding: 1.5rem; }

.stat-card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: white; }
.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--dark); }
.stat-card .stat-label { font-size: .85rem; color: var(--gray); }

/* ===== BOTÕES ===== */
.btn-primary-custom {
    background: var(--primary); color: white;
    border: none; padding: .65rem 1.5rem;
    border-radius: var(--radius-sm); font-weight: 500;
    text-decoration: none; display: inline-flex;
    align-items: center; gap: .5rem;
    transition: all .2s; cursor: pointer;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ===== FORMULÁRIOS ===== */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem; font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    outline: none;
}
.form-label { font-weight: 500; font-size: .875rem; margin-bottom: .35rem; color: var(--dark-3); }

/* ===== LANDING PAGE ===== */

/* Nav */
.landing-nav {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,.8);
    padding: .875rem 0;
    position: sticky; top: 0; z-index: 1000;
}
.landing-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.landing-logo .logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(26,86,219,.3);
}
.landing-logo .logo-text { font-weight: 800; font-size: 1.15rem; color: var(--dark); letter-spacing: -.02em; }
.landing-logo .logo-text span { color: var(--primary); }
.nav-link-landing { color: var(--gray); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-link-landing:hover { color: var(--primary); }
.btn-ghost-nav { color: var(--dark); text-decoration: none; font-size: .875rem; font-weight: 500; padding: .4rem .875rem; border-radius: var(--radius-sm); transition: all .2s; border: 1.5px solid transparent; }
.btn-ghost-nav:hover { background: var(--bg); border-color: var(--border); }
.btn-nav-cta { background: var(--primary); color: white; text-decoration: none; font-size: .875rem; font-weight: 600; padding: .45rem 1rem; border-radius: var(--radius-sm); transition: all .2s; }
.btn-nav-cta:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #080d1a 0%, #0f172a 45%, #161e3a 70%, #0c1d4a 100%);
    padding: 7rem 0 6rem;
    position: relative; overflow: hidden;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-orb-1 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(99,102,241,.22) 0%, transparent 70%); top: -150px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(14,165,233,.18) 0%, transparent 70%); bottom: -100px; left: -80px; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%); top: 40%; left: 35%; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.35);
    color: #a5b4fc; padding: .4rem 1rem; border-radius: 50px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1.75rem; letter-spacing: .02em;
}
.hero-badge i { color: #fbbf24; }
.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800; color: white; line-height: 1.1;
    letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.65); margin-bottom: 2.5rem; line-height: 1.8; max-width: 520px; }
.hero-cta-group { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none; padding: .875rem 2rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 1rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: all .25s; box-shadow: 0 8px 24px rgba(26,86,219,.35);
}
.btn-hero-primary:hover { color: white; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26,86,219,.45); }
.btn-hero-secondary {
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.2); padding: .875rem 1.75rem;
    border-radius: var(--radius-sm); font-weight: 500; font-size: 1rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
    transition: all .25s; backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.hero-trust { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.45); font-size: .82rem; }
.hero-trust-item i { color: #10b981; }

/* Hero Dashboard Mock */
.hero-visual {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(20px); position: relative;
    box-shadow: 0 32px 64px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.dash-title { color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; }
.dash-subtitle { color: rgba(255,255,255,.4); font-size: .75rem; margin-top: .2rem; }
.dash-badge-success { background: rgba(16,185,129,.2); color: #34d399; border: 1px solid rgba(16,185,129,.3); padding: .3rem .75rem; border-radius: 50px; font-size: .73rem; font-weight: 600; white-space: nowrap; }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.dash-metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: .875rem; }
.dash-metric:last-child { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); }
.dash-metric-label { color: rgba(255,255,255,.45); font-size: .7rem; margin-bottom: .25rem; }
.dash-metric-value { color: white; font-size: 1.05rem; font-weight: 700; }
.dash-metric:last-child .dash-metric-value { color: #f87171; }
.dash-items { display: flex; flex-direction: column; gap: .7rem; }
.dash-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.dash-item-name { color: rgba(255,255,255,.6); font-size: .78rem; }
.dash-item-pct { font-size: .73rem; font-weight: 600; }
.pct-danger { color: #f87171; }
.pct-warning { color: #fbbf24; }
.pct-ok { color: #34d399; }
.dash-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 3px; }
.fill-danger { background: linear-gradient(90deg, #dc2626, #f87171); }
.fill-warning { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-ok { background: linear-gradient(90deg, #059669, #34d399); }

/* Stats Strip */
.stats-strip { background: white; border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.stats-strip .stat-item { text-align: center; padding: 0 2rem; border-right: 1px solid var(--border); }
.stats-strip .stat-number { font-size: 2.25rem; font-weight: 800; color: var(--dark); letter-spacing: -.03em; line-height: 1; }
.stats-strip .stat-number span { color: var(--primary); }
.stats-strip .stat-label { color: var(--gray); font-size: .875rem; margin-top: .4rem; }

/* Logos */
.logos-section { padding: 2.5rem 0; background: #fafbfc; border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--gray-light); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.25rem; }
.logos-grid { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.logo-item { display: flex; align-items: center; gap: .4rem; opacity: .35; filter: grayscale(1); transition: all .2s; font-weight: 700; color: var(--dark-3); font-size: .85rem; letter-spacing: .04em; cursor: default; }
.logo-item:hover { opacity: .75; filter: grayscale(0); color: var(--primary); }
.logo-item i { font-size: 1.2rem; }

/* Section generic */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--primary); font-weight: 600; font-size: .8rem;
    letter-spacing: .08em; text-transform: uppercase;
    background: var(--primary-light); padding: .3rem .875rem;
    border-radius: 50px; margin-bottom: 1rem;
}
.section-tag { color: var(--primary); font-weight: 600; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--dark); margin-bottom: 1rem; letter-spacing: -.02em; }
.section-subtitle { color: var(--gray); font-size: 1.05rem; line-height: 1.8; max-width: 580px; margin: 0 auto; }

/* Feature Cards */
.feature-card {
    padding: 2rem; border-radius: 16px;
    border: 1.5px solid var(--border); background: white;
    transition: all .3s cubic-bezier(.4,0,.2,1); height: 100%;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.feature-card:hover { border-color: transparent; transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.feature-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; color: var(--dark); }
.feature-card p { color: var(--gray); font-size: .9rem; line-height: 1.7; margin: 0; }

/* Steps */
.step-card {
    text-align: center; padding: 2.5rem 2rem;
    background: white; border-radius: 16px;
    border: 1.5px solid var(--border); position: relative; transition: all .3s;
}
.step-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.09); transform: translateY(-5px); }
.step-number {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; color: white;
    margin: 0 auto .25rem; box-shadow: 0 8px 20px rgba(26,86,219,.3);
}
.step-icon {
    width: 72px; height: 72px; background: var(--primary-light); border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.875rem; margin: .75rem auto 1.25rem; color: var(--primary);
}
.step-card h5 { font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; color: var(--dark); }
.step-card p { color: var(--gray); font-size: .9rem; line-height: 1.7; margin: 0; }

/* Testimonials */
.testimonial-card {
    background: white; border-radius: 16px;
    border: 1.5px solid var(--border); padding: 2rem; height: 100%; transition: all .3s;
}
.testimonial-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-4px); }
.testimonial-stars { color: #fbbf24; margin-bottom: 1rem; font-size: 1rem; letter-spacing: .1em; }
.testimonial-text { color: var(--dark-3); font-size: .95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: .875rem; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: .95rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.testimonial-role { font-size: .8rem; color: var(--gray); }

/* Pricing */
.pricing-card {
    border-radius: 20px; border: 2px solid var(--border);
    padding: 2.5rem; background: white; transition: all .3s; height: 100%; position: relative; overflow: hidden;
}
.pricing-card:hover:not(.featured) { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,86,219,.12); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 24px 56px rgba(26,86,219,.18); transform: scale(1.03); }
.pricing-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.plan-badge { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: .72rem; font-weight: 700; padding: .3rem .875rem; border-radius: 50px; margin-bottom: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.plan-name { font-size: 1.35rem; font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.plan-desc { color: var(--gray); font-size: .875rem; margin-top: .35rem; }
.plan-price { font-size: 3rem; font-weight: 800; color: var(--dark); line-height: 1; letter-spacing: -.04em; }
.plan-price sup { font-size: 1.1rem; vertical-align: super; color: var(--dark-3); font-weight: 600; }
.plan-price .period { font-size: .9rem; color: var(--gray); font-weight: 400; }
.plan-annual { font-size: .8rem; color: var(--success); font-weight: 500; margin-top: .4rem; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.plan-features { list-style: none; padding: 0; margin: 0 0 2rem; }
.plan-features li { padding: .6rem 0; display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--dark-3); border-bottom: 1px solid rgba(226,232,240,.5); }
.plan-features li:last-child { border: none; }
.plan-features .bi-check-circle-fill { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.plan-features .bi-x-circle-fill { color: var(--border); font-size: 1rem; flex-shrink: 0; }

/* CTA Section */
.cta-section { padding: 7rem 0; background: linear-gradient(135deg, #080d1a 0%, #0f172a 50%, #161e3a 100%); position: relative; overflow: hidden; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cta-orb-1 { width: 450px; height: 450px; background: rgba(99,102,241,.2); top: -120px; right: -80px; }
.cta-orb-2 { width: 350px; height: 350px; background: rgba(14,165,233,.15); bottom: -100px; left: -80px; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white; letter-spacing: -.03em; margin-bottom: 1rem; }
.cta-subtitle { color: rgba(255,255,255,.6); font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.7; }
.cta-features { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.cta-feature { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.6); font-size: .875rem; }
.cta-feature i { color: #34d399; }

/* Landing Footer */
.landing-footer { background: #060b18; color: rgba(255,255,255,.4); padding: 4rem 0 2rem; }
.footer-desc { font-size: .875rem; line-height: 1.75; margin-top: .75rem; color: rgba(255,255,255,.4); }
.footer-heading { color: rgba(255,255,255,.7); font-weight: 600; font-size: .8rem; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: .82rem; color: rgba(255,255,255,.3); }
.footer-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: .35rem .875rem; border-radius: 50px; font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 1rem; }

/* Login */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1a3a6e);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.auth-card {
    background: white; border-radius: 20px; padding: 3rem;
    width: 100%; max-width: 460px;
    box-shadow: 0 25px 50px rgba(0,0,0,.3);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-icon-lg {
    width: 68px; height: 68px; border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; margin-bottom: 1rem;
}
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: .25rem; }
.auth-logo p { color: var(--gray); font-size: .9rem; }

.password-input-wrapper { position: relative; }
.password-toggle {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--gray);
    padding: .25rem; transition: color .2s;
}
.password-toggle:hover { color: var(--primary); }

.btn-auth {
    width: 100%; padding: .85rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 1rem; cursor: pointer; transition: all .2s;
}
.btn-auth:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* DASHBOARD */
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 0; }
.page-subtitle { color: var(--gray); font-size: .9rem; margin-top: .25rem; }

.progress-bar-custom { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s; }

/* Alerts customizados */
.alert { border-radius: var(--radius-sm); border: none; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Responsive */
@media (max-width: 768px) {
    /* Sidebar: desliza por cima do conteúdo */
    .sidebar-nav {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        z-index: 1040;
        width: var(--sidebar-width) !important;
        flex-basis: var(--sidebar-width) !important;
    }
    .sidebar-nav.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.35); }

    /* Overlay escuro atrás da sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 1039;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.active { display: block; }

    /* Conteúdo ocupa 100% mesmo com sidebar fixo */
    .main-content { width: 100%; min-width: 0; }

    /* Padding menor */
    .content-wrapper { padding: .875rem .75rem; }
    .card-body { padding: 1rem; }
    .card-header { padding: .875rem 1rem; }

    /* Page header: empilha verticalmente */
    .page-header.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .75rem;
    }
    .page-header.d-flex > a,
    .page-header.d-flex > div:last-child,
    .page-header.d-flex > .d-flex { align-self: stretch; }
    .page-header.d-flex .btn,
    .page-header.d-flex .d-flex.gap-2 { width: 100%; }
    .page-header.d-flex .d-flex.gap-2 .btn { flex: 1; }

    /* Títulos menores */
    .page-title { font-size: 1.25rem; }
    .stat-card .stat-value { font-size: 1.4rem; }

    /* Card-headers com botões: permite wrap para não cortar em telas pequenas */
    .card-header.d-flex { flex-wrap: wrap; gap: .5rem; }
    .card-header.d-flex > .btn, .card-header.d-flex > a.btn { flex-shrink: 0; }

    /* Tabelas: scroll horizontal já garantido pelo Bootstrap table-responsive */
    .table-responsive-mobile { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Top bar */
    .top-bar { padding: .65rem 1rem; }

    /* Formulários */
    .form-control, .form-select { font-size: 1rem; } /* evita zoom auto no iOS */

    /* Auth */
    .auth-page { padding: 1rem; }
    .auth-card { padding: 2rem 1.5rem; }

    /* Hero landing */
    .hero-section { padding: 4rem 0 3.5rem; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group a { text-align: center; justify-content: center; }
    .dash-metrics { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { display: none; } /* esconde mock no mobile */

    /* Stats strip */
    .stats-strip .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
    .stats-strip .stat-item:last-child { border-bottom: none; }

    /* Pricing card featured não escala */
    .pricing-card.featured { transform: none; }

    /* Botão de ajuda: reposiciona para não conflitar com conteúdo de rodapé */
    #helpFloatBtn { bottom: 1.25rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }
}

/* Telas muito pequenas (< 400px) */
@media (max-width: 400px) {
    .content-wrapper { padding: .625rem .5rem; }
    .auth-card { padding: 1.75rem 1.25rem; margin: 0 .5rem; }
    html { font-size: 14px; }
}
/* ===== BOTÃO FLUTUANTE DE AJUDA ===== */
#helpFloatBtn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 1045;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(26,86,219,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
}
#helpFloatBtn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(26,86,219,.55);
}
#helpFloatBtn:active { transform: scale(.95); }

/* offcanvas body — lista e parágrafos de ajuda */
#helpDrawerBody p  { margin-bottom: .6rem; }
#helpDrawerBody ul,
#helpDrawerBody ol { padding-left: 1.4rem; margin-bottom: .6rem; }
#helpDrawerBody li { margin-bottom: .3rem; }
