.topbar-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-topbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--bg-surface-hover), var(--bg-surface));
    border: 1px solid var(--border-subtle);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mobile-toggle:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
@media (max-width: 1024px) { .mobile-toggle { display: flex; } }

.balance-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(34,197,94,0.05) 100%);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.balance-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.15);
}
/* Force hide balance chip on mobile (< 640px) */
@media (max-width: 639px) {
    .balance-chip {
        display: none !important;
    }
    #fullscreenToggle {
        display: none !important;
    }
}
.balance-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.balance-text { font-weight: 700; font-size: 0.9rem; color: #16a34a; }

.topbar-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--bg-surface-hover), var(--bg-surface));
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--default-600);
    transition: all 0.3s ease;
    cursor: pointer;
}
.topbar-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.2);
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--bg-surface-hover), var(--bg-surface));
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.3s ease;
}
.profile-trigger:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info { text-align: left; }
.profile-name { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.profile-balance { font-size: 0.75rem; color: var(--default-500); }

.profile-dropdown-v3 {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 280px;
    background: var(--bg-surface);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}
.profile-dropdown-v3.show { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    text-align: center;
}
.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 10px;
}
.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dropdown-name { font-weight: 700; font-size: 1rem; color: white; }
.dropdown-role { font-size: 0.75rem; color: rgba(255,255,255,0.8); margin-top: 2px; }

.dropdown-menu-items { padding: 8px; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}
.dropdown-item:hover { background: rgba(34,197,94,0.1); color: #16a34a; }
.dropdown-item i { font-size: 1.25rem; }

.dropdown-item-danger { color: #ef4444; }
.dropdown-item-danger:hover { background: rgba(239,68,68,0.1); color: #dc2626; }

.dropdown-item.active {
    background: rgba(34,197,94,0.15);
    color: #16a34a;
    font-weight: 600;
}
.dark .dropdown-item.active {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
}

.dropdown-footer {
    padding: 12px;
    border-top: 1px solid var(--border-subtle);
}

/* Google Translate Styles */
#button_translate span { display: none; }
.goog-te-gadget { line-height: 2px!important; color: transparent!important; }
.goog-te-gadget select {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
}
@media (max-width: 768px) { .goog-te-gadget select { font-size: 10px; padding: 6px 8px; } }
.skiptranslate iframe { display: none!important; }
.grecaptcha-badge { display: none!important; }
.translated-ltr body { top: 0!important; }
