/**
 * Gerador de Resumos Automáticos
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Paleta Evernote Green */
    --primary-color: #00A82D;
    --secondary-color: #2DBE60;
    --accent-color: #FFFFFF;
    --surface-color: #F8F8F8;
    --text-color: #4A4A4A;

    /* Variações */
    --primary-hover: #008A25;
    --primary-light: #E6F7EC;
    --bg-color: #FFFFFF;
    --text-muted: #6B6B6B;
    --text-light: #9E9E9E;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Highlight Box Colors */
    --highlight-bg: #E6F7EC;
    --highlight-success-bg: #DCFCE7;
    --highlight-info-bg: #DBEAFE;

    /* Layout */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 60px;
    --bottom-nav-height: 65px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --line-height: 1.6;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1A1A1A;
        --surface-color: #2A2A2A;
        --text-color: #E0E0E0;
        --text-muted: #A0A0A0;
        --border-color: #3A3A3A;
        --primary-light: rgba(0, 168, 45, 0.15);
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

        /* Highlight Box Colors Dark Mode */
        --highlight-bg: rgba(0, 168, 45, 0.15);
        --highlight-success-bg: rgba(34, 197, 94, 0.15);
        --highlight-info-bg: rgba(59, 130, 246, 0.15);
    }
}

[data-theme="dark"] {
    --bg-color: #1A1A1A;
    --surface-color: #2A2A2A;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --border-color: #3A3A3A;
    --primary-light: rgba(0, 168, 45, 0.15);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Highlight Box Colors Dark Mode */
    --highlight-bg: rgba(0, 168, 45, 0.15);
    --highlight-success-bg: rgba(34, 197, 94, 0.15);
    --highlight-info-bg: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] {
    --primary-color: #00A82D;
    --secondary-color: #2DBE60;
    --accent-color: #FFFFFF;
    --surface-color: #F8F8F8;
    --text-color: #4A4A4A;

    --primary-hover: #008A25;
    --primary-light: #E6F7EC;
    --bg-color: #FFFFFF;
    --text-muted: #6B6B6B;
    --text-light: #9E9E9E;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Highlight Box Colors Light Mode */
    --highlight-bg: #E6F7EC;
    --highlight-success-bg: #DCFCE7;
    --highlight-info-bg: #DBEAFE;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: var(--header-height);
    min-height: 100vh;
}

@media (max-width: 767px) {
    body {
        padding-bottom: var(--bottom-nav-height);
    }
}

/* ==================== HEADER ==================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.header-logo i {
    font-size: 24px;
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 4px;
        /* Reduced gap for tablets */
    }

    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        /* Reduced padding for tablets */
        border-radius: var(--border-radius-sm);
        color: var(--text-color);
        text-decoration: none;
        font-size: var(--font-size-sm);
        font-weight: 500;
        transition: var(--transition);
        white-space: nowrap;
        /* Prevent text wrapping */
    }

    .desktop-nav .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary-color);
    }

    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
    }

    .desktop-nav .nav-link i {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .desktop-nav {
        gap: 8px;
    }

    .desktop-nav .nav-link {
        padding: 8px 16px;
    }
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.15);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-icon i {
    font-size: 18px;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 24px 0;
}

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

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* ==================== SECTIONS ==================== */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero h2 {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
}

.card-header i {
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

/* ==================== INPUT AREA ==================== */
.input-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-color);
    background: var(--bg-color);
    resize: vertical;
    transition: var(--transition);
}

.input-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-textarea::placeholder {
    color: var(--text-light);
}

.char-count {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 767px) {
    .input-actions {
        flex-direction: column;
    }

    .input-actions .btn {
        width: 100%;
    }
}

/* ==================== CONTROLS ==================== */
.control-group {
    margin-bottom: 24px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.percentage-value {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    font-weight: 700;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==================== VIEW MODE BUTTONS ==================== */
.view-mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-view-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-mode:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-view-mode.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.btn-view-mode i {
    font-size: 20px;
}

/* ==================== OUTPUT AREA ==================== */
.output-card {
    animation: slideUp 0.4s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-actions {
    display: flex;
    gap: 8px;
}

.summary-output {
    min-height: 150px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-color);
}

.summary-output.mode-continuous p {
    margin-bottom: 16px;
}

.summary-output.mode-outline ol {
    padding-left: 24px;
}

.summary-output.mode-outline li {
    margin-bottom: 12px;
}

.summary-output.mode-bullets ul {
    list-style: none;
    padding-left: 0;
}

.summary-output.mode-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.summary-output.mode-bullets li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.highlight {
    background: linear-gradient(120deg, var(--primary-light) 0%, var(--primary-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 85%;
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== SUMMARY STATS ==================== */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.stat-item span {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-color);
}

.stat-item small {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    padding: 24px;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    margin-bottom: 16px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-card h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== HISTORY ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-color);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.history-item:hover {
    box-shadow: var(--shadow-md);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.history-date {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.history-actions {
    display: flex;
    gap: 8px;
}

.history-preview {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 90%;
    text-align: center;
}

@media (min-width: 768px) {
    .toast {
        bottom: 24px;
    }
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--primary-color);
    color: white;
}

.toast.error {
    background: #DC2626;
    color: white;
}

/* ==================== LOADING ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    z-index: 3000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 500;
}

/* ==================== CONTENT PAGES ==================== */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.content-page .subtitle,
.content-page .last-updated {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 32px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.content-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin: 24px 0 12px;
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.content-section code {
    background: var(--surface-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Link Styles */

.content-page a,
.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.content-page a:hover,
.content-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 168, 45, 0.05);
    /* Light primary bg */
    border-radius: 2px;
}

/* ==================== HIGHLIGHT BOXES ==================== */
.highlight-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--highlight-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    margin: 24px 0;
}

.highlight-box i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.highlight-box h3 {
    margin: 0 0 8px 0;
    font-size: var(--font-size-lg);
    color: var(--text-color);
}

.highlight-box p {
    margin: 0;
}

.highlight-box.success {
    background: var(--highlight-success-bg);
    border-left-color: #16A34A;
}

.highlight-box.success i {
    color: #16A34A;
}

.highlight-box.info {
    background: var(--highlight-info-bg);
    border-left-color: #2563EB;
}

.highlight-box.info i {
    color: #2563EB;
}

.contact-info {
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-top: 16px;
}

/* ==================== FAQ ==================== */
.faq-section {
    margin: 40px 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.faq-icon {
    font-size: 18px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-color);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.format-comparison {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

.format-item {
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.format-item h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.app-footer {
    background: var(--surface-color);
    padding: 32px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.app-footer p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.app-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.app-footer a:hover {
    text-decoration: underline;
}

.b20-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.b20-link:hover {
    transform: scale(1.05);
    display: inline-block;
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 767px) {
    .hero h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .input-textarea {
        min-height: 300px;
    }
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--surface-color);
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.modal-subtitle {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: white;
    transition: var(--transition);
}

.btn-social:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-social.whatsapp {
    background-color: #25D366;
}

.btn-social.telegram {
    background-color: #0088cc;
}

.btn-social.twitter {
    background-color: #000000;
}

.btn-social.linkedin {
    background-color: #0077b5;
}

.copy-link-section {
    position: relative;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.copy-link-section label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-color);
}

.copy-input-group {
    display: flex;
    gap: 8px;
}

.copy-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.copy-input-group .btn {
    min-height: 42px;
}