    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: #F5F5F5;
        min-height: 100vh;
        color: #212121;
    }

    /* ===== AUTH PAGES ===== */
    .auth-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f3c 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .auth-page.hidden { display: none; }

    .auth-logo {
        width: 140px;
        height: 140px;
        border-radius: 24px;
        margin-bottom: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    }

    .auth-card {
        background: white;
        border-radius: 24px;
        padding: 30px 25px;
        max-width: 380px;
        width: 100%;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .auth-title {
        font-size: 24px;
        font-weight: 800;
        color: #0a1628;
        margin-bottom: 6px;
    }

    .auth-subtitle {
        font-size: 13px;
        color: #757575;
        margin-bottom: 20px;
    }

    .auth-tabs {
        display: flex;
        margin-bottom: 20px;
        background: #F5F5F5;
        border-radius: 12px;
        padding: 4px;
    }

    .auth-tab {
        flex: 1;
        padding: 10px;
        border: none;
        background: transparent;
        font-size: 13px;
        font-weight: 600;
        color: #757575;
        cursor: pointer;
        border-radius: 10px;
        transition: all 0.2s;
        font-family: inherit;
    }

    .auth-tab.active {
        background: white;
        color: #0a1628;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .auth-form { display: none; }
    .auth-form.active { display: block; }

    .form-group { margin-bottom: 16px; text-align: left; }

    .form-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #424242;
        margin-bottom: 6px;
    }

    .form-input {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid #E0E0E0;
        border-radius: 10px;
        font-size: 14px;
        font-family: inherit;
        transition: border-color 0.2s;
    }

    .form-input:focus { outline: none; border-color: #1976D2; }
    .form-input::placeholder { color: #BDBDBD; }

    .auth-btn {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        transition: transform 0.2s;
        margin-top: 10px;
    }

    .auth-btn:active { transform: scale(0.98); }
    .auth-btn:disabled { background: #E0E0E0; color: #9E9E9E; cursor: not-allowed; }

    .auth-message {
        margin-top: 16px;
        padding: 12px;
        border-radius: 10px;
        font-size: 12px;
        display: none;
    }

    .auth-message.show { display: block; }
    .auth-message.error { background: #FFEBEE; border: 1px solid #FFCDD2; color: #C62828; }
    .auth-message.success { background: #E8F5E9; border: 1px solid #A5D6A7; color: #2E7D32; }
    .auth-message.warning { background: #FFF8E1; border: 1px solid #FFE082; color: #E65100; }

    .auth-info {
        margin-top: 20px;
        padding: 14px;
        background: #E3F2FD;
        border-radius: 12px;
        border: 1px solid #90CAF9;
    }

    .auth-info-title { font-size: 12px; font-weight: 700; color: #1565C0; margin-bottom: 4px; }
    .auth-info-text { font-size: 11px; color: #1976D2; line-height: 1.5; }
    .auth-footer { margin-top: 25px; font-size: 10px; color: rgba(255,255,255,0.5); }

    .pending-icon { font-size: 60px; margin-bottom: 16px; }
    .pending-text { font-size: 14px; color: #5D4037; line-height: 1.6; margin-bottom: 20px; }
    .pending-email { font-weight: 700; color: #1976D2; }

    .pending-btn {
        padding: 12px 24px;
        background: #F5F5F5;
        color: #616161;
        border: none;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
    }

    /* ===== MAIN APP ===== */
    .app-container { display: none; }
    .app-container.show { display: block; }

    .header {
        background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .header-banner { width: 100%; max-height: 90px; object-fit: contain; display: block; background: #0a1628; }
    .header-fallback { display: none; padding: 16px; text-align: center; }
    .header-fallback h1 { font-size: 20px; font-weight: 800; color: #fff; }
    .header-fallback p { font-size: 11px; color: #FFC107; margin-top: 4px; }

    .header-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        background: rgba(0,0,0,0.3);
        flex-wrap: wrap;
        gap: 8px;
    }

    .api-status {
        font-size: 11px;
        padding: 5px 12px;
        background: rgba(255,255,255,0.15);
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 6px;
        color: #fff;
    }

    .user-info { display: flex; align-items: center; gap: 8px; }
    .user-name { font-size: 12px; color: #fff; font-weight: 600; }

    .logout-btn {
        background: rgba(255,255,255,0.2);
        border: none;
        color: #fff;
        font-size: 14px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-buttons { display: flex; gap: 6px; align-items: center; }

    .header-btn {
        padding: 5px 10px;
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        font-family: inherit;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .version-badge {
        font-size: 9px;
        background: rgba(255,193,7,0.3);
        color: #FFC107;
        padding: 3px 8px;
        border-radius: 10px;
        font-weight: 700;
    }

    .container { max-width: 500px; margin: 0 auto; padding: 16px; }

    .preview-card {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #E0E0E0;
    }

    .preview-area {
        width: 100%;
        height: 280px;
        background: linear-gradient(135deg, #FAFAFA 0%, #EEEEEE 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .preview-area img { width: 100%; height: 100%; object-fit: contain; display: none; background: #f0f0f0; }
    .preview-area.has-image img { display: block; }
    .preview-area.has-image .placeholder { display: none; }

    .placeholder { text-align: center; color: #9E9E9E; }
    .placeholder-icon { font-size: 60px; margin-bottom: 10px; opacity: 0.6; }
    .placeholder-text { font-size: 14px; font-weight: 500; }

    /* ===== Recorte interativo (Camada 1 — funciona p/ câmera E galeria) ===== */
    .preview-area.cropping { overflow: hidden; }
    .crop-box { position: absolute; border: 2px solid #00e0ff;
        box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; display: none;
        touch-action: none; box-sizing: border-box; }
    .preview-area.cropping .crop-box { display: block; }
    .crop-handle { position: absolute; width: 20px; height: 20px; background: #00e0ff;
        border: 2px solid #fff; border-radius: 50%; touch-action: none; }
    .crop-handle.tl { left: -11px; top: -11px; cursor: nwse-resize; }
    .crop-handle.tr { right: -11px; top: -11px; cursor: nesw-resize; }
    .crop-handle.bl { left: -11px; bottom: -11px; cursor: nesw-resize; }
    .crop-handle.br { right: -11px; bottom: -11px; cursor: nwse-resize; }
    .crop-actions { display: none; gap: 8px; margin: 10px 0 0; }
    .crop-actions.show { display: flex; }
    .crop-actions .btn { flex: 1; margin: 0; padding: 13px; font-size: 0.9rem; }
    .crop-hint { position: absolute; top: 6px; left: 0; right: 0; text-align: center;
        font-size: .72rem; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none;
        display: none; z-index: 2; }
    .preview-area.cropping .crop-hint { display: block; }

    .tip-banner {
        background: #E8F5E9;
        border: 1px solid #A5D6A7;
        border-left: 4px solid #4CAF50;
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .tip-icon { font-size: 22px; }
    .tip-text { font-size: 12px; font-weight: 600; color: #2E7D32; }
    .tip-text span { color: #1565C0; font-weight: 700; }

    .buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

    .btn {
        padding: 16px;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .btn:active { transform: scale(0.97); }

    .btn-camera {
        background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(25,118,210,0.35);
    }

    .btn-gallery { background: #fff; color: #1976D2; border: 2px solid #1976D2; }

    .btn-analyze {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, #43A047 0%, #388E3C 100%);
        color: white;
        font-size: 16px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(67,160,71,0.35);
    }

    .btn-analyze:disabled { background: #E0E0E0; color: #9E9E9E; box-shadow: none; cursor: not-allowed; }

    .btn-icon { font-size: 20px; }
    .file-input { display: none; }

    .loading { display: none; text-align: center; padding: 30px; }
    .loading.show { display: block; }

    .spinner {
        width: 50px; height: 50px;
        border: 4px solid #E0E0E0; border-top-color: #1976D2;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 16px;
    }

    @keyframes spin { to { transform: rotate(360deg); } }
    .loading-text { font-size: 14px; color: #757575; }

    .result-card {
        display: none;
        background: #fff;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #E0E0E0;
    }

    .result-card.show { display: block; animation: slideUp 0.4s ease-out; }

    @keyframes slideUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .result-header {
        font-size: 11px; font-weight: 700; color: #1976D2;
        text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
        display: flex; align-items: center; gap: 8px;
    }

    .result-main { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
    .result-icon { font-size: 48px; flex-shrink: 0; }
    .result-info { flex: 1; }
    .result-status { font-size: 20px; font-weight: 800; color: #212121; margin-bottom: 4px; }
    .result-recommendation { font-size: 12px; color: #757575; }
    .result-score { font-size: 36px; font-weight: 800; }

    .score-bar-container { background: #E0E0E0; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 16px; }
    .score-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease-out; }

    .indicators-box {
        background: #FAFAFA; border: 1px solid #E0E0E0; border-radius: 10px;
        padding: 12px; font-size: 12px; color: #616161; display: none;
    }
    .indicators-box.show { display: block; }
    .indicators-title { font-weight: 700; color: #1976D2; margin-bottom: 8px; }

    /* ===== AI DISCLAIMER ===== */
    .ai-disclaimer {
        margin-top: 14px;
        padding: 12px 14px;
        background: linear-gradient(135deg, #EDE7F6 0%, #F3E5F5 100%);
        border: 1px solid #D1C4E9;
        border-left: 4px solid #5E35B1;
        border-radius: 12px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .ai-disclaimer-icon { font-size: 20px; flex-shrink: 0; line-height: 1.2; }
    .ai-disclaimer-content { flex: 1; }
    .ai-disclaimer-title {
        font-size: 11px;
        font-weight: 700;
        color: #4527A0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .ai-disclaimer-badge {
        font-size: 9px;
        background: #5E35B1;
        color: #fff;
        padding: 2px 6px;
        border-radius: 6px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    .ai-disclaimer-text { font-size: 11px; color: #4A148C; line-height: 1.5; }
    .ai-disclaimer-text strong { color: #311B92; font-weight: 700; }

    .legend-card {
        background: #fff; border-radius: 16px; padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid #E0E0E0;
    }

    .legend-title {
        font-size: 12px; font-weight: 700; color: #1976D2; margin-bottom: 14px;
        display: flex; align-items: center; gap: 8px;
    }

    .legend-items { display: flex; flex-direction: column; gap: 10px; }

    .legend-item {
        display: flex; align-items: center; gap: 10px; font-size: 12px; color: #424242;
        padding: 8px 10px; background: #FAFAFA; border-radius: 8px;
    }

    .legend-icon { font-size: 18px; width: 26px; text-align: center; }
    .legend-range { font-weight: 700; width: 60px; }
    .legend-action { color: #757575; font-size: 11px; margin-left: auto; }

    .footer {
        text-align: center; padding: 20px 16px; font-size: 11px; color: #9E9E9E;
        border-top: 1px solid #E0E0E0; margin-top: 20px; background: #fff; line-height: 1.6;
    }
    .footer-devs { color: #616161; font-weight: 500; margin-bottom: 4px; }
    .footer-contact { color: #1976D2; font-weight: 600; margin-top: 6px; }

    .score-green { background: linear-gradient(90deg, #4CAF50, #66BB6A); }
    .score-yellow { background: linear-gradient(90deg, #FFC107, #FFCA28); }
    .score-orange { background: linear-gradient(90deg, #FF9800, #FFB74D); }
    .score-red { background: linear-gradient(90deg, #F44336, #EF5350); }
    .score-darkred { background: linear-gradient(90deg, #C62828, #D32F2F); }

    .text-green { color: #388E3C; }
    .text-yellow { color: #F9A825; }
    .text-orange { color: #EF6C00; }
    .text-red { color: #D32F2F; }
    .text-darkred { color: #B71C1C; }

    /* Modals */
    .modal-overlay {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5); z-index: 200;
        align-items: center; justify-content: center; padding: 20px;
    }
    .modal-overlay.show { display: flex; animation: fadeIn 0.2s ease-out; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .modal {
        background: #fff; border-radius: 20px; max-width: 400px; width: 100%;
        max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }

    .modal-header {
        padding: 16px 20px; border-bottom: 1px solid #E0E0E0;
        display: flex; justify-content: space-between; align-items: center;
        background: #FAFAFA; border-radius: 20px 20px 0 0;
    }

    .modal-title { font-size: 16px; font-weight: 700; color: #1976D2; display: flex; align-items: center; gap: 8px; }

    .modal-close {
        background: #E0E0E0; border: none; color: #616161; font-size: 18px;
        width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }

    .modal-body { padding: 20px; }
    .modal-section { margin-bottom: 18px; }
    .modal-section:last-child { margin-bottom: 0; }

    .modal-section-title { font-size: 13px; font-weight: 700; color: #212121; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
    .modal-list { list-style: none; font-size: 12px; color: #616161; }
    .modal-list li { padding: 6px 0; padding-left: 20px; position: relative; line-height: 1.5; }
    .modal-list li::before { content: '•'; position: absolute; left: 0; color: #1976D2; font-weight: bold; }
    .modal-list strong { color: #212121; }

    .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { background: #F5F5F5; border-radius: 12px; padding: 14px; text-align: center; border: 1px solid #E0E0E0; }
    .stat-value { font-size: 24px; font-weight: 800; color: #1976D2; }
    .stat-label { font-size: 10px; color: #757575; text-transform: uppercase; margin-top: 4px; }
    .stat-full { grid-column: 1 / -1; }
    .accuracy-bar { height: 8px; background: #E0E0E0; border-radius: 4px; margin-top: 8px; overflow: hidden; }
    .accuracy-fill { height: 100%; background: #4CAF50; border-radius: 4px; }

    /* ===== FEEDBACK SYSTEM ===== */
    .feedback-section {
        display: none; margin-top: 16px; padding: 16px;
        background: #FAFAFA; border-radius: 12px; border: 1px solid #E0E0E0;
        text-align: center; animation: slideUp 0.3s ease-out;
    }
    .feedback-section.show { display: block; }
    .feedback-question { font-size: 13px; font-weight: 600; color: #424242; margin-bottom: 12px; }
    .feedback-buttons { display: flex; justify-content: center; gap: 16px; }

    .feedback-btn {
        width: 56px; height: 56px; border-radius: 50%; border: 2px solid #E0E0E0;
        background: #fff; font-size: 28px; cursor: pointer; transition: all 0.2s ease;
        display: flex; align-items: center; justify-content: center;
    }
    .feedback-btn:hover { transform: scale(1.1); }
    .feedback-btn.positive:hover, .feedback-btn.positive.selected { border-color: #4CAF50; background: #E8F5E9; box-shadow: 0 2px 8px rgba(76,175,80,0.3); }
    .feedback-btn.negative:hover, .feedback-btn.negative.selected { border-color: #F44336; background: #FFEBEE; box-shadow: 0 2px 8px rgba(244,67,54,0.3); }
    .feedback-btn:active { transform: scale(0.95); }
    .feedback-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

    .feedback-thanks { display: none; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-top: 12px; animation: slideUp 0.3s ease-out; }
    .feedback-thanks.positive { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
    .feedback-thanks.negative { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }
    .feedback-thanks.show { display: block; }

    .feedback-modal-body { padding: 20px; }
    .feedback-textarea {
        width: 100%; min-height: 120px; padding: 12px 14px; border: 2px solid #E0E0E0;
        border-radius: 10px; font-size: 14px; font-family: inherit; resize: vertical;
        transition: border-color 0.2s; margin-bottom: 8px;
    }
    .feedback-textarea:focus { outline: none; border-color: #1976D2; }
    .feedback-textarea::placeholder { color: #BDBDBD; }
    .feedback-char-count { font-size: 11px; color: #9E9E9E; text-align: right; margin-bottom: 12px; }
    .feedback-context { background: #F5F5F5; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 11px; color: #757575; }
    .feedback-context strong { color: #424242; }

    .feedback-submit-btn {
        width: 100%; padding: 14px;
        background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
        color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
        cursor: pointer; font-family: inherit; transition: transform 0.2s;
    }
    .feedback-submit-btn:active { transform: scale(0.98); }
    .feedback-submit-btn:disabled { background: #E0E0E0; color: #9E9E9E; cursor: not-allowed; }

    .suggestion-btn {
        display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
        background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%);
        color: white; border: none; border-radius: 20px; font-size: 12px; font-weight: 700;
        cursor: pointer; font-family: inherit; margin-top: 12px;
        transition: all 0.2s; box-shadow: 0 2px 8px rgba(123,31,162,0.3);
    }
    .suggestion-btn:active { transform: scale(0.97); }

    .suggestion-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
    .category-option {
        padding: 10px; border: 2px solid #E0E0E0; border-radius: 10px; background: #fff;
        font-size: 12px; font-weight: 600; color: #616161; cursor: pointer;
        text-align: center; transition: all 0.2s; font-family: inherit;
    }
    .category-option:hover { border-color: #7B1FA2; color: #7B1FA2; }
    .category-option.selected { border-color: #7B1FA2; background: #F3E5F5; color: #7B1FA2; }

    /* ===== MODAL TERMOS DE USO ===== */
    .terms-backdrop {
        position: fixed; inset: 0; z-index: 9000;
        background: rgba(10, 22, 40, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .terms-backdrop.open {
        opacity: 1; pointer-events: all;
    }
    .terms-sheet {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 9001;
        background: #fff;
        border-radius: 24px 24px 0 0;
        max-height: 88vh;
        display: flex; flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
    }
    .terms-sheet.open {
        transform: translateY(0);
    }
    .terms-drag-handle {
        width: 36px; height: 4px;
        background: #E0E0E0; border-radius: 2px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }
    .terms-header {
        padding: 16px 24px 14px;
        display: flex; align-items: center; justify-content: space-between;
        border-bottom: 1px solid #F0F0F0;
        flex-shrink: 0;
    }
    .terms-header-left { display: flex; align-items: center; gap: 10px; }
    .terms-header-icon {
        width: 36px; height: 36px; border-radius: 10px;
        background: linear-gradient(135deg, #0a1628, #1a2d4a);
        display: flex; align-items: center; justify-content: center;
        font-size: 17px;
    }
    .terms-header-title { font-size: 15px; font-weight: 700; color: #0a1628; }
    .terms-header-sub { font-size: 11px; color: #9E9E9E; margin-top: 1px; }
    .terms-close-btn {
        width: 32px; height: 32px; border-radius: 50%;
        background: #F5F5F5; border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        font-size: 16px; color: #616161;
        transition: background 0.2s;
    }
    .terms-close-btn:hover { background: #EEEEEE; }
    .terms-body {
        overflow-y: auto; flex: 1;
        padding: 20px 24px;
        -webkit-overflow-scrolling: touch;
    }
    .terms-body::-webkit-scrollbar { width: 4px; }
    .terms-body::-webkit-scrollbar-track { background: transparent; }
    .terms-body::-webkit-scrollbar-thumb { background: #E0E0E0; border-radius: 2px; }
    .terms-section { margin-bottom: 22px; }
    .terms-section-title {
        font-size: 12px; font-weight: 700; color: #0a1628;
        text-transform: uppercase; letter-spacing: 0.06em;
        margin-bottom: 8px;
        display: flex; align-items: center; gap: 7px;
    }
    .terms-section-title::after {
        content: ''; flex: 1; height: 1px; background: #F0F0F0;
    }
    .terms-section p {
        font-size: 13px; color: #424242; line-height: 1.7;
        margin-bottom: 8px;
    }
    .terms-section p:last-child { margin-bottom: 0; }
    .terms-warning-box {
        background: #FFF8E1; border-left: 3px solid #FFC107;
        border-radius: 0 8px 8px 0;
        padding: 12px 14px; margin: 12px 0;
    }
    .terms-warning-box p { font-size: 12px; color: #5D4037; font-weight: 600; margin: 0; }
    .terms-danger-box {
        background: #FFEBEE; border-left: 3px solid #F44336;
        border-radius: 0 8px 8px 0;
        padding: 12px 14px; margin: 12px 0;
    }
    .terms-danger-box p { font-size: 12px; color: #B71C1C; font-weight: 600; margin: 0; }
    .terms-footer {
        padding: 16px 24px;
        border-top: 1px solid #F0F0F0;
        flex-shrink: 0;
        background: #fff;
    }
    .terms-accept-btn {
        width: 100%; padding: 15px;
        background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
        color: #fff; border: none; border-radius: 14px;
        font-size: 15px; font-weight: 700; cursor: pointer;
        font-family: inherit;
        transition: transform 0.15s, opacity 0.15s;
        letter-spacing: 0.02em;
    }
    .terms-accept-btn:active { transform: scale(0.98); opacity: 0.9; }
    .terms-safety-note {
        text-align: center; font-size: 10px; color: #9E9E9E;
        margin-top: 10px; line-height: 1.5;
    }
    /* Checkbox de aceite no formulário */
    .terms-check-row {
        display: flex; align-items: flex-start; gap: 10px;
        margin: 14px 0 4px; padding: 12px 14px;
        background: #F8FAFD; border: 1.5px solid #E3F2FD;
        border-radius: 12px; cursor: pointer;
        transition: border-color 0.2s;
    }
    .terms-check-row:has(#termsCheckbox:checked) {
        border-color: #1976D2; background: #E8F4FF;
    }
    .terms-check-row input[type="checkbox"] {
        width: 18px; height: 18px; min-width: 18px;
        accent-color: #1976D2; margin-top: 1px; cursor: pointer;
    }
    .terms-check-label {
        font-size: 12px; color: #424242; line-height: 1.5;
        cursor: pointer; user-select: none;
    }
    .terms-check-label a {
        color: #1976D2; font-weight: 600; text-decoration: none;
        border-bottom: 1px solid #90CAF9;
    }
