/* User Action Bar & Buttons Redesign */
.user-action-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 154, 60, 0.3);
    background: rgba(255, 154, 60, 0.08);
    color: #ff9a3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.action-btn .icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn .text {
    font-size: 13px;
    font-weight: 600;
}

.action-btn:hover {
    background: linear-gradient(135deg, #ff9a3c 0%, #ff7f3c 100%);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(255, 154, 60, 0.3);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-logout {
    border-color: rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.08);
    color: #f44336;
}

.action-logout:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}
/* User Panel Styles */
.user-profile-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 320px;
}

/* User Header - Avatar + Info Side by Side */
.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 154, 60, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 154, 60, 0.1);
}

.user-header .user-panel-avatar-frame {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin: 0;
}

.user-header .user-panel-info {
    flex: 1;
    text-align: left;
}

.user-panel-avatar-frame {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto;
}

.user-panel-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(255,154,60,0.12), rgba(255,154,60,0.04));
    border: 2px solid rgba(255,154,60,0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255,154,60,0.1);
}

.user-status {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--positive);
    border: 3px solid var(--bg-0);
    box-shadow: 0 0 12px var(--positive);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.user-panel-info {
    text-align: center;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: var(--muted);
    word-break: break-all;
}

.user-panel-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.user-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    transition: all 0.3s ease;
}

.user-stat-item:hover {
    background: rgba(255, 154, 60, 0.08);
    transform: translateY(-2px);
}

.user-stat-item.expiration {
    background: rgba(255,154,60,0.08);
    border: 1px solid rgba(255,154,60,0.12);
}

.user-profile-section .stat-label {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-profile-section .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.user-profile-section .stat-value.days-warning {
    color: var(--warning);
}

.user-profile-section .stat-value.days-danger {
    color: var(--negative);
}

.user-profile-section .stat-hint {
    font-size: 12px;
    color: #90a4ae;
    margin-top: 4px;
    font-weight: 400;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    /* match primary / confirm accept style for consistency */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 30px rgba(255,154,60,0.18);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,154,60,0.24);
}

.logout-icon {
    font-size: 16px;
}

.logout-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}