/* Convix - CSS completo com identidade visual do Andrei Fabio */
/* CORRIGIDO: Tooltips funcionando perfeitamente, Preview em cima no mobile, Seletor de emoji, Tamanhos corretos */

/* Reset e Variáveis CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    /* Cores Light Mode */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --accent-color: #0056f9;
    --accent-hover: #0041c2;
    --success-color: #22c55e;
    --warning-color: #fbbf24;
    --neutral-color: #6b7280;
    --neutral-hover: #4b5563;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Componentes */
    --switch-bg: #cbd5e0;
    --switch-active: var(--accent-color);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --code-bg: #1a202c;
    --code-text: #00ff00;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #f7fafc;
    --text-light: #a0aec0;
    --border-color: #2d3748;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --switch-bg: #4a5568;
    --input-bg: #2d3748;
    --input-border: #4a5568;
    --code-bg: #0a0a0a;
}

/* Base */
body {
    font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Previne overflow em todos os elementos */
* {
    max-width: 100%;
    box-sizing: border-box;
}

img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Header */
.header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 24px;
    background-color: var(--switch-bg);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--accent-color);
}

.toggle-circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .toggle-circle {
    transform: translateX(26px);
}

/* Hero */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0 5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
}

.panel-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Config Sections */
.config-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.config-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.config-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.input-field {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 0;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 249, 0.1);
}

.input-field::placeholder {
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Tooltips REMOVIDOS - Labels simples sem "?" */
.label-with-tooltip {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.switch-label-group {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

/* Minimalist Highlight */
.minimalist-highlight {
    background: linear-gradient(135deg, rgba(0, 86, 249, 0.08), rgba(79, 137, 255, 0.08));
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.minimalist-switch .switch-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-color);
}

/* Estados desabilitados quando minimalista ativo */
.minimalist-disabled {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.minimalist-disabled::after {
    content: '🔒 Bloqueado pelo Modo Minimalista';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.minimalist-disabled:hover::after {
    opacity: 1;
}

/* Switches */
.switches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    min-width: 0;
}

.switch-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-bg);
    transition: 0.3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .switch-slider {
    background-color: var(--switch-active);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Color Input */
.color-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: none;
    flex-shrink: 0;
}

/* NOVO: Emoji + Text Groups */
.emoji-text-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.emoji-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.emoji-input {
    width: 50px;
    height: 40px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.emoji-picker-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--input-border);
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.emoji-picker-btn:hover {
    background-color: var(--accent-hover);
}

.emoji-input:focus,
.emoji-picker-btn:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 249, 0.1);
}

/* Emoji Picker Modal */
.emoji-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.emoji-modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.emoji-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 500px;
    animation: slideIn 0.3s ease;
    z-index: 20001;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.emoji-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.emoji-modal-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

.emoji-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.emoji-modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.emoji-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    border: 2px solid transparent;
}

.emoji-item:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Sliders */
.slider-group {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slider-value {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.slider {
    -webkit-compatibility: none;
    width: 100%;
    max-width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--switch-bg);
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Progress Options */
.progress-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.progress-options.show {
    display: block;
}

/* Video ID Display */
.video-id-display {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.video-id-display.show {
    display: block;
}

.minimalist-alert {
    background: rgba(0, 86, 249, 0.1);
    color: var(--accent-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.minimalist-alert.show {
    display: block;
}

/* Output Panel */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toggle-buttons {
    display: flex;
    gap: 0.25rem;
    background: var(--input-bg);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.btn-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-light);
    white-space: nowrap;
}

.btn-toggle.active {
    background: var(--accent-color);
    color: white;
}

/* PREVIEW AREA MODERNIZADO */
.preview-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
    100% { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
}

.preview-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.preview-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.preview-placeholder p {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.preview-hint {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 400;
    margin-top: 1rem;
}

/* Player moderno para preview em tempo real */
.modern-player {
    width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.player-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Thumbnails customizadas em tempo real */
.custom-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #000;
}

.custom-thumbnail:hover {
    transform: scale(1.02);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Botão play moderno */
.play-button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 86, 249, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(0, 86, 249, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 12px 35px rgba(0, 86, 249, 0.6); }
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 86, 249, 0.6);
}

/* Banner Interativo Quadrado Centralizado */
.sound-banner-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 12;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    min-width: 280px;
    min-height: 160px;
    max-width: 85%;
    animation: soundBannerPulse 3s ease-in-out infinite;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sound-banner-area:hover {
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

@keyframes soundBannerPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.02); 
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.sound-banner-icon {
    font-size: 3rem;
    animation: soundIconFloat 2.5s ease-in-out infinite;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

@keyframes soundIconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.sound-banner-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    text-align: center;
    line-height: 1.4;
    margin: 0;
    max-width: 100%;
}

/* Branding na thumbnail */
.thumbnail-branding {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

/* Vinheta moderna */
.modern-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Barra de progresso moderna */
.modern-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 15;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), #4facfe);
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(0, 86, 249, 0.8);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Loading overlay para transições suaves */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tamanhos específicos de player - CORRIGIDOS */
.modern-player.size-standard .player-wrapper {
    aspect-ratio: 16/9 !important;
    max-width: 854px !important;
}

.modern-player.size-vsl .player-wrapper {
    aspect-ratio: 16/6 !important;
    max-width: 680px !important;
}

.modern-player.size-wide .player-wrapper {
    aspect-ratio: 16/8 !important;
    max-width: 1200px !important;
}

.modern-player.size-mobile .player-wrapper {
    aspect-ratio: 4/3 !important;
    max-width: 400px !important;
}

.modern-player.size-fullwidth .player-wrapper {
    aspect-ratio: 16/9 !important;
    max-width: 100% !important;
}

/* Code Area */
.code-area {
    margin-bottom: 1.5rem;
    display: none;
    width: 100%;
    max-width: 100%;
}

.code-area.show {
    display: block;
}

.code-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    background: var(--code-bg);
    color: var(--code-text);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.code-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Stats Area */
.stats-area {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.stats-area.show {
    display: block;
}

.stats-area h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-grid {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-item code {
    background: var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    word-break: break-all;
}

.status-active {
    color: var(--success-color);
    font-weight: 600;
}

.status-inactive {
    color: var(--text-light);
}

/* Help Section */
.help-section {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.help-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.help-section li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.help-section p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Seletor de tamanho do player */
.size-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
}

.size-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.size-label {
    color: var(--text-light);
    font-weight: 500;
}

.size-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* YouTube Limitations Warning */
.limitations-warning {
    margin: 3rem 0;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.05));
    border-radius: 16px;
}

.limitations-warning .warning-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--warning-color);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.limitations-warning .warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.limitations-warning .warning-content h3 {
    color: var(--warning-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.limitations-warning .warning-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.limitations-warning .warning-list {
    list-style: none;
    margin: 1rem 0;
}

.limitations-warning .warning-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.limitations-warning .warning-list li:last-child {
    border-bottom: none;
}

.limitations-warning .warning-list strong {
    color: var(--accent-color);
}

.limitations-warning .warning-note {
    background: rgba(0, 86, 249, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Support Section */
.support-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--accent-color), #4f89ff);
    color: white;
}

.support-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.support-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.support-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.support-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-quote {
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* SEÇÃO DE COMPARAÇÃO MELHORADA E CENTRALIZADA */
.alternatives-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.alternatives-header {
    text-align: center;
    margin-bottom: 3rem;
}

.alternatives-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.alternatives-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de comparação honesta incluindo Convix */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.comparison-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 86, 249, 0.02), rgba(79, 137, 255, 0.02));
}

.comparison-card.free {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.02), rgba(16, 185, 129, 0.02));
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-badge.free {
    background: var(--success-color);
}

.card-badge.brazil {
    background: linear-gradient(135deg, #009c3b, #ffdf00);
    color: #000;
}

.card-header {
    margin-bottom: 1.5rem;
}

.platform-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.platform-subtitle {
    color: var(--text-light);
    font-weight: 600;
}

.card-features {
    margin: 1.5rem 0;
    text-align: left;
    flex: 1;
}

.card-features ul {
    list-style: none;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.card-features li:last-child {
    border-bottom: none;
}

.card-pricing {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--input-bg);
    border-radius: 8px;
}

.price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.price.free {
    color: var(--success-color);
}

.price-note {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

.btn-alternative {
    display: block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-alternative:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 249, 0.3);
}

.btn-alternative.free {
    background: linear-gradient(135deg, var(--success-color), #16a34a);
}

/* NOVO: Botão Neutro para Convix */
.btn-alternative-neutral {
    display: block;
    background: linear-gradient(135deg, var(--neutral-color), var(--neutral-hover));
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-alternative-neutral:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

/* Nota de comparação */
.comparison-note {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    margin-top: 3rem;
}

.comparison-note h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.comparison-item {
    margin-bottom: 1.5rem;
}

.comparison-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.comparison-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* PREVIEW EM CIMA NO MOBILE */
    .content-grid {
        display: flex;
        flex-direction: column;
    }
    
    .output-panel {
        order: 1; /* Preview aparece primeiro */
    }
    
    .config-panel {
        order: 2; /* Configurações aparecem depois */
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .config-section h3 {
        font-size: 1rem;
        word-break: break-word;
        line-height: 1.3;
        flex-wrap: wrap;
    }
    
    .switch-label {
        font-size: 0.85rem;
        word-break: break-word;
        line-height: 1.3;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .switch-item {
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        min-height: auto;
    }
    
    .switch-label-group {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    
    .switch {
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .input-field {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .minimalist-alert {
        font-size: 0.8rem;
        padding: 0.6rem;
        line-height: 1.3;
    }
    
    .video-id-display {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .color-input-group,
    .emoji-text-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .emoji-picker-container {
        align-self: flex-start;
    }
    
    .color-picker {
        width: 100%;
        height: 35px;
    }
    
    .btn-secondary {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .minimalist-highlight {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .minimalist-highlight::before {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        left: 12px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .panel-card {
        padding: 1.2rem;
        overflow-x: hidden;
    }
    
    .output-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toggle-buttons {
        width: 100%;
    }
    
    .btn-toggle {
        flex: 1;
        font-size: 0.85rem;
    }
    
    /* PREVIEW MOBILE OTIMIZADO - Formato correto de vídeo */
    .preview-area {
        min-height: 250px;
        margin: 0 -1.2rem 1.5rem -1.2rem;
        border-radius: 0;
    }
    
    .modern-player {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .player-wrapper {
        aspect-ratio: 16/9; /* Formato padrão de vídeo */
        max-width: 100%;
    }
    
    /* Aplicar aspectos corretos no mobile também */
    .modern-player.size-standard .player-wrapper,
    .modern-player.size-vsl .player-wrapper,
    .modern-player.size-wide .player-wrapper,
    .modern-player.size-fullwidth .player-wrapper {
        max-width: 100% !important;
        aspect-ratio: 16/9 !important;
    }
    
    .modern-player.size-mobile .player-wrapper {
        max-width: 100% !important;
        aspect-ratio: 4/3 !important;
    }
    
    .preview-placeholder {
        padding: 2rem 1rem;
    }
    
    .preview-icon {
        font-size: 4rem;
    }
    
    .preview-placeholder p {
        font-size: 1.1rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Sound banner area no mobile */
    .sound-banner-area {
        min-width: 220px;
        min-height: 140px;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .sound-banner-text {
        font-size: 1rem;
    }
    
    .sound-banner-icon {
        font-size: 2.5rem;
    }
    
    /* Emoji modal responsivo */
    .emoji-modal-content {
        width: 95%;
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .warning-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .support-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .support-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .alternatives-header h2 {
        font-size: 2rem;
    }
    
    .support-content h3 {
        font-size: 2rem;
    }
    
    .size-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .size-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .config-section h3 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .switch-label {
        font-size: 0.8rem;
        max-width: 100%;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .input-field {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
    
    .minimalist-alert {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .video-id-display {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .btn-secondary {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    
    .btn-toggle {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    
    .minimalist-highlight {
        padding: 0.8rem;
    }
    
    .minimalist-highlight::before {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
        left: 8px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .panel-card {
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .preview-area {
        min-height: 200px;
        margin: 0 -1rem 1.5rem -1rem;
    }
    
    .preview-placeholder {
        padding: 1.5rem 1rem;
    }
    
    .preview-icon {
        font-size: 3rem;
    }
    
    .preview-placeholder p {
        font-size: 1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Sound banner area menor no mobile */
    .sound-banner-area {
        min-width: 200px;
        min-height: 120px;
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .sound-banner-text {
        font-size: 0.9rem;
    }
    
    .sound-banner-icon {
        font-size: 2rem;
    }
    
    .emoji-modal-content {
        width: 98%;
        max-width: 320px;
        padding: 1rem;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }
    
    .emoji-item {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .warning-card {
        padding: 1rem;
    }
    
    .comparison-card {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .support-content h3 {
        font-size: 1.8rem;
    }
    
    .support-content p {
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .btn-quote {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* GARANTIR QUE NADA ESTOURE NO MOBILE */
@media (max-width: 768px) {
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .panel-card * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .config-section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .input-field,
    .btn-primary,
    .btn-secondary,
    .btn-toggle {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .container {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .switch-label,
    .form-group label,
    .minimalist-alert,
    .video-id-display {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .config-section h3 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.3;
    }
    
    .switches-grid {
        width: 100%;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .switch-item {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .preview-area,
    .code-area,
    .stats-area,
    .help-section {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .code-textarea {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .slider-group {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .slider {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Ko-fi Widget Styling */
#kofi-wk-btn {
    border-radius: 50px !important;
    background: white !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

#kofi-wk-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}