/* 
 * UTM Generator Pro - v2.1.3
 * Design moderno com conteúdo SEO otimizado
 * Lua Nova Digital
 */

/* ========== VARIÁVEIS ========== */
.utm-pro-wrapper {
    /* Cores Base */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Accent - Indigo */
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-dark: #4338ca;
    --accent-bg: #eef2ff;
    
    /* Success */
    --success: #10b981;
    --success-bg: #ecfdf5;
    
    /* Warning */
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    
    /* Error */
    --error: #ef4444;
    --error-bg: #fef2f2;
    
    /* Social Colors */
    --instagram: #E4405F;
    --google: #4285F4;
    --email: #059669;
    --facebook: #1877F2;
    --linkedin: #0A66C2;
    --whatsapp: #25D366;
    
    /* Borders & Shadows */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Typography */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* IMPORTANTE:
       - width:100% respeita o container do Elementor (evita estourar pro lado)
       - max-width em vw aplica sua regra (90vw/95vw) sem gerar scroll horizontal
    */
    width: 100%;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--gray-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    .utm-pro-wrapper {
        max-width: 90vw;
    }
}

.utm-pro-wrapper *, .utm-pro-wrapper *::before, .utm-pro-wrapper *::after {
    box-sizing: border-box;
}

/* ========== BLOCO 1: APP SHELL (SIDEBAR + APP) ========== */
.utm-app-shell {
    display: block;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
}

@media (min-width: 1024px) {
    .utm-app-shell {
        display: flex;
        gap: 16px;
        align-items: stretch;
    }
}

/* Força o app na primeira dobra (desktop/tablet). Se algo passar, rola dentro do bloco. */
@media (min-width: 768px) {
    .utm-app-shell {
        height: 92vh;
        overflow: hidden;
    }
    .utm-main-content {
        overflow: auto;
    }
    .utm-sidebar .sidebar-content {
        overflow-y: auto;
    }
}

/* ========== BLOCO 2: CONTEÚDO (SEO) ========== */
.utm-seo-content {
    margin-top: 0;
}

/* ========== SIDEBAR (DENTRO DO APP SHELL) ========== */
.utm-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .utm-sidebar {
        display: flex;
        flex-direction: column;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        background: linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
        border-radius: var(--radius-xl);
        transition: all 0.25s ease;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .utm-sidebar.collapsed {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
    }

    .utm-main-content {
        flex: 1;
        min-width: 0;
    }
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-header h3 svg {
    flex-shrink: 0;
    color: var(--gray-400);
}

.utm-sidebar.collapsed .sidebar-title-text {
    opacity: 0;
    width: 0;
}

/* Toggle Button */
.sidebar-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.sidebar-toggle .icon-expand {
    display: none;
}

.utm-sidebar.collapsed .sidebar-toggle .icon-collapse {
    display: none;
}

.utm-sidebar.collapsed .sidebar-toggle .icon-expand {
    display: block;
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 8px;
}

.utm-sidebar.collapsed .sidebar-content {
    padding: 12px 4px;
}

/* Empty State */
.sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 16px;
    color: var(--gray-500);
}

.sidebar-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.sidebar-empty p {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
}

.sidebar-empty span {
    font-size: 12px;
    color: var(--gray-500);
}

.utm-sidebar.collapsed .sidebar-empty {
    display: none;
}

/* Sidebar List */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Sidebar Item */
.sidebar-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.1);
}

.sidebar-item.active {
    background: var(--accent);
    border-color: var(--accent);
}

.sidebar-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-200);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sidebar-item.active .sidebar-item-title {
    color: var(--white);
}

.sidebar-item-date {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-item.active .sidebar-item-date {
    color: rgba(255,255,255,0.7);
}

/* Collapsed State - Item */
.utm-sidebar.collapsed .sidebar-item {
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
}

.utm-sidebar.collapsed .sidebar-item-title,
.utm-sidebar.collapsed .sidebar-item-date {
    display: none;
}

.utm-sidebar.collapsed .sidebar-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.utm-sidebar.collapsed .sidebar-item.active::before {
    background: var(--white);
}

/* Item Actions (on hover) */
.sidebar-item-actions {
    display: none;
    gap: 4px;
    margin-top: 8px;
}

.sidebar-item:hover .sidebar-item-actions {
    display: flex;
}

.utm-sidebar.collapsed .sidebar-item-actions {
    display: none !important;
}

.sidebar-action-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-action-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.sidebar-action-btn.delete:hover {
    background: var(--error);
    color: var(--white);
}

.sidebar-action-btn svg {
    width: 12px;
    height: 12px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-clear-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-clear-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: var(--white);
}

.sidebar-clear-btn svg {
    flex-shrink: 0;
}

.utm-sidebar.collapsed .sidebar-clear-btn span {
    display: none;
}

.utm-sidebar.collapsed .sidebar-footer {
    padding: 8px;
}

/* Mobile: Floating Toggle Button */
@media (max-width: 1023px) {
    .utm-sidebar {
        display: none;
    }
    
    .utm-main-content {
        width: 100%;
    }
}

/* ========== FERRAMENTA PRINCIPAL ========== */
.utm-pro-tool {
    margin-bottom: 0;
}

.utm-pro-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: none;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

/* Header da ferramenta */
.utm-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    gap: 20px;
}

.utm-pro-header > div {
    flex: 1;
}

.utm-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 99px;
    margin-bottom: 12px;
}

.utm-pro-header h1 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.utm-pro-header p {
    margin: 0;
    font-size: 12.5px;
    color: var(--gray-400);
    max-width: 500px;
}

@media (max-width: 640px) {
    .utm-pro-header {
        padding: 10px 12px;
    }
    .utm-pro-header h1 {
        font-size: 18px;
    }
    .utm-pro-header p {
        font-size: 12.5px;
    }
}

/* Clear Button */
.utm-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.utm-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.utm-btn-ghost svg {
    width: 15px;
    height: 15px;
}

/* ========== FORMULÁRIO ========== */
.utm-pro-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px;
    background: var(--gray-50);
}

@media (min-width: 640px) {
    .utm-pro-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .utm-pro-form {
        grid-template-columns: repeat(3, 1fr);
    }
}

.utm-form-group.full-width {
    grid-column: 1 / -1;
}

.utm-form-group {
    display: flex;
    flex-direction: column;
}

.utm-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.utm-form-group label svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.tag-rec {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Tooltip Button */
.tooltip-btn {
    width: 18px;
    height: 18px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border: none;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: help;
    transition: all 0.2s;
    position: relative;
}

.tooltip-btn:hover {
    background: var(--gray-300);
    color: var(--gray-700);
}

.tooltip-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 220px;
    text-align: center;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.tooltip-btn:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gray-900);
    z-index: 100;
}

.helper-text {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 6px;
    margin-bottom: 8px;
    order: 2;
}

.utm-form-group label { order: 1; }
.utm-form-group input { order: 3; }

/* Inputs */
.utm-pro-wrapper input[type="text"],
.utm-pro-wrapper input[type="url"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    transition: all 0.2s;
}

.utm-pro-wrapper input::placeholder {
    color: var(--gray-400);
}

.utm-pro-wrapper input:hover {
    border-color: var(--gray-300);
}

.utm-pro-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-bg);
}

/* ========== RESULTADO ========== */
.utm-result-section {
    padding: 10px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.utm-result-section > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.utm-result-section > label svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.utm-result-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    color: var(--gray-700);
    resize: vertical;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.utm-result-section textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

/* Result Actions */
.utm-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 640px) {
    .utm-result-actions {
        grid-template-columns: 1fr;
    }
}

/* Primary Button */
.utm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.utm-btn-primary:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.utm-btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.utm-btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Secondary Button */
.utm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.utm-btn-secondary:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.utm-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.utm-btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Shortened URL Result */
.shortened-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--gray-200);
}

.shortened-result > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 12px;
}

.shortened-result > label svg {
    width: 16px;
    height: 16px;
}

.shortened-url-container {
    display: flex;
    gap: 8px;
}

.shortened-url-container input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    background: var(--success-bg);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    color: var(--gray-800);
}

.utm-btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.utm-btn-icon:hover {
    background: #059669;
    transform: translateY(-1px);
}

.utm-btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Copy Feedback */
.copy-feedback {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    height: 24px;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.copy-feedback.show {
    opacity: 1;
}

/* ========== SPREADSHEET SECTION ========== */
.utm-spreadsheet-section {
    padding: 10px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.utm-spreadsheet-section .section-header,
.utm-history-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.utm-spreadsheet-section .section-header h3,
.utm-history-section .section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.utm-spreadsheet-section .section-header h3 svg,
.utm-history-section .section-header h3 svg {
    color: var(--gray-400);
}

.utm-spreadsheet-section .section-header p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--gray-500);
    width: 100%;
}

.spreadsheet-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .spreadsheet-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.2s;
}

.action-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.action-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-top: 10px;
    display: block;
}

/* Outline Button */
.utm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.utm-btn-outline:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.utm-btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.utm-btn-outline svg {
    width: 16px;
    height: 16px;
}


/* ========== CONTENT SECTIONS ========== */
.utm-content-section {
    margin-bottom: 32px;
}

.utm-content-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid var(--gray-100);
}

@media (max-width: 640px) {
    .utm-content-card {
        padding: 24px;
    }
}

.section-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.section-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.utm-content-card h2 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

@media (max-width: 640px) {
    .utm-content-card h2 {
        font-size: 22px;
    }
}

.lead-text {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.7;
}

.utm-content-card > p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ========== BENEFITS GRID ========== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.benefit-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.benefit-card p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========== PARAMETERS TABLE ========== */
.params-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.params-table th,
.params-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.params-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.params-table td {
    color: var(--gray-600);
}

.params-table tbody tr:last-child td {
    border-bottom: none;
}

.params-table tbody tr:hover {
    background: var(--gray-50);
}

.params-table code {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.badge-required {
    display: inline-block;
    padding: 3px 8px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-optional {
    display: inline-block;
    padding: 3px 8px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* ========== EXAMPLES GRID ========== */
.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.example-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s;
}

.example-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.example-header {
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.example-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--white);
}

.example-icon.instagram { background: var(--instagram); }
.example-icon.google { background: var(--google); }
.example-icon.email { background: var(--email); }
.example-icon.facebook { background: var(--facebook); }
.example-icon.linkedin { background: var(--linkedin); }
.example-icon.whatsapp { background: var(--whatsapp); }

.example-icon svg {
    width: 20px;
    height: 20px;
}

.example-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
}

.example-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 99px;
}

.example-code {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-code code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--gray-600);
}

.example-code code span {
    color: var(--accent);
    font-weight: 600;
}

/* ========== PRACTICES LIST ========== */
.practices-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.practice-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.practice-item:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.practice-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.practice-content {
    flex: 1;
}

.practice-content h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
}

.practice-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.practice-content code {
    background: var(--white);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Warning Box */
.warning-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    margin-top: 32px;
}

.warning-icon {
    flex-shrink: 0;
}

.warning-icon svg {
    width: 24px;
    height: 24px;
    color: var(--warning);
}

.warning-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gray-800);
    font-size: 15px;
}

.warning-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========== PERSONA GRID ========== */
.persona-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.persona-card {
    padding: 28px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.persona-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.persona-icon.gestor { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.persona-icon.social { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.persona-icon.ecommerce { background: linear-gradient(135deg, #059669, #10b981); }
.persona-icon.email { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.persona-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.persona-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
}

.persona-card p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.persona-use {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 6px 12px;
    border-radius: var(--radius);
}

/* ========== WORKFLOW STEPS ========== */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 32px;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 48px;
    width: 2px;
    background: var(--gray-200);
}

.workflow-step {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: all 0.2s;
    position: relative;
}

.workflow-step:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 6px;
}

.step-content h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.step-content code {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ========== ANALYTICS GRID ========== */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 900px) {
    .analytics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.analytics-card {
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.analytics-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.analytics-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.analytics-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--gray-100);
    color: var(--gray-500);
    text-transform: uppercase;
}

.analytics-badge.primary {
    background: var(--accent-bg);
    color: var(--accent);
}

.analytics-path {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.analytics-path span {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
}

.analytics-path svg {
    color: var(--gray-300);
    flex-shrink: 0;
}

.analytics-card p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.analytics-tips {
    margin: 0;
    padding: 0;
    list-style: none;
}

.analytics-tips li {
    font-size: 13px;
    color: var(--gray-500);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.analytics-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* ========== ERRORS LIST ========== */
.errors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.error-item {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--error);
    transition: all 0.2s;
}

.error-item:hover {
    box-shadow: var(--shadow-md);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.error-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--error-bg);
    color: var(--error);
    text-transform: uppercase;
}

.error-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
}

.error-item > p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.error-solution {
    padding: 12px 16px;
    background: var(--success-bg);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--gray-700);
}

.error-solution strong {
    color: var(--success);
}

.section-icon.error-icon {
    background: var(--error-bg);
}

.section-icon.error-icon svg {
    color: var(--error);
}

/* ========== FAQ ACCORDION ========== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.faq-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item[open] {
    border-color: var(--accent);
    background: var(--white);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--gray-400);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: "−";
    background: var(--accent-bg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 24px 20px 24px;
}

.faq-answer p {
    margin: 0;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--gray-700);
}

.faq-answer code {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 640px) {
    .utm-pro-wrapper {
        padding: 0;
    }
    
    .utm-pro-header {
        flex-direction: column;
        padding: 24px;
    }
    
    .utm-pro-form { padding: 10px; }
    
    .utm-result-section,
    .utm-spreadsheet-section {
        padding: 10px;
    }
    
    /* botões já viram grid 1 coluna no mobile */
    
    .practice-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .warning-box {
        flex-direction: column;
    }
    
    .tooltip-btn:hover::after {
        left: auto;
        right: 0;
        transform: none;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.utm-content-section {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
