/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Caveat Brush', cursive;
    position: relative;
}

body {
    overflow: hidden;
    user-select: none;
    background-color: #fff;
    font-size: 18px; /* Tamanho base maior */
}

/* Configurações de fonte responsiva */
html {
    font-size: 18px; /* Base para rem */
}

@media (max-width: 480px) {
    html { font-size: 16px; }
}

@media (min-width: 768px) {
    html { font-size: 20px; }
}

@media (min-width: 1024px) {
    html { font-size: 22px; }
}

@media (min-width: 1440px) {
    html { font-size: 24px; }
}

/* ========================================
   SCROLLBARS PERSONALIZADOS
   ======================================== */

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #fff3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    border-radius: 4px;
    border: 1px solid #ff8c42;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b1a, #e55a00);
    border-color: #ff6b1a;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #e55a00, #cc4a00);
    border-color: #e55a00;
}

::-webkit-scrollbar-corner {
    background: #fff3;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff8c42 #fff3;
}

/* Scrollbar para elementos específicos */
.shop-items-container::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.shop-items-container::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.overflow-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    border-radius: 3px;
}

.shop-items-container::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* Container do Canvas - Ocupa toda a tela */
.canvas-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Imagem de fundo sobreposta */
.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
    pointer-events: none;
    user-select: none;
}

/* Canvas de desenho */
#drawingCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="%230000ff" stroke-width="2"/></svg>') 10 10, auto;
    z-index: 2;
    background: transparent;
}

/* Cursor específico para diferentes ferramentas */
#drawingCanvas.brush-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="%230000ff" stroke-width="2"/></svg>') 10 10, auto;
}

#drawingCanvas.eraser-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="%23ff0000" stroke-width="2"/></svg>') 10 10, auto;
}

/* Botão flutuante do menu principal */
.floating-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 96px;
    height: 96px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.menu-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
}

.floating-menu-btn:hover .menu-icon {
    transform: rotate(-540deg);
}

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

/* Botão flutuante de controles */
.floating-control-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 96px;
    height: 96px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.control-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.floating-control-btn:hover {
    transform: scale(1.1);
}

.floating-control-btn:hover .control-icon {
    transform: rotate(10deg);
}

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

/* Botão flutuante de exportar */
.floating-export-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 84px;
    height: 84px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.export-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.floating-export-btn:hover {
    transform: scale(1.1);
}

.floating-export-btn:hover .export-icon {
    transform: rotate(10deg);
}

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

/* Botão flutuante de limpar */
.floating-trash-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 84px;
    height: 84px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}



.trash-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.floating-trash-btn:hover {
    transform: scale(1.1);
}

.floating-trash-btn:hover .trash-icon {
    transform: rotate(-10deg);
}

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

/* Modal de controles - Estojo de Canetinhas */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content.pencil-case {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 3px solid #e67e00;
    position: relative;
}

.modal-content.pencil-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    pointer-events: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal header removido */

/* Botão de fechar removido */

/* Tooltip de Confirmação */
.confirmation-tooltip {
    position: fixed;
    bottom: 120px;
    left: 20px;
    z-index: 1500;
    display: none;
    animation: tooltipSlideIn 0.3s ease-out;
}

.confirmation-tooltip.active {
    display: block;
}

.tooltip-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e9ecef;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.tooltip-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.confirm-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #dee2e6;
}

.confirm-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.confirm-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.confirm-btn:hover .confirm-icon {
    transform: scale(1.1);
}

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

/* Grupos de controles */
.control-group {
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem; /* Aumentado de 0.9rem */
}

/* Inputs e controles */
input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #0006;
    outline: none;
    margin-right: 10px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 20px;
    height: 50px;
    border-radius: 50%;
    background: #ff8c00;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 50px;
    border-radius: 50%;
    background: #ff8c00;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

select {
    width: 100%;
    padding: 12px 16px; /* Aumentado padding */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1.1rem; /* Aumentado de 0.9rem */
    cursor: pointer;
    transition: border-color 0.2s ease;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

/* Botões */
.btn {
    padding: 12px 20px; /* Aumentado padding */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem; /* Aumentado de 0.9rem */
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c00, #ff7f00 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-small {
    padding: 8px 16px; /* Aumentado padding */
    font-size: 1rem; /* Aumentado de 0.8rem */
    min-width: 50px; /* Aumentado min-width */
}

.btn-full-width {
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
}

/* Estilos para botões com ícones */
.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.btn-secondary .btn-icon {
    filter: none; /* Cores originais para botões secundários */
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

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



/* Grid do Estojo de Canetinhas */
.pencil-case-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-around;
    padding: 10px;
    background: linear-gradient(145deg, #f5f5f522, #e8e8e822);
    border-radius: 12px;
    margin: 20px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8);
}

.pencil-case-grid::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 14px;
    z-index: -1;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Item do estojo (canetinha ou borracha) */
.pencil-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 2px 0;
    background: linear-gradient(145deg, #ffffff22, #f8f9fa22);
    border: 2px solid #e67e00;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.pencil-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.pencil-item.selected {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-color: #e67e00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Imagem da canetinha/borracha */
.pencil-image {
    width: 40px;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pencil-item:hover .pencil-image {
    transform: scale(1.1);
}

.pencil-item.eraser .pencil-image {
    width: 200px;
    height: auto;
}

/* Nome da canetinha - removido para interface universal */

/* Controles de tamanho removidos - tamanho fixo no médio */

/* Conteúdo do menu principal */
.main-menu-content {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Botão de opção do menu */
.menu-option-btn {
    padding: 25px;
    border: 2px solid #e67e00;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff22, #f8f9fa22);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.menu-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
    border-color: #ff8c00;
}

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

.menu-option-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.menu-option-btn:hover .menu-option-icon {
    transform: scale(1.1);
}

/* Grid de Seleção de Imagens */
.image-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-around;
    padding: 10px;
    background: linear-gradient(145deg, #f5f5f522, #e8e8e822);
    border-radius: 12px;
    margin: 20px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8);
}

.image-selection-grid::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 14px;
    z-index: -1;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Item de seleção de imagem */
.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 2px 0;
    background: #fff;
    border: 2px solid #e67e00;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.image-item.selected {
    border-color: #e67e00;
    color: white;
    box-shadow: 
        0 4px 16px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Thumbnail da imagem */
.image-thumbnail {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.image-item:hover .image-thumbnail {
    transform: scale(1.1);
}

/* Responsividade - Telas grandes */
@media (min-width: 1440px) {
    .floating-menu-btn {
        width: 120px;
        height: 120px;
        top: 25px;
        left: 25px;
    }
    
    .floating-control-btn {
        width: 120px;
        height: 120px;
        top: 25px;
        right: 25px;
    }
    
    .floating-export-btn {
        width: 100px;
        height: 100px;
        bottom: 25px;
        right: 25px;
    }
    
    .floating-trash-btn {
        width: 100px;
        height: 100px;
        bottom: 25px;
        left: 25px;
    }
    
    .modal-content {
        max-width: 80%;
    }
}

/* Responsividade - Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-menu-btn {
        width: 100px;
        height: 100px;
        top: 20px;
        left: 20px;
    }
    
    .floating-control-btn {
        width: 100px;
        height: 100px;
        top: 20px;
        right: 20px;
    }
    
    .floating-export-btn {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-trash-btn {
        width: 80px;
        height: 80px;
        bottom: 20px;
        left: 20px;
    }
}

/* Responsividade - Tablets pequenos */
@media (max-width: 768px) {
    .floating-menu-btn {
        width: 88px;
        height: 88px;
        top: 15px;
        left: 15px;
    }
    
    .floating-control-btn {
        width: 88px;
        height: 88px;
        top: 15px;
        right: 15px;
    }
    
    .floating-export-btn {
        width: 66px;
        height: 66px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-trash-btn {
        width: 66px;
        height: 66px;
        bottom: 15px;
        left: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    /* Melhorias para loja em tablets */
    .shop-content h2 img {
        height: 120px;
        margin-top: -120px;
    }
    
    .shop-tab {
        padding: 10px 18px;
        font-size: 1.3rem;
    }
    
    .shop-items {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 14px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .control-group {
        margin-bottom: 16px;
    }
    
    .brush-size-buttons {
        gap: 6px;
    }
    
    .brush-size-btn {
        padding: 8px 12px; /* Aumentado padding */
        font-size: 1rem; /* Aumentado de 0.8rem */
        min-width: 60px; /* Aumentado min-width */
    }
    
    .btn-icon {
        height: 42px;
    }
}

/* Responsividade - Mobile */
@media (max-width: 480px) {
    .floating-menu-btn {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
    }
    
    .floating-control-btn {
        width: 80px;
        height: 80px;
        top: 10px;
        right: 10px;
    }
    
    .floating-export-btn {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
    
    .floating-trash-btn {
        width: 60px;
        height: 60px;
        bottom: 10px;
        left: 10px;
    }
    
    .modal-content {
        width: 98%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
        padding: 14px 20px; /* Aumentado padding para mobile */
        font-size: 1.2rem; /* Aumentado para mobile */
    }
    
    .btn-icon {
        height: 44px;
    }
    
    .form-input {
        padding: 16px 18px; /* Aumentado padding para mobile */
        font-size: 1.2rem; /* Aumentado para mobile */
    }
    
    .custom-checkbox-label {
        font-size: 1.2rem; /* Aumentado para mobile */
    }
    
    .coins-display {
        font-size: 1.4rem; /* Aumentado para mobile */
    }
    
    .login-section h2,
    .user-dashboard h2 {
        font-size: 2rem; /* Aumentado para mobile */
    }
}

/* Responsividade - Telas muito pequenas */
@media (max-width: 360px) {
    .floating-menu-btn {
        width: 70px;
        height: 70px;
        top: 8px;
        left: 8px;
    }
    
    .floating-control-btn {
        width: 70px;
        height: 70px;
        top: 8px;
        right: 8px;
    }
    
    .floating-export-btn {
        width: 55px;
        height: 55px;
        bottom: 8px;
        right: 8px;
    }
    
    .floating-trash-btn {
        width: 55px;
        height: 55px;
        bottom: 8px;
        left: 8px;
    }
    
    .modal-content {
        width: 99%;
        margin: 5px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 1.1rem;
    }
    
    .btn-icon {
        height: 40px;
    }
}

/* Responsividade - Telas extra grandes */
@media (min-width: 1920px) {
    .floating-menu-btn {
        width: 140px;
        height: 140px;
        top: 30px;
        left: 30px;
    }
    
    .floating-control-btn {
        width: 140px;
        height: 140px;
        top: 30px;
        right: 30px;
    }
    
    .floating-export-btn {
        width: 120px;
        height: 120px;
        bottom: 30px;
        right: 30px;
    }
    
    .floating-trash-btn {
        width: 120px;
        height: 120px;
        bottom: 30px;
        left: 30px;
    }
    
    .modal-content {
        max-width: 70%;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 1.2rem;
    }
    
    .form-input {
        padding: 18px 20px;
        font-size: 1.2rem;
    }
    
    .btn-icon {
        height: 52px;
    }
}

/* Animações suaves */
* {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Modal de Usuário */
.user-modal {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 3px solid #e67e00;
    position: relative;
}

.user-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    pointer-events: none;
}

.user-content {
    padding: 20px;
    color: white;
}

.login-section h2,
.user-dashboard h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem; /* Aumentado tamanho */
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 14px 16px; /* Aumentado padding */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem; /* Aumentado de 16px */
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.coins-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem; /* Aumentado de 18px */
    font-weight: bold;
    margin: 10px 0;
}

.coin-icon {
    width: 24px;
    height: 24px;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botão Cadeado */
.btn {
    position: relative; /* Garantir que o botão pai tenha position relative */
}

.lock-btn {
    position: absolute;
    right: -18px;
    bottom: -10px;
    width: 48px;
    height: 65px;
    cursor: pointer;
    display: block;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.lock-btn:hover {
    transform: scale(1.4);
}

.lock-btn.locked {
    background: url('cad-fechado.png'), radial-gradient(#FFFC 0%, #FFF0 80%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lock-btn:not(.locked) {
    background: url('cad-aberto.png'), radial-gradient(#FFFC 0%, #FFF0 80%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Desabilitar botões quando trancados */
.btn.locked {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Modal de Configurações */
.config-modal {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 3px solid #e67e00;
    position: relative;
}

.config-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    pointer-events: none;
}

.config-content {
    padding: 20px;
    color: white;
}

.config-content h2 {
    position: relative;
    text-align: left;
    margin-bottom: 30px;
    color: white;
}

.config-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.config-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.config-close-btn:hover {
    transform: scale(1.1);
}

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

.config-close-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}


.config-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.config-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(145deg, #f5f5f522, #e8e8e822);
    border-radius: 12px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8);
    border: 2px solid #e67e00;
    min-width: 100%;
}

.config-control::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 14px;
    z-index: -1;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Slider de Tamanho do Pincel */
.brush-size-slider-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.brush-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    background: radial-gradient(#FFFC 0%, #FFF0 80%);
}

.brush-preview {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.3;
}

#brushPreviewCanvas {
    border: none;
    border-radius: 50%;
    background: transparent;
}

.brush-size-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(145deg, #ffffff22, #e8e8e822);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #e67e00;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8);
}

.brush-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid #e67e00;
    transition: all 0.3s ease;
}

.brush-size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(255, 140, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brush-size-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    cursor: pointer;
    border: 2px solid #e67e00;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Controles de Áudio */
.audio-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.volume-slider-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

.volume-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
}

.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(145deg, #ffffff22, #e8e8e822);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #e67e00;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid #e67e00;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(255, 140, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    cursor: pointer;
    border: 2px solid #e67e00;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.volume-value {
    min-width: 40px;
    text-align: center;
    color: #fffa;
    font-size: 1.5em;
    background: rgba(255, 140, 0, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    flex-shrink: 0;
}



/* Modal de Loja */
.shop-modal {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 3px solid #e67e00;
    position: relative;
}

.shop-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    pointer-events: none;
}

.shop-content {
    padding: 20px;
    color: white;
}

.shop-content, .verification-body {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.shop-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.shop-content h2 img {
    margin-top: -150px;
    height: 150px;
}
.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.shop-tab {
    padding: 10px 20px;
    border: 2px solid #e67e00;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff22, #f8f9fa22);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5em;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.shop-tab.active,
.shop-tab:hover {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.shop-items.category-pens {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.shop-items.category-kits {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.shop-item {
    background: linear-gradient(145deg, #ffffff22, #f8f9fa22);
    border: 2px solid #e67e00;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
    border-color: #ff8c00;
}

.shop-item.owned {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

.shop-item img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-pens .shop-item img {
    max-height: 180px;
}

.category-images .shop-item img {
    background: #FFF;
}

.shop-item h4 {
    margin-bottom: 5px;
    color: white;
}

.shop-item .price {
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 2px 2px 0 #333, 0px 2px 0 #333, 2px 0px 0 #333, -2px -2px 0 #333, 0px -2px 0 #333, -2px 0px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 0 0 15px #333;
}

.shop-item .owned-label {
    color: #2ecc71;
    font-weight: bold;
    text-shadow: 2px 2px 0 #333, 0px 2px 0 #333, 2px 0px 0 #333, -2px -2px 0 #333, 0px -2px 0 #333, -2px 0px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 0 0 15px #333;
}

/* Estilos específicos para Kits */
.kit-description {
    font-size: 0.9em;
    color: #666;
    margin: 0.5rem 0;
    font-style: italic;
}

.kit-items-count {
    font-size: 0.8em;
    color: #007bff;
    font-weight: bold;
    margin: 0.25rem 0;
}

/* Modal de Compra de Moedas */
.coins-modal {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    border: 3px solid #e67e00;
    position: relative;
}

.coins-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    pointer-events: none;
}

.coins-content {
    padding: 20px;
    color: white;
}

.coins-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.coins-packages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coin-package {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, #ffffff22, #f8f9fa22);
    border: 2px solid #e67e00;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

.coin-package:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.3);
    border-color: #ff8c00;
}

.package-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.package-info h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #444;
}

.package-info p {
    font-size: 18px;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 5px;
}

.bonus {
    font-size: 12px;
    color: #FF0;
    font-weight: bold;
    text-shadow: 1px 1px 0 #333, 0px 1px 0 #333, 1px 0px 0 #333, -1px -1px 0 #333, 0px -1px 0 #333, -1px 0px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 0 0 5px #333;
}

/* Responsividade para a loja */
@media (max-width: 480px) {
    .shop-items {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .shop-content h2 img {
        height: 100px;
        margin-top: -100px;
    }
    
    .shop-tab {
        padding: 8px 16px;
        font-size: 1.2rem;
    }
    
    .shop-item {
        padding: 12px;
    }
    
    .shop-item h4 {
        font-size: 1rem;
    }
    
    .shop-item .price {
        font-size: 0.9rem;
    }
    
    .coins-packages {
        gap: 10px;
    }
    
    .coin-package {
        padding: 10px;
    }
}

/* Scrollbar personalizada para o modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal de Seleção de Método de Pagamento */
.payment-method-modal {
    position: fixed;
    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: 10000;
}

.payment-method-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.payment-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.option-icon {
    font-size: 24px;
    margin-right: 16px;
    min-width: 24px;
}

.option-info {
    flex: 1;
}

.option-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

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

.option-badge {
    font-size: 12px;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.option-arrow {
    font-size: 18px;
    color: #999;
    margin-left: 8px;
}

.payment-summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 0 20px 20px 20px;
}

.payment-summary p {
    margin: 4px 0;
    font-size: 14px;
}

.payment-summary strong {
    color: #333;
}

/* Estilos para o modal de moedas atualizado */
.coins-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.coins-info p {
    color: #666;
    margin-bottom: 10px;
}

.current-balance {
    background: #f8f9fa33;
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    font-size: 1.2em;
}

.coins-amount {
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 2px 2px 0 #333, 0px 2px 0 #333, 2px 0px 0 #333, -2px -2px 0 #333, 0px -2px 0 #333, -2px 0px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 0 0 15px #333;
    font-size: 1.2em;
    padding: 0 6px;
}

.coins-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.package-info .price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 4px;
    color: #f1c40f;
    text-shadow: 2px 2px 0 #333, 0px 2px 0 #333, 2px 0px 0 #333, -2px -2px 0 #333, 0px -2px 0 #333, -2px 0px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 0 0 15px #333;
}

.package-info .coins {
    text-shadow: 1px 1px 0 #333, 0px 1px 0 #333, 1px 0px 0 #333, -1px -1px 0 #333, 0px -1px 0 #333, -1px 0px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 0 0 5px #333;
}

.package-info .description {
    font-size: 1em;
    color: #666;
    margin: 0;
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #28a745;
    color: #FF0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.payment-methods {
    background: #f8f9fa33;
    padding: 16px;
    border-radius: 8px;
    margin: 0 20px 20px 20px;
    text-align: center;
}

.payment-methods h4 {
    margin-bottom: 12px;
    color: #333;
    font-size: 14px;
}

.method-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.method-icon {
    font-size: 24px;
    padding: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.method-note {
    font-size: 12px;
    color: #666;
    margin: 0 !important;
}

/* Responsividade para modal de pagamento */
@media (max-width: 768px) {
    .payment-method-content {
        width: 95%;
        max-width: 350px;
    }
    
    .payment-options {
        padding: 15px;
    }
    
    .payment-option {
        padding: 12px;
    }
    
    .option-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .option-info h3 {
        font-size: 14px;
    }
    
    .option-info p {
        font-size: 12px;
    }
    
    .coins-packages {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .payment-methods {
        margin: 0 15px 15px 15px;
        padding: 12px;
    }
}

/* Modal de Registro */
.register-modal {
    max-width: 500px;
    width: 90%;
}

.register-content h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.register-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.register-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.register-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.register-close-icon {
    width: 20px;
    height: 20px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.terms-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Estilos antigos removidos - agora usando .custom-checkbox-label */

.terms-link {
    color: #d9ff47;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(217, 255, 71, 0.6);
    text-decoration: underline;
}

/* Estilos específicos para links dentro dos checkboxes customizados */
.custom-checkbox-label .terms-link {
    color: #d9ff47;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-checkbox-label:hover .terms-link {
    color: #fff;
    text-shadow: 0 0 8px rgba(217, 255, 71, 0.6);
    text-decoration: underline;
}

.register-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

/* Modal de Termos */
.terms-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
}

.terms-content h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.terms-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.terms-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.terms-close-icon {
    width: 20px;
    height: 20px;
}

.terms-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9faaa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    line-height: 1.6;
}

.terms-body h2 {
    color: #333;
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}

.terms-body h2:first-child {
    margin-top: 0;
}

.terms-body p {
    margin-bottom: 15px;
    color: #555;
}

.terms-body ul {
    margin: 10px 0 15px 20px;
}

.terms-body li {
    margin-bottom: 8px;
    color: #555;
}

.terms-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.terms-footer .btn {
    min-width: 120px;
}

/* Modal de Verificação de E-mail */
.email-verification-modal {
    max-width: 500px;
    width: 90%;
}

.email-verification-content h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-top: -1rem;
}

.verification-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.verification-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.verification-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.verification-close-icon {
    width: 20px;
    height: 20px;
}

.verification-body {
    text-align: center;
    padding: 20px 0;
}

.verification-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

.verification-body h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.verification-body p {
    color: #666;
    margin-bottom: 10px;
}

.user-email {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.verification-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.step-number {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: #555;
    font-weight: 500;
}

.verification-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.verification-actions .btn {
    min-width: 140px;
}

.verification-note {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.verification-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .register-modal,
    .terms-modal,
    .email-verification-modal {
        width: 95%;
        margin: 10px;
    }
    
    .terms-body {
        max-height: 50vh;
        padding: 15px;
    }
    
    .terms-footer {
        flex-direction: column;
    }
    
    .terms-footer .btn {
        width: 100%;
    }
    
    .verification-actions {
        flex-direction: column;
    }
    
    .verification-actions .btn {
        width: 100%;
    }
    
    .verification-steps {
        margin: 20px 0;
    }
}

/* Aviso de verificação de e-mail na loja */
.email-verification-warning {
    grid-column: 1 / -1;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    text-align: center;
}

/* Modal de Confirmação de Senha para Compras */
.password-confirm-modal {
    max-width: 400px;
    width: 90%;
}

.password-confirm-content h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.password-confirm-icon {
    width: 24px;
    height: 24px;
}

.password-confirm-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.password-confirm-close-btn:hover {
    background-color: #f0f0f0;
}

.password-confirm-close-icon {
    width: 20px;
    height: 20px;
}

.password-confirm-body {
    text-align: center;
    padding: 20px 0;
}

.password-confirm-icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
}

.password-confirm-body h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.password-confirm-body p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.password-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.password-confirm-actions .btn {
    flex: 1;
    max-width: 120px;
}

.password-confirm-note {
    margin-top: 15px;
}

.password-confirm-note p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.warning-text h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.warning-text p {
    color: #856404;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.warning-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.warning-actions .btn {
    min-width: 140px;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Responsividade para aviso na loja */
@media (max-width: 768px) {
    .warning-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .warning-actions .btn {
        width: 100%;
    }
    
    .warning-content {
        padding: 0 10px;
    }
}

/* Estilos para o áudio de fundo */
#backgroundMusic {
    display: none; /* Oculto, apenas para controle programático */
}

/* Animações de fade para o áudio */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Estilo para o botão de áudio nas configurações */
.audio-toggle-btn {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    background: radial-gradient(#FFFC 0%, #FFF0 80%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 10px auto;
}

.audio-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

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

.audio-icon {
    width: 40px;
    height: 40px;
}

/* Efeito de pulsação quando o áudio está ligado */
.audio-toggle-btn.audio-enabled {
    animation: audioPulse 2s infinite;
}

@keyframes audioPulse {
    0% { box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 140, 0, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3); }
}

/* Estilos para checkbox customizado de auto-login */
.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: white;
    font-size: 1.1rem; /* Aumentado de 14px */
    margin: 0;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox-label:hover {
    transform: translateY(-1px);
}

.custom-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #ffffff22, #f8f9fa22);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-color: #e67e00;
    box-shadow: 
        0 4px 12px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::before {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 2px;
    opacity: 1;
}

.custom-checkbox-label:hover .custom-checkbox {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.custom-checkbox-label:hover input[type="checkbox"]:checked + .custom-checkbox {
    box-shadow: 
        0 6px 16px rgba(255, 140, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.checkbox-text {
    user-select: none;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-checkbox-label:hover .checkbox-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateX(2px);
}

/* Animação de pulsação quando marcado */
.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    animation: checkboxPulse 0.6s ease-out;
}

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

/* Efeito de foco para acessibilidade */
.custom-checkbox-label input[type="checkbox"]:focus + .custom-checkbox {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* ===== SISTEMA DE UPLOAD DE IMAGENS ===== */
.image-upload-container {
    position: relative;
}

.image-preview-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-preview-container:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.image-preview-container.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.image-preview-placeholder {
    color: #6c757d;
}

.image-preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.image-preview-placeholder p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.image-preview-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-container:hover .image-preview-actions {
    opacity: 1;
}

.image-preview-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ===== SISTEMA DE MODAIS UNIFICADO ===== */

/* Modal Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal base - apenas para novos modais */
.modal-content:not(.user-modal):not(.config-modal):not(.pencil-case):not(.purchase-confirm-modal) {
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: visible;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content.purchase-confirm-modal{
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    border-radius: 12px;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: visible;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Inputs de Modal */
.modal-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* ===== SISTEMA DE KITS E PROMOÇÕES ===== */

/* Modal de Kit Inicial */
.initial-kit-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.initial-kit-modal h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.initial-kit-modal p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* Card de Kit */
.kit-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.kit-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kit-card.selected {
    border-color: #4CAF50;
    background: #f8fff8;
}

/* Header do Kit */
.kit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kit-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.kit-price {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Descrição do Kit */
.kit-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Itens do Kit */
.kit-items {
    margin-bottom: 1rem;
}

.kit-item-count {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.item-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Seleção do Kit */
.kit-select {
    text-align: center;
}

.kit-select input[type="radio"] {
    margin-right: 0.5rem;
}

.kit-select label {
    cursor: pointer;
    font-weight: 500;
    color: #4CAF50;
}

/* Promoções com Glow */
.promotion-item {
    position: relative;
    border: 2px solid #ff6b6b;
    animation: promotionGlow 2s ease-in-out infinite alternate;
}

@keyframes promotionGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
}

/* Modal de Cupom - Usa classes unificadas */

/* Responsividade */
@media (max-width: 768px) {
    .kits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kit-card {
        padding: 1rem;
    }
    
    .initial-kit-modal {
        max-width: 95%;
        margin: 1rem;
    }
}

/* ===== PREVIEW DE CANETAS ===== */
.pen-preview-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pen-preview-container img {
    max-height: 60px;
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.pen-preview-container:hover img {
    transform: rotate(90deg) scale(1.1);
}

/* ===== MODAL DE CONFIRMAÇÃO DE COMPRA ===== */
.purchase-confirm-modal {
    max-width: 500px;
    width: 90%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #e9ecef;
}

.purchase-confirm-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.6);
}

.purchase-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    min-height: 120px;
}

.item-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Preview de caneta */
.pen-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pen-preview-image {
    max-height: 160px;
    transition: all 0.3s ease;
}

.pen-preview:hover .pen-preview-image {
    transform: scale(1.1);
}

/* Preview de imagem */
.image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-preview-img {
    max-width: 200px;
    max-height: 200px;
    background: #FFF;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.image-preview:hover .image-preview-img {
    transform: scale(1.05);
}

/* Preview de kit */
.kit-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.kit-preview-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: kitBounce 2s infinite;
}

.kit-preview-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

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

.purchase-item-info {
    text-align: center;
    margin: 20px 0;
}

.purchase-item-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.purchase-price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.purchase-price-label {
    color: #6c757d;
    font-weight: 500;
}

.purchase-price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 
        2px 2px 0 #333, 
        0px 2px 0 #333, 
        2px 0px 0 #333, 
        -2px -2px 0 #333, 
        0px -2px 0 #333, 
        -2px 0px 0 #333, 
        2px -2px 0 #333, 
        -2px 2px 0 #333, 
        0 0 15px #333;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: linear-gradient(45deg, #f39c12, #e67e22);
    background-clip: text;
}

/* Fallback para itens não reconhecidos */
.fallback-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 4rem;
    color: #6c757d;
    opacity: 0.7;
}

/* ========================================
   MODAL DE KIT INICIAL
   ======================================== */

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.kit-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.kit-item:hover {
    transform: translateY(-5px);
    border-color: #ff8c00;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.kit-item.selected {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.kit-preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    background: transparent;
}

.kit-preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
    background: transparent;
}

/* Leque - Container base */
.fan-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Evitar padrões visuais em containers vazios */
.fan-container:empty {
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* Evitar patterns em elementos de kit vazios */
.kit-item .fan-container,
.kit-preview-container,
.kit-preview-content {
    background-image: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Informações do kit na loja */
.kit-info {
    padding: 10px;
    text-align: center;
    margin-top: auto;
}

.kit-info .price {
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 2px 2px 0 #333, 0px 2px 0 #333, 2px 0px 0 #333, -2px -2px 0 #333, 0px -2px 0 #333, -2px 0px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 0 0 15px #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.kit-info .owned-label {
    color: #2ecc71;
    font-weight: bold;
    text-shadow: 2px 2px 0 #333, 0px 2px 0 #333, 2px 0px 0 #333, -2px -2px 0 #333, 0px -2px 0 #333, -2px 0px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 0 0 15px #333;
    font-size: 0.9rem;
}

/* Desabilitar hover para itens possuídos */
.shop-item.owned {
    cursor: default !important;
    pointer-events: none !important;
}

.shop-item.owned:hover {
    transform: none !important;
    background: rgba(46, 204, 113, 0.3) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.3) !important;
    border-color: #2ecc71 !important;
}

/* Manter layout do kit possuído */
.kit-item.owned .kit-preview-container,
.kit-item.owned .kit-preview-content {
    pointer-events: auto;
}

/* Itens do leque - estilo base */
.fan-item {
    position: absolute;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fan-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Imagens do leque */
.fan-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    background-color: #FFF;
}

.fan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Canetinhas do leque */
.fan-pen {
    width: 10px;
    height: 100px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 2px 25px 0 0 inset rgba(255, 255, 255, 0.3);
}

.mini-pen {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mini-image {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-items {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

.kit-selection {
    margin-top: 15px;
    text-align: center;
}

.kit-selection input[type="radio"] {
    display: none;
}

.kit-selection label {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(145deg, #ff8c00, #ff7f00);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.kit-selection label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.kit-selection input[type="radio"]:checked + label {
    background: linear-gradient(145deg, #28a745, #20c997);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.kit-item.selected {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
}

.kit-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.kit-item.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.kit-item.loading::after {
    content: '⏳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1s infinite;
}

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

/* ========================================
   LOADING OVERLAY
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 90%;
}

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

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

.loading-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Tema escuro para loading */
.dark-theme .loading-content {
    background: #2d2d2d;
    color: white;
}

.dark-theme .loading-text {
    color: white;
}

.dark-theme .loading-subtext {
    color: #ccc;
}

.dark-theme .loading-spinner {
    border-color: #555;
    border-top-color: #4dabf7;
}

/* ========================================
   ANIMAÇÃO DE MOEDA
   ======================================== */

.animated-coin {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('shiny-coin1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: coinSpin 1.5s ease-in-out infinite;
}

@keyframes coinSpin {
    0% { background-image: url('shiny-coin1.svg'); }
    16.66% { background-image: url('shiny-coin2.svg'); }
    33.33% { background-image: url('shiny-coin3.svg'); }
    50% { background-image: url('shiny-coin4.svg'); }
    66.66% { background-image: url('shiny-coin5.svg'); }
    83.33% { background-image: url('shiny-coin6.svg'); }
    100% { background-image: url('shiny-coin1.svg'); }
}

/* Variações de tamanho */
.animated-coin.small {
    width: 16px;
    height: 16px;
}

.animated-coin.medium {
    width: 24px;
    height: 24px;
}

.animated-coin.large {
    width: 32px;
    height: 32px;
}

.animated-coin.xlarge {
    width: 48px;
    height: 48px;
}

/* Versão pausada (para quando não há animação) */
.animated-coin.paused {
    animation-play-state: paused;
}

/* Versão mais lenta */
.animated-coin.slow {
    animation-duration: 3s;
}

/* Versão mais rápida */
.animated-coin.fast {
    animation-duration: 0.8s;
}

/* Efeito de brilho adicional */
.animated-coin::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: coinGlow 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes coinGlow {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Container para posicionamento relativo */
.coin-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* ========================================
   MODAL MERCADO PAGO - CHECKOUT TRANSPARENTE
   ======================================== */

.mercado-pago-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mercado-pago-modal-overlay.active {
    opacity: 1;
}

.mercado-pago-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mercado-pago-modal-overlay.active .mercado-pago-modal-content {
    transform: scale(1);
}

.mercado-pago-modal-body {
    padding: 24px;
    text-align: center;
}

.mercado-pago-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px 0;
}

.mercado-pago-instructions {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 14px;
}

.mercado-pago-qr-container {
    margin: 24px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mercado-pago-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00a650;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.mercado-pago-qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-image {
    max-width: 250px;
    max-height: 250px;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.mercado-pago-timer-container {
    margin: 16px 0;
}

.mercado-pago-timer-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mercado-pago-timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #00a650, #ff6b35);
    width: 0%;
    transition: width 1s linear;
}

.mercado-pago-timer-text {
    font-size: 12px;
    color: #666;
}

.timer-value {
    font-weight: bold;
    color: #333;
}

.mercado-pago-pix-code-container {
    margin: 16px 0;
    text-align: left;
}

.mercado-pago-pix-label {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.mercado-pago-pix-code-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mercado-pago-pix-code {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    background: #f9f9f9;
}

.mercado-pago-copy-btn {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mercado-pago-copy-btn:hover {
    background: #f0f0f0;
    border-color: #00a650;
    color: #00a650;
}

.mercado-pago-cancel-btn {
    width: 100%;
    padding: 12px 24px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background: white;
    color: #dc3545;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
}

.mercado-pago-cancel-btn:hover {
    background: #dc3545;
    color: white;
}

.mercado-pago-error,
.mercado-pago-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.error-icon,
.success-icon {
    font-size: 48px;
    line-height: 1;
}

.error-icon {
    color: #dc3545;
}

.success-icon {
    color: #00a650;
    font-size: 48px;
    font-weight: bold;
}

.retry-btn {
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 6px;
    background: white;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #007bff;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .mercado-pago-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .mercado-pago-modal-body {
        padding: 20px;
    }
    
    .qr-image {
        max-width: 200px;
        max-height: 200px;
    }
    
    .mercado-pago-pix-code-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mercado-pago-copy-btn {
        width: 100%;
        justify-content: center;
    }
}