/* ========================================
   CHATPEIXOTO - ESTILOS PRINCIPAIS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ff8c42 50%, #ffa726 75%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
}

/* Container principal para centralizar o conteúdo */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Melhorar experiência touch */
.vendor-section,
.panel-opener,
.add-note-btn,
.note-action-btn,
.panel-toggle,
.games-opener {
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
    touch-action: manipulation;
}

/* Centralizar o widget do Chatwoot */
#woot-widget-holder {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
}

/* Ocultar botão Chatwoot inicialmente */
#woot-widget-holder .woot-widget-bubble {
    display: none !important;
}

#woot-widget-holder .woot-widget-holder {
    display: none !important;
}

/* Mostrar quando inicializado */
#woot-widget-holder.initialized .woot-widget-bubble {
    display: block !important;
}

#woot-widget-holder.initialized .woot-widget-holder {
    display: block !important;
}

/* Avisos centralizados na tela */

.fixed-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    z-index: 10001;
    cursor: pointer;
    animation: fadeInScale 0.6s ease;
    max-width: 350px;
    text-align: center;
    /* Transição removida para evitar efeitos visuais */
}

.fixed-notification:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 
                0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.fixed-notification .chat-icon {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.footer-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 
                0 6px 20px rgba(0, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    cursor: pointer;
    animation: fadeInUp 0.8s ease;
    /* Transição removida para evitar efeitos visuais */
    max-width: 250px;
    text-align: center;
}

.footer-hint:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 8px 25px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.footer-hint .arrow {
    font-size: 18px;
    animation: bounceRight 1.5s infinite;
}

.header-text {
    position: relative;
    top: 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    text-align: center;
    z-index: 10000;
    animation: fadeInDown 0.8s ease;
    max-width: 500px;
    line-height: 1.4;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 30px auto 20px auto;
    width: 100%;
}

.header-text .highlight {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}


.install-button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    /* Transição removida para evitar efeitos visuais */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.install-button:hover {
    background: white;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Painel lateral do cliente */
.client-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 10002;
    overflow-y: auto;
    overflow-x: hidden;
}

.client-panel.open {
    left: 0;
}

.panel-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
}

.panel-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.panel-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel-content {
    padding: 20px;
    height: calc(100vh - 80px); /* Altura total menos o header */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.vendor-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    /* Transição removida para evitar efeitos visuais */
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para o vendor-section dentro do header-text */
.header-text .vendor-section {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 12px 0;
    padding: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-text .vendor-section:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* Estilos para texto dentro do vendor-section no header */
.header-text .vendor-section h4 {
    color: #333;
    margin: 0 0 6px 0;
    font-size: 15px;
}

.header-text .vendor-section .vendor-name {
    color: #333;
    font-weight: 600;
}

.header-text .vendor-section .vendor-status {
    color: #666;
    font-size: 14px;
}

.header-text .vendor-section .vendor-click-hint {
    color: #ff6b35;
    font-weight: 600;
    font-size: 11px;
    margin-top: 6px;
}

.vendor-section:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.vendor-section h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.vendor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vendor-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.vendor-details {
    flex: 1;
}

.vendor-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.vendor-status {
    font-size: 12px;
    color: #666;
    display: none; /* Elemento removido do HTML */
}

.vendor-status.online {
    color: #28a745;
}

.vendor-click-hint {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    opacity: 0.8;
}

.calculator-section {
    margin-bottom: 20px;
}

.calculator-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.calculator-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    width: 100%;
}

.calculator-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e55a2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.multi-notes-section {
    flex: 1; /* Ocupa todo espaço disponível */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notes-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.add-note-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.add-note-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.notes-container {
    flex: 1; /* Ocupa todo espaço disponível */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.note-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.note-header {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.note-actions {
    display: flex;
    gap: 5px;
}

.note-action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.note-action-btn:hover {
    background: #e9ecef;
    color: #333;
}

.note-content {
    padding: 15px;
}

.note-content textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.note-content textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.note-date {
    font-size: 11px;
    color: #666;
    text-align: right;
    margin-top: 8px;
}

/* Botão para abrir painel */
.panel-opener {
    position: fixed;
    bottom: 230px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e55a2b 0%, #d4440a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 24px;
    box-shadow: 
        0 8px 25px rgba(229, 90, 43, 0.6),
        0 4px 15px rgba(229, 90, 43, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    /* Transição removida para evitar efeitos visuais */
    border: 3px solid #fff;
    position: relative;
}

/* Tooltips removidos - não são mais necessários */


/* Estilo de hover removido para evitar destaque */

/* Tooltips e hover removidos completamente */

/* Botão flutuante da calculadora */
.calculator-opener {
    position: fixed;
    bottom: 160px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e55a2b 0%, #d4440a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 24px;
    box-shadow: 
        0 8px 25px rgba(229, 90, 43, 0.6),
        0 4px 15px rgba(229, 90, 43, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    /* Transição removida para evitar efeitos visuais */
    border: 3px solid #fff;
    position: relative;
}


/* Estilo de hover removido para evitar destaque */

/* Botão flutuante de jogos */
.games-opener {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e55a2b 0%, #d4440a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 24px;
    box-shadow: 
        0 8px 25px rgba(229, 90, 43, 0.6),
        0 4px 15px rgba(229, 90, 43, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    /* Transição removida para evitar efeitos visuais */
    border: 3px solid #fff;
}


/* Estilo de hover removido para evitar destaque */


/* Painel da calculadora */
.calculator-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 10002;
    overflow: hidden; /* Remove scroll do painel principal */
    display: flex;
    flex-direction: column;
}

.calculator-panel.open {
    left: 0;
}

.calculator-panel-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0 14px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.calculator-panel-header h3 {
    margin: 0;
    font-size: 14px;
    line-height: 30px;
}

.calculator-panel-content {
    padding: 20px;
    flex: 1; /* Ocupa espaço restante */
    overflow-y: auto; /* Scroll no painel inteiro */
    overflow-x: hidden; /* Sem scroll horizontal */
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 30px); /* Altura máxima menos header */
}

/* Estilos da calculadora dentro do painel */
.calculator-display {
    margin-bottom: 12px;
    flex-shrink: 0; /* Não encolhe */
}

#calculatorInput {
    width: 100%;
    height: 32px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    padding: 0 10px;
    background: #f8f9fa;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 15px;
    flex-shrink: 0; /* Não encolhe */
}

.calc-btn {
    height: 25px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calc-number {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.calc-number:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.calc-operator {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.calc-operator:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8841a 100%);
    transform: translateY(-1px);
}

.calc-equals {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.calc-equals:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
}

.calc-clear, .calc-delete {
    background: #dc3545;
    color: white;
}

.calc-clear:hover, .calc-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.calc-zero {
    grid-column: span 2;
}

/* Folha de Contas */
.calculator-receipt {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
}

.receipt-new-account {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    flex-shrink: 0; /* Não encolhe */
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.accounts-list {
    margin-bottom: 15px;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.account-item {
    padding: 6px 10px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-item:hover {
    background: #e9ecef;
}

.account-item.active {
    background: #007bff;
    color: white;
}

.account-info {
    flex: 1;
}

.account-title {
    font-weight: 600;
    font-size: 13px;
}

.account-date {
    font-size: 11px;
    opacity: 0.8;
}

.account-actions {
    display: flex;
    gap: 3px;
}

.account-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.account-btn:active {
    transform: scale(0.95);
}

.receipt-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 3px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.receipt-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e55a2b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.receipt-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 150px;
    overflow-y: auto;
}

.receipt-item {
    margin-bottom: 5px;
    color: #333;
}

.receipt-item:last-child {
    margin-bottom: 0;
}

.receipt-operation {
    color: #007bff;
    font-weight: 600;
}

.receipt-result {
    color: #28a745;
    font-weight: 600;
}

/* Cards das Contas */
.accounts-cards {
    margin-top: 15px;
    flex: 1; /* Ocupa todo espaço disponível */
    overflow-y: auto; /* Scroll apenas nos cards */
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px; /* Espaço para scrollbar */
}

.account-card {
    background: linear-gradient(135deg, #fffef0 0%, #fffbea 50%, #fff9e1 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    position: relative;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        transparent 100%);
}

.account-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.account-card.active {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fffbf5 0%, #fff5f2 50%, #ffefea 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.account-card-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-card-title {
    font-size: 14px;
}

.account-card-date {
    font-size: 10px;
    color: #666;
}

.account-card-operations {
    max-height: 120px;
    overflow-y: auto;
}

.account-card-operation {
    margin-bottom: 4px;
    color: #007bff;
    font-weight: 600;
}

.account-card-operation:last-child {
    margin-bottom: 0;
}

.account-delete-btn {
    background: transparent;
    color: #dc3545;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

.account-delete-btn:active {
    transform: scale(0.95);
}

.account-copy-btn {
    background: transparent;
    color: #007bff;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-copy-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.account-copy-btn:active {
    transform: scale(0.95);
}


/* Painel de jogos */
.games-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 10002;
    overflow-y: auto;
    overflow-x: hidden;
}

.games-panel.open {
    left: 0;
}

.games-panel-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Garantir que o painel de jogos tenha fundo branco */
.games-panel {
    background: white !important;
}

.games-panel-content {
    background: white !important;
}

.games-panel-header h3 {
    margin: 0;
    font-size: 18px;
}

.games-panel-content {
    padding: 20px;
}

.game-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    /* Transição removida para evitar efeitos visuais */
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.game-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.game-card h4 svg,
.game-card h4 img {
    margin: 0 !important;
    display: block;
}

.game-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Modal de jogo */
.game-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    max-width: 500px; /* Largura reduzida no desktop */
    max-height: 90vh;
    overflow: auto;
}

.game-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

.game-modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.game-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.game-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-modal-content {
    padding: 20px;
}

.game-canvas {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
    /* Manter proporção original */
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.game-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.game-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e55a2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.game-score {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Jogo da Velha específico */
.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin: 0 auto;
    width: fit-content;
}

.tic-tac-toe-cell {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.2s;
}

.tic-tac-toe-cell:hover:not(.occupied) {
    background: #e9ecef;
    border-color: #ff6b35;
}

.tic-tac-toe-cell.occupied {
    cursor: not-allowed;
}

/* Linha de vitória */
.tic-tac-toe-cell.winning-cell {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6) !important;
    animation: winningPulse 0.6s ease-in-out;
}

@keyframes winningPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(40, 167, 69, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
    }
}

/* Seleção de Modo */
.game-mode-selector {
    margin-bottom: 20px;
    text-align: center;
}

.game-mode-selector h4 {
    margin-bottom: 10px;
    color: #333;
}

.mode-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.mode-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.mode-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e55a2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mode-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.difficulty-selector {
    margin-top: 10px;
}

.difficulty-selector label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.difficulty-selector select {
    padding: 5px 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.difficulty-selector select:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Estatísticas do Jogo */
.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.stat-item {
    text-align: center;
    font-weight: 600;
    color: #333;
}

.stat-item span {
    display: block;
    font-size: 18px;
    color: #ff6b35;
    margin-top: 5px;
}

/* Ranking Display */
.ranking-display {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ranking-display h4 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ranking-item .medal {
    font-size: 20px;
    margin-right: 10px;
}

.ranking-item .player-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.ranking-item .score {
    font-weight: 600;
    color: #ff6b35;
    margin-right: 10px;
}

.ranking-item .result {
    font-size: 18px;
}

/* Animações */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes bounceRight {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(2px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .tic-tac-toe-board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }

    .tic-tac-toe-cell {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .client-panel,
    .games-panel {
        width: 100%;
        left: -100%;
    }
    
    .client-panel.open,
    .games-panel.open {
        left: 0;
    }
    
    /* Painel da calculadora no mobile */
    .calculator-panel {
        width: 100%;
        left: -100%;
    }
    
    .calculator-panel.open {
        left: 0;
    }
    
    
    /* Ajustar tooltips no mobile */
    .button-tooltip {
        left: 50px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .button-tooltip::after {
        border-width: 4px;
    }
    
    /* Ajustar header-text para mobile */
    .header-text {
        top: 0;
        max-width: calc(100vw - 20px);
        padding: 15px 20px;
        font-size: 14px;
        margin: 0 auto 15px auto;
    }
    
    /* Container principal para mobile - card no topo */
    .main-container {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .header-text .highlight {
        font-size: 16px;
    }
    
}


/* Mobile - ajustes para modais de jogos */
@media (max-width: 768px) {
    .game-modal {
        max-width: 100vw; /* Tela cheia */
        max-height: 100vh; /* Limite de altura da viewport */
        width: 100vw;
        height: 100vh; /* Altura total da viewport */
        border-radius: 0; /* Sem bordas arredondadas em tela cheia */
        top: 0;
        left: 0;
        transform: none; /* Sem centralização, ocupa tudo */
        overflow: hidden; /* Controlar overflow no modal */
        display: flex;
        flex-direction: column; /* Layout flexível */
    }
    
    .game-modal-header {
        padding: 8px 12px; /* Header menor */
        border-radius: 0; /* Sem bordas arredondadas */
        flex-shrink: 0; /* Header não encolhe */
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .game-modal-header h3 {
        font-size: 14px; /* Título menor */
    }
    
    .game-modal-content {
        padding: 10px;
        flex: 1; /* Ocupa espaço restante */
        overflow-y: auto; /* Scroll apenas no conteúdo */
        overflow-x: hidden; /* Sem scroll horizontal */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
        display: flex;
        flex-direction: column;
    }
    
    .game-canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 70vh; /* Ocupar 70% da altura da tela */
        flex-shrink: 0; /* Canvas não encolhe */
        /* Manter proporção original */
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .game-score {
        padding: 6px 8px !important; /* Display de pontuação menor */
        font-size: 12px !important; /* Fonte menor */
        margin-bottom: 10px !important;
        flex-shrink: 0; /* Score não encolhe */
    }
    
    .game-btn {
        padding: 8px 12px !important; /* Botões menores */
        font-size: 12px !important;
    }
    
    .touch-btn {
        padding: 8px !important; /* Botões de toque menores */
        font-size: 16px !important;
    }
    
    /* Garantir que controles não sejam cortados */
    .game-controls {
        flex-shrink: 0; /* Controles não encolhem */
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    /* Instruções dos jogos com scroll */
    .game-instructions {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }
    
    /* Canvas deve ocupar máximo espaço disponível */
    .game-canvas {
        width: 100% !important;
        min-height: 50vh; /* Altura mínima para garantir visibilidade */
    }
    
    /* Container do canvas para otimizar espaço */
    .game-canvas-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Mobile pequeno - ajustes adicionais */
@media (max-width: 480px) {
    /* Reduzir tamanho dos botões no mobile pequeno */
    .panel-opener,
    .calculator-opener,
    .games-opener {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Ajustar posições para telas pequenas */
    .panel-opener {
        bottom: 200px;
    }
    
    .calculator-opener {
        bottom: 130px;
    }
    
    .games-opener {
        bottom: 60px;
    }
    
    /* Garantir que botões sempre fiquem visíveis */
    .panel-opener,
    .calculator-opener,
    .games-opener {
        z-index: 10005 !important;
    }
    
    /* Ajustes específicos para jogos em telas muito pequenas */
    .game-modal-content {
        padding: 8px; /* Padding menor */
    }
    
    .game-canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 75vh; /* Ocupar 75% da altura da tela */
        /* Manter proporção original */
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .game-controls {
        flex-wrap: wrap; /* Quebrar linha se necessário */
        gap: 5px; /* Espaçamento menor */
    }
    
    .game-btn {
        padding: 6px 10px !important; /* Botões ainda menores */
        font-size: 11px !important;
        flex: 1; /* Botões se expandem igualmente */
        min-width: 0; /* Permitir que encolham */
    }
    
    /* Tabuleiro do jogo da velha menor */
    .tic-tac-toe-board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 3px;
    }
    
    .tic-tac-toe-cell {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
}


/* ========================================
   ÍCONE DA CALCULADORA (PNG)
   ======================================== */

/* ========================================
   ÍCONE DE TETRIS
   ======================================== */
.tetris-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tetris-block {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.tetris-header-icon {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.tetris-header-icon .tetris-block {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.tetris-card-icon {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.tetris-card-icon .tetris-block {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.tetris-card-icon .tetris-block.empty,
.tetris-header-icon .tetris-block.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ========================================
   ANIMAÇÃO DE BÔNUS DO EMOJITRIS
   ======================================== */
@keyframes bonusPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

@keyframes superBonusPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-3deg);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.2) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
        opacity: 0;
    }
}

@keyframes skullEffectPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-3deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
        opacity: 0;
    }
}

@keyframes bombExplosionPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.4) rotate(10deg);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-5deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.3) rotate(3deg);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-2deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
        opacity: 0;
    }
}

@keyframes gameRestoredPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* ========================================
   DESKTOP - BOTÕES SE MOVEM COM PAINÉIS
   ======================================== */
@media (min-width: 769px) {
    .panel-opener {
        left: 20px;
        bottom: 230px;
        position: fixed;
        transition: left 0.3s ease;
    }
    
    .calculator-opener {
        left: 20px;
        bottom: 160px;
        position: fixed;
        transition: left 0.3s ease;
    }
    
    .games-opener {
        left: 20px;
        bottom: 90px;
        position: fixed;
        transition: left 0.3s ease;
    }
    
    /* Quando algum painel está aberto - mover todos os botões */
    .panel-opener.panel-shifted,
    .calculator-opener.panel-shifted,
    .games-opener.panel-shifted {
        left: 370px; /* 350px do painel + 20px de espaçamento */
    }
}

/* ========================================
   MOBILE - BOTÕES OCULTAM/EXPANDEM
   ======================================== */
@media (max-width: 768px) {
    .panel-opener,
    .calculator-opener,
    .games-opener {
        left: 20px;
        position: fixed;
        /* Transição removida para evitar efeitos visuais */
    }
    
    .panel-opener {
        bottom: 230px;
    }
    
    .calculator-opener {
        bottom: 160px;
    }
    
    .games-opener {
        bottom: 90px;
    }
    
    /* Mobile - botões ficam 50% visíveis quando painel aberto */
    .panel-open-mobile .panel-opener,
    .panel-open-mobile .calculator-opener,
    .panel-open-mobile .games-opener {
        left: -30px; /* Mostra 50% (30px de 60px) */
        /* Transição removida para evitar efeitos visuais */
    }
    
    /* Hover para voltar à posição original - apenas no desktop */
    /* Estilos de hover mobile removidos */
    
    /* Prevenir movimento instável no mobile */
    .panel-open-mobile .panel-opener,
    .panel-open-mobile .calculator-opener,
    .panel-open-mobile .games-opener {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Reduzir espaçamentos verticais no card inicial */
    .header-text {
        top: 15px;
        padding: 15px 20px;
        max-width: 98%;
        width: calc(100% - 20px);
    }
    
    .header-text .highlight {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .chat-icon {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .header-text .vendor-section {
        margin: 10px 0;
        padding: 12px;
    }
    
    .header-text .vendor-section h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .vendor-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .vendor-name {
        font-size: 14px;
    }
    
    .vendor-status {
        font-size: 12px;
    }
    
    .vendor-click-hint {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .install-button {
        padding: 10px 16px;
        font-size: 13px;
        margin-top: 10px;
    }
}

/* ========================================
   TELAS MUITO PEQUENAS (< 400px)
   ======================================== */
@media (max-width: 400px) {
    body {
        padding: 8px;
    }
    
    .header-text {
        top: 10px;
        padding: 12px 15px;
        font-size: 13px;
        max-width: 99%;
        width: calc(100% - 16px);
    }
    
    .header-text .highlight {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .chat-icon {
        font-size: 30px !important;
        margin-bottom: 8px !important;
    }
    
    .header-text .vendor-section {
        margin: 8px 0;
        padding: 10px;
    }
    
    .header-text .vendor-section h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .vendor-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .vendor-name {
        font-size: 13px;
    }
    
    .vendor-status {
        font-size: 11px;
    }
    
    .vendor-click-hint {
        font-size: 10px;
        margin-top: 5px;
    }
    
    .install-button {
        padding: 8px 14px;
        font-size: 12px;
        margin-top: 8px;
    }
    
    /* Ajustes específicos para jogos em telas extremamente pequenas */
    .game-modal-content {
        padding: 5px; /* Padding mínimo */
    }
    
    .game-canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 80vh; /* Ocupar 80% da altura da tela */
        /* Manter proporção original */
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .game-controls {
        gap: 3px; /* Espaçamento mínimo */
        margin: 5px 0;
    }
    
    .game-btn {
        padding: 4px 8px !important; /* Botões mínimos */
        font-size: 10px !important;
        min-width: 60px; /* Largura mínima */
    }
    
    /* Tabuleiro do jogo da velha ainda menor */
    .tic-tac-toe-board {
        grid-template-columns: repeat(3, 70px);
        grid-template-rows: repeat(3, 70px);
        gap: 2px;
    }
    
    .tic-tac-toe-cell {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    /* Instruções dos jogos com fonte menor */
    .game-instructions {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* Score e controles menores */
    .game-score {
        font-size: 14px !important;
        padding: 4px 6px !important;
    }
    
    .game-modal-header h3 {
        font-size: 12px;
    }
    
    .game-modal-header {
        padding: 6px 8px;
    }
}

/* ========================================
   BANNER DE CONSENTIMENTO LGPD
   ======================================== */

.consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #ff6b35;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeInScale 0.5s ease-out;
}

.consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.consent-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.consent-text {
    flex: 1;
}

.consent-text h3 {
    color: #ff6b35;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.consent-text p {
    color: #bdc3c7;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.consent-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consent-btn.accept {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.consent-btn.accept:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.consent-btn.reject {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.consent-btn.reject:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.consent-actions .privacy-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.consent-actions .privacy-link:hover {
    color: #ff8c5a;
    border-bottom-color: #ff8c5a;
}

@keyframes fadeInScale {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Overlay de fundo para o banner - separado do banner */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    pointer-events: none; /* Permite cliques passarem pelo overlay */
}

/* Ajustar body quando banner está visível */
body.consent-banner-visible {
    overflow: hidden; /* Previne scroll quando banner está aberto */
}

/* Responsivo para banner */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .consent-actions {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .consent-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .consent-text h3 {
        font-size: 16px;
    }
    
    .consent-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 15px;
    }
    
    .consent-text h3 {
        font-size: 15px;
    }
    
    .consent-text p {
        font-size: 12px;
    }
    
    .consent-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* ========================================
   RODAPÉ PRINCIPAL
   ======================================== */

.main-footer {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 20px;
    border-top: 2px solid #ff6b35;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr; /* Logo left (narrow), text right */
    align-items: center;
    gap: 20px;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.footer-text p {
    color: #bdc3c7;
    font-size: 11px;
    margin: 0;
    line-height: 1.2;
}

.privacy-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: #f7931e;
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    text-align: left;
    flex-shrink: 0;
}

.pxt-logo {
    height: 25px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.pxt-logo:hover {
    opacity: 1;
}

/* Responsividade do rodapé */
@media (max-width: 768px) {
    .main-footer {
        padding: 10px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }
    
    .footer-text p {
        font-size: 10px;
        line-height: 1.1;
    }
    
    .privacy-link {
        font-size: 10px;
    }
    
    .pxt-logo {
        height: 22px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 8px 10px;
    }
    
    .footer-content {
        gap: 10px;
    }
    
    .footer-text p {
        font-size: 9px;
        line-height: 1.1;
    }
    
    .privacy-link {
        font-size: 9px;
    }
    
    .pxt-logo {
        height: 18px;
    }
}

/* ========================================
   SISTEMA DE BUSCA DE ATENDENTES
   ======================================== */

/* Container principal da busca */
.agent-search-container {
    max-width: 600px;
    width: 100%;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* Caixa de busca */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}

#agentSearch {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ff6b35;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

#agentSearch:focus {
    border-color: #f7931e;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    transform: scale(1.02);
}

#searchButton {
    padding: 15px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

#searchButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

#searchButton:hover::before {
    left: 100%;
}

#searchButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 8px 25px rgba(0, 0, 0, 0.2);
}

#searchButton:active {
    transform: translateY(0);
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Resultados da busca */
.search-results {
    margin-bottom: 30px;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #666;
}

.no-results p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* Cards de agentes */
.agent-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #ff6b35;
}

.agent-card:active {
    transform: translateY(-1px);
}

.agent-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    align-self: flex-start;
    overflow: hidden; /* Para garantir que a imagem respeite o border-radius */
    position: relative;
}

/* Quando há imagem, remover o background */
.agent-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agent-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.agent-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.agent-action {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(255, 107, 53, 0.3);
}

.agent-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Opção genérica */
.generic-option {
    margin-top: 20px;
}

.generic-option .agent-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(255, 107, 53, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.generic-option .agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.generic-option .agent-card:hover::before {
    left: 100%;
}

.generic-option .agent-avatar {
    margin: 0 auto;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.generic-option .agent-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.2) 100%);
}

.generic-option .agent-info p {
    color: white;
    font-size: 14px;
}

/* Responsividade para busca */
@media (max-width: 768px) {
    .agent-search-container {
        padding: 0 15px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 15px;
    }
    
    #agentSearch {
        width: 100%;
    }
    
    #searchButton {
        width: 100%;
        padding: 15px;
    }
    
    .agent-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .agent-info {
        text-align: center;
    }
}

/* Animações para busca */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-card {
    animation: fadeInUp 0.5s ease;
}

.agent-card:nth-child(1) { animation-delay: 0.1s; }
.agent-card:nth-child(2) { animation-delay: 0.2s; }
.agent-card:nth-child(3) { animation-delay: 0.3s; }
.agent-card:nth-child(4) { animation-delay: 0.4s; }
.agent-card:nth-child(5) { animation-delay: 0.5s; }

/* Estados especiais */
.searching .agent-card {
    opacity: 0.6;
    pointer-events: none;
}

/* Footer hint - oculto inicialmente */
.footer-hint {
    display: none !important;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #2e7d32;
}

/* ========================================
   MODAIS DE JOGOS
   ======================================== */

.game-modal {
    background: white;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid #ff6b35;
}

.game-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Estilos do canvas movidos para arquivos específicos de cada jogo */

.game-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow-x: auto;
    padding: 5px;
}

/* Estilos dos botões movidos para arquivos específicos de cada jogo */

.game-info {
    text-align: center;
    color: #333;
    flex-shrink: 0;
}

/* Ajustar largura dos displays de ranking igual ao canvas */
.game-ranking,
.game-score,
.top-3,
.ranking-display,
#tetrisRankingDisplay {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Desktop - Largura padrão dos modais */
@media (min-width: 769px) {
    .game-modal {
        width: 450px;
        margin: 0 auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .game-modal-content {
        padding: 30px;
        gap: 25px;
    }
    
    /* Canvas específico movido para arquivos de cada jogo */
}

/* Responsivo para jogos */
@media (max-width: 768px) {
    .game-modal-content {
        padding: 10px 15px 30px 15px;
        gap: 15px;
    }
    
    .game-canvas {
        height: 60vw;
        width: 100%;
        min-height: 300px;
    }
    
    .game-controls {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .game-modal-content {
        padding: 8px 10px 25px 10px;
        gap: 10px;
    }
    
    .game-canvas {
        /* Sem limites - JavaScript controla o tamanho */
    }
    
    .game-modal-header {
        padding: 10px 15px;
    }
    
    .game-controls {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px;
    }
}

@media (max-width: 400px) {
    .game-canvas {
        height: 45vw;
    }
}
