/* ============================================================
   IndemAngola v1.1 - Premium Corporate Design
   Angola: Verde, Vermelho, Amarelo + Dark/Light Mode
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --red: #CE1126; --red-dark: #A10E1F; --red-light: #E8384F;
    --yellow: #F5C518; --yellow-dark: #D4A812; --yellow-light: #FFD94A;
    --green: #1B8A4E; --green-dark: #14693B; --green-light: #22B366;
    --black: #0A0A0A;
    --gray-50: #FAFAFA; --gray-100: #F4F4F5; --gray-200: #E4E4E7;
    --gray-300: #D4D4D8; --gray-400: #A1A1AA; --gray-500: #71717A;
    --gray-600: #52525B; --gray-700: #3F3F46; --gray-800: #27272A; --gray-900: #18181B;
    --primary: var(--red); --primary-dark: var(--red-dark);
    --secondary: var(--green); --accent: var(--yellow);
    --success: #059669; --warning: #D97706; --danger: #DC2626; --info: #2563EB;
    --bg: #FFFFFF; --bg-alt: var(--gray-50); --surface: #FFFFFF;
    --surface-hover: var(--gray-50); --border: var(--gray-200);
    --text: var(--gray-900); --text-secondary: var(--gray-600); --text-muted: var(--gray-400);
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --radius: 12px; --radius-sm: 8px; --radius-lg: 16px; --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #111113; --bg-alt: #1a1a1e; --surface: #1e1e22;
    --surface-hover: #26262b; --border: #2e2e33;
    --text: #f0f0f2; --text-secondary: #a0a0a8; --text-muted: #606068;
    --gray-50: #1a1a1e; --gray-100: #222226;
}

/* ============================================================ RESET ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ============================================================ LAYOUT ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ============================================================ HEADER ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); transition: var(--transition); }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--text); }
.nav-logo .logo-dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 500; font-size: 14px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(206,17,38,0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Theme Toggle */
.theme-toggle { background: var(--surface); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: var(--transition); }
.theme-toggle:hover { border-color: var(--primary); }

/* Mobile Menu - Full Page Overlay */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002; position: relative; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: #fff; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: #fff; }

.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(10,10,10,0.97); z-index: 1001; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a { color: #fff; font-size: 20px; font-weight: 600; padding: 14px 40px; border-radius: var(--radius-sm); transition: var(--transition); width: 80%; text-align: center; }
.mobile-nav-overlay a:hover, .mobile-nav-overlay a.active { background: rgba(206,17,38,0.2); color: var(--yellow); }
.mobile-nav-overlay .nav-footer { position: absolute; bottom: 40px; display: flex; gap: 4px; }
.mobile-nav-overlay .nav-footer span { width: 24px; height: 3px; border-radius: 2px; }

/* ============================================================ BUTTONS ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; line-height: 1.4; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(206,17,38,0.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(206,17,38,0.4); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(206,17,38,0.04); }
.btn-gold { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--gray-900); font-weight: 700; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,197,24,0.4); color: var(--gray-900); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================ HERO ============================================================ */
.hero { position: relative; padding: 80px 0 64px; background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 50%, var(--red-dark) 100%); color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(245,197,24,0.12) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(27,138,78,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; font-size: 13px; font-weight: 500; margin-bottom: 24px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--green-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.hero h1 { font-family: var(--font-display); font-size: clamp(32px,5vw,52px); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat .number { font-family: var(--font-display); font-size: 28px; color: var(--yellow); }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ============================================================ SECTIONS ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--gray-900); color: #fff; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header .overline { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 10px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(26px,3.5vw,38px); line-height: 1.2; margin-bottom: 14px; }
.section-header p { color: var(--text-secondary); font-size: 15px; }

/* ============================================================ CARDS ============================================================ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.card-icon.red { background: rgba(206,17,38,0.08); color: var(--primary); }
.card-icon.green { background: rgba(27,138,78,0.08); color: var(--secondary); }
.card-icon.yellow { background: rgba(245,197,24,0.12); color: var(--yellow-dark); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ============================================================ FORMS ============================================================ */
.calc-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.calc-wrapper h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 6px; }
.calc-wrapper .subtitle { color: var(--text-secondary); margin-bottom: 28px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group label .required { color: var(--primary); }
.form-control { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); color: var(--text); transition: var(--transition); width: 100%; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(206,17,38,0.1); }
select.form-control { cursor: pointer; }
.form-help { font-size: 11px; color: var(--text-muted); }
.form-divider { grid-column: 1 / -1; border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.form-section-title { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: var(--text); padding: 8px 0 0; border-top: 1px solid var(--border); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.form-section-title svg { width: 18px; height: 18px; }

/* ============================================================ RESULTS ============================================================ */
.result-card { background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius-xl); overflow: hidden; margin-top: 28px; }
.result-header { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding: 24px 28px; text-align: center; }
.result-header h3 { font-size: 14px; font-weight: 500; opacity: 0.9; margin-bottom: 6px; }
.result-total { font-family: var(--font-display); font-size: clamp(32px,5vw,48px); color: var(--yellow); }
.result-body { padding: 28px; }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); background: var(--bg-alt); border-bottom: 2px solid var(--border); }
.result-table td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.result-table tr:last-child td { border-bottom: none; }
.result-table .value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.result-table .ref { color: var(--text-secondary); font-size: 12px; }
.result-disclaimer { background: rgba(245,197,24,0.06); border: 1px solid rgba(245,197,24,0.15); border-radius: var(--radius); padding: 14px 18px; margin-top: 20px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.result-disclaimer strong { color: var(--warning); }
.result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.result-actions .btn svg { width: 16px; height: 16px; }
.result-watermark { text-align: center; padding: 14px; color: var(--text-muted); font-size: 11px; border-top: 1px solid var(--border); }
.result-worker-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); font-size: 13px; }
.result-worker-info .info-item .lbl { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.result-worker-info .info-item .val { font-weight: 600; color: var(--text); margin-top: 2px; }

/* ============================================================ PRICING ============================================================ */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 0 auto; }
.pricing-card { border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 36px; position: relative; background: var(--surface); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-xl); }
.pricing-card.featured::before { content: 'Mais Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-card .plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; }
.pricing-card .price { font-family: var(--font-display); font-size: 40px; line-height: 1; margin-bottom: 4px; }
.pricing-card .price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { padding: 6px 0; font-size: 13px; display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing-features li.disabled::before { content: '✗'; color: var(--text-muted); }

/* ============================================================ FOOTER ============================================================ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.55); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { max-width: 300px; }
.footer-brand .logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand .logo .dot { color: var(--primary); }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 12px; }
.angola-flag { display: flex; gap: 3px; }
.angola-flag span { width: 20px; height: 3px; border-radius: 2px; }
.angola-flag .flag-red { background: var(--red); }
.angola-flag .flag-black { background: var(--black); }

/* ============================================================ DASHBOARD ============================================================ */
.dashboard-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--gray-900); color: #fff; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px; font-size: 18px; font-weight: 800; }
.sidebar-logo .dot { color: var(--primary); }
.sidebar-menu { list-style: none; }
.sidebar-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 500; transition: var(--transition); }
.sidebar-menu li a:hover, .sidebar-menu li a.active { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-menu li a.active { border-left: 3px solid var(--primary); }
.sidebar-menu .menu-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 20px; }
.main-content { padding: 28px; background: var(--bg-alt); min-height: 100vh; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; }
.sidebar-overlay.active { display: block; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 22px; font-weight: 800; }
.page-header .breadcrumb { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.stat-card .stat-change { font-size: 12px; font-weight: 600; margin-top: 6px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* Tables */
.data-table-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tbody tr:hover { background: var(--surface-hover); }
.badge-success { display:inline-block; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; background:rgba(5,150,105,0.1); color:var(--success); }
.badge-warning { display:inline-block; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; background:rgba(217,119,6,0.1); color:var(--warning); }
.badge-danger { display:inline-block; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; background:rgba(220,38,38,0.1); color:var(--danger); }
.badge-info { display:inline-block; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; background:rgba(37,99,235,0.1); color:var(--info); }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gray-900), #1a1a2e); padding: 40px 24px; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); padding: 44px; width: 100%; max-width: 420px; box-shadow: var(--shadow-xl); }
.auth-card .logo { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 28px; color: var(--text); }
.auth-card .logo .dot { color: var(--primary); }
.auth-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img { height: 180px; background: linear-gradient(135deg, var(--gray-200), var(--gray-100)); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-body .category { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { color: var(--text-secondary); font-size: 13px; }
.blog-card-body .meta { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* FAQ Accordion */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.faq-question { padding: 18px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { background: var(--surface-hover); }
.faq-question .arrow { transition: transform 0.3s; font-size: 12px; color: var(--text-muted); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.35s ease; }
.faq-item.open .faq-answer { padding: 0 20px 18px; max-height: 500px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================ WHATSAPP BUTTON ============================================================ */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 998; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.whatsapp-bubble { background: #fff; border-radius: 12px 12px 0 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); max-width: 220px; font-size: 13px; color: var(--gray-800); line-height: 1.4; display: none; animation: fadeIn 0.3s; }
.whatsapp-float:hover .whatsapp-bubble { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.whatsapp-btn { width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: var(--transition); cursor: pointer; text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================ BACK TO TOP ============================================================ */
.back-to-top { position: fixed; bottom: 90px; right: 28px; width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 997; border: none; box-shadow: var(--shadow); font-size: 16px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================================ UTILITIES ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Flash */
.flash-msg { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; animation: slideDown 0.3s; }
.flash-success { background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.15); color: var(--success); }
.flash-error { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.15); color: var(--danger); }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* Empty states */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* Image upload preview */
.img-upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; }
.img-upload-area:hover { border-color: var(--primary); background: rgba(206,17,38,0.02); }
.img-upload-area img { max-height: 200px; margin: 0 auto; border-radius: var(--radius-sm); }
.img-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Quick actions grid */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 28px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--text); transition: var(--transition); font-size: 12px; font-weight: 600; }
.quick-action:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-action .icon { font-size: 22px; }

/* ============================================================ FLATPICKR OVERRIDE ============================================================ */
.flatpickr-calendar { border-radius: var(--radius) !important; box-shadow: var(--shadow-xl) !important; border: 1px solid var(--border) !important; font-family: var(--font-body) !important; }
.flatpickr-day.selected { background: var(--primary) !important; border-color: var(--primary) !important; }
.flatpickr-day:hover { background: rgba(206,17,38,0.08) !important; }

/* ============================================================ PRINT ============================================================ */
@media print {
    .site-header, .site-footer, .whatsapp-float, .back-to-top, .result-actions, .result-watermark, .btn, .nav-cta, .hero, .no-print { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .result-card { border: 2px solid #000 !important; box-shadow: none !important; }
    .result-table td, .result-table th { color: #000 !important; }
}

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -260px; width: 260px; z-index: 1001; transition: var(--transition); }
    .sidebar.open { left: 0; }
    .sidebar-toggle { display: inline-flex !important; }
    .main-content { padding: 20px 16px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 600px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta .btn-outline { display: none; }
    .menu-toggle { display: block; }
    .hero { padding: 48px 0; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
    .pricing-card { padding: 28px 20px; }
    .pricing-card .price { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .calc-wrapper { padding: 20px 16px; }
    .auth-card { padding: 28px 20px; }
    .main-content { padding: 16px 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 22px; }
    .result-body { padding: 16px; }
    .result-table { font-size: 12px; }
    .result-table th, .result-table td { padding: 8px 10px; }
    .result-worker-info { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; padding: 12px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 10px; }
    .section { padding: 40px 0; }
    .container, .container-sm { padding: 0 16px; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 24px; }
    .cards-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .result-actions { flex-direction: column; }
    .result-actions .btn { width: 100%; }
    .form-section-title { font-size: 13px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
    .quick-action { padding: 12px; font-size: 11px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }
    .result-total { font-size: 28px !important; }
}
