:root {
    --wa-green: #25d366;
    --wa-dark-green: #128c7e;
    --wa-white: #ffffff;
    --wa-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#wa-wrapper-unique {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container do Botão */
.wa-button-container {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efeito de Rastro Circular Estilo Gamer (RGB/Chroma) */
.wa-border-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2px));
    animation: waRotate 2s linear infinite;
    z-index: 1;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    
    /* Escondido por padrão */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Ativado via classe no container ou elemento */
.wa-border-loader.active {
    opacity: 1;
}

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

/* Botão Flutuante */
.wa-float-button {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, var(--wa-green), #1ebea5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wa-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    z-index: 2;
}

.wa-float-button:hover {
    transform: scale(1.02);
}

.wa-float-button svg {
    width: 32px;
    height: 32px;
    fill: var(--wa-white);
}

/* Badge Posicionado na Borda do Botão */
.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4b4b;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--wa-white);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Menu Refatorado */
.wa-menu-container {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 320px;
    background: var(--wa-white);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transform-origin: bottom right;
    animation: waSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes waSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-menu-header {
    background: linear-gradient(135deg, var(--wa-green), var(--wa-dark-green));
    color: var(--wa-white);
    padding: 24px 20px;
    position: relative;
}

.wa-menu-title { margin: 0; font-size: 18px; font-weight: 700; }
.wa-menu-subtitle { margin: 4px 0 0 0; font-size: 13px; opacity: 0.9; }

.wa-menu-close { 
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2); 
    border: none; 
    color: white; 
    cursor: pointer; 
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wa-menu-body { padding: 12px; background: #fcfcfc; }

.wa-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--wa-white);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wa-menu-item:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border-color: rgba(37, 211, 102, 0.2);
}

.wa-item-icon { 
    font-size: 22px; 
    width: 48px; 
    height: 48px; 
    background: #f0fdf4; 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-right: 15px;
}

.wa-item-text { display: flex; flex-direction: column; flex: 1; }
.wa-item-title { margin: 0; font-size: 15px; font-weight: 600; color: #333; }
.wa-item-desc { margin: 2px 0 0 0; font-size: 12px; color: #666; }

.wa-item-status {
    width: 8px;
    height: 8px;
    background: var(--wa-green);
    border-radius: 50%;
    margin-left: 10px;
}

.wa-menu-footer {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
}
