:root{--um-bg:var(--bg,var(--bg-surface,#fff));--um-panel-hover:var(--panel-hover,var(--bg-elevated,#f3f4f6));--um-text:var(--text,var(--text-primary,#1e293b));--um-text-secondary:var(--text-2,var(--text-secondary,#64748b));--um-text-muted:var(--text-3,var(--text-tertiary,#94a3b8));--um-border:var(--line,var(--border-light,#e2e8f0));--um-border-subtle:var(--border-subtle,#f1f5f9);--um-shadow:0 10px 30px #0000001f;--um-brand:#0e9c7c;--um-brand-wash:#0e9c7c1a;--um-radius:8px;--um-radius-sm:6px}:root.dark,body.dark-mode,[data-theme=dark],.dark{--um-bg:var(--bg,var(--bg-surface,#131722));--um-panel-hover:var(--panel-hover,var(--bg-elevated,#1e222d));--um-text:var(--text,var(--text-primary,#f0f3fa));--um-text-secondary:var(--text-2,var(--text-secondary,#b2b5be));--um-text-muted:var(--text-3,var(--text-tertiary,#787b86));--um-border:var(--line,var(--border-light,#2a2e39));--um-border-subtle:var(--border-subtle,#1e222d);--um-shadow:0 10px 30px #0006;--um-brand:#10b981;--um-brand-wash:#10b98124}.user-menu-container{align-items:center;display:inline-flex;position:relative}.user-menu-btn{background:var(--um-brand-wash);color:var(--um-brand);border-radius:var(--um-radius-sm);cursor:pointer;border:none;align-items:center;gap:6px;height:36px;padding:4px 10px;font-family:inherit;transition:all .2s;display:inline-flex}.user-menu-btn:hover{background:var(--um-panel-hover)}.user-menu-btn:focus-visible{outline:2px solid var(--um-brand);outline-offset:2px}.user-avatar{justify-content:center;align-items:center;width:22px;height:22px;display:flex}.user-avatar-initial{background:var(--um-brand);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;font-weight:700;line-height:1;display:flex}.user-chevron{flex-shrink:0;transition:transform .2s}.user-menu-btn[aria-expanded=true] .user-chevron{transform:rotate(180deg)}.user-dropdown{background:var(--um-bg);border:1px solid var(--um-border);border-radius:var(--um-radius);width:260px;box-shadow:var(--um-shadow);opacity:0;visibility:hidden;z-index:100000;box-sizing:border-box;flex-direction:column;padding:8px 0;transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1),visibility .18s;display:flex;transform:translateY(-8px)}.user-dropdown.open{opacity:1;visibility:visible;transform:translateY(0)}.user-dropdown-header{align-items:center;gap:12px;padding:12px 16px;display:flex}.user-dropdown-avatar{color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:flex}.user-info{flex-direction:column;flex:1;min-width:0;display:flex}.user-name-row{align-items:center;gap:6px;display:flex}.user-name{color:var(--um-text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;overflow:hidden}.user-tier-badge{text-transform:uppercase;white-space:nowrap;letter-spacing:.3px;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:700}.user-tier-free{background:var(--um-panel-hover);color:var(--um-text-secondary)}.user-tier-basic{color:#fff;background:#2563eb}.user-tier-premium{color:#000;background:#eab308}.user-plan{color:var(--um-text-muted);margin-top:2px;font-size:11px;font-weight:600}.user-email{color:var(--um-text-secondary);text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:12px;overflow:hidden}.user-dropdown-divider{background:var(--um-border);height:1px;margin:6px 0}.user-dropdown-item{color:var(--um-text-secondary);text-align:left;cursor:pointer;box-sizing:border-box;background:0 0;border:none;align-items:center;gap:12px;width:100%;padding:9px 16px;font-family:inherit;font-size:13.5px;font-weight:600;text-decoration:none;transition:background-color .15s,color .15s;display:flex}.user-dropdown-item:hover{background:var(--um-panel-hover);color:var(--um-text)}.user-dropdown-item:focus-visible{outline:2px solid var(--um-brand);outline-offset:-2px}.user-dropdown-item svg{color:var(--um-text-muted);flex-shrink:0}.user-dropdown-item:hover svg{color:var(--um-brand)}.user-item-label{flex:1}.notif-badge{color:#fff;background:#ef4444;border-radius:10px;margin-left:auto;padding:1px 6px;font-size:10px;font-weight:700}.user-dropdown-item.toggle-item{justify-content:space-between}.toggle-switch{background:var(--um-border);border-radius:9px;flex-shrink:0;width:32px;height:18px;transition:background .2s;position:relative}.toggle-switch:after{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .2s;position:absolute;top:2px;left:2px}body.dark-mode .toggle-switch,[data-theme=dark] .toggle-switch,.dark .toggle-switch{background:var(--um-brand)}body.dark-mode .toggle-switch:after,[data-theme=dark] .toggle-switch:after,.dark .toggle-switch:after{transform:translate(14px)}.guest-cta{gap:8px;padding:10px 16px;display:flex}.guest-cta .btn{text-align:center;border-radius:var(--um-radius-sm);box-sizing:border-box;flex:1;padding:7px 12px;font-size:13px;font-weight:600;text-decoration:none}.guest-cta .btn-primary{background:var(--um-brand);color:#fff}.guest-cta .btn-primary:hover{filter:brightness(1.1)}.guest-cta .btn-ghost{color:var(--um-text);border:1px solid var(--um-border);background:0 0}.guest-cta .btn-ghost:hover{background:var(--um-panel-hover)}.user-affiliate-box{background:var(--um-border-subtle);border-radius:var(--um-radius-sm);flex-direction:column;gap:6px;margin:4px 12px;padding:10px 16px;display:flex}.user-affiliate-title{color:var(--um-text-muted);letter-spacing:.5px;text-transform:uppercase;font-size:10.5px;font-weight:700}.user-affiliate-row{align-items:center;gap:6px;display:flex}.user-affiliate-input{border:1px solid var(--um-border);background:var(--um-bg);color:var(--um-text);text-overflow:ellipsis;border-radius:4px;flex:1;min-width:0;padding:5px 8px;font-size:11.5px}.user-affiliate-copy-btn{border:1px solid var(--um-border);background:var(--um-bg);color:var(--um-text);cursor:pointer;border-radius:4px;flex-shrink:0;align-items:center;gap:4px;padding:5px 8px;font-size:11.5px;font-weight:600;display:flex}.user-affiliate-copy-btn:hover{background:var(--um-panel-hover)}.user-update-item{border-radius:var(--um-radius-sm);background:#2962ff14;justify-content:space-between;align-items:center;gap:8px;margin:4px 12px;padding:8px 12px;display:flex}.user-update-badge{color:#fff;background:#ef4444;border-radius:4px;padding:1px 5px;font-size:9px;font-weight:700}
