        * { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

        html { color-scheme: dark; }
        body { background: #111827; color: #f9fafb; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

        .fade-in { animation: fadeIn 0.3s ease-in; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .slide-up { animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        @keyframes slideDown { from { opacity:0; transform: translateY(-20px); } to { opacity:1; transform: translateY(0); } }

        ::-webkit-scrollbar { width: 5px; height: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }

        .modern-card {
            background: linear-gradient(145deg, #1e2a3a 0%, #1a2332 100%);
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.06);
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            transition: all 0.25s ease;
        }
        .modern-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.5); transform: translateY(-1px); border-color: rgba(255,255,255,0.1); }

        .weather-glass {
            background: linear-gradient(135deg, #1a3a6b 0%, #1e40af 45%, #1e3a8a 100%);
            border-radius: 24px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(30, 64, 175, 0.4);
        }
        .weather-glass::before {
            content: '';
            position: absolute;
            top: -40%;
            right: -20%;
            width: 280px;
            height: 280px;
            background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
            border-radius: 50%;
        }
        .weather-glass::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
            border-radius: 50%;
        }
        .weather-tab { padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: rgba(255,255,255,0.6); }
        .weather-tab.active { background: rgba(255,255,255,0.2); color: white; }
        .quick-action-btn {
            background: rgba(139,92,246,0.15);
            border: 1px solid rgba(139,92,246,0.3);
            color: #c4b5fd;
            padding: 6px 12px;
            border-radius: 99px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .quick-action-btn:hover { background: rgba(139,92,246,0.3); color: white; }
        .chat-bubble-user { background: linear-gradient(135deg,#10b981,#059669); color:white; border-radius:18px 18px 4px 18px; padding:10px 14px; font-size:14px; max-width:78%; }
        .chat-bubble-ai { background: rgba(55,65,81,0.8); color:#e5e7eb; border-radius:18px 18px 18px 4px; padding:10px 14px; font-size:14px; max-width:85%; }
        .chat-action-card { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius:12px; padding:10px 12px; margin-top:6px; font-size:13px; }
        @keyframes voicePulse {
            0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
            50%      { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
        }
        .voice-active { background: #ef4444 !important; color: white !important; animation: voicePulse 1s infinite; }
        .forecast-item {
            text-align: center;
            padding: 10px 12px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 14px;
            min-width: 72px;
            backdrop-filter: blur(4px);
        }
        .weather-menu { position: absolute; top: 48px; right: 16px; background: #1e3a8a; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 8px 0; z-index: 50; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
        .weather-menu-item { padding: 10px 16px; font-size: 13px; cursor: pointer; color: rgba(255,255,255,0.85); transition: background 0.15s; }
        .weather-menu-item:hover { background: rgba(255,255,255,0.1); }

        .tool-btn {
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 16px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-align: center;
        }
        .tool-btn:hover { border-color: #10b981; background: #1a2e23; transform: translateY(-2px); }
        .tool-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

        /* Esconde nav antes do login (funciona no iOS mesmo com position:fixed) */
        body:not(.app-ready) .bottom-nav { display: none !important; }
        /* Portal público: garante que nav e FAB nunca apareçam, mesmo que app-ready seja adicionado */
        body.portal-mode .bottom-nav,
        body.portal-mode #fabNewVisit,
        body.portal-mode #updateHeaderBtn { display: none !important; visibility: hidden !important; }

        .bottom-nav {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: #1f2937;
            border-top: 1px solid #374151;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
            z-index: 999;
            display: flex; justify-content: space-around;
            padding: 8px 0;
        }
        .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px; color: #6b7280; transition: color 0.2s; cursor: pointer; }
        .nav-item.active { color: #10b981; }
        .nav-item svg { width: 24px; height: 24px; margin-bottom: 3px; }
        .nav-item span { font-size: 11px; font-weight: 500; }

        .fab {
            position: fixed;
            bottom: 80px; right: 20px;
            width: 56px; height: 56px; border-radius: 50%;
            box-shadow: 0 4px 16px rgba(16,185,129,0.5);
            display: flex; align-items: center;
            justify-content: center;
            z-index: 1000; transition: all 0.3s ease;
        }
        .fab:hover { transform: scale(1.1); }

        .status-badge { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; display: inline-block; }
        .status-programado { background: #451a03; color: #fbbf24; }
        .status-atrasado { background: #450a0a; color: #f87171; }
        .status-concluido { background: #052e16; color: #4ade80; }
        .status-pessoal { background: #1f2937; color: #9ca3af; }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 2000;
            display: flex; align-items: flex-end; justify-content: center;
            backdrop-filter: blur(3px);
        }
        .modal-sheet {
            background: #1f2937;
            border-radius: 24px 24px 0 0;
            width: 100%; max-height: 90vh;
            overflow-y: auto;
            padding: 24px 20px 40px;
            animation: slideUp 0.3s ease;
        }
        .modal-sheet-center {
            background: #1f2937;
            border-radius: 20px;
            width: calc(100% - 32px);
            max-width: 500px;
            max-height: 88vh;
            overflow-y: auto;
            padding: 24px 20px;
            animation: fadeIn 0.25s ease;
            margin: auto;
        }
        .modal-overlay.center { align-items: center; }
        .modal-handle { width: 40px; height: 4px; background: #374151; border-radius: 2px; margin: 0 auto 20px; }

        .form-input {
            width: 100%;
            padding: 12px 14px;
            background: #111827;
            border: 1px solid #374151;
            border-radius: 12px;
            color: #f9fafb;
            font-size: 14px;
            transition: border-color 0.2s;
            outline: none;
        }
        .form-input:focus { border-color: #10b981; }
        .form-label { display: block; font-size: 13px; font-weight: 600; color: #9ca3af; margin-bottom: 6px; }

        .image-preview { position: relative; display: inline-block; margin: 6px; }
        .image-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 2px solid #374151; }
        .image-preview .del-btn {
            position: absolute;
            top: -6px; right: -6px;
            width: 22px; height: 22px; border-radius: 50%;
            background: #ef4444; color: white;
            border: 2px solid #1f2937;
            display: flex;
            align-items: center; justify-content: center;
            cursor: pointer; font-size: 13px; font-weight: 700;
        }

        .notification-badge {
            position: absolute;
            top: -6px; right: -6px;
            background: #ef4444; color: white;
            border-radius: 10px; padding: 2px 5px;
            font-size: 10px; font-weight: 700;
            min-width: 18px;
            text-align: center;
        }

        #updateHeaderBtn { display: none; }

        .skeleton { background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 8px; }
        @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        .hide-scrollbar::-webkit-scrollbar { display: none; }

        #publicReport { display: none; }
        .report-header { background: linear-gradient(135deg, #052e16 0%, #065f46 100%); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
        .report-photo { width: calc(50% - 8px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

        .calc-result { background: #052e16; border: 1px solid #10b981; border-radius: 12px; padding: 14px; margin-top: 12px; text-align: center; }
        .calc-result .result-val { font-size: 28px; font-weight: 800; color: #4ade80; }
        .calc-result .result-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

        .trial-banner {
            background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
            border-bottom: 1px solid #b45309;
            padding: 10px 16px;
            display: flex; align-items: center; justify-content: space-between;
            position: sticky; top: 64px; z-index: 40;
        }
        .trial-banner.urgent {
            background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
            border-color: #ef4444;
            animation: urgentPulse 2s infinite;
        }
        @keyframes urgentPulse {
            0%,100% { opacity: 1; } 50% { opacity: 0.85; }
        }
        .upgrade-feature { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1f2937; }
        .upgrade-feature:last-child { border-bottom: none; }
        .lock-overlay {
            position: relative;
            pointer-events: none;
            opacity: 0.45;
            user-select: none;
        }
        .lock-overlay::after {
            content: '🔒';
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 28px;
            pointer-events: all;
            cursor: pointer;
        }
        .plan-badge-trial { background: #451a03; color: #fbbf24; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
        .plan-badge-pro { background: #052e16; color: #4ade80; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }

    .onboarding-step {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px;
        background: #1f2937;
        border: 1px solid #374151;
        border-radius: 14px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }
    .onboarding-step:hover { background: #263548; border-color: #10b981; }
    .onboarding-step.done { border-color: #10b981; background: rgba(16,185,129,0.08); }
    .onboarding-step-icon { font-size: 24px; width: 40px; text-align: center; }
    .onboarding-check { font-size: 18px; color: #374151; font-weight: 700; }
    .onboarding-step.done .onboarding-check { color: #10b981; }
    /* ═══════════════════════════════════════════════════════════════════
       AUTH — HARVEST PREMIUM THEME v2
       Paleta: verde escuro + âmbar dourado + glassmorphism
    ═══════════════════════════════════════════════════════════════════ */

    #authView {
        height: 100vh;
        display: none;
        background: #050d05;
        overflow: hidden;
    }
    .auth-split {
        display: flex;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    /* ── Painel esquerdo ──────────────────────────────────────────────── */
    .auth-left {
        flex: 1;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 36px 48px;
        position: relative;
        overflow: hidden;
        height: 100%;
        box-sizing: border-box;
    }
    /* Gradiente quente âmbar/verde na parte inferior esquerda */
    .auth-left::after {
        content: '';
        position: absolute;
        bottom: -80px; left: -80px;
        width: 480px; height: 480px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(217,119,6,0.12) 0%, transparent 70%);
        pointer-events: none;
        z-index: 1;
    }
    .auth-left-top { position: relative; z-index: 2; }

    /* ── Marca ────────────────────────────────────────────────────────── */
    .auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
    .auth-brand img {
        width: 48px; height: 48px; border-radius: 14px;
        box-shadow: 0 0 0 2px rgba(251,191,36,0.25), 0 4px 16px rgba(0,0,0,0.4);
    }
    .auth-brand-name {
        font-size: 24px; font-weight: 800; color: white; letter-spacing: -0.5px;
        text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    }

    /* ── Headline ─────────────────────────────────────────────────────── */
    .auth-headline {
        font-size: 38px; font-weight: 800; color: white;
        line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 16px;
        text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    }
    .auth-headline span { color: #fbbf24; }

    .auth-sub {
        font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65;
        max-width: 380px; margin-bottom: 24px;
        text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    }

    /* ── Feature list ─────────────────────────────────────────────────── */
    .auth-features { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
    .auth-feature { display: flex; align-items: center; gap: 12px; }
    .auth-feature-icon {
        width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center; font-size: 15px;
        background: rgba(251,191,36,0.12);
        border: 1px solid rgba(251,191,36,0.22);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .auth-feature-text { font-size: 13px; color: rgba(255,255,255,0.78); font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

    /* ── Stat cards flutuantes ─────────────────────────────────────────── */
    .auth-stats-row { display: flex; gap: 12px; margin-bottom: 20px; position: relative; z-index: 2; }
    .auth-stat-card {
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(251,191,36,0.18);
        border-radius: 14px; padding: 12px 16px;
        display: flex; align-items: center; gap: 12px;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    }
    .auth-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }

    /* ── Depoimento ───────────────────────────────────────────────────── */
    .auth-testimonial {
        position: relative; z-index: 2;
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(251,191,36,0.2);
        border-radius: 16px; padding: 16px 20px;
        transition: border-color 0.2s;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    .auth-testimonial:hover { border-color: rgba(251,191,36,0.4); }
    .auth-testimonial-text { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.65; font-style: italic; margin-bottom: 10px; }
    .auth-testimonial-author { font-size: 12px; color: #fbbf24; font-weight: 700; }

    /* ── Animações ────────────────────────────────────────────────────── */
    @keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
    .auth-float  { animation: floatCard 4s ease-in-out infinite; }
    .auth-float-2{ animation: floatCard 4s ease-in-out infinite; animation-delay:1.5s; }

    /* ── Painel direito — formulário ──────────────────────────────────── */
    .auth-right {
        width: 460px;
        flex-shrink: 0;
        background: rgba(5, 10, 18, 0.82);
        backdrop-filter: blur(36px); -webkit-backdrop-filter: blur(36px);
        border-left: 1px solid rgba(251,191,36,0.1);
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        padding: 48px 44px;
        position: relative; overflow-y: auto; height: 100%; box-sizing: border-box;
    }
    /* Brilho âmbar sutil no canto superior do painel */
    .auth-right::before {
        content: '';
        position: absolute;
        top: -60px; right: -60px;
        width: 280px; height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(251,191,36,0.07) 0%, transparent 70%);
        pointer-events: none;
    }
    .auth-right-inner { width: 100%; max-width: 360px; position: relative; z-index: 1; }

    /* ── Logo no painel direito ───────────────────────────────────────── */
    .auth-right-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; justify-content: center; }
    .auth-right-logo img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(251,191,36,0.2), 0 4px 12px rgba(0,0,0,0.4); }
    .auth-right-logo span { font-size: 20px; font-weight: 800; color: white; letter-spacing: -0.3px; }

    /* ── Títulos do formulário ────────────────────────────────────────── */
    .auth-right h2 { font-size: 26px; font-weight: 800; color: white; margin-bottom: 6px; text-align: center; letter-spacing: -0.5px; }
    .auth-right p.auth-desc { font-size: 14px; color: rgba(255,255,255,0.45); margin-bottom: 28px; text-align: center; }

    /* ── Badge ────────────────────────────────────────────────────────── */
    .auth-badge {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(251,191,36,0.1);
        border: 1px solid rgba(251,191,36,0.28);
        border-radius: 99px; padding: 5px 14px;
        font-size: 12px; color: #fbbf24; font-weight: 700;
        margin-bottom: 20px; letter-spacing: 0.2px;
    }
    .auth-right-inner .auth-badge { display: flex; justify-content: center; }

    /* ── Inputs ───────────────────────────────────────────────────────── */
    .auth-input-group { margin-bottom: 16px; width: 100%; }
    .auth-input-label { display: block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.6px; }
    .auth-input-group label { cursor: text; display: block; }
    .auth-input {
        width: 100%;
        background: rgba(255,255,255,0.06);
        border: 1.5px solid rgba(255,255,255,0.1);
        border-radius: 14px; padding: 14px 18px;
        color: white; font-size: 15px; outline: none; box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s;
        backdrop-filter: blur(4px);
    }
    .auth-input::placeholder { color: rgba(255,255,255,0.2); }
    .auth-input:focus {
        border-color: #d97706;
        box-shadow: 0 0 0 3px rgba(217,119,6,0.18), inset 0 0 0 1px rgba(217,119,6,0.08);
        background: rgba(255,255,255,0.09);
    }

    /* ── Botão principal ─────────────────────────────────────────────── */
    .auth-btn-primary {
        width: 100%; border: none; cursor: pointer; box-sizing: border-box;
        margin-top: 8px; padding: 15px; border-radius: 14px;
        font-size: 15px; font-weight: 800; color: white; letter-spacing: 0.3px;
        background: linear-gradient(135deg, #059669 0%, #047857 60%, #065f46 100%);
        box-shadow: 0 4px 20px rgba(5,150,105,0.4), 0 0 0 1px rgba(251,191,36,0.08);
        position: relative; overflow: hidden;
        transition: transform 0.15s, box-shadow 0.2s;
    }
    /* Shimmer âmbar no botão */
    .auth-btn-primary::before {
        content: '';
        position: absolute;
        top: 0; left: -100%;
        width: 60%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(251,191,36,0.15), transparent);
        transition: left 0.5s ease;
    }
    .auth-btn-primary:hover::before { left: 160%; }
    .auth-btn-primary::after {
        content: '';
        position: absolute; inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 55%);
        pointer-events: none;
    }
    .auth-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(5,150,105,0.55), 0 0 0 1px rgba(251,191,36,0.15); }
    .auth-btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: 0 2px 8px rgba(5,150,105,0.3); }

    /* ── Switch de formulário ─────────────────────────────────────────── */
    .auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: rgba(255,255,255,0.38); width: 100%; }
    .auth-switch a { color: #f59e0b; font-weight: 700; text-decoration: none; transition: color 0.2s; }
    .auth-switch a:hover { color: #fbbf24; }

    /* ── Mobile ───────────────────────────────────────────────────────── */
    @media (max-width: 900px) {
        .auth-split { display: block; width: 100%; }
        .auth-left  { display: none; }
        .auth-right {
            width: 100%; min-height: 100vh;
            padding: 60px 24px 50px;
            align-items: center; justify-content: center;
            background: rgba(5, 10, 18, 0.55);
            backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
            box-sizing: border-box;
        }
        .auth-right-inner {
            width: 100%; max-width: 400px; margin: 0 auto;
            background: rgba(8, 14, 28, 0.75);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(251,191,36,0.1);
            border-radius: 24px; padding: 28px 24px;
        }
        .auth-input { font-size: 16px; }
        .auth-right h2 { font-size: 26px; }
    }

    /* ── Acessibilidade: respeita prefers-reduced-motion ─────────────── */
    @media (prefers-reduced-motion: reduce) {
        .auth-float, .auth-float-2 { animation: none; }
    }
    @keyframes bgDrift { from { background-position: 0 0; } to { background-position: 60px 60px; } }

    /* ─── AUTH: Harvest immersive video background ──────────────────────── */
    #authView {
        position: relative !important;
        overflow: hidden !important;
    }
    .auth-harvest-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        pointer-events: none;
    }
    .auth-harvest-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: rgba(3, 10, 6, 0.52);
    }
    .auth-split {
        position: relative;
        z-index: 2;
    }
    /* Remove static gradient — video is the background now */
    .auth-left {
        background: transparent !important;
    }
    .auth-left::before {
        background: none !important;
        animation: none !important;
    }
    /* Harvest golden accent: headline keyword turns amber */
    .auth-headline span {
        color: #fbbf24 !important;
        animation: harvestPulse 3.5s ease-in-out infinite;
    }
    @keyframes harvestPulse {
        0%, 100% { text-shadow: 0 0 18px rgba(251,191,36,0.25); }
        50%       { text-shadow: 0 0 48px rgba(251,191,36,0.65); }
    }
    /* Desktop: glassmorphism right panel over video */
    @media (min-width: 901px) {
        .auth-right {
            background: rgba(4, 8, 18, 0.78) !important;
            backdrop-filter: blur(32px) !important;
            -webkit-backdrop-filter: blur(32px) !important;
            border-left: 1px solid rgba(251,191,36,0.08) !important;
        }
    }
    /* Mobile: video behind the form card */
    @media (max-width: 900px) {
        .auth-harvest-overlay {
            background: rgba(2, 12, 5, 0.68);
        }
        .auth-right {
            background: rgba(4, 8, 18, 0.55) !important;
            backdrop-filter: blur(32px) !important;
            -webkit-backdrop-filter: blur(32px) !important;
        }
        .auth-right-inner {
            background: rgba(8, 14, 26, 0.70) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border: 1px solid rgba(255,255,255,0.07) !important;
        }
    }
    /* Accessibility: respect reduced-motion preference */
    @media (prefers-reduced-motion: reduce) {
        .auth-harvest-video { display: none; }
        .auth-left { background: linear-gradient(145deg, #052e16 0%, #064e3b 40%, #065f46 70%, #0a5c2e 100%) !important; }
        .auth-harvest-overlay { display: none; }
        .auth-headline span { animation: none !important; }
    }

    /* ─── APP: Nav bar ─────────────────────────────────────────────────── */
    .bottom-nav {
        background: rgba(17, 24, 39, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
        padding: 6px 4px 8px;
    }
    .nav-item {
        position: relative;
        transition: color 0.2s ease;
        border-radius: 12px;
        padding: 6px 4px;
    }
    .nav-item.active {
        color: #10b981;
    }
    .nav-item.active::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(16,185,129,0.1);
        border-radius: 12px;
    }
    .nav-item:active { transform: scale(0.92); }
    .nav-item svg { transition: transform 0.2s; }
    .nav-item.active svg { transform: translateY(-1px); }

    /* ─── APP: FAB ─────────────────────────────────────────────────────── */
    .fab {
        box-shadow: 0 6px 24px rgba(16,185,129,0.55), 0 2px 6px rgba(0,0,0,0.3);
        transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
    }
    .fab:hover {
        transform: scale(1.12) translateY(-2px) !important;
        box-shadow: 0 12px 36px rgba(16,185,129,0.65), 0 4px 12px rgba(0,0,0,0.35);
    }
    .fab:active { transform: scale(0.95) !important; }

    /* ─── APP: Buttons ─────────────────────────────────────────────────── */
    @keyframes ripple {
        from { transform: scale(0); opacity: 0.5; }
        to   { transform: scale(2.5); opacity: 0; }
    }
    .btn-ripple {
        position: relative;
        overflow: hidden;
    }
    .btn-ripple::after {
        content: '';
        position: absolute;
        width: 80px; height: 80px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
        top: 50%; left: 50%;
        transform: translate(-50%,-50%) scale(0);
        pointer-events: none;
    }
    .btn-ripple:active::after { animation: ripple 0.4s ease-out; }

    /* ─── APP: Cards ───────────────────────────────────────────────────── */
    .modern-card {
        transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s ease, border-color 0.2s;
    }
    .modern-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.07) 50%, transparent 90%);
        border-radius: 16px 16px 0 0;
        pointer-events: none;
    }
    .modern-card { position: relative; }
    .modern-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
        border-color: rgba(255,255,255,0.12);
    }

    /* ─── APP: Form inputs ─────────────────────────────────────────────── */
    .form-input {
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s;
    }
    .form-input:focus {
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
        background: #0d1520;
    }

    /* ─── APP: Modals ──────────────────────────────────────────────────── */
    .modal-overlay {
        animation: overlayFadeIn 0.2s ease;
    }
    @keyframes overlayFadeIn { from { background: rgba(0,0,0,0); backdrop-filter: blur(0px); } to { background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); } }
    .modal-sheet {
        animation: modalSpring 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    @keyframes modalSpring { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .modal-sheet-center {
        animation: modalCenterSpring 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    }
    @keyframes modalCenterSpring { from { transform: scale(0.92) translateY(12px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

    /* ─── APP: tool-btn ────────────────────────────────────────────────── */
    .tool-btn {
        transition: background 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.2s;
    }
    .tool-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .tool-btn:active { transform: scale(0.96); }

    /* ─── APP: status badges ───────────────────────────────────────────── */
    .status-badge { letter-spacing: 0.3px; }
    .status-concluido { background: rgba(5,46,22,0.8); border: 1px solid rgba(74,222,128,0.2); }
    .status-programado { background: rgba(69,26,3,0.8); border: 1px solid rgba(251,191,36,0.2); }
    .status-atrasado { background: rgba(69,10,10,0.8); border: 1px solid rgba(248,113,113,0.2); }

    /* ─── APP: Skeleton shimmer ────────────────────────────────────────── */
    .skeleton {
        background: linear-gradient(90deg, #1e2a3a 0%, #2a3a4f 50%, #1e2a3a 100%);
        background-size: 300% 100%;
        animation: shimmer 1.8s ease-in-out infinite;
    }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

    /* ─── APP: Scrollbar ───────────────────────────────────────────────── */
    ::-webkit-scrollbar { width: 4px; height: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(55,65,81,0.7); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(75,85,99,0.9); }

    /* ─── APP: satisfaction stars ──────────────────────────────────────── */
    .satisfaction-star { transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1) !important; }
    .satisfaction-star:hover { transform: scale(1.3) !important; }
    .satisfaction-star:active { transform: scale(0.9) !important; }
