#auth-widget {
    position: relative;
    z-index: 9999;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-widget-login {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 50%, #7b1fa2 100%);
    backdrop-filter: blur(20px);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(123, 31, 162, 0.35);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.auth-widget-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 25%,
            transparent 50%
        );
    background-size: 200% 100%;
    animation: wave-flow 3s linear infinite;
    pointer-events: none;
}

.auth-widget-login::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 30% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes wave-flow {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

.auth-widget-login i {
    font-size: 20px;
    flex-shrink: 0;
}

.auth-widget-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(123, 31, 162, 0.5);
    background: linear-gradient(135deg, #8e24aa 0%, #ab47bc 50%, #8e24aa 100%);
}

.auth-widget-login:hover::before {
    animation-duration: 1.5s;
}

.auth-widget-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(123, 31, 162, 0.4);
}

.auth-widget-user {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.auth-widget-user:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-widget-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #7b1fa2;
    box-shadow: 0 0 0 2px rgba(123, 31, 162, 0.3);
}

.auth-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-widget-info {
    flex: 1;
    min-width: 0;
}

.auth-widget-username {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.auth-widget-arrow {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.auth-widget-user:hover .auth-widget-arrow {
    transform: translateY(-3px);
    color: #7b1fa2;
}

.auth-widget-arrow.open {
    transform: rotate(180deg);
}

.auth-widget-user:hover .auth-widget-arrow.open {
    transform: rotate(180deg) translateY(3px);
}

.auth-widget-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.auth-widget-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.auth-widget-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.auth-widget-menu-item:hover {
    background: rgba(123, 31, 162, 0.1);
}

.auth-widget-menu-item i {
    width: 16px;
    color: #7b1fa2;
}

.auth-widget-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}

.auth-widget-logout-btn {
    color: #ef4444;
}

.auth-widget-logout-btn i {
    color: #ef4444;
}

.auth-widget-skeleton {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    flex: 1;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .auth-widget-login {
        padding: 12px 16px;
        font-size: 15px;
        gap: 10px;
        border-radius: 16px;
    }
    
    .auth-widget-login i {
        font-size: 18px;
    }
    
    .auth-widget-user {
        padding: 10px 14px;
    }
    
    .auth-widget-avatar {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .auth-widget-username {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-widget-login {
        padding: 10px 14px;
        font-size: 14px;
        gap: 8px;
        border-radius: 14px;
    }
    
    .auth-widget-login i {
        font-size: 16px;
    }
    
    .auth-widget-user {
        padding: 8px 12px;
    }
    
    .auth-widget-avatar {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .auth-widget-username {
        font-size: 12px;
        max-width: 80px;
    }
}


/* Discord-style Profile Card - Light Theme */
.auth-widget-profile-card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 10px,
            rgba(123, 31, 162, 0.02) 10px,
            rgba(123, 31, 162, 0.02) 20px
        ),
        #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(123, 31, 162, 0.15);
    border: 1px solid rgba(123, 31, 162, 0.1);
    overflow: visible;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10000;
}

.auth-widget-profile-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.awpc-banner {
    height: 60px;
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.awpc-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 25%,
        transparent 50%
    );
    animation: banner-wave 4s linear infinite;
}

.awpc-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 80% at 20% 120%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes banner-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.awpc-content {
    padding: 10px 12px 12px;
    position: relative;
}

.awpc-avatar {
    position: absolute;
    top: -36px;
    left: 12px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b1fa2;
    font-size: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.awpc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.awpc-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-sizing: content-box;
}

.awpc-status.online { background: #23a55a; }
.awpc-status.offline { background: #80848e; }

.awpc-badges {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 28px;
}

.awpc-badge {
    width: 22px;
    height: 22px;
    background: rgba(123, 31, 162, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #7b1fa2;
    line-height: 1;
}

.awpc-badge i {
    display: block;
    width: 11px;
    height: 11px;
    text-align: center;
}

.awpc-info {
    margin-bottom: 8px;
}

.awpc-username {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
}

.awpc-userid {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.awpc-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 10px 0;
}

.awpc-section {
    margin-bottom: 8px;
}

.awpc-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.awpc-bio {
    font-size: 12px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.awpc-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.awpc-btn {
    flex: 1;
    padding: 8px 12px;
    background: #f3f4f6;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.awpc-btn:hover {
    background: #e5e7eb;
}

.awpc-btn.primary {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.awpc-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%
    );
    animation: btn-wave 3s linear infinite;
}

@keyframes btn-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.awpc-btn.primary:hover {
    background: linear-gradient(135deg, #8e24aa, #ab47bc);
}

.awpc-btn.primary:hover::before {
    animation-duration: 1.5s;
}

.awpc-btn.secondary {
    background: #f3f4f6;
    color: #1a1a1a;
}

.awpc-btn.secondary:hover {
    background: #e5e7eb;
}

.awpc-btn i {
    font-size: 12px;
    color: inherit;
}

.awpc-logout {
    width: 100%;
    padding: 8px;
    background: #fff;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.awpc-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
}
