/* ========================================
   GLOBAL HEADER - Sistema GNZ
   ======================================== */

.global-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: var(--header-bg, #075E54);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px 0 12px;
    z-index: 100;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    color: var(--header-text, #ffffff) !important;
    position: sticky;
    top: 0;
}

/* Header: textos e ícones usam --header-text (default branco) */
.global-header-title,
.global-header-title i,
.global-header-user-name,
.global-header-company,
.global-header-company i,
.global-header-page-title,
.global-header-notification,
.global-header-notification i,
.global-header-action-btn,
.global-header-action-btn i,
.global-header-action-btn.profile-btn,
.global-header-action-btn.dark-mode-toggle,
.global-header-action-btn.settings-btn,
.global-header-action-btn.global-mute-toggle,
.global-header-action-btn.global-mute-toggle i,
.global-header-action-btn.logout,
.global-header-nav-btn,
.global-header-nav-btn i,
.global-header-sales,
.gh-sales-value,
.gh-sales-label,
.mobile-menu-btn,
.mobile-menu-btn i {
    color: var(--header-text, #ffffff) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--header-text, #ffffff);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 12px;
}

.mobile-menu-btn:hover {
    background: color-mix(in srgb, currentColor 15%, transparent);
    color: var(--header-text, #ffffff);
}

.mobile-menu-btn i {
    font-size: 20px;
}

/* Page Title */
.global-header-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--header-text, #ffffff);
    display: flex;
    align-items: center;
    gap: 6px;
}

.global-header-title i {
    font-size: 24px;
    color: var(--header-text, #ffffff);
    opacity: 0.85;
}

/* Header Actions */
.global-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== SHORTCUT BAR (barra de atalhos personalizável) ========== */
.shortcut-bar {
    display: flex !important;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100% !important;
    height: auto !important;
    min-height: 58px !important;
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
    position: relative;
    z-index: 99 !important;
    gap: var(--sb-spacing, 4px);
    padding: 12px 16px !important;
    overflow: visible !important;
    box-sizing: border-box;
    opacity: 1 !important;
    align-items: center;
}

.shortcut-bar-overflow.rotated i {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.shortcut-bar-hidden {
    display: none !important;
}

.shortcut-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sb-icon-size, 32px);
    height: var(--sb-icon-size, 32px);
    border-radius: 10px;
    opacity: 1 !important;
    text-decoration: none !important;
    transition: opacity 0.15s, background 0.15s, transform 0.15s;
    cursor: pointer;
}

.shortcut-bar-item i {
    font-size: var(--sb-icon-font, 14px) !important;
    color: inherit !important;
    display: inline-block !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Separador de módulo */
.shortcut-bar-separator {
    color: var(--border-color, #d1d5db);
    font-size: 18px;
    font-weight: 300;
    user-select: none;
    opacity: 0.5;
    margin: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.shortcut-bar-item:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
    transform: scale(1.08);
}

.shortcut-bar-item-active {
    opacity: 1;
    background: rgba(0,0,0,0.08);
}

.shortcut-bar-item .shortcut-label {
    display: none;
}

.shortcut-bar-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #64748b) !important;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 13px;
}

.shortcut-bar-edit:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

.shortcut-bar-overflow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #64748b) !important;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
    font-size: 16px;
}

.shortcut-bar-overflow:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

/* Compact mode (has-logo) */
.shortcut-bar-compact {
    height: 46px;
}
.shortcut-bar-compact .shortcut-bar-item {
    width: 36px;
    height: 36px;
}
.shortcut-bar-compact .shortcut-bar-item i {
    font-size: 14px;
}

/* Toggle button in header */
.shortcut-bar-toggle {
    opacity: 0.85;
}
.shortcut-bar-toggle:hover {
    background: color-mix(in srgb, currentColor 15%, transparent) !important;
    opacity: 1;
}

/* Editor popover */
.shortcut-editor-popover {
    position: absolute;
    right: 8px;
    top: calc(100% + 6px);
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    z-index: 200;
    min-width: 220px;
    max-height: 380px;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

.shortcut-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.shortcut-editor-header button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    transition: background 0.15s;
}

.shortcut-editor-header button:hover {
    background: var(--bg-hover, rgba(0,0,0,0.06));
}

.shortcut-editor-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}

.shortcut-editor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: var(--text-primary, #1f2937);
}

.shortcut-editor-item:hover {
    background: var(--bg-hover, rgba(0,0,0,0.04));
}

.shortcut-editor-item input[type="checkbox"] {
    accent-color: var(--primary, #128C7E);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.shortcut-editor-item i {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    width: 18px;
    text-align: center;
}

.shortcut-editor-footer {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.shortcut-editor-btn-all {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    transition: background 0.15s;
}

.shortcut-editor-btn-all:hover {
    background: var(--bg-hover, rgba(0,0,0,0.04));
}

.shortcut-editor-btn-save {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: var(--primary, #128C7E);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.15s;
}

.shortcut-editor-btn-save:hover {
    opacity: 0.9;
}

.shortcut-editor-btn-none {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    transition: background 0.15s;
}

.shortcut-editor-btn-none:hover {
    background: var(--bg-hover, rgba(0,0,0,0.04));
}

/* Module header in editor */
.shortcut-editor-module-header {
    padding: 6px 14px 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b7280);
    opacity: 0.7;
    margin-top: 4px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.shortcut-editor-module-header:first-child {
    border-top: none;
    margin-top: 0;
}

/* Disabled items when limit reached */
.shortcut-editor-item-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.shortcut-editor-item-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Counter in header */
.shortcut-editor-counter {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    background: var(--bg-secondary, #f3f4f6);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 8px;
}

/* ========== SHORTCUT BAR STYLE VARIANTS ========== */

/* --- Style: icons-text (icons with label below) --- */
.shortcut-bar.shortcut-bar-icons-text {
    gap: 2px;
    padding: 8px 12px !important;
}
.shortcut-bar-icons-text .shortcut-bar-item {
    flex-direction: column;
    width: 52px;
    height: auto;
    padding: 6px 2px 4px;
    border-radius: 10px;
    gap: 2px;
}
.shortcut-bar-icons-text .shortcut-bar-item i {
    font-size: 16px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
}
.shortcut-bar-icons-text .shortcut-bar-item .shortcut-label {
    display: block !important;
    font-size: 9px;
    line-height: 1.1;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50px;
    text-align: center;
}

/* --- Style: compact-scroll (single line, horizontal scroll) --- */
.shortcut-bar.shortcut-bar-compact-scroll {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 4px 12px !important;
    gap: 3px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.shortcut-bar-compact-scroll::-webkit-scrollbar {
    display: none;
}
.shortcut-bar-compact-scroll .shortcut-bar-item {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    flex-shrink: 0;
}
.shortcut-bar-compact-scroll .shortcut-bar-item i {
    font-size: 13px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
}
.shortcut-bar-compact-scroll .shortcut-bar-edit {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

/* --- Style: pills (pill-shaped buttons with text) --- */
.shortcut-bar.shortcut-bar-pills {
    gap: 5px;
    padding: 8px 12px !important;
}
.shortcut-bar-pills .shortcut-bar-item {
    width: auto;
    height: 30px;
    border-radius: 20px;
    padding: 0 10px;
    gap: 5px;
    background: rgba(0,0,0,0.04);
}
.shortcut-bar-pills .shortcut-bar-item i {
    font-size: 12px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 14px !important;
}
.shortcut-bar-pills .shortcut-bar-item .shortcut-label {
    display: inline !important;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary, #1f2937);
    white-space: nowrap;
}
.shortcut-bar-pills .shortcut-bar-item:hover {
    background: rgba(0,0,0,0.08);
    transform: none;
}
.shortcut-bar-pills .shortcut-bar-item-active {
    background: var(--primary, #128C7E) !important;
}
.shortcut-bar-pills .shortcut-bar-item-active i,
.shortcut-bar-pills .shortcut-bar-item-active .shortcut-label {
    color: #ffffff !important;
}

/* --- Style: dock (macOS-style floating bar) --- */
.shortcut-bar.shortcut-bar-dock {
    justify-content: center;
    gap: 4px;
    padding: 6px 12px !important;
    min-height: auto !important;
    background: transparent !important;
    border-bottom: none !important;
}
.shortcut-bar-dock .shortcut-bar-inner {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--bg-secondary, rgba(0,0,0,0.05));
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.shortcut-bar-dock .shortcut-bar-inner::-webkit-scrollbar {
    display: none;
}
.shortcut-bar-dock .shortcut-bar-item {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.15s;
}
.shortcut-bar-dock .shortcut-bar-item:hover {
    transform: scale(1.25) translateY(-3px);
    background: rgba(0,0,0,0.08);
}
.shortcut-bar-dock .shortcut-bar-item i {
    font-size: 16px !important;
}
.shortcut-bar-dock .shortcut-bar-item-active {
    background: rgba(0,0,0,0.1);
}
.shortcut-bar-dock .shortcut-bar-item-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary, #128C7E);
}
.shortcut-bar-dock .shortcut-bar-edit {
    flex-shrink: 0;
}

/* ========== SHORTCUT DROPDOWN MENU ========== */
.shortcut-dropdown-menu {
    display: none !important;
}

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

.shortcut-dropdown-header,
.shortcut-dropdown-grid,
.shortcut-dropdown-footer {
    display: none !important;
}

.shortcut-dropdown-header-old {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.shortcut-dropdown-header button {
    background: none;
    border: none;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.15s;
}

.shortcut-dropdown-header button:hover {
    color: var(--text-primary, #1f2937);
}

.shortcut-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.shortcut-dropdown-item {
    display: none !important;
}

.shortcut-dropdown-item:hover {
    background: var(--bg-tertiary, #f1f5f9);
    transform: scale(1.05);
}

.shortcut-dropdown-item-active {
    background: var(--accent, #128C7E) !important;
    color: white !important;
}

.shortcut-dropdown-item i {
    font-size: 20px !important;
    color: inherit !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

.shortcut-dropdown-item span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.shortcut-dropdown-footer {
    padding: 8px 12px;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
    display: flex;
    gap: 6px;
}

.shortcut-dropdown-edit {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--accent, #128C7E);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shortcut-dropdown-edit:hover {
    opacity: 0.9;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .shortcut-dropdown-menu {
        max-width: 95vw;
        right: 8px;
    }

    .shortcut-dropdown-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

/* Responsive: < 600px - keep bar visible but scrollable */
@media (max-width: 600px) {
    .shortcut-bar {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

/* Header light bg adjustments for shortcut bar (bar is already light) */

/* Mute Toggle Button */
.global-mute-toggle {
    color: var(--header-text, #ffffff) !important;
    opacity: 0.85;
    position: relative;
}

.global-mute-toggle:hover {
    background: color-mix(in srgb, currentColor 15%, transparent) !important;
    color: var(--header-text, #ffffff) !important;
    opacity: 1;
}

.global-mute-toggle i {
    color: inherit !important;
    transition: transform 0.2s;
}

.global-mute-toggle:active i {
    transform: scale(0.85);
}

/* Notification Button */
.global-header-notification {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-text, #ffffff) !important;
    opacity: 0.9;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
}

.global-header-notification:hover {
    background: color-mix(in srgb, currentColor 15%, transparent) !important;
    color: var(--header-text, #ffffff) !important;
    opacity: 1;
}

.global-header-notification i {
    color: inherit !important;
}

.global-header-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: transparent;
    font-size: 0;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    min-width: 0;
    text-align: center;
    line-height: 0;
    box-shadow: 0 0 0 2px var(--header-bg, #075E54);
    animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--header-bg, #075E54), 0 0 0 2px rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 0 2px var(--header-bg, #075E54), 0 0 0 6px rgba(239, 68, 68, 0.4); }
}

/* Connection status icon */
.gh-conn-status {
    position: relative;
}
.gh-conn-status i {
    animation: connPulse 1.5s ease-in-out infinite;
}
.gh-conn-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--header-bg, #075E54);
    line-height: 1;
}
@keyframes connPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.gh-bling-status {
    position: relative;
}
.gh-bling-status i {
    animation: connPulse 1.5s ease-in-out infinite;
}
.gh-bling-badge {
    background: #f59e0b !important;
    box-shadow: 0 0 0 2px var(--header-bg, #075E54) !important;
}

/* Action Buttons (profile, settings, logout) */
.global-header-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    text-decoration: none !important;
    font-size: 16px;
}

.global-header-action-btn i {
    color: inherit !important;
}

.global-header-action-btn.profile-btn {
    color: var(--header-text, #ffffff) !important;
    opacity: 0.85;
}

.global-header-action-btn.profile-btn:hover {
    color: var(--header-text, #ffffff) !important;
    opacity: 1;
}

/* PWA Install Button */
.global-header-action-btn.pwa-install-header-btn {
    color: #ffffff !important;
    opacity: 1;
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    animation: pwa-pulse 2s ease-in-out infinite;
    position: relative;
}

.global-header-action-btn.pwa-install-header-btn:hover {
    background: linear-gradient(135deg, #2edf73, #0e9d8a) !important;
    transform: scale(1.12);
    animation: none;
    box-shadow: 0 0 16px rgba(37, 211, 102, 0.5);
}

@keyframes pwa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}

.global-header-action-btn.dark-mode-toggle {
    color: var(--header-text, #ffffff) !important;
    opacity: 0.85;
}

.global-header-action-btn.dark-mode-toggle:hover {
    color: var(--header-text, #ffffff) !important;
    opacity: 1;
}

.global-header-action-btn.settings-btn {
    color: var(--header-text, #ffffff) !important;
    opacity: 0.85;
}

.global-header-action-btn.settings-btn:hover {
    color: var(--header-text, #ffffff) !important;
    opacity: 1;
}

.global-header-action-btn.logout {
    color: var(--header-text, #ffffff) !important;
    opacity: 0.85;
}

.global-header-action-btn.logout:hover {
    color: #ff6b6b !important;
    opacity: 1;
}

/* Header User Profile */
.global-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 4px;
}

.global-header-user:hover {
    background: color-mix(in srgb, currentColor 22%, transparent);
}

.global-header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--header-text, #fff);
    overflow: hidden;
    flex-shrink: 0;
}

.global-header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.global-header-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--header-text, #ffffff);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small gap between header and page content */
.page-content {
    padding-top: 15px;
}



/* Logo da empresa no header */
.global-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 4px;
    height: 100%;
    max-height: var(--header-height, 74px);
    padding: 8px 0;
    box-sizing: border-box;
}

.global-header-logo img {
    height: 100%;
    max-height: calc(var(--header-height, 74px) - 16px);
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.global-header-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--header-text, #ffffff);
}

.global-header-company i {
    color: inherit;
}

/* ===== Quando logo da empresa existe (has-logo) ===== */
/* Ocultar nome da empresa */
.global-header.has-logo .global-header-company {
    display: none;
}

/* Juntar mais os grupos */
.global-header.has-logo {
    padding: 0 12px 0 6px;
    gap: 0;
}

.global-header.has-logo .global-header-nav {
    gap: 4px;
    margin-right: 0;
}

/* Remover fundo hover nos botões de nav com has-logo */
.global-header.has-logo .global-header-nav-btn {
    background: transparent !important;
}
.global-header.has-logo .global-header-nav-btn:hover {
    background: transparent !important;
    opacity: 0.7;
}

/* Logo isolada no canto esquerdo, antes da nav */
.global-header.has-logo > .global-header-logo {
    flex-shrink: 0;
    margin: 0 4px 0 0;
    height: 100%;
    max-height: var(--header-height, 74px);
    padding: 6px 0;
    box-sizing: border-box;
}

.global-header.has-logo > .global-header-logo img {
    height: 100%;
    max-height: calc(var(--header-height, 74px) - 12px);
    max-width: 110px;
    object-fit: contain;
    border-radius: 4px;
}


/* Ícones de ação menores/juntos com has-logo */
.global-header.has-logo .global-header-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 8px;
}

.global-header.has-logo .global-header-action-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.global-header.has-logo .global-header-notification {
    width: 30px;
    height: 30px;
}

.global-header.has-logo .global-header-actions {
    gap: 1px;
}

.global-header.has-logo .global-header-user {
    gap: 6px;
    padding: 3px 8px 3px 3px;
}

.global-header.has-logo .global-header-user-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.global-header.has-logo .global-header-user-name {
    font-size: 8px;
    max-width: 60px;
}


/* Esconder ícone building quando a logo está presente (fallback) */
.global-header-logo + .global-header-company i.fa-building {
    display: none;
}

/* ===== Ranking Section ===== */
.global-header-ranking {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 14px;
    background: transparent;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

/* Desktop: hover abre */
@media (hover: hover) {
    .global-header-ranking:hover .gh-ranking-list {
        display: flex;
    }
}
/* Touch/click: classe .open abre */
.gh-ranking-list.open {
    display: flex;
}

/* ── Badge (inline no header) ── */
.gh-ranking-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.gh-rank-trophy {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.gh-rank-pos {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* 1o lugar - ouro */
.gh-ranking-badge.gh-rank-p1 {
    background: linear-gradient(135deg, rgba(255,215,0,0.4), rgba(255,165,0,0.3));
    border: 1px solid rgba(255,215,0,0.5);
}
.gh-ranking-badge.gh-rank-p1 .gh-rank-pos {
    color: #FFD700 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 0 12px rgba(255,215,0,0.6);
}

/* 2o lugar - prata */
.gh-ranking-badge.gh-rank-p2 {
    background: linear-gradient(135deg, rgba(192,192,192,0.35), rgba(160,160,160,0.25));
    border: 1px solid rgba(180,180,180,0.5);
}
.gh-ranking-badge.gh-rank-p2 .gh-rank-pos {
    color: #C0C0C0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 0 8px rgba(192,192,192,0.5);
}

/* 3o lugar - bronze */
.gh-ranking-badge.gh-rank-p3 {
    background: linear-gradient(135deg, rgba(205,127,50,0.4), rgba(184,115,51,0.3));
    border: 1px solid rgba(205,127,50,0.5);
}
.gh-ranking-badge.gh-rank-p3 .gh-rank-pos {
    color: #FBBF24 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 0 8px rgba(205,127,50,0.5);
}

/* 4o+ posição */
.gh-ranking-badge.gh-rank-pn {
    background: color-mix(in srgb, currentColor 8%, transparent);
}
.gh-ranking-badge.gh-rank-pn .gh-rank-pos {
    color: var(--header-text, #fff) !important;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ── Dropdown list (hover/click) ── */
.gh-ranking-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    padding: 6px 0;
    min-width: 360px;
    max-height: calc(100vh - var(--header-height, 74px) - 20px);
    max-height: calc(100dvh - var(--header-height, 74px) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 200;
    animation: dropdownFadeIn 0.2s ease;
}

/* Setinha do dropdown */
.gh-ranking-list::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-primary, #fff);
    border-left: 1px solid var(--border-color, #e5e7eb);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.gh-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    transition: background 0.15s;
}

.gh-rank-item:hover {
    background: var(--bg-hover, rgba(0,0,0,0.04));
}

.gh-rank-item.gh-rank-me {
    background: rgba(18, 140, 126, 0.1);
}

/* Bolinhas numeradas na lista */
.gh-rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.gh-rank-num.gh-rank-p1 { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff !important; box-shadow: 0 1px 3px rgba(146,64,14,0.25); }
.gh-rank-num.gh-rank-p2 { background: linear-gradient(135deg, #F3F4F6, #D1D5DB); color: #4B5563 !important; box-shadow: 0 1px 3px rgba(75,85,99,0.12); }
.gh-rank-num.gh-rank-p3 { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #7C2D12 !important; box-shadow: 0 1px 3px rgba(124,45,18,0.12); }
.gh-rank-num.gh-rank-pn { background: var(--bg-secondary, #F9FAFB); color: var(--text-secondary, #6B7280) !important; }

/* Avatar do vendedor no ranking */
.gh-rank-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg-primary, #fff);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.gh-rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-rank-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-primary, #1F2937) !important;
}

.gh-rank-item.gh-rank-me .gh-rank-name {
    color: var(--primary, #128C7E) !important;
    font-weight: 700;
}

.gh-rank-val {
    font-weight: 700;
    font-size: 13px;
    color: #059669 !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

/* has-logo compact */
.global-header.has-logo .global-header-ranking {
    padding: 2px 6px;
    border-radius: 10px;
}
.global-header.has-logo .gh-rank-trophy { font-size: 14px; }
.global-header.has-logo .gh-rank-pos { font-size: 12px; }

/* ===== Header claro (fundo branco/claro) ===== */
.global-header.header-light-bg .global-header-ranking {
    background: rgba(0, 0, 0, 0.07);
}

.global-header.header-light-bg .gh-ranking-badge.gh-rank-p1 {
    background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,165,0,0.2));
    border-color: rgba(200,160,0,0.5);
}
.global-header.header-light-bg .gh-ranking-badge.gh-rank-p1 .gh-rank-pos {
    color: #B8860B !important;
    text-shadow: none;
}

.global-header.header-light-bg .gh-ranking-badge.gh-rank-p2 {
    background: linear-gradient(135deg, rgba(160,160,160,0.25), rgba(140,140,140,0.2));
    border-color: rgba(160,160,160,0.5);
}
.global-header.header-light-bg .gh-ranking-badge.gh-rank-p2 .gh-rank-pos {
    color: #6B7280 !important;
    text-shadow: none;
}

.global-header.header-light-bg .gh-ranking-badge.gh-rank-p3 {
    background: linear-gradient(135deg, rgba(205,127,50,0.25), rgba(184,115,51,0.2));
    border-color: rgba(180,120,50,0.5);
}
.global-header.header-light-bg .gh-ranking-badge.gh-rank-p3 .gh-rank-pos {
    color: #92400E !important;
    text-shadow: none;
}

.global-header.header-light-bg .gh-ranking-badge.gh-rank-pn {
    background: rgba(0, 0, 0, 0.06);
}
.global-header.header-light-bg .gh-ranking-badge.gh-rank-pn .gh-rank-pos {
    text-shadow: none;
}

.global-header.header-light-bg .global-header-sales {
    background: rgba(0, 0, 0, 0.06);
}

.global-header.header-light-bg .gh-sales-divider {
    background: rgba(0, 0, 0, 0.15);
}

.global-header.header-light-bg .global-header-user {
    background: rgba(0, 0, 0, 0.07);
}
.global-header.header-light-bg .global-header-user:hover {
    background: rgba(0, 0, 0, 0.12);
}

.global-header.header-light-bg .global-header-nav-btn.nav-back,
.global-header.header-light-bg .global-header-nav-btn.nav-forward,
.global-header.header-light-bg .global-header-nav-btn.nav-refresh {
    background: rgba(0, 0, 0, 0.06);
}
.global-header.header-light-bg .global-header-nav-btn.nav-back:hover,
.global-header.header-light-bg .global-header-nav-btn.nav-forward:hover,
.global-header.header-light-bg .global-header-nav-btn.nav-refresh:hover {
    background: rgba(0, 0, 0, 0.12);
}

.global-header.header-light-bg .global-header-notification:hover,
.global-header.header-light-bg .global-header-action-btn.profile-btn:hover,
.global-header.header-light-bg .global-header-action-btn.dark-mode-toggle:hover,
.global-header.header-light-bg .global-header-action-btn.settings-btn:hover,
.global-header.header-light-bg .global-mute-toggle:hover,
.global-header.header-light-bg .mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

.global-header.header-light-bg .global-header-notification-badge {
    box-shadow: 0 0 0 2px var(--header-bg, #fff);
}

/* Responsive */
@media (max-width: 1200px) {
    .gh-ranking-list { min-width: 320px; }
}
@media (max-width: 900px) {
    .global-header-ranking { display: none !important; }
}

/* ===== Sales Stats Section ===== */
.global-header-sales {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.gh-sales-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    cursor: default;
    white-space: nowrap;
}

.gh-sales-item i {
    font-size: 12px;
    color: var(--header-text, #fff) !important;
    opacity: 0.85;
}

.gh-sales-data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.gh-sales-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--header-text, #fff) !important;
    font-variant-numeric: tabular-nums;
}

.gh-sales-label {
    font-size: 9px;
    font-weight: 400;
    color: var(--header-text, #fff) !important;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gh-sales-divider {
    width: 1px;
    height: 24px;
    background: color-mix(in srgb, currentColor 20%, transparent);
    margin: 0 2px;
    flex-shrink: 0;
}

/* has-logo: compact sales */
.global-header.has-logo .global-header-sales {
    padding: 2px 8px;
    border-radius: 10px;
    gap: 0;
}

.global-header.has-logo .gh-sales-item {
    padding: 1px 6px;
    gap: 4px;
}

.global-header.has-logo .gh-sales-item i {
    font-size: 10px;
}

.global-header.has-logo .gh-sales-value {
    font-size: 11px;
}

.global-header.has-logo .gh-sales-label {
    font-size: 8px;
}

.global-header.has-logo .gh-sales-divider {
    height: 18px;
}

/* Responsive: hide on small screens */
@media (max-width: 1100px) {
    .gh-sales-label { display: none; }
    .gh-sales-data { flex-direction: row; gap: 0; }
    .gh-sales-item { padding: 2px 6px; gap: 4px; }
}

@media (max-width: 900px) {
    .gh-sales-prev { display: none; }
    .gh-sales-prev + .gh-sales-divider,
    .gh-sales-divider:last-of-type { display: none; }
}

@media (max-width: 700px) {
    .global-header-sales { display: none; }
}


/* Navigation buttons (back, forward, refresh) */
.global-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 16px;
}

.global-header-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 17px;
}

.global-header-nav-btn.nav-back {
    background: color-mix(in srgb, currentColor 10%, transparent);
    color: var(--header-text, #ffffff);
}

.global-header-nav-btn.nav-back:hover {
    background: color-mix(in srgb, currentColor 20%, transparent);
    color: var(--header-text, #ffffff);
}

.global-header-nav-btn.nav-forward {
    background: color-mix(in srgb, currentColor 10%, transparent);
    color: var(--header-text, #ffffff);
}

.global-header-nav-btn.nav-forward:hover {
    background: color-mix(in srgb, currentColor 20%, transparent);
    color: var(--header-text, #ffffff);
}

.global-header-nav-btn.nav-refresh {
    background: color-mix(in srgb, currentColor 10%, transparent);
    color: var(--header-text, #ffffff);
}

.global-header-nav-btn.nav-refresh:hover {
    background: color-mix(in srgb, currentColor 20%, transparent);
    color: var(--header-text, #ffffff);
}

.global-header-nav-btn:active {
    transform: scale(0.88);
}

/* Toasts acima de tudo */
.toast-container {
    z-index: 1000000 !important;
    position: fixed !important;
    top: calc(var(--header-height) + 10px) !important;
}

/* Spacer legacy - keep hidden */
.global-header-spacer {
    display: none !important;
    height: 0 !important;
}

/* Responsive */

/* ========================================
   NOTIFICATION DROPDOWN
   ======================================== */

.global-header-notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

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

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

.notification-dropdown-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.notification-dropdown-header h4 i {
    color: var(--primary);
}

.notification-dropdown-header button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.notification-dropdown-header button:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.notification-dropdown-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.notification-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.notification-empty p {
    font-size: 14px;
    margin: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(18, 140, 126, 0.08);
}

.notification-item.unread:hover {
    background: rgba(18, 140, 126, 0.15);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-icon.info {
    background: rgba(52, 183, 241, 0.15);
    color: #34B7F1;
}

.notification-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(245, 159, 0, 0.15);
    color: #f59f00;
}

.notification-icon.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.notification-icon.message {
    background: rgba(18, 140, 126, 0.15);
    color: var(--accent);
}

.notification-icon.assignment {
    background: rgba(52, 183, 241, 0.15);
    color: #34B7F1;
}

.notification-icon.transfer {
    background: rgba(18, 140, 126, 0.15);
    color: var(--info);
}

.notification-icon.system {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item.unread .notification-title {
    color: var(--primary);
}

.notification-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: var(--text-light);
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.notification-dropdown-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.notification-dropdown-footer a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

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

/* Responsive - Notification Dropdown */

/* ========================================
   SISTEMA DE ABAS / TABS NAVIGATOR
   DESABILITADO - Sistema de abas removido
   ======================================== */


.sidebar.collapsed ~ .main-content .tabs-bar,
body.sidebar-collapsed .tabs-bar {
    left: var(--sidebar-collapsed);
}

/* Tab individual */
.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    max-width: 200px;
    border: 1px solid transparent;
    position: relative;
}

.tab-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.tab-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}

.tab-item.active::after {
    display: none;
}

.tab-item i {
    font-size: 14px;
    opacity: 0.7;
}

.tab-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.tab-close {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-light);
}

.tab-item:hover .tab-close {
    opacity: 1;
}

.tab-close:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* Botao de nova aba */
.tab-new {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-new:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* Miniatura lateral - DESABILITADO */
.tabs-preview-sidebar {
    display: none !important;
}

.tabs-preview-sidebar.visible {
    display: none !important;
}

/* Trigger para abrir sidebar de miniaturas - DESABILITADO */
.tabs-preview-trigger,
.tabs-preview-trigger.active,
.tab-preview-item,
.tab-preview-screenshot,
.tab-preview-info,
.tab-preview-close,
.tabs-preview-header,
.tab-item,
.tab-new,
.tab-close {
    display: none !important;
}

/* Ajustes quando tabs bar esta ativa - DESABILITADO */
body.tabs-active .main-content {
    padding-top: 0;
}

body.tabs-active .global-header ~ * {
    margin-top: 0;
}

/* ========================================
   TEMAS SAZONAIS - Decorações no Header
   ======================================== */

/* --- Posicionamento base para decorações sazonais --- */
/* NOTA: NÃO redeclarar position aqui — sticky já cria contexto de posicionamento.
   overflow: clip só para temas sazonais (não corta dropdown de notificações). */
[class*="seasonal-"] .global-header {
    overflow: clip;
}

/* ========== CARNAVAL - Confetes ========== */
.seasonal-carnaval .global-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle 3px, #FFD700 100%, transparent 100%),
        radial-gradient(circle 2px, #FF1493 100%, transparent 100%),
        radial-gradient(circle 3px, #00BFFF 100%, transparent 100%),
        radial-gradient(circle 2px, #7FFF00 100%, transparent 100%),
        radial-gradient(circle 3px, #FF4500 100%, transparent 100%),
        radial-gradient(circle 2px, #FFD700 100%, transparent 100%),
        radial-gradient(circle 3px, #FF1493 100%, transparent 100%),
        radial-gradient(circle 2px, #00BFFF 100%, transparent 100%),
        radial-gradient(circle 3px, #7FFF00 100%, transparent 100%),
        radial-gradient(circle 2px, #FF4500 100%, transparent 100%),
        radial-gradient(circle 2px, #E040FB 100%, transparent 100%),
        radial-gradient(circle 3px, #FFEB3B 100%, transparent 100%),
        radial-gradient(circle 2px, #00E5FF 100%, transparent 100%),
        radial-gradient(circle 3px, #76FF03 100%, transparent 100%),
        radial-gradient(circle 2px, #FF6D00 100%, transparent 100%);
    background-size: 6px 6px, 4px 4px, 6px 6px, 4px 4px, 6px 6px, 4px 4px, 6px 6px, 4px 4px, 6px 6px, 4px 4px, 4px 4px, 6px 6px, 4px 4px, 6px 6px, 4px 4px;
    background-position:
        5% 15%, 12% 65%, 20% 35%, 28% 80%, 35% 20%,
        42% 55%, 50% 10%, 58% 75%, 65% 40%, 72% 85%,
        80% 25%, 87% 60%, 92% 15%, 96% 70%, 3% 50%;
    background-repeat: no-repeat;
    animation: confettiFade 6s ease-in-out infinite;
    opacity: 0;
}

.seasonal-carnaval .global-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Serpentinas — fitas curvas coloridas */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%23FF1493' stroke-width='2.5' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%23FFD700' stroke-width='2' opacity='0.45'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%2300BFFF' stroke-width='2.5' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%237FFF00' stroke-width='2' opacity='0.4'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%23FF4500' stroke-width='2.5' opacity='0.45'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%23E040FB' stroke-width='2' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%23FFEB3B' stroke-width='2.5' opacity='0.4'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%239C27B0' stroke-width='2' opacity='0.45'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%2300E5FF' stroke-width='2.5' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='74' viewBox='0 0 40 74'%3E%3Cpath d='M5,0 Q20,18 5,36 Q-10,54 5,74' fill='none' stroke='%23FF6D00' stroke-width='2' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 40px 74px;
    background-position:
        3% 0, 12% -10px, 22% -5px, 31% -15px, 40% 0,
        52% -8px, 63% -3px, 73% -12px, 83% 0, 93% -7px;
    background-repeat: no-repeat;
    animation: serpentinaFade 5s ease-in-out infinite;
    opacity: 0;
}

.seasonal-carnaval .global-header > * { position: relative; z-index: 1; }

/* Máscaras de Carnaval */
.seasonal-carnaval .carnival-mask {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    font-size: 20px;
    opacity: 0;
    top: 50%;
    animation: maskAppear 3.5s ease-in-out infinite;
}
.seasonal-carnaval .carnival-mask:nth-child(1)  { left: 15%; font-size: 18px; animation-delay: 0s; }
.seasonal-carnaval .carnival-mask:nth-child(2)  { left: 22%; font-size: 14px; animation-delay: 1.8s; }
.seasonal-carnaval .carnival-mask:nth-child(3)  { left: 29%; font-size: 20px; animation-delay: 0.6s; }
.seasonal-carnaval .carnival-mask:nth-child(4)  { left: 36%; font-size: 13px; animation-delay: 2.5s; }
.seasonal-carnaval .carnival-mask:nth-child(5)  { left: 43%; font-size: 17px; animation-delay: 1.2s; }
.seasonal-carnaval .carnival-mask:nth-child(6)  { left: 50%; font-size: 15px; animation-delay: 3.0s; }
.seasonal-carnaval .carnival-mask:nth-child(7)  { left: 57%; font-size: 19px; animation-delay: 0.3s; }
.seasonal-carnaval .carnival-mask:nth-child(8)  { left: 64%; font-size: 14px; animation-delay: 2.2s; }
.seasonal-carnaval .carnival-mask:nth-child(9)  { left: 71%; font-size: 16px; animation-delay: 1.5s; }
.seasonal-carnaval .carnival-mask:nth-child(10) { left: 78%; font-size: 18px; animation-delay: 0.8s; }
.seasonal-carnaval .carnival-mask:nth-child(11) { left: 85%; font-size: 13px; animation-delay: 2.8s; }

@keyframes maskAppear {
    0%   { opacity: 0;   transform: translateY(-50%) translateX(-10px) rotate(-15deg) scale(0.7); }
    20%  { opacity: 0.5; transform: translateY(-50%) translateX(0) rotate(-5deg) scale(1); }
    50%  { opacity: 0.4; transform: translateY(-55%) translateX(6px) rotate(8deg) scale(1.05); }
    80%  { opacity: 0.5; transform: translateY(-45%) translateX(12px) rotate(-3deg) scale(1); }
    100% { opacity: 0;   transform: translateY(-50%) translateX(18px) rotate(12deg) scale(0.7); }
}

@keyframes confettiFade {
    0%   { opacity: 0;   transform: translateX(-8px) translateY(-2px); }
    20%  { opacity: 0.7; transform: translateX(0) translateY(0); }
    50%  { opacity: 0.5; transform: translateX(5px) translateY(2px); }
    80%  { opacity: 0.7; transform: translateX(10px) translateY(0); }
    100% { opacity: 0;   transform: translateX(15px) translateY(-2px); }
}
@keyframes serpentinaFade {
    0%   { opacity: 0;   transform: translateY(-5px) translateX(-3px); }
    15%  { opacity: 0.7; transform: translateY(0) translateX(0); }
    50%  { opacity: 0.6; transform: translateY(3px) translateX(2px); }
    85%  { opacity: 0.7; transform: translateY(5px) translateX(4px); }
    100% { opacity: 0;   transform: translateY(8px) translateX(6px); }
}

/* ========== SÃO JOÃO - Bandeirinhas e Balões ========== */
.seasonal-saojoao .global-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 2;
    background-image:
        /* Cordão (catenária) */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='22'%3E%3Cpath d='M0,4 Q30,16 60,4 Q90,16 120,4 Q150,16 180,4 Q210,16 240,4 Q270,16 300,4 Q330,16 360,4 Q390,16 420,4 Q450,16 480,4 Q510,16 540,4 Q570,16 600,4 Q630,16 660,4 Q690,16 720,4 Q750,16 780,4 Q810,16 840,4 Q870,16 900,4 Q930,16 960,4 Q990,16 1020,4 Q1050,16 1080,4 Q1110,16 1140,4 Q1170,16 1200,4' fill='none' stroke='%23654321' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 1200px 22px;
    background-position: top center;
}

.seasonal-saojoao .global-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 3;
    background-image:
        /* Bandeirinhas coloridas - triângulos pendurados (ponta pra baixo) */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpolygon points='0,4 20,4 10,18' fill='%23FF4444' stroke='%23333' stroke-width='0.5'/%3E%3Cpolygon points='30,4 50,4 40,18' fill='%23FFD700' stroke='%23333' stroke-width='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpolygon points='0,4 20,4 10,18' fill='%2300AA44' stroke='%23333' stroke-width='0.5'/%3E%3Cpolygon points='30,4 50,4 40,18' fill='%23FF8800' stroke='%23333' stroke-width='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpolygon points='0,4 20,4 10,18' fill='%234488FF' stroke='%23333' stroke-width='0.5'/%3E%3Cpolygon points='30,4 50,4 40,18' fill='%23FF44AA' stroke='%23333' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 60px 22px, 60px 22px, 60px 22px;
    background-position: 0px 0px, 20px 0px, 40px 0px;
}

.seasonal-saojoao .global-header {
    padding-top: 14px;
    min-height: calc(var(--header-height) + 10px);
}

.seasonal-saojoao .global-header > * { position: relative; z-index: 4; }

/* Balões de São João */
.seasonal-saojoao .sj-balloon {
    position: absolute;
    width: 24px;
    height: 30px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.6;
    z-index: 1;
    animation: balloonFloat 5s ease-in-out infinite;
    pointer-events: none;
}
.seasonal-saojoao .sj-balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 1px;
    height: 8px;
    background: #654321;
    transform: translateX(-50%);
}
.seasonal-saojoao .sj-balloon:nth-child(1) { background: #FF4444; left: 20%; top: 22px; animation-delay: 0s; }
.seasonal-saojoao .sj-balloon:nth-child(2) { background: #FFD700; left: 45%; top: 26px; animation-delay: 0.5s; width: 20px; height: 25px; }
.seasonal-saojoao .sj-balloon:nth-child(3) { background: #FF8800; left: 70%; top: 24px; animation-delay: 1s; }

@keyframes balloonFloat {
    0%   { opacity: 0;   transform: translateY(0) translateX(-5px) rotate(-5deg); }
    20%  { opacity: 0.6; transform: translateY(-2px) translateX(0) rotate(-2deg); }
    50%  { opacity: 0.5; transform: translateY(-4px) translateX(3px) rotate(3deg); }
    80%  { opacity: 0.6; transform: translateY(-2px) translateX(6px) rotate(1deg); }
    100% { opacity: 0;   transform: translateY(0) translateX(10px) rotate(-3deg); }
}

/* ========== HALLOWEEN - Abóboras ========== */
.seasonal-halloween .global-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    /* Névoa sutil */
    background: linear-gradient(90deg,
        rgba(255,102,0,0.08) 0%,
        transparent 20%,
        rgba(139,69,19,0.05) 40%,
        transparent 60%,
        rgba(255,102,0,0.08) 80%,
        transparent 100%
    );
}

.seasonal-halloween .global-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(90deg,
        #FF6600 0px, #FF6600 20px,
        #8B4513 20px, #8B4513 40px,
        #FF8C00 40px, #FF8C00 60px,
        #6B3A2A 60px, #6B3A2A 80px
    );
}

.seasonal-halloween .global-header > * { position: relative; z-index: 1; }

/* Abóboras decorativas no header */
.seasonal-halloween .hw-pumpkin {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    top: 50%;
    opacity: 0;
    animation: pumpkinFade 4s ease-in-out infinite;
}
.seasonal-halloween .hw-pumpkin:nth-child(1)  { left: 15%; font-size: 16px; animation-delay: 0s; }
.seasonal-halloween .hw-pumpkin:nth-child(2)  { left: 21%; font-size: 20px; animation-delay: 0.4s; }
.seasonal-halloween .hw-pumpkin:nth-child(3)  { left: 27%; font-size: 13px; animation-delay: 0.9s; }
.seasonal-halloween .hw-pumpkin:nth-child(4)  { left: 33%; font-size: 18px; animation-delay: 1.3s; }
.seasonal-halloween .hw-pumpkin:nth-child(5)  { left: 39%; font-size: 14px; animation-delay: 0.2s; }
.seasonal-halloween .hw-pumpkin:nth-child(6)  { left: 46%; font-size: 21px; animation-delay: 1.7s; }
.seasonal-halloween .hw-pumpkin:nth-child(7)  { left: 52%; font-size: 12px; animation-delay: 0.6s; }
.seasonal-halloween .hw-pumpkin:nth-child(8)  { left: 58%; font-size: 17px; animation-delay: 2.0s; }
.seasonal-halloween .hw-pumpkin:nth-child(9)  { left: 64%; font-size: 15px; animation-delay: 1.1s; }
.seasonal-halloween .hw-pumpkin:nth-child(10) { left: 71%; font-size: 19px; animation-delay: 0.3s; }
.seasonal-halloween .hw-pumpkin:nth-child(11) { left: 78%; font-size: 13px; animation-delay: 1.5s; }
.seasonal-halloween .hw-pumpkin:nth-child(12) { left: 85%; font-size: 16px; animation-delay: 2.3s; }

@keyframes pumpkinFade {
    0%   { opacity: 0;   transform: translateY(-50%) translateX(-5px) scale(0.8); }
    20%  { opacity: 0.5; transform: translateY(-50%) translateX(0) scale(1); filter: brightness(1.2); }
    50%  { opacity: 0.4; transform: translateY(-55%) translateX(4px) scale(1.05); filter: brightness(1); }
    80%  { opacity: 0.5; transform: translateY(-45%) translateX(8px) scale(1); filter: brightness(1.3); }
    100% { opacity: 0;   transform: translateY(-50%) translateX(12px) scale(0.8); }
}

/* ========== NATAL - Flocos de neve ========== */
.seasonal-natal .global-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle 2px, rgba(255,255,255,0.8) 100%, transparent 100%),
        radial-gradient(circle 1.5px, rgba(255,255,255,0.6) 100%, transparent 100%),
        radial-gradient(circle 2.5px, rgba(255,255,255,0.7) 100%, transparent 100%),
        radial-gradient(circle 1px, rgba(255,255,255,0.5) 100%, transparent 100%),
        radial-gradient(circle 2px, rgba(255,255,255,0.65) 100%, transparent 100%),
        radial-gradient(circle 1.5px, rgba(255,255,255,0.55) 100%, transparent 100%),
        radial-gradient(circle 2px, rgba(255,255,255,0.7) 100%, transparent 100%),
        radial-gradient(circle 1px, rgba(255,255,255,0.45) 100%, transparent 100%),
        radial-gradient(circle 2.5px, rgba(255,255,255,0.75) 100%, transparent 100%),
        radial-gradient(circle 1.5px, rgba(255,255,255,0.5) 100%, transparent 100%),
        radial-gradient(circle 1px, rgba(255,255,255,0.4) 100%, transparent 100%),
        radial-gradient(circle 2px, rgba(255,255,255,0.6) 100%, transparent 100%);
    background-size: 4px 4px, 3px 3px, 5px 5px, 2px 2px, 4px 4px, 3px 3px, 4px 4px, 2px 2px, 5px 5px, 3px 3px, 2px 2px, 4px 4px;
    background-position:
        5% 20%, 12% 70%, 22% 40%, 30% 15%, 38% 80%,
        48% 30%, 58% 65%, 66% 10%, 75% 55%, 83% 25%,
        90% 75%, 95% 45%;
    background-repeat: no-repeat;
    animation: snowFade 6s ease-in-out infinite;
    opacity: 0;
}

.seasonal-natal .global-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ctext x='8' y='12' font-size='12' text-anchor='middle' fill='rgba(255,255,255,0.25)'%3E%E2%9D%84%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ctext x='6' y='10' font-size='10' text-anchor='middle' fill='rgba(255,255,255,0.2)'%3E%E2%9D%84%3C/text%3E%3C/svg%3E");
    background-size: 16px 16px, 12px 12px;
    background-position: 10% 30%, 60% 60%;
    background-repeat: no-repeat;
    animation: snowFade2 8s ease-in-out infinite;
}

.seasonal-natal .global-header > * { position: relative; z-index: 1; }

@keyframes snowFade {
    0%   { opacity: 0;   transform: translateY(-4px) translateX(-5px); }
    20%  { opacity: 0.8; transform: translateY(-1px) translateX(0); }
    50%  { opacity: 0.5; transform: translateY(2px) translateX(4px); }
    80%  { opacity: 0.8; transform: translateY(4px) translateX(8px); }
    100% { opacity: 0;   transform: translateY(6px) translateX(12px); }
}
@keyframes snowFade2 {
    0%   { opacity: 0;   transform: translate(3px, -3px); }
    25%  { opacity: 0.3; transform: translate(0, 0); }
    50%  { opacity: 0.2; transform: translate(-3px, 2px); }
    75%  { opacity: 0.3; transform: translate(-6px, 4px); }
    100% { opacity: 0;   transform: translate(-9px, 6px); }
}

/* ========== COPA DO MUNDO - Bolas, troféu, escudo ========== */
.seasonal-copaDoMundo .global-header > * { position: relative; z-index: 1; }

.seasonal-copaDoMundo .copa-icon {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    opacity: 0;
    filter: blur(0.8px);
    animation: copaFloat 5s ease-in-out infinite;
}
.seasonal-copaDoMundo .copa-icon:nth-child(1)  { left: 15%; font-size: 18px; animation-delay: 0s; }
.seasonal-copaDoMundo .copa-icon:nth-child(2)  { left: 21%; font-size: 14px; animation-delay: 1.5s; }
.seasonal-copaDoMundo .copa-icon:nth-child(3)  { left: 28%; font-size: 20px; animation-delay: 0.5s; }
.seasonal-copaDoMundo .copa-icon:nth-child(4)  { left: 34%; font-size: 13px; animation-delay: 2.5s; }
.seasonal-copaDoMundo .copa-icon:nth-child(5)  { left: 40%; font-size: 17px; animation-delay: 1.0s; }
.seasonal-copaDoMundo .copa-icon:nth-child(6)  { left: 46%; font-size: 15px; animation-delay: 3.5s; }
.seasonal-copaDoMundo .copa-icon:nth-child(7)  { left: 53%; font-size: 19px; animation-delay: 0.8s; }
.seasonal-copaDoMundo .copa-icon:nth-child(8)  { left: 59%; font-size: 14px; animation-delay: 2.0s; }
.seasonal-copaDoMundo .copa-icon:nth-child(9)  { left: 65%; font-size: 16px; animation-delay: 4.0s; }
.seasonal-copaDoMundo .copa-icon:nth-child(10) { left: 71%; font-size: 20px; animation-delay: 1.2s; }
.seasonal-copaDoMundo .copa-icon:nth-child(11) { left: 78%; font-size: 13px; animation-delay: 3.0s; }
.seasonal-copaDoMundo .copa-icon:nth-child(12) { left: 85%; font-size: 17px; animation-delay: 0.3s; }

@keyframes copaFloat {
    0%   { opacity: 0;   transform: translateY(-50%) translateX(-8px) scale(0.7); filter: blur(1.5px); }
    20%  { opacity: 0.45; transform: translateY(-50%) translateX(0) scale(1); filter: blur(0.3px); }
    50%  { opacity: 0.35; transform: translateY(-55%) translateX(6px) scale(1.05); filter: blur(0.8px); }
    80%  { opacity: 0.45; transform: translateY(-45%) translateX(12px) scale(1); filter: blur(0.3px); }
    100% { opacity: 0;   transform: translateY(-50%) translateX(18px) scale(0.7); filter: blur(1.5px); }
}

/* ========== BLACK FRIDAY - Brilho dourado ========== */
.seasonal-blackfriday .global-header::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 300%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 40%,
        rgba(255,215,0,0.08) 45%,
        rgba(255,215,0,0.15) 50%,
        rgba(255,215,0,0.08) 55%,
        transparent 60%,
        transparent 100%
    );
    animation: bfShine 4s ease-in-out infinite;
}

.seasonal-blackfriday .global-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: bfGlow 2s ease-in-out infinite alternate;
}

.seasonal-blackfriday .global-header > * { position: relative; z-index: 1; }

/* Tags de desconto */
.seasonal-blackfriday .bf-tag {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    font-weight: 800;
    font-family: Arial, sans-serif;
    color: #FFD700;
    opacity: 0;
    text-shadow: 0 0 6px rgba(255,215,0,0.3);
    animation: bfTagPulse 4s ease-in-out infinite;
}
.seasonal-blackfriday .bf-tag:nth-child(1)  { left: 15%; font-size: 14px; animation-delay: 0s; }
.seasonal-blackfriday .bf-tag:nth-child(2)  { left: 22%; font-size: 11px; animation-delay: 1.5s; }
.seasonal-blackfriday .bf-tag:nth-child(3)  { left: 29%; font-size: 16px; animation-delay: 0.5s; }
.seasonal-blackfriday .bf-tag:nth-child(4)  { left: 36%; font-size: 12px; animation-delay: 2.5s; }
.seasonal-blackfriday .bf-tag:nth-child(5)  { left: 43%; font-size: 15px; animation-delay: 1.0s; }
.seasonal-blackfriday .bf-tag:nth-child(6)  { left: 50%; font-size: 10px; animation-delay: 3.0s; }
.seasonal-blackfriday .bf-tag:nth-child(7)  { left: 57%; font-size: 14px; animation-delay: 0.8s; }
.seasonal-blackfriday .bf-tag:nth-child(8)  { left: 64%; font-size: 12px; animation-delay: 2.0s; }
.seasonal-blackfriday .bf-tag:nth-child(9)  { left: 71%; font-size: 16px; animation-delay: 3.5s; }
.seasonal-blackfriday .bf-tag:nth-child(10) { left: 78%; font-size: 11px; animation-delay: 1.2s; }
.seasonal-blackfriday .bf-tag:nth-child(11) { left: 85%; font-size: 13px; animation-delay: 2.8s; }

@keyframes bfTagPulse {
    0%   { opacity: 0;    transform: translateY(-50%) translateX(-10px) scale(0.8); }
    20%  { opacity: 0.4;  transform: translateY(-50%) translateX(0) scale(1); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
    50%  { opacity: 0.3;  transform: translateY(-55%) translateX(6px) scale(1.08); text-shadow: 0 0 4px rgba(255,215,0,0.2); }
    80%  { opacity: 0.4;  transform: translateY(-45%) translateX(12px) scale(1); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
    100% { opacity: 0;    transform: translateY(-50%) translateX(18px) scale(0.8); }
}

@keyframes bfShine {
    0% { transform: translateX(-30%); }
    100% { transform: translateX(30%); }
}
@keyframes bfGlow {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ========== SÃO JOÃO NA COPA - Bandeirinhas verde/amarelo/azul + balões ========== */
.seasonal-saojoaocopa .global-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 2;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='22'%3E%3Cpath d='M0,4 Q30,16 60,4 Q90,16 120,4 Q150,16 180,4 Q210,16 240,4 Q270,16 300,4 Q330,16 360,4 Q390,16 420,4 Q450,16 480,4 Q510,16 540,4 Q570,16 600,4 Q630,16 660,4 Q690,16 720,4 Q750,16 780,4 Q810,16 840,4 Q870,16 900,4 Q930,16 960,4 Q990,16 1020,4 Q1050,16 1080,4 Q1110,16 1140,4 Q1170,16 1200,4' fill='none' stroke='%23FFDF00' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 1200px 22px;
    background-position: top center;
}

.seasonal-saojoaocopa .global-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 3;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpolygon points='0,4 20,4 10,18' fill='%23ffffff' stroke='%23002776' stroke-width='0.5'/%3E%3Cpolygon points='30,4 50,4 40,18' fill='%23FFDF00' stroke='%23002776' stroke-width='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpolygon points='0,4 20,4 10,18' fill='%23002776' stroke='%23ffffff' stroke-width='0.5'/%3E%3Cpolygon points='30,4 50,4 40,18' fill='%23ffffff' stroke='%23002776' stroke-width='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpolygon points='0,4 20,4 10,18' fill='%23FFDF00' stroke='%23ffffff' stroke-width='0.5'/%3E%3Cpolygon points='30,4 50,4 40,18' fill='%23002776' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 60px 22px, 60px 22px, 60px 22px;
    background-position: 0px 0px, 20px 0px, 40px 0px;
}

.seasonal-saojoaocopa .global-header {
    padding-top: 14px;
    min-height: calc(var(--header-height) + 10px);
}

.seasonal-saojoaocopa .global-header > * { position: relative; z-index: 4; }

/* Balões São João Copa */
.seasonal-saojoaocopa .sjc-balloon {
    position: absolute;
    width: 24px;
    height: 30px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.55;
    z-index: 1;
    animation: balloonFloat 5s ease-in-out infinite;
    pointer-events: none;
}
.seasonal-saojoaocopa .sjc-balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 1px;
    height: 8px;
    background: #FFDF00;
    transform: translateX(-50%);
}
.seasonal-saojoaocopa .sjc-balloon:nth-child(1) { background: #ffffff; left: 16%; top: 22px; animation-delay: 0s; }
.seasonal-saojoaocopa .sjc-balloon:nth-child(2) { background: #FFDF00; left: 28%; top: 26px; animation-delay: 0.5s; width: 20px; height: 25px; }
.seasonal-saojoaocopa .sjc-balloon:nth-child(3) { background: #002776; left: 40%; top: 24px; animation-delay: 1s; }
.seasonal-saojoaocopa .sjc-balloon:nth-child(4) { background: #ffffff; left: 52%; top: 20px; animation-delay: 1.5s; width: 22px; height: 28px; }
.seasonal-saojoaocopa .sjc-balloon:nth-child(5) { background: #FFDF00; left: 64%; top: 25px; animation-delay: 2s; }
.seasonal-saojoaocopa .sjc-balloon:nth-child(6) { background: #002776; left: 76%; top: 22px; animation-delay: 2.5s; width: 20px; height: 25px; }

/* Ícones da Copa no São João Copa */
.seasonal-saojoaocopa .sjc-copa-icon {
    position: absolute;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    filter: blur(0.4px) drop-shadow(0 0 3px rgba(255,223,0,0.3));
    animation: copaFloat 6s ease-in-out infinite;
}
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(1)  { left: 18%; animation-delay: 0s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(2)  { left: 27%; animation-delay: 0.7s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(3)  { left: 36%; animation-delay: 1.4s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(4)  { left: 45%; animation-delay: 2.1s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(5)  { left: 54%; animation-delay: 2.8s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(6)  { left: 63%; animation-delay: 3.5s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(7)  { left: 72%; animation-delay: 4.2s; }
.seasonal-saojoaocopa .sjc-copa-icon:nth-of-type(8)  { left: 81%; animation-delay: 4.9s; }

/* --- Z-index para conteúdo do header acima das decorações --- */
[class*="seasonal-"] .global-header .global-header-nav,
[class*="seasonal-"] .global-header .global-header-left,
[class*="seasonal-"] .global-header .global-header-ranking,
[class*="seasonal-"] .global-header .global-header-sales,
[class*="seasonal-"] .global-header .global-header-actions {
    position: relative;
    z-index: 5;
}

/* ========================================
   WEBMAIL HEADER ICON & DROPDOWN
   ======================================== */
.global-header-webmail-wrapper {
    position: relative;
    display: inline-flex;
}
.gh-webmail-btn {
    position: relative;
}
.gh-webmail-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    line-height: 1;
}
.gh-webmail-panel {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    width: 300px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.18));
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1000;
    overflow: hidden;
}
.gh-webmail-panel.active {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.gh-webmail-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-weight: 600; font-size: 14px;
    color: var(--text-primary);
}
.gh-webmail-open-btn {
    color: var(--accent, #4f46e5) !important;
    font-size: 13px;
    text-decoration: none;
}
.gh-webmail-panel-list {
    max-height: 280px;
    overflow-y: auto;
}
.gh-webmail-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    transition: background .15s;
}
.gh-webmail-item:hover {
    background: var(--bg-secondary);
}
.gh-webmail-item i {
    color: var(--accent, #4f46e5) !important;
    font-size: 16px; width: 20px; text-align: center;
}
.gh-webmail-item-info {
    display: flex; flex-direction: column; min-width: 0;
}
.gh-webmail-item-name {
    font-weight: 500; font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gh-webmail-item-email {
    font-size: 11px; color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gh-webmail-empty, .gh-webmail-loading {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}
